fix(products): fix breadcrumbs and product filtering (backport from main)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled

This commit is contained in:
2026-02-24 16:04:21 +01:00
parent 915eb61613
commit 5397309103
43805 changed files with 4324295 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
const formatRelativeLocale = {
lastWeek: "'geçen hafta' eeee 'saat' p",
yesterday: "'dün saat' p",
today: "'bugün saat' p",
tomorrow: "'yarın saat' p",
nextWeek: "eeee 'saat' p",
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];

View File

@@ -0,0 +1,30 @@
/**
Import a module while bypassing the cache.
@example
```
// foo.js
let i = 0;
module.exports = () => ++i;
// index.js
import importFresh = require('import-fresh');
require('./foo')();
//=> 1
require('./foo')();
//=> 2
importFresh('./foo')();
//=> 1
importFresh('./foo')();
//=> 1
const foo = importFresh<typeof import('./foo')>('./foo');
```
*/
declare function importFresh<T>(moduleId: string): T;
export = importFresh;

View File

@@ -0,0 +1,35 @@
import { daysInWeek } from "./constants.mjs";
/**
* @name daysToWeeks
* @category Conversion Helpers
* @summary Convert days to weeks.
*
* @description
* Convert a number of days to a full number of weeks.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param days - The number of days to be converted
*
* @returns The number of days converted in weeks
*
* @example
* // Convert 14 days to weeks:
* const result = daysToWeeks(14)
* //=> 2
*
* @example
* // It uses trunc rounding:
* const result = daysToWeeks(13)
* //=> 1
*/
export function daysToWeeks(days) {
const weeks = days / daysInWeek;
const result = Math.trunc(weeks);
// Prevent negative zero
return result === 0 ? 0 : result;
}
// Fallback for modularized imports:
export default daysToWeeks;

View File

@@ -0,0 +1,21 @@
'use strict'
const build = require('pino-abstract-transport')
const { pipeline, Transform } = require('node:stream')
module.exports = (options) => {
return build(function (source) {
const myTransportStream = new Transform({
autoDestroy: true,
objectMode: true,
transform (chunk, enc, cb) {
chunk.service = 'pino'
this.push(JSON.stringify(chunk))
cb()
}
})
pipeline(source, myTransportStream, () => {})
return myTransportStream
}, {
enablePipelining: true
})
}

View File

@@ -0,0 +1,49 @@
function buildProjectionTransform(delta, treeScale, latestTransform) {
let transform = "";
/**
* The translations we use to calculate are always relative to the viewport coordinate space.
* But when we apply scales, we also scale the coordinate space of an element and its children.
* For instance if we have a treeScale (the culmination of all parent scales) of 0.5 and we need
* to move an element 100 pixels, we actually need to move it 200 in within that scaled space.
*/
const xTranslate = delta.x.translate / treeScale.x;
const yTranslate = delta.y.translate / treeScale.y;
const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;
if (xTranslate || yTranslate || zTranslate) {
transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
}
/**
* Apply scale correction for the tree transform.
* This will apply scale to the screen-orientated axes.
*/
if (treeScale.x !== 1 || treeScale.y !== 1) {
transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;
}
if (latestTransform) {
const { transformPerspective, rotate, rotateX, rotateY, skewX, skewY } = latestTransform;
if (transformPerspective)
transform = `perspective(${transformPerspective}px) ${transform}`;
if (rotate)
transform += `rotate(${rotate}deg) `;
if (rotateX)
transform += `rotateX(${rotateX}deg) `;
if (rotateY)
transform += `rotateY(${rotateY}deg) `;
if (skewX)
transform += `skewX(${skewX}deg) `;
if (skewY)
transform += `skewY(${skewY}deg) `;
}
/**
* Apply scale to match the size of the element to the size we want it.
* This will apply scale to the element-orientated axes.
*/
const elementScaleX = delta.x.scale * treeScale.x;
const elementScaleY = delta.y.scale * treeScale.y;
if (elementScaleX !== 1 || elementScaleY !== 1) {
transform += `scale(${elementScaleX}, ${elementScaleY})`;
}
return transform || "none";
}
export { buildProjectionTransform };

View File

@@ -0,0 +1,114 @@
import { createPool } from "mysql2";
import { entityKind } from "../entity.js";
import { DefaultLogger } from "../logger.js";
import {
createTableRelationsHelpers,
extractTablesRelationalConfig
} from "../relations.js";
import { SingleStoreDatabase } from "../singlestore-core/db.js";
import { SingleStoreDialect } from "../singlestore-core/dialect.js";
import { isConfig } from "../utils.js";
import { npmVersion } from "../version.js";
import { SingleStoreDriverSession } from "./session.js";
class SingleStoreDriverDriver {
constructor(client, dialect, options = {}) {
this.client = client;
this.dialect = dialect;
this.options = options;
}
static [entityKind] = "SingleStoreDriverDriver";
createSession(schema) {
return new SingleStoreDriverSession(this.client, this.dialect, schema, {
logger: this.options.logger,
cache: this.options.cache
});
}
}
import { SingleStoreDatabase as SingleStoreDatabase2 } from "../singlestore-core/db.js";
class SingleStoreDriverDatabase extends SingleStoreDatabase {
static [entityKind] = "SingleStoreDriverDatabase";
}
function construct(client, config = {}) {
const dialect = new SingleStoreDialect({ casing: config.casing });
let logger;
if (config.logger === true) {
logger = new DefaultLogger();
} else if (config.logger !== false) {
logger = config.logger;
}
const clientForInstance = isCallbackClient(client) ? client.promise() : client;
let schema;
if (config.schema) {
const tablesConfig = extractTablesRelationalConfig(
config.schema,
createTableRelationsHelpers
);
schema = {
fullSchema: config.schema,
schema: tablesConfig.tables,
tableNamesMap: tablesConfig.tableNamesMap
};
}
const driver = new SingleStoreDriverDriver(clientForInstance, dialect, {
logger,
cache: config.cache
});
const session = driver.createSession(schema);
const db = new SingleStoreDriverDatabase(dialect, session, schema);
db.$client = client;
db.$cache = config.cache;
if (db.$cache) {
db.$cache["invalidate"] = config.cache?.onMutate;
}
return db;
}
function isCallbackClient(client) {
return typeof client.promise === "function";
}
const CONNECTION_ATTRS = {
_connector_name: "SingleStore Drizzle ORM Driver",
_connector_version: npmVersion
};
function drizzle(...params) {
if (typeof params[0] === "string") {
const connectionString = params[0];
const instance = createPool({
uri: connectionString,
connectAttributes: CONNECTION_ATTRS
});
return construct(instance, params[1]);
}
if (isConfig(params[0])) {
const { connection, client, ...drizzleConfig } = params[0];
if (client) return construct(client, drizzleConfig);
let opts = {};
opts = typeof connection === "string" ? {
uri: connection,
supportBigNumbers: true,
connectAttributes: CONNECTION_ATTRS
} : {
...connection,
connectAttributes: {
...connection.connectAttributes,
...CONNECTION_ATTRS
}
};
const instance = createPool(opts);
const db = construct(instance, drizzleConfig);
return db;
}
return construct(params[0], params[1]);
}
((drizzle2) => {
function mock(config) {
return construct({}, config);
}
drizzle2.mock = mock;
})(drizzle || (drizzle = {}));
export {
SingleStoreDatabase2 as SingleStoreDatabase,
SingleStoreDriverDatabase,
SingleStoreDriverDriver,
drizzle
};
//# sourceMappingURL=driver.js.map

View File

@@ -0,0 +1,36 @@
import { traverse, getSectionMetadatas, shiftSection } from "@webassemblyjs/ast";
import { overrideBytesInBuffer } from "@webassemblyjs/helper-buffer";
export function removeSections(ast, uint8Buffer, section) {
var sectionMetadatas = getSectionMetadatas(ast, section);
if (sectionMetadatas.length === 0) {
throw new Error("Section metadata not found");
}
return sectionMetadatas.reverse().reduce(function (uint8Buffer, sectionMetadata) {
var startsIncludingId = sectionMetadata.startOffset - 1;
var ends = section === "start" ? sectionMetadata.size.loc.end.column + 1 : sectionMetadata.startOffset + sectionMetadata.size.value + 1;
var delta = -(ends - startsIncludingId);
/**
* update AST
*/
// Once we hit our section every that is after needs to be shifted by the delta
var encounteredSection = false;
traverse(ast, {
SectionMetadata: function SectionMetadata(path) {
if (path.node.section === section) {
encounteredSection = true;
return path.remove();
}
if (encounteredSection === true) {
shiftSection(ast, path.node, delta);
}
}
}); // replacement is nothing
var replacement = [];
return overrideBytesInBuffer(uint8Buffer, startsIncludingId, ends, replacement);
}, uint8Buffer);
}

View File

@@ -0,0 +1,14 @@
import type { GetStaticProps } from 'next';
type Props = {
[key: string]: unknown;
};
/**
* Create a wrapped version of the user's exported `getStaticProps` function
*
* @param origGetStaticProps The user's `getStaticProps` function
* @param parameterizedRoute The page's parameterized route
* @returns A wrapped version of the function
*/
export declare function wrapGetStaticPropsWithSentry(origGetStaticPropsa: GetStaticProps<Props>, _parameterizedRoute: string): GetStaticProps<Props>;
export {};
//# sourceMappingURL=wrapGetStaticPropsWithSentry.d.ts.map

View File

@@ -0,0 +1,9 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { nextMonday as fn } from "../nextMonday.js";
import { convertToFP } from "./_lib/convertToFP.js";
export const nextMonday = convertToFP(fn, 1);
// Fallback for modularized imports:
export default nextMonday;

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/Thumbnail/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,cAAc,CAAA;AAIrB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAKxD,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IACvD,YAAY,CAAC,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAA;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiD9C,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;CACjE,CAAA;AACD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBAyChE"}

View File

@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const UserRoundCheck = createLucideIcon("UserRoundCheck", [
["path", { d: "M2 21a8 8 0 0 1 13.292-6", key: "bjp14o" }],
["circle", { cx: "10", cy: "8", r: "5", key: "o932ke" }],
["path", { d: "m16 19 2 2 4-4", key: "1b14m6" }]
]);
export { UserRoundCheck as default };
//# sourceMappingURL=user-round-check.js.map

View File

@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const FileDiff = createLucideIcon("FileDiff", [
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
["path", { d: "M9 10h6", key: "9gxzsh" }],
["path", { d: "M12 13V7", key: "h0r20n" }],
["path", { d: "M9 17h6", key: "r8uit2" }]
]);
export { FileDiff as default };
//# sourceMappingURL=file-diff.js.map

View File

@@ -0,0 +1,10 @@
"use strict";
exports.setDayWithOptions = void 0;
var _index = require("../setDay.js");
var _index2 = require("./_lib/convertToFP.js"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const setDayWithOptions = (exports.setDayWithOptions = (0, _index2.convertToFP)(
_index.setDay,
3,
));

View File

@@ -0,0 +1,134 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_lib/buildMatchPatternFn.js");
const matchOrdinalNumberPattern = /^(\d+)\./i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(pr\.n\.e\.|AD)/i,
abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,
wide: /^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i,
};
const parseEraPatterns = {
any: [/^pr/i, /^(po|nova)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^[1234]\.\s?kv\.?/i,
wide: /^[1234]\. kvartal/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^(10|11|12|[123456789])\./i,
abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,
wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i,
};
const parseMonthPatterns = {
narrow: [
/^1/i,
/^2/i,
/^3/i,
/^4/i,
/^5/i,
/^6/i,
/^7/i,
/^8/i,
/^9/i,
/^10/i,
/^11/i,
/^12/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^maj/i,
/^jun/i,
/^jul/i,
/^avg/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[npusčc]/i,
short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,
abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,
wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i,
};
const parseDayPatterns = {
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
};
const matchDayPeriodPatterns = {
any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^pono/i,
noon: /^pod/i,
morning: /jutro/i,
afternoon: /(poslije\s|po)+podne/i,
evening: /(uvece|uveče)/i,
night: /(nocu|noću)/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});

View File

@@ -0,0 +1,16 @@
import { WebSocketInterface } from "../../types/globals.cjs";
//#region src/realtime/utils/message-callback.d.ts
/**
* Wait for a websocket response
*
* @param socket WebSocket
* @param number timeout
*
* @returns Incoming message object
*/
declare const messageCallback: (socket: WebSocketInterface, timeout?: number) => Promise<Record<string, any> | MessageEvent<string> | undefined>;
//#endregion
export { messageCallback };
//# sourceMappingURL=message-callback.d.cts.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/singlestore-core/columns/smallint.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnySingleStoreTable } from '~/singlestore-core/table.ts';\nimport { getColumnNameAndConfig } from '~/utils.ts';\nimport { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from './common.ts';\nimport type { SingleStoreIntConfig } from './int.ts';\n\nexport type SingleStoreSmallIntBuilderInitial<TName extends string> = SingleStoreSmallIntBuilder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'SingleStoreSmallInt';\n\tdata: number;\n\tdriverParam: number | string;\n\tenumValues: undefined;\n\tgenerated: undefined;\n}>;\n\nexport class SingleStoreSmallIntBuilder<T extends ColumnBuilderBaseConfig<'number', 'SingleStoreSmallInt'>>\n\textends SingleStoreColumnBuilderWithAutoIncrement<T, SingleStoreIntConfig>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreSmallIntBuilder';\n\n\tconstructor(name: T['name'], config?: SingleStoreIntConfig) {\n\t\tsuper(name, 'number', 'SingleStoreSmallInt');\n\t\tthis.config.unsigned = config ? config.unsigned : false;\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnySingleStoreTable<{ name: TTableName }>,\n\t): SingleStoreSmallInt<MakeColumnConfig<T, TTableName>> {\n\t\treturn new SingleStoreSmallInt<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class SingleStoreSmallInt<T extends ColumnBaseConfig<'number', 'SingleStoreSmallInt'>>\n\textends SingleStoreColumnWithAutoIncrement<T, SingleStoreIntConfig>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreSmallInt';\n\n\tgetSQLType(): string {\n\t\treturn `smallint${this.config.unsigned ? ' unsigned' : ''}`;\n\t}\n\n\toverride mapFromDriverValue(value: number | string): number {\n\t\tif (typeof value === 'string') {\n\t\t\treturn Number(value);\n\t\t}\n\t\treturn value;\n\t}\n}\n\nexport function smallint(): SingleStoreSmallIntBuilderInitial<''>;\nexport function smallint(\n\tconfig?: SingleStoreIntConfig,\n): SingleStoreSmallIntBuilderInitial<''>;\nexport function smallint<TName extends string>(\n\tname: TName,\n\tconfig?: SingleStoreIntConfig,\n): SingleStoreSmallIntBuilderInitial<TName>;\nexport function smallint(a?: string | SingleStoreIntConfig, b?: SingleStoreIntConfig) {\n\tconst { name, config } = getColumnNameAndConfig<SingleStoreIntConfig>(a, b);\n\treturn new SingleStoreSmallIntBuilder(name, config);\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,8BAA8B;AACvC,SAAS,2CAA2C,0CAA0C;AAavF,MAAM,mCACJ,0CACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB,QAA+B;AAC3D,UAAM,MAAM,UAAU,qBAAqB;AAC3C,SAAK,OAAO,WAAW,SAAS,OAAO,WAAW;AAAA,EACnD;AAAA;AAAA,EAGS,MACR,OACuD;AACvD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,4BACJ,mCACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO,WAAW,KAAK,OAAO,WAAW,cAAc,EAAE;AAAA,EAC1D;AAAA,EAES,mBAAmB,OAAgC;AAC3D,QAAI,OAAO,UAAU,UAAU;AAC9B,aAAO,OAAO,KAAK;AAAA,IACpB;AACA,WAAO;AAAA,EACR;AACD;AAUO,SAAS,SAAS,GAAmC,GAA0B;AACrF,QAAM,EAAE,MAAM,OAAO,IAAI,uBAA6C,GAAG,CAAC;AAC1E,SAAO,IAAI,2BAA2B,MAAM,MAAM;AACnD;","names":[]}

View File

@@ -0,0 +1,35 @@
"use strict";
exports.setHours = setHours;
var _index = require("./toDate.cjs");
/**
* The {@link setHours} function options.
*/
/**
* @name setHours
* @category Hour Helpers
* @summary Set the hours to the given date.
*
* @description
* Set the hours to the given date.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
*
* @param date - The date to be changed
* @param hours - The hours of the new date
* @param options - An object with options
*
* @returns The new date with the hours set
*
* @example
* // Set 4 hours to 1 September 2014 11:30:00:
* const result = setHours(new Date(2014, 8, 1, 11, 30), 4)
* //=> Mon Sep 01 2014 04:30:00
*/
function setHours(date, hours, options) {
const _date = (0, _index.toDate)(date, options?.in);
_date.setHours(hours);
return _date;
}

View File

@@ -0,0 +1,9 @@
import "../types/number.js";
import { PartitionNumberRangePattern } from "./PartitionNumberRangePattern.js";
/**
* https://tc39.es/ecma402/#sec-formatnumericrange
*/
export function FormatNumericRange(numberFormat, x, y, { getInternalSlots }) {
const parts = PartitionNumberRangePattern(numberFormat, x, y, { getInternalSlots });
return parts.map((part) => part.value).join("");
}

View File

@@ -0,0 +1,7 @@
import type { FeedbackFormData, FeedbackInternalOptions } from '@sentry/core';
export type Props = Pick<FeedbackInternalOptions, 'emailLabel' | 'isEmailRequired' | 'isNameRequired' | 'messageLabel' | 'nameLabel'>;
/**
* Validate that a given feedback submission has the required fields
*/
export declare function getMissingFields(feedback: FeedbackFormData, props: Props): string[];
//# sourceMappingURL=validate.d.ts.map

View File

@@ -0,0 +1,136 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphQLUSCurrency = exports.GraphQLRGBA = exports.GraphQLRGB = exports.GraphQLPort = exports.GraphQLMAC = exports.GraphQLLongitude = exports.GraphQLLatitude = exports.GraphQLJWT = exports.GraphQLISBN = exports.GraphQLIPv6 = exports.GraphQLIPv4 = exports.GraphQLIP = exports.GraphQLHSLA = exports.GraphQLHSL = exports.GraphQLHexColorCode = exports.GraphQLHexadecimal = exports.GraphQLGUID = exports.GraphQLUUID = exports.GraphQLSafeInt = exports.GraphQLLong = exports.GraphQLByte = exports.GraphQLBigInt = exports.GraphQLURL = exports.GraphQLUnsignedInt = exports.GraphQLUnsignedFloat = exports.GraphQLPostalCode = exports.GraphQLPositiveInt = exports.GraphQLPositiveFloat = exports.GraphQLPhoneNumber = exports.GraphQLNonPositiveInt = exports.GraphQLNonPositiveFloat = exports.GraphQLNonNegativeInt = exports.GraphQLNonNegativeFloat = exports.GraphQLNonEmptyString = exports.GraphQLNegativeInt = exports.GraphQLNegativeFloat = exports.GraphQLEmailAddress = exports.GraphQLLocalEndTime = exports.GraphQLLocalDateTime = exports.GraphQLLocalTime = exports.GraphQLLocalDate = exports.GraphQLISO8601Duration = exports.GraphQLUtcOffset = exports.GraphQLTimeZone = exports.GraphQLTimestamp = exports.GraphQLDuration = exports.GraphQLDateTimeISO = exports.GraphQLDateTime = exports.GraphQLTime = exports.GraphQLDate = void 0;
exports.GraphQLIPCPatent = exports.GraphQLLCCSubclass = exports.GraphQLDeweyDecimal = exports.GraphQLSemVer = exports.GraphQLCuid = exports.GraphQLAccountNumber = exports.GraphQLRoutingNumber = exports.GraphQLLocale = exports.GraphQLCountryCode = exports.GraphQLDID = exports.GraphQLVoid = exports.GraphQLObjectID = exports.GraphQLIBAN = exports.GraphQLJSONObject = exports.GraphQLJSON = exports.GraphQLCurrency = void 0;
var Date_js_1 = require("./iso-date/Date.js");
Object.defineProperty(exports, "GraphQLDate", { enumerable: true, get: function () { return Date_js_1.GraphQLDate; } });
var Time_js_1 = require("./iso-date/Time.js");
Object.defineProperty(exports, "GraphQLTime", { enumerable: true, get: function () { return Time_js_1.GraphQLTime; } });
var DateTime_js_1 = require("./iso-date/DateTime.js");
Object.defineProperty(exports, "GraphQLDateTime", { enumerable: true, get: function () { return DateTime_js_1.GraphQLDateTime; } });
var DateTimeISO_js_1 = require("./iso-date/DateTimeISO.js");
Object.defineProperty(exports, "GraphQLDateTimeISO", { enumerable: true, get: function () { return DateTimeISO_js_1.GraphQLDateTimeISO; } });
var Duration_js_1 = require("./iso-date/Duration.js");
Object.defineProperty(exports, "GraphQLDuration", { enumerable: true, get: function () { return Duration_js_1.GraphQLDuration; } });
var Timestamp_js_1 = require("./Timestamp.js");
Object.defineProperty(exports, "GraphQLTimestamp", { enumerable: true, get: function () { return Timestamp_js_1.GraphQLTimestamp; } });
var TimeZone_js_1 = require("./TimeZone.js");
Object.defineProperty(exports, "GraphQLTimeZone", { enumerable: true, get: function () { return TimeZone_js_1.GraphQLTimeZone; } });
var UtcOffset_js_1 = require("./UtcOffset.js");
Object.defineProperty(exports, "GraphQLUtcOffset", { enumerable: true, get: function () { return UtcOffset_js_1.GraphQLUtcOffset; } });
var Duration_js_2 = require("./iso-date/Duration.js");
Object.defineProperty(exports, "GraphQLISO8601Duration", { enumerable: true, get: function () { return Duration_js_2.GraphQLISO8601Duration; } });
var LocalDate_js_1 = require("./LocalDate.js");
Object.defineProperty(exports, "GraphQLLocalDate", { enumerable: true, get: function () { return LocalDate_js_1.GraphQLLocalDate; } });
var LocalTime_js_1 = require("./LocalTime.js");
Object.defineProperty(exports, "GraphQLLocalTime", { enumerable: true, get: function () { return LocalTime_js_1.GraphQLLocalTime; } });
var LocalDateTime_js_1 = require("./LocalDateTime.js");
Object.defineProperty(exports, "GraphQLLocalDateTime", { enumerable: true, get: function () { return LocalDateTime_js_1.GraphQLLocalDateTime; } });
var LocalEndTime_js_1 = require("./LocalEndTime.js");
Object.defineProperty(exports, "GraphQLLocalEndTime", { enumerable: true, get: function () { return LocalEndTime_js_1.GraphQLLocalEndTime; } });
var EmailAddress_js_1 = require("./EmailAddress.js");
Object.defineProperty(exports, "GraphQLEmailAddress", { enumerable: true, get: function () { return EmailAddress_js_1.GraphQLEmailAddress; } });
var NegativeFloat_js_1 = require("./NegativeFloat.js");
Object.defineProperty(exports, "GraphQLNegativeFloat", { enumerable: true, get: function () { return NegativeFloat_js_1.GraphQLNegativeFloat; } });
var NegativeInt_js_1 = require("./NegativeInt.js");
Object.defineProperty(exports, "GraphQLNegativeInt", { enumerable: true, get: function () { return NegativeInt_js_1.GraphQLNegativeInt; } });
var NonEmptyString_js_1 = require("./NonEmptyString.js");
Object.defineProperty(exports, "GraphQLNonEmptyString", { enumerable: true, get: function () { return NonEmptyString_js_1.GraphQLNonEmptyString; } });
var NonNegativeFloat_js_1 = require("./NonNegativeFloat.js");
Object.defineProperty(exports, "GraphQLNonNegativeFloat", { enumerable: true, get: function () { return NonNegativeFloat_js_1.GraphQLNonNegativeFloat; } });
var NonNegativeInt_js_1 = require("./NonNegativeInt.js");
Object.defineProperty(exports, "GraphQLNonNegativeInt", { enumerable: true, get: function () { return NonNegativeInt_js_1.GraphQLNonNegativeInt; } });
var NonPositiveFloat_js_1 = require("./NonPositiveFloat.js");
Object.defineProperty(exports, "GraphQLNonPositiveFloat", { enumerable: true, get: function () { return NonPositiveFloat_js_1.GraphQLNonPositiveFloat; } });
var NonPositiveInt_js_1 = require("./NonPositiveInt.js");
Object.defineProperty(exports, "GraphQLNonPositiveInt", { enumerable: true, get: function () { return NonPositiveInt_js_1.GraphQLNonPositiveInt; } });
var PhoneNumber_js_1 = require("./PhoneNumber.js");
Object.defineProperty(exports, "GraphQLPhoneNumber", { enumerable: true, get: function () { return PhoneNumber_js_1.GraphQLPhoneNumber; } });
var PositiveFloat_js_1 = require("./PositiveFloat.js");
Object.defineProperty(exports, "GraphQLPositiveFloat", { enumerable: true, get: function () { return PositiveFloat_js_1.GraphQLPositiveFloat; } });
var PositiveInt_js_1 = require("./PositiveInt.js");
Object.defineProperty(exports, "GraphQLPositiveInt", { enumerable: true, get: function () { return PositiveInt_js_1.GraphQLPositiveInt; } });
var PostalCode_js_1 = require("./PostalCode.js");
Object.defineProperty(exports, "GraphQLPostalCode", { enumerable: true, get: function () { return PostalCode_js_1.GraphQLPostalCode; } });
var UnsignedFloat_js_1 = require("./UnsignedFloat.js");
Object.defineProperty(exports, "GraphQLUnsignedFloat", { enumerable: true, get: function () { return UnsignedFloat_js_1.GraphQLUnsignedFloat; } });
var UnsignedInt_js_1 = require("./UnsignedInt.js");
Object.defineProperty(exports, "GraphQLUnsignedInt", { enumerable: true, get: function () { return UnsignedInt_js_1.GraphQLUnsignedInt; } });
var URL_js_1 = require("./URL.js");
Object.defineProperty(exports, "GraphQLURL", { enumerable: true, get: function () { return URL_js_1.GraphQLURL; } });
var BigInt_js_1 = require("./BigInt.js");
Object.defineProperty(exports, "GraphQLBigInt", { enumerable: true, get: function () { return BigInt_js_1.GraphQLBigInt; } });
var Byte_js_1 = require("./Byte.js");
Object.defineProperty(exports, "GraphQLByte", { enumerable: true, get: function () { return Byte_js_1.GraphQLByte; } });
var Long_js_1 = require("./Long.js");
Object.defineProperty(exports, "GraphQLLong", { enumerable: true, get: function () { return Long_js_1.GraphQLLong; } });
var SafeInt_js_1 = require("./SafeInt.js");
Object.defineProperty(exports, "GraphQLSafeInt", { enumerable: true, get: function () { return SafeInt_js_1.GraphQLSafeInt; } });
var UUID_js_1 = require("./UUID.js");
Object.defineProperty(exports, "GraphQLUUID", { enumerable: true, get: function () { return UUID_js_1.GraphQLUUID; } });
var GUID_js_1 = require("./GUID.js");
Object.defineProperty(exports, "GraphQLGUID", { enumerable: true, get: function () { return GUID_js_1.GraphQLGUID; } });
var Hexadecimal_js_1 = require("./Hexadecimal.js");
Object.defineProperty(exports, "GraphQLHexadecimal", { enumerable: true, get: function () { return Hexadecimal_js_1.GraphQLHexadecimal; } });
var HexColorCode_js_1 = require("./HexColorCode.js");
Object.defineProperty(exports, "GraphQLHexColorCode", { enumerable: true, get: function () { return HexColorCode_js_1.GraphQLHexColorCode; } });
var HSL_js_1 = require("./HSL.js");
Object.defineProperty(exports, "GraphQLHSL", { enumerable: true, get: function () { return HSL_js_1.GraphQLHSL; } });
var HSLA_js_1 = require("./HSLA.js");
Object.defineProperty(exports, "GraphQLHSLA", { enumerable: true, get: function () { return HSLA_js_1.GraphQLHSLA; } });
var IP_js_1 = require("./IP.js");
Object.defineProperty(exports, "GraphQLIP", { enumerable: true, get: function () { return IP_js_1.GraphQLIP; } });
var IPv4_js_1 = require("./IPv4.js");
Object.defineProperty(exports, "GraphQLIPv4", { enumerable: true, get: function () { return IPv4_js_1.GraphQLIPv4; } });
var IPv6_js_1 = require("./IPv6.js");
Object.defineProperty(exports, "GraphQLIPv6", { enumerable: true, get: function () { return IPv6_js_1.GraphQLIPv6; } });
var ISBN_js_1 = require("./ISBN.js");
Object.defineProperty(exports, "GraphQLISBN", { enumerable: true, get: function () { return ISBN_js_1.GraphQLISBN; } });
var JWT_js_1 = require("./JWT.js");
Object.defineProperty(exports, "GraphQLJWT", { enumerable: true, get: function () { return JWT_js_1.GraphQLJWT; } });
var Latitude_js_1 = require("./Latitude.js");
Object.defineProperty(exports, "GraphQLLatitude", { enumerable: true, get: function () { return Latitude_js_1.GraphQLLatitude; } });
var Longitude_js_1 = require("./Longitude.js");
Object.defineProperty(exports, "GraphQLLongitude", { enumerable: true, get: function () { return Longitude_js_1.GraphQLLongitude; } });
var MAC_js_1 = require("./MAC.js");
Object.defineProperty(exports, "GraphQLMAC", { enumerable: true, get: function () { return MAC_js_1.GraphQLMAC; } });
var Port_js_1 = require("./Port.js");
Object.defineProperty(exports, "GraphQLPort", { enumerable: true, get: function () { return Port_js_1.GraphQLPort; } });
var RGB_js_1 = require("./RGB.js");
Object.defineProperty(exports, "GraphQLRGB", { enumerable: true, get: function () { return RGB_js_1.GraphQLRGB; } });
var RGBA_js_1 = require("./RGBA.js");
Object.defineProperty(exports, "GraphQLRGBA", { enumerable: true, get: function () { return RGBA_js_1.GraphQLRGBA; } });
var USCurrency_js_1 = require("./USCurrency.js");
Object.defineProperty(exports, "GraphQLUSCurrency", { enumerable: true, get: function () { return USCurrency_js_1.GraphQLUSCurrency; } });
var Currency_js_1 = require("./Currency.js");
Object.defineProperty(exports, "GraphQLCurrency", { enumerable: true, get: function () { return Currency_js_1.GraphQLCurrency; } });
var JSON_js_1 = require("./json/JSON.js");
Object.defineProperty(exports, "GraphQLJSON", { enumerable: true, get: function () { return JSON_js_1.GraphQLJSON; } });
var JSONObject_js_1 = require("./json/JSONObject.js");
Object.defineProperty(exports, "GraphQLJSONObject", { enumerable: true, get: function () { return JSONObject_js_1.GraphQLJSONObject; } });
var IBAN_js_1 = require("./IBAN.js");
Object.defineProperty(exports, "GraphQLIBAN", { enumerable: true, get: function () { return IBAN_js_1.GraphQLIBAN; } });
var ObjectID_js_1 = require("./ObjectID.js");
Object.defineProperty(exports, "GraphQLObjectID", { enumerable: true, get: function () { return ObjectID_js_1.GraphQLObjectID; } });
var Void_js_1 = require("./Void.js");
Object.defineProperty(exports, "GraphQLVoid", { enumerable: true, get: function () { return Void_js_1.GraphQLVoid; } });
var DID_js_1 = require("./DID.js");
Object.defineProperty(exports, "GraphQLDID", { enumerable: true, get: function () { return DID_js_1.GraphQLDID; } });
var CountryCode_js_1 = require("./CountryCode.js");
Object.defineProperty(exports, "GraphQLCountryCode", { enumerable: true, get: function () { return CountryCode_js_1.GraphQLCountryCode; } });
var Locale_js_1 = require("./Locale.js");
Object.defineProperty(exports, "GraphQLLocale", { enumerable: true, get: function () { return Locale_js_1.GraphQLLocale; } });
var RoutingNumber_js_1 = require("./RoutingNumber.js");
Object.defineProperty(exports, "GraphQLRoutingNumber", { enumerable: true, get: function () { return RoutingNumber_js_1.GraphQLRoutingNumber; } });
var AccountNumber_js_1 = require("./AccountNumber.js");
Object.defineProperty(exports, "GraphQLAccountNumber", { enumerable: true, get: function () { return AccountNumber_js_1.GraphQLAccountNumber; } });
var Cuid_js_1 = require("./Cuid.js");
Object.defineProperty(exports, "GraphQLCuid", { enumerable: true, get: function () { return Cuid_js_1.GraphQLCuid; } });
var SemVer_js_1 = require("./SemVer.js");
Object.defineProperty(exports, "GraphQLSemVer", { enumerable: true, get: function () { return SemVer_js_1.GraphQLSemVer; } });
var DeweyDecimal_js_1 = require("./library/DeweyDecimal.js");
Object.defineProperty(exports, "GraphQLDeweyDecimal", { enumerable: true, get: function () { return DeweyDecimal_js_1.GraphQLDeweyDecimal; } });
var LCCSubclass_js_1 = require("./library/LCCSubclass.js");
Object.defineProperty(exports, "GraphQLLCCSubclass", { enumerable: true, get: function () { return LCCSubclass_js_1.GraphQLLCCSubclass; } });
var IPCPatent_js_1 = require("./patent/IPCPatent.js");
Object.defineProperty(exports, "GraphQLIPCPatent", { enumerable: true, get: function () { return IPCPatent_js_1.GraphQLIPCPatent; } });

View File

@@ -0,0 +1,4 @@
function _checkPrivateRedeclaration(e, t) {
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
}
export { _checkPrivateRedeclaration as default };

View File

@@ -0,0 +1,11 @@
import ownerWindow from './ownerWindow';
/**
* Returns one or all computed style properties of an element.
*
* @param node the element
* @param psuedoElement the style property
*/
export default function getComputedStyle(node, psuedoElement) {
return ownerWindow(node).getComputedStyle(node, psuedoElement);
}

View File

@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const WifiHigh = createLucideIcon("WifiHigh", [
["path", { d: "M12 20h.01", key: "zekei9" }],
["path", { d: "M5 12.859a10 10 0 0 1 14 0", key: "1x1e6c" }],
["path", { d: "M8.5 16.429a5 5 0 0 1 7 0", key: "1bycff" }]
]);
export { WifiHigh as default };
//# sourceMappingURL=wifi-high.js.map

View File

@@ -0,0 +1,2 @@
const e=require(`../rest/utils/get-auth-endpoint.cjs`),t=require(`../utils/get-request-url.cjs`),n=require(`../utils/request.cjs`),r=require(`./utils/memory-storage.cjs`),i={msRefreshBeforeExpires:3e4,autoRefresh:!0},a=2**31-1,o=(o=`cookie`,s={})=>c=>{let l={...i,...s},u=null,d=null,f=l.storage??r.memoryStorage(),p=async()=>f.set({access_token:null,refresh_token:null,expires:null,expires_at:null}),m=async()=>{try{await u}finally{u=null}},h=async()=>{let e=await f.get();return u||!e?.expires_at||e.expires_at<new Date().getTime()+l.msRefreshBeforeExpires&&_().catch(e=>{}),m()},g=async e=>{let t=e.expires??0;e.expires_at=new Date().getTime()+t,await f.set(e),l.autoRefresh&&t>l.msRefreshBeforeExpires&&t<a&&(d&&clearTimeout(d),d=setTimeout(()=>{d=null,_().catch(e=>{})},t-l.msRefreshBeforeExpires))},_=async(e={})=>(u=(async()=>{let r=await f.get(),i={method:`POST`,headers:{"Content-Type":`application/json`}};`credentials`in l&&(i.credentials=l.credentials);let a={mode:e.mode??o};o===`json`&&r?.refresh_token&&(a.refresh_token=r.refresh_token),i.body=JSON.stringify(a);let s=await n.request(t.getRequestUrl(c.url,`/auth/refresh`).toString(),i,c.globals.fetch);return await p(),await g(s),s})(),u);async function v(r,i={}){let a=r;`otp`in i&&(a.otp=i.otp),a.mode=i.mode??o;let s=e.getAuthEndpoint(i.provider),u=t.getRequestUrl(c.url,s),d={method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(a)};`credentials`in l&&(d.credentials=l.credentials);let f=await n.request(u.toString(),d,c.globals.fetch);return await p(),await g(f),f}return{refresh:_,login:v,async logout(e={}){let r=await f.get(),i={method:`POST`,headers:{"Content-Type":`application/json`}};`credentials`in l&&(i.credentials=l.credentials);let a={mode:e.mode??o};o===`json`&&r?.refresh_token&&(a.refresh_token=r.refresh_token),i.body=JSON.stringify(a),await n.request(t.getRequestUrl(c.url,`/auth/logout`).toString(),i,c.globals.fetch),this.stopRefreshing(),await p()},stopRefreshing(){d&&clearTimeout(d)},async getToken(){return await h().catch(()=>{}),(await f.get())?.access_token??null},async setToken(e){return f.set({access_token:e,refresh_token:null,expires:null,expires_at:null})}}};exports.authentication=o;
//# sourceMappingURL=composable.cjs.map

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = require('./async').reflectAll;

View File

@@ -0,0 +1,4 @@
import type { DefaultTranslationsObject, Language } from '../types.js';
export declare const roTranslations: DefaultTranslationsObject;
export declare const ro: Language;
//# sourceMappingURL=ro.d.ts.map

View File

@@ -0,0 +1,3 @@
import { MissingInstrumentationContext } from '@sentry/core';
export declare const createMissingInstrumentationContext: (pkg: string) => MissingInstrumentationContext;
//# sourceMappingURL=createMissingInstrumentationContext.d.ts.map

View File

@@ -0,0 +1,19 @@
import type { Transporter } from 'nodemailer';
import type SMTPConnection from 'nodemailer/lib/smtp-connection';
import type { EmailAdapter } from 'payload';
export type NodemailerAdapterArgs = {
defaultFromAddress: string;
defaultFromName: string;
skipVerify?: boolean;
transport?: Transporter;
transportOptions?: SMTPConnection.Options;
};
type NodemailerAdapter = EmailAdapter<unknown>;
/**
* Creates an email adapter using nodemailer
*
* If no email configuration is provided, an ethereal email test account is returned
*/
export declare const nodemailerAdapter: (args?: NodemailerAdapterArgs) => Promise<NodemailerAdapter>;
export {};
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,43 @@
# `@lexical/html`
[![See API Documentation](https://lexical.dev/img/see-api-documentation.svg)](https://lexical.dev/docs/api/modules/lexical_html)
# HTML
This package exports utility functions for converting `Lexical` -> `HTML` and `HTML` -> `Lexical`. These same functions are also used in the `lexical-clipboard` package for copy and paste.
[Full documentation can be found here.](https://lexical.dev/docs/concepts/serialization)
### Exporting
```js
// In a headless mode, you need to initialize a headless browser implementation such as JSDom.
const dom = new JSDOM();
// @ts-expect-error
global.window = dom.window;
global.document = dom.window.document;
// You may also need to polyfill DocumentFragment or navigator in certain cases.
// When converting to HTML you can pass in a selection object to narrow it
// down to a certain part of the editor's contents.
const htmlString = $generateHtmlFromNodes(editor, selection | null);
```
### Importing
First we need to parse the HTML string into a DOM instance.
```js
// In the browser you can use the native DOMParser API to parse the HTML string.
const parser = new DOMParser();
const dom = parser.parseFromString(htmlString, textHtmlMimeType);
// In a headless environment you can use a package such as JSDom to parse the HTML string.
const dom = new JSDOM(htmlString);
```
And once you have the DOM instance.
```js
const nodes = $generateNodesFromDOM(editor, dom);
// Once you have the lexical nodes you can initialize an editor instance with the parsed nodes.
const editor = createEditor({ ...config, nodes });
// Or insert them at a selection.
$insertNodes(nodes);
```

View File

@@ -0,0 +1,14 @@
export type InstrumentHandlerType = 'console' | 'dom' | 'fetch' | 'fetch-body-resolved' | 'history' | 'xhr' | 'error' | 'unhandledrejection';
export type InstrumentHandlerCallback = (data: any) => void;
/** Add a handler function. */
export declare function addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): void;
/**
* Reset all instrumentation handlers.
* This can be used by tests to ensure we have a clean slate of instrumentation handlers.
*/
export declare function resetInstrumentationHandlers(): void;
/** Maybe run an instrumentation function, unless it was already called. */
export declare function maybeInstrument(type: InstrumentHandlerType, instrumentFn: () => void): void;
/** Trigger handlers for a given instrumentation type. */
export declare function triggerHandlers(type: InstrumentHandlerType, data: unknown): void;
//# sourceMappingURL=handlers.d.ts.map

View File

@@ -0,0 +1,35 @@
@import '../../scss/styles.scss';
@layer payload-default {
:root {
--diff-delete-pill-bg: var(--theme-error-200);
--diff-delete-pill-color: var(--theme-error-600);
--diff-delete-pill-border: var(--theme-error-400);
--diff-delete-parent-bg: var(--theme-error-100);
--diff-delete-parent-color: var(--theme-error-800);
--diff-delete-link-color: var(--theme-error-600);
--diff-create-pill-bg: var(--theme-success-200);
--diff-create-pill-color: var(--theme-success-600);
--diff-create-pill-border: var(--theme-success-400);
--diff-create-parent-bg: var(--theme-success-100);
--diff-create-parent-color: var(--theme-success-800);
--diff-create-link-color: var(--theme-success-600);
}
html[data-theme='dark'] {
--diff-delete-pill-bg: var(--theme-error-200);
--diff-delete-pill-color: var(--theme-error-650);
--diff-delete-pill-border: var(--theme-error-400);
--diff-delete-parent-bg: var(--theme-error-100);
--diff-delete-parent-color: var(--theme-error-900);
--diff-delete-link-color: var(--theme-error-750);
--diff-create-pill-bg: var(--theme-success-200);
--diff-create-pill-color: var(--theme-success-650);
--diff-create-pill-border: var(--theme-success-400);
--diff-create-parent-bg: var(--theme-success-100);
--diff-create-parent-color: var(--theme-success-900);
--diff-create-link-color: var(--theme-success-750);
}
}

View File

@@ -0,0 +1,49 @@
import * as React from 'react';
import { CSSProperties } from 'react';
type StylesType = {
h1?: CSSProperties;
h2?: CSSProperties;
h3?: CSSProperties;
h4?: CSSProperties;
h5?: CSSProperties;
h6?: CSSProperties;
blockQuote?: CSSProperties;
bold?: CSSProperties;
italic?: CSSProperties;
link?: CSSProperties;
codeBlock?: CSSProperties;
codeInline?: CSSProperties;
p?: CSSProperties;
li?: CSSProperties;
ul?: CSSProperties;
ol?: CSSProperties;
image?: CSSProperties;
br?: CSSProperties;
hr?: CSSProperties;
table?: CSSProperties;
thead?: CSSProperties;
tbody?: CSSProperties;
tr?: CSSProperties;
th?: CSSProperties;
td?: CSSProperties;
strikethrough?: CSSProperties;
};
type parseMarkdownToJSXProps = {
markdown: string;
customStyles?: StylesType;
};
declare const parseMarkdownToJSX: ({ markdown, customStyles, }: parseMarkdownToJSXProps) => string;
interface EmailMarkdownProps {
markdown: string;
markdownCustomStyles?: StylesType;
markdownContainerStyles?: React.CSSProperties;
}
declare const EmailMarkdown: React.FC<EmailMarkdownProps>;
declare function camelToKebabCase(str: string): string;
declare function parseCssInJsToInlineCss(cssProperties: CSSProperties | undefined): string;
export { EmailMarkdown, StylesType, camelToKebabCase, parseCssInJsToInlineCss, parseMarkdownToJSX, parseMarkdownToJSXProps };

View File

@@ -0,0 +1,5 @@
import assertClassBrand from "./assertClassBrand.js";
function _classPrivateFieldGet2(s, a) {
return s.get(assertClassBrand(s, a));
}
export { _classPrivateFieldGet2 as default };

View File

@@ -0,0 +1,82 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// Adapted from Chris Veness' SHA1 code at
// http://www.movable-type.co.uk/scripts/sha1.html
function f(s, x, y, z) {
switch (s) {
case 0:
return x & y ^ ~x & z;
case 1:
return x ^ y ^ z;
case 2:
return x & y ^ x & z ^ y & z;
case 3:
return x ^ y ^ z;
}
}
function ROTL(x, n) {
return x << n | x >>> 32 - n;
}
function sha1(bytes) {
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
if (typeof bytes === 'string') {
const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
bytes = [];
for (let i = 0; i < msg.length; ++i) {
bytes.push(msg.charCodeAt(i));
}
} else if (!Array.isArray(bytes)) {
// Convert Array-like to Array
bytes = Array.prototype.slice.call(bytes);
}
bytes.push(0x80);
const l = bytes.length / 4 + 2;
const N = Math.ceil(l / 16);
const M = new Array(N);
for (let i = 0; i < N; ++i) {
const arr = new Uint32Array(16);
for (let j = 0; j < 16; ++j) {
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
}
M[i] = arr;
}
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
M[N - 1][14] = Math.floor(M[N - 1][14]);
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
for (let i = 0; i < N; ++i) {
const W = new Uint32Array(80);
for (let t = 0; t < 16; ++t) {
W[t] = M[i][t];
}
for (let t = 16; t < 80; ++t) {
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
}
let a = H[0];
let b = H[1];
let c = H[2];
let d = H[3];
let e = H[4];
for (let t = 0; t < 80; ++t) {
const s = Math.floor(t / 20);
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
e = d;
d = c;
c = ROTL(b, 30) >>> 0;
b = a;
a = T;
}
H[0] = H[0] + a >>> 0;
H[1] = H[1] + b >>> 0;
H[2] = H[2] + c >>> 0;
H[3] = H[3] + d >>> 0;
H[4] = H[4] + e >>> 0;
}
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
}
var _default = exports.default = sha1;

View File

@@ -0,0 +1,10 @@
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
export interface TediousInstrumentationConfig extends InstrumentationConfig {
/**
* If true, injects the current DB span's W3C traceparent into SQL Server
* session state via `SET CONTEXT_INFO @opentelemetry_traceparent` (varbinary).
* Off by default to avoid the extra round-trip per request.
*/
enableTraceContextPropagation?: boolean;
}
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1,19 @@
# @babel/code-frame
> Generate errors that contain a code frame that point to source locations.
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/code-frame
```
or using yarn:
```sh
yarn add @babel/code-frame --dev
```

View File

@@ -0,0 +1,281 @@
'use strict';
// module to handle cookies
const urllib = require('url');
const SESSION_TIMEOUT = 1800; // 30 min
/**
* Creates a biskviit cookie jar for managing cookie values in memory
*
* @constructor
* @param {Object} [options] Optional options object
*/
class Cookies {
constructor(options) {
this.options = options || {};
this.cookies = [];
}
/**
* Stores a cookie string to the cookie storage
*
* @param {String} cookieStr Value from the 'Set-Cookie:' header
* @param {String} url Current URL
*/
set(cookieStr, url) {
let urlparts = urllib.parse(url || '');
let cookie = this.parse(cookieStr);
let domain;
if (cookie.domain) {
domain = cookie.domain.replace(/^\./, '');
// do not allow cross origin cookies
if (
// can't be valid if the requested domain is shorter than current hostname
urlparts.hostname.length < domain.length ||
// prefix domains with dot to be sure that partial matches are not used
('.' + urlparts.hostname).substr(-domain.length + 1) !== '.' + domain
) {
cookie.domain = urlparts.hostname;
}
} else {
cookie.domain = urlparts.hostname;
}
if (!cookie.path) {
cookie.path = this.getPath(urlparts.pathname);
}
// if no expire date, then use sessionTimeout value
if (!cookie.expires) {
cookie.expires = new Date(Date.now() + (Number(this.options.sessionTimeout || SESSION_TIMEOUT) || SESSION_TIMEOUT) * 1000);
}
return this.add(cookie);
}
/**
* Returns cookie string for the 'Cookie:' header.
*
* @param {String} url URL to check for
* @returns {String} Cookie header or empty string if no matches were found
*/
get(url) {
return this.list(url)
.map(cookie => cookie.name + '=' + cookie.value)
.join('; ');
}
/**
* Lists all valied cookie objects for the specified URL
*
* @param {String} url URL to check for
* @returns {Array} An array of cookie objects
*/
list(url) {
let result = [];
let i;
let cookie;
for (i = this.cookies.length - 1; i >= 0; i--) {
cookie = this.cookies[i];
if (this.isExpired(cookie)) {
this.cookies.splice(i, i);
continue;
}
if (this.match(cookie, url)) {
result.unshift(cookie);
}
}
return result;
}
/**
* Parses cookie string from the 'Set-Cookie:' header
*
* @param {String} cookieStr String from the 'Set-Cookie:' header
* @returns {Object} Cookie object
*/
parse(cookieStr) {
let cookie = {};
(cookieStr || '')
.toString()
.split(';')
.forEach(cookiePart => {
let valueParts = cookiePart.split('=');
let key = valueParts.shift().trim().toLowerCase();
let value = valueParts.join('=').trim();
let domain;
if (!key) {
// skip empty parts
return;
}
switch (key) {
case 'expires':
value = new Date(value);
// ignore date if can not parse it
if (value.toString() !== 'Invalid Date') {
cookie.expires = value;
}
break;
case 'path':
cookie.path = value;
break;
case 'domain':
domain = value.toLowerCase();
if (domain.length && domain.charAt(0) !== '.') {
domain = '.' + domain; // ensure preceeding dot for user set domains
}
cookie.domain = domain;
break;
case 'max-age':
cookie.expires = new Date(Date.now() + (Number(value) || 0) * 1000);
break;
case 'secure':
cookie.secure = true;
break;
case 'httponly':
cookie.httponly = true;
break;
default:
if (!cookie.name) {
cookie.name = key;
cookie.value = value;
}
}
});
return cookie;
}
/**
* Checks if a cookie object is valid for a specified URL
*
* @param {Object} cookie Cookie object
* @param {String} url URL to check for
* @returns {Boolean} true if cookie is valid for specifiec URL
*/
match(cookie, url) {
let urlparts = urllib.parse(url || '');
// check if hostname matches
// .foo.com also matches subdomains, foo.com does not
if (
urlparts.hostname !== cookie.domain &&
(cookie.domain.charAt(0) !== '.' || ('.' + urlparts.hostname).substr(-cookie.domain.length) !== cookie.domain)
) {
return false;
}
// check if path matches
let path = this.getPath(urlparts.pathname);
if (path.substr(0, cookie.path.length) !== cookie.path) {
return false;
}
// check secure argument
if (cookie.secure && urlparts.protocol !== 'https:') {
return false;
}
return true;
}
/**
* Adds (or updates/removes if needed) a cookie object to the cookie storage
*
* @param {Object} cookie Cookie value to be stored
*/
add(cookie) {
let i;
let len;
// nothing to do here
if (!cookie || !cookie.name) {
return false;
}
// overwrite if has same params
for (i = 0, len = this.cookies.length; i < len; i++) {
if (this.compare(this.cookies[i], cookie)) {
// check if the cookie needs to be removed instead
if (this.isExpired(cookie)) {
this.cookies.splice(i, 1); // remove expired/unset cookie
return false;
}
this.cookies[i] = cookie;
return true;
}
}
// add as new if not already expired
if (!this.isExpired(cookie)) {
this.cookies.push(cookie);
}
return true;
}
/**
* Checks if two cookie objects are the same
*
* @param {Object} a Cookie to check against
* @param {Object} b Cookie to check against
* @returns {Boolean} True, if the cookies are the same
*/
compare(a, b) {
return a.name === b.name && a.path === b.path && a.domain === b.domain && a.secure === b.secure && a.httponly === a.httponly;
}
/**
* Checks if a cookie is expired
*
* @param {Object} cookie Cookie object to check against
* @returns {Boolean} True, if the cookie is expired
*/
isExpired(cookie) {
return (cookie.expires && cookie.expires < new Date()) || !cookie.value;
}
/**
* Returns normalized cookie path for an URL path argument
*
* @param {String} pathname
* @returns {String} Normalized path
*/
getPath(pathname) {
let path = (pathname || '/').split('/');
path.pop(); // remove filename part
path = path.join('/').trim();
// ensure path prefix /
if (path.charAt(0) !== '/') {
path = '/' + path;
}
// ensure path suffix /
if (path.substr(-1) !== '/') {
path += '/';
}
return path;
}
}
module.exports = Cookies;

View File

@@ -0,0 +1,86 @@
import type { Client, Span, SpanAttributes } from '@sentry/core';
interface StartTrackingWebVitalsOptions {
recordClsStandaloneSpans: boolean;
recordLcpStandaloneSpans: boolean;
client: Client;
}
/**
* Start tracking web vitals.
* The callback returned by this function can be used to stop tracking & ensure all measurements are final & captured.
*
* @returns A function that forces web vitals collection
*/
export declare function startTrackingWebVitals({ recordClsStandaloneSpans, recordLcpStandaloneSpans, client, }: StartTrackingWebVitalsOptions): () => void;
/**
* Start tracking long tasks.
*/
export declare function startTrackingLongTasks(): void;
/**
* Start tracking long animation frames.
*/
export declare function startTrackingLongAnimationFrames(): void;
/**
* Start tracking interaction events.
*/
export declare function startTrackingInteractions(): void;
export { registerInpInteractionListener, startTrackingINP } from './inp';
interface AddPerformanceEntriesOptions {
/**
* Flag to determine if CLS should be recorded as a measurement on the pageload span or
* sent as a standalone span instead.
* Sending it as a standalone span will yield more accurate LCP values.
*
* Default: `false` for backwards compatibility.
*/
recordClsOnPageloadSpan: boolean;
/**
* Flag to determine if LCP should be recorded as a measurement on the pageload span or
* sent as a standalone span instead.
* Sending it as a standalone span will yield more accurate LCP values.
*
* Default: `false` for backwards compatibility.
*/
recordLcpOnPageloadSpan: boolean;
/**
* Resource spans with `op`s matching strings in the array will not be emitted.
*
* Default: []
*/
ignoreResourceSpans: Array<'resouce.script' | 'resource.css' | 'resource.img' | 'resource.other' | string>;
/**
* Performance spans created from browser Performance APIs,
* `performance.mark(...)` nand `performance.measure(...)`
* with `name`s matching strings in the array will not be emitted.
*
* Default: []
*/
ignorePerformanceApiSpans: Array<string | RegExp>;
}
/** Add performance related spans to a transaction */
export declare function addPerformanceEntries(span: Span, options: AddPerformanceEntriesOptions): void;
/**
* Create measure related spans.
* Exported only for tests.
*/
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number, ignorePerformanceApiSpans: AddPerformanceEntriesOptions['ignorePerformanceApiSpans']): void;
/**
* Instrument navigation entries
* exported only for tests
*/
export declare function _addNavigationSpans(span: Span, entry: PerformanceNavigationTiming, timeOrigin: number): void;
/**
* Create resource-related spans.
* Exported only for tests.
*/
export declare function _addResourceSpans(span: Span, entry: PerformanceResourceTiming, resourceUrl: string, startTime: number, duration: number, timeOrigin: number, ignoredResourceSpanOps?: Array<string>): void;
type ExperimentalResourceTimingProperty = 'renderBlockingStatus' | 'deliveryType' | 'responseStatus';
/**
* Use this to set any attributes we can take directly form the PerformanceResourceTiming entry.
*
* This is just a mapping function for entry->attribute to keep bundle-size minimal.
* Experimental properties are also accepted (see {@link ExperimentalResourceTimingProperty}).
* Assumes that all entry properties might be undefined for browser-specific differences.
* Only accepts string and number values for now and also sets 0-values.
*/
export declare function _setResourceRequestAttributes(entry: Partial<PerformanceResourceTiming> & Partial<Record<ExperimentalResourceTimingProperty, number | string>>, attributes: SpanAttributes, properties: [keyof PerformanceResourceTiming | ExperimentalResourceTimingProperty, string][]): void;
//# sourceMappingURL=browserMetrics.d.ts.map

View File

@@ -0,0 +1,5 @@
import type { Database } from 'sql.js';
import { BaseSQLiteDatabase } from "../sqlite-core/db.js";
import type { DrizzleConfig } from "../utils.js";
export type SQLJsDatabase<TSchema extends Record<string, unknown> = Record<string, never>> = BaseSQLiteDatabase<'sync', void, TSchema>;
export declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(client: Database, config?: DrizzleConfig<TSchema>): SQLJsDatabase<TSchema>;

View File

@@ -0,0 +1 @@
{"version":3,"file":"clipboard-signature.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}

View File

@@ -0,0 +1,108 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
class ModuleProfile {
constructor() {
this.startTime = Date.now();
this.factoryStartTime = 0;
this.factoryEndTime = 0;
this.factory = 0;
this.factoryParallelismFactor = 0;
this.restoringStartTime = 0;
this.restoringEndTime = 0;
this.restoring = 0;
this.restoringParallelismFactor = 0;
this.integrationStartTime = 0;
this.integrationEndTime = 0;
this.integration = 0;
this.integrationParallelismFactor = 0;
this.buildingStartTime = 0;
this.buildingEndTime = 0;
this.building = 0;
this.buildingParallelismFactor = 0;
this.storingStartTime = 0;
this.storingEndTime = 0;
this.storing = 0;
this.storingParallelismFactor = 0;
/** @type {{ start: number, end: number }[] | undefined} */
this.additionalFactoryTimes = undefined;
this.additionalFactories = 0;
this.additionalFactoriesParallelismFactor = 0;
/** @deprecated */
this.additionalIntegration = 0;
}
markFactoryStart() {
this.factoryStartTime = Date.now();
}
markFactoryEnd() {
this.factoryEndTime = Date.now();
this.factory = this.factoryEndTime - this.factoryStartTime;
}
markRestoringStart() {
this.restoringStartTime = Date.now();
}
markRestoringEnd() {
this.restoringEndTime = Date.now();
this.restoring = this.restoringEndTime - this.restoringStartTime;
}
markIntegrationStart() {
this.integrationStartTime = Date.now();
}
markIntegrationEnd() {
this.integrationEndTime = Date.now();
this.integration = this.integrationEndTime - this.integrationStartTime;
}
markBuildingStart() {
this.buildingStartTime = Date.now();
}
markBuildingEnd() {
this.buildingEndTime = Date.now();
this.building = this.buildingEndTime - this.buildingStartTime;
}
markStoringStart() {
this.storingStartTime = Date.now();
}
markStoringEnd() {
this.storingEndTime = Date.now();
this.storing = this.storingEndTime - this.storingStartTime;
}
// This depends on timing so we ignore it for coverage
/* istanbul ignore next */
/**
* Merge this profile into another one
* @param {ModuleProfile} realProfile the profile to merge into
* @returns {void}
*/
mergeInto(realProfile) {
realProfile.additionalFactories = this.factory;
(realProfile.additionalFactoryTimes =
realProfile.additionalFactoryTimes || []).push({
start: this.factoryStartTime,
end: this.factoryEndTime
});
}
}
module.exports = ModuleProfile;

View File

@@ -0,0 +1 @@
{"version":3,"file":"reactrouterv7.d.ts","sourceRoot":"","sources":["../../src/reactrouterv7.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpF;;;GAGG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,GAC5E,WAAW,CAEb;AAED;;;GAGG;AAEH,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAEjH;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,SAAS,WAAW,GAAG,WAAW,EACxC,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAEpG;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,SAAS,WAAW,GAAG,WAAW,EACxC,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,0BAA0B,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1G;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,CAEnE"}

View File

@@ -0,0 +1,7 @@
"use strict";
exports.parse = void 0;
var _index = require("../parse.cjs");
var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const parse = (exports.parse = (0, _index2.convertToFP)(_index.parse, 3));

View File

@@ -0,0 +1,116 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
const matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^((пр)?н\.?\s?е\.?)/i,
abbreviated: /^((пр)?н\.?\s?е\.?)/i,
wide: /^(пред нашата ера|нашата ера)/i,
};
const parseEraPatterns = {
any: [/^п/i, /^н/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^[1234](-?[врт]?и?)? кв.?/i,
wide: /^[1234](-?[врт]?и?)? квартал/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchDayPatterns = {
narrow: /^[нпвсч]/i,
short: /^(не|по|вт|ср|че|пе|са)/i,
abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i,
wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i,
};
const parseDayPatterns = {
narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[аб]/i],
};
const matchMonthPatterns = {
abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,
wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i,
};
const parseMonthPatterns = {
any: [
/^ја/i,
/^Ф/i,
/^мар/i,
/^ап/i,
/^мај/i,
/^јун/i,
/^јул/i,
/^ав/i,
/^се/i,
/^окт/i,
/^но/i,
/^де/i,
],
};
const matchDayPeriodPatterns = {
any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /претпладне/i,
pm: /попладне/i,
midnight: /полноќ/i,
noon: /напладне/i,
morning: /наутро/i,
afternoon: /попладне/i,
evening: /навечер/i,
night: /ноќе/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../../../src/views/Dashboard/Default/ModularDashboard/index.client.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAKxD,OAAO,KAA4B,MAAM,OAAO,CAAA;AAuBhD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,WAAW,CAAA;IACrB,QAAQ,EAAE,WAAW,CAAA;IACrB,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC5B,MAAM,EAAE,oBAAoB,CAAA;CAC7B,GAAG,IAAI,CAAA;AAYR,wBAAgB,sBAAsB,CAAC,EACrC,YAAY,EAAE,aAAa,EAC3B,OAAO,GACR,EAAE;IACD,YAAY,EAAE,oBAAoB,EAAE,CAAA;IACpC,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB,qBAyKA"}

View File

@@ -0,0 +1,67 @@
{
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"name": "minimatch",
"description": "a glob matcher in javascript",
"version": "10.2.2",
"repository": {
"type": "git",
"url": "git@github.com:isaacs/minimatch"
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"files": [
"dist"
],
"scripts": {
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"prepare": "tshy",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "tap",
"snap": "tap",
"format": "prettier --write .",
"benchmark": "node benchmark/index.js",
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
},
"engines": {
"node": "18 || 20 || >=22"
},
"devDependencies": {
"@types/node": "^25.3.0",
"mkdirp": "^3.0.1",
"prettier": "^3.6.2",
"tap": "^21.6.1",
"tshy": "^3.0.2",
"typedoc": "^0.28.5"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
"license": "BlueOak-1.0.0",
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"type": "module",
"module": "./dist/esm/index.js",
"dependencies": {
"brace-expansion": "^5.0.2"
}
}

View File

@@ -0,0 +1,53 @@
{
"name": "prompts",
"version": "2.4.2",
"description": "Lightweight, beautiful and user-friendly prompts",
"license": "MIT",
"repository": "terkelg/prompts",
"main": "index.js",
"author": {
"name": "Terkel Gjervig",
"email": "terkel@terkel.com",
"url": "https://terkel.com"
},
"files": [
"lib",
"dist",
"index.js"
],
"scripts": {
"start": "node lib/index.js",
"build": "babel lib -d dist",
"prepublishOnly": "npm run build",
"test": "tape test/*.js | tap-spec"
},
"keywords": [
"ui",
"prompts",
"cli",
"prompt",
"interface",
"command-line",
"input",
"command",
"stdin",
"menu",
"ask",
"interact"
],
"dependencies": {
"kleur": "^3.0.3",
"sisteransi": "^1.0.5"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"tap-spec": "^2.2.2",
"tape": "^4.13.3"
},
"engines": {
"node": ">= 6"
}
}

View File

@@ -0,0 +1,30 @@
/* eslint-disable @sentry-internal/sdk/no-unsafe-random-apis */
// Polyfill for Node.js perf_hooks module in edge runtime
// This mirrors the polyfill from packages/vercel-edge/rollup.npm.config.mjs
const __sentry__timeOrigin = Date.now();
// Ensure performance global is available
if (typeof globalThis !== 'undefined' && globalThis.performance === undefined) {
globalThis.performance = {
timeOrigin: __sentry__timeOrigin,
now: function () {
return Date.now() - __sentry__timeOrigin;
},
};
}
// Export the performance object for perf_hooks compatibility
const performance = globalThis.performance || {
timeOrigin: __sentry__timeOrigin,
now: function () {
return Date.now() - __sentry__timeOrigin;
},
};
// Default export for CommonJS compatibility
const perf_hooks = {
performance,
};
export { perf_hooks as default, performance };
//# sourceMappingURL=perf_hooks.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"formatLexicalDocTitle.js","names":["isSerializedLexicalEditor","value","formatLexicalDocTitle","editorState","textContent","node","text","type","children"],"sources":["../../../src/utilities/formatDocTitle/formatLexicalDocTitle.ts"],"sourcesContent":["type SerializedLexicalEditor = {\n root: {\n children: Array<{ children?: Array<{ type: string }>; type: string }>\n }\n}\n\nexport function isSerializedLexicalEditor(value: unknown): value is SerializedLexicalEditor {\n return typeof value === 'object' && 'root' in value\n}\n\nexport function formatLexicalDocTitle(\n editorState: Array<{ children?: Array<{ type: string }>; type: string }>,\n textContent: string,\n): string {\n for (const node of editorState) {\n if ('text' in node && node.text) {\n textContent += node.text as string\n } else {\n if (!('children' in node)) {\n textContent += `[${node.type}]`\n }\n }\n if ('children' in node && node.children) {\n textContent += formatLexicalDocTitle(node.children as Array<{ type: string }>, textContent)\n }\n }\n return textContent\n}\n"],"mappings":"AAMA,OAAO,SAASA,0BAA0BC,KAAc;EACtD,OAAO,OAAOA,KAAA,KAAU,YAAY,UAAUA,KAAA;AAChD;AAEA,OAAO,SAASC,sBACdC,WAAwE,EACxEC,WAAmB;EAEnB,KAAK,MAAMC,IAAA,IAAQF,WAAA,EAAa;IAC9B,IAAI,UAAUE,IAAA,IAAQA,IAAA,CAAKC,IAAI,EAAE;MAC/BF,WAAA,IAAeC,IAAA,CAAKC,IAAI;IAC1B,OAAO;MACL,IAAI,EAAE,cAAcD,IAAG,GAAI;QACzBD,WAAA,IAAe,IAAIC,IAAA,CAAKE,IAAI,GAAG;MACjC;IACF;IACA,IAAI,cAAcF,IAAA,IAAQA,IAAA,CAAKG,QAAQ,EAAE;MACvCJ,WAAA,IAAeF,qBAAA,CAAsBG,IAAA,CAAKG,QAAQ,EAA6BJ,WAAA;IACjF;EACF;EACA,OAAOA,WAAA;AACT","ignoreList":[]}

View File

@@ -0,0 +1,105 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "bir saniyədən az",
other: "{{count}} bir saniyədən az",
},
xSeconds: {
one: "1 saniyə",
other: "{{count}} saniyə",
},
halfAMinute: "yarım dəqiqə",
lessThanXMinutes: {
one: "bir dəqiqədən az",
other: "{{count}} bir dəqiqədən az",
},
xMinutes: {
one: "bir dəqiqə",
other: "{{count}} dəqiqə",
},
aboutXHours: {
one: "təxminən 1 saat",
other: "təxminən {{count}} saat",
},
xHours: {
one: "1 saat",
other: "{{count}} saat",
},
xDays: {
one: "1 gün",
other: "{{count}} gün",
},
aboutXWeeks: {
one: "təxminən 1 həftə",
other: "təxminən {{count}} həftə",
},
xWeeks: {
one: "1 həftə",
other: "{{count}} həftə",
},
aboutXMonths: {
one: "təxminən 1 ay",
other: "təxminən {{count}} ay",
},
xMonths: {
one: "1 ay",
other: "{{count}} ay",
},
aboutXYears: {
one: "təxminən 1 il",
other: "təxminən {{count}} il",
},
xYears: {
one: "1 il",
other: "{{count}} il",
},
overXYears: {
one: "1 ildən çox",
other: "{{count}} ildən çox",
},
almostXYears: {
one: "demək olar ki 1 il",
other: "demək olar ki {{count}} il",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result + " sonra";
} else {
return result + " əvvəl";
}
}
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -0,0 +1,56 @@
import { Client } from '../client';
import { Scope } from '../scope';
import { Metric, SerializedMetric } from '../types-hoist/metric';
/**
* Captures a serialized metric event and adds it to the metric buffer for the given client.
*
* @param client - A client. Uses the current client if not provided.
* @param serializedMetric - The serialized metric event to capture.
*
* @experimental This method will experience breaking changes. This is not yet part of
* the stable Sentry SDK API and can be changed or removed without warning.
*/
export declare function _INTERNAL_captureSerializedMetric(client: Client, serializedMetric: SerializedMetric): void;
/**
* Options for capturing a metric internally.
*/
export interface InternalCaptureMetricOptions {
/**
* The scope to capture the metric with.
*/
scope?: Scope;
/**
* A function to capture the serialized metric.
*/
captureSerializedMetric?: (client: Client, metric: SerializedMetric) => void;
}
/**
* Captures a metric event and sends it to Sentry.
*
* @param metric - The metric event to capture.
* @param options - Options for capturing the metric.
*
* @experimental This method will experience breaking changes. This is not yet part of
* the stable Sentry SDK API and can be changed or removed without warning.
*/
export declare function _INTERNAL_captureMetric(beforeMetric: Metric, options?: InternalCaptureMetricOptions): void;
/**
* Flushes the metrics buffer to Sentry.
*
* @param client - A client.
* @param maybeMetricBuffer - A metric buffer. Uses the metric buffer for the given client if not provided.
*
* @experimental This method will experience breaking changes. This is not yet part of
* the stable Sentry SDK API and can be changed or removed without warning.
*/
export declare function _INTERNAL_flushMetricsBuffer(client: Client, maybeMetricBuffer?: Array<SerializedMetric>): void;
/**
* Returns the metric buffer for a given client.
*
* Exported for testing purposes.
*
* @param client - The client to get the metric buffer for.
* @returns The metric buffer for the given client.
*/
export declare function _INTERNAL_getMetricBuffer(client: Client): Array<SerializedMetric> | undefined;
//# sourceMappingURL=internal.d.ts.map

View File

@@ -0,0 +1,75 @@
import { ClientOptions, Options, TracePropagationTargets } from '@sentry/core';
import { VercelEdgeClient } from './client';
import { VercelEdgeTransportOptions } from './transports';
export interface BaseVercelEdgeOptions {
/**
* List of strings/regex controlling to which outgoing requests
* the SDK will attach tracing headers.
*
* By default the SDK will attach those headers to all outgoing
* requests. If this option is provided, the SDK will match the
* request URL of outgoing requests against the items in this
* array, and only attach tracing headers if a match was found.
*
* @example
* ```js
* Sentry.init({
* tracePropagationTargets: ['api.site.com'],
* });
* ```
*/
tracePropagationTargets?: TracePropagationTargets;
/** Sets an optional server name (device name) */
serverName?: string;
/**
* Override the runtime name reported in events.
* Defaults to 'vercel-edge' if not specified.
*
* @hidden This is primarily used internally to support platforms like OpenNext/Cloudflare.
*/
runtime?: {
name: string;
version?: string;
};
/**
* Specify a custom VercelEdgeClient to be used. Must extend VercelEdgeClient!
* This is not a public, supported API, but used internally only.
*
* @hidden
* */
clientClass?: typeof VercelEdgeClient;
/**
* If this is set to true, the SDK will not set up OpenTelemetry automatically.
* In this case, you _have_ to ensure to set it up correctly yourself, including:
* * The `SentrySpanProcessor`
* * The `SentryPropagator`
* * The `SentryContextManager`
* * The `SentrySampler`
*/
skipOpenTelemetrySetup?: boolean;
/**
* The max. duration in seconds that the SDK will wait for parent spans to be finished before discarding a span.
* The SDK will automatically clean up spans that have no finished parent after this duration.
* This is necessary to prevent memory leaks in case of parent spans that are never finished or otherwise dropped/missing.
* However, if you have very long-running spans in your application, a shorter duration might cause spans to be discarded too early.
* In this case, you can increase this duration to a value that fits your expected data.
*
* Defaults to 300 seconds (5 minutes).
*/
maxSpanWaitDuration?: number;
/** Callback that is executed when a fatal global error occurs. */
onFatalError?(this: void, error: Error): void;
}
/**
* Configuration options for the Sentry VercelEdge SDK
* @see @sentry/core Options for more information.
*/
export interface VercelEdgeOptions extends Options<VercelEdgeTransportOptions>, BaseVercelEdgeOptions {
}
/**
* Configuration options for the Sentry VercelEdge SDK Client class
* @see VercelEdgeClient for more information.
*/
export interface VercelEdgeClientOptions extends ClientOptions<VercelEdgeTransportOptions>, BaseVercelEdgeOptions {
}
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InstrumentationConfig } from '@opentelemetry/instrumentation';\nimport type { Span } from '@opentelemetry/api';\n\nexport interface MySQL2ResponseHookInformation {\n queryResults: any;\n}\n\nexport interface MySQL2InstrumentationExecutionResponseHook {\n (span: Span, responseHookInfo: MySQL2ResponseHookInformation): void;\n}\n\nexport interface MySQL2InstrumentationQueryMaskingHook {\n (query: string): string;\n}\n\nexport interface MySQL2InstrumentationConfig extends InstrumentationConfig {\n /**\n * If true, the query will be masked before setting it as a span attribute, using the {@link maskStatementHook}.\n *\n * @default false\n * @see maskStatementHook\n */\n maskStatement?: boolean;\n\n /**\n * Hook that allows masking the query string before setting it as span attribute.\n *\n * @default (query: string) => query.replace(/\\b\\d+\\b/g, '?').replace(/([\"'])(?:(?=(\\\\?))\\2.)*?\\1/g, '?')\n */\n maskStatementHook?: MySQL2InstrumentationQueryMaskingHook;\n\n /**\n * Hook that allows adding custom span attributes based on the data\n * returned MySQL2 queries.\n *\n * @default undefined\n */\n responseHook?: MySQL2InstrumentationExecutionResponseHook;\n\n /**\n * If true, queries are modified to also include a comment with\n * the tracing context, following the {@link https://github.com/open-telemetry/opentelemetry-sqlcommenter sqlcommenter} format\n */\n addSqlCommenterCommentToQueries?: boolean;\n}\n"]}

View File

@@ -0,0 +1,57 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var raw_exports = {};
__export(raw_exports, {
PgRaw: () => PgRaw
});
module.exports = __toCommonJS(raw_exports);
var import_entity = require("../../entity.cjs");
var import_query_promise = require("../../query-promise.cjs");
class PgRaw extends import_query_promise.QueryPromise {
constructor(execute, sql, query, mapBatchResult) {
super();
this.execute = execute;
this.sql = sql;
this.query = query;
this.mapBatchResult = mapBatchResult;
}
static [import_entity.entityKind] = "PgRaw";
/** @internal */
getSQL() {
return this.sql;
}
getQuery() {
return this.query;
}
mapResult(result, isFromBatch) {
return isFromBatch ? this.mapBatchResult(result) : result;
}
_prepare() {
return this;
}
/** @internal */
isResponseInArrayMode() {
return false;
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
PgRaw
});
//# sourceMappingURL=raw.cjs.map

View File

@@ -0,0 +1,9 @@
import type { FormState } from 'payload';
type Result = {
remainingFields: FormState;
rows: FormState[];
};
export declare const separateRows: (path: string, fields: FormState) => Result;
export declare const flattenRows: (path: string, rows: FormState[]) => FormState;
export {};
//# sourceMappingURL=rows.d.ts.map

View File

@@ -0,0 +1,210 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import * as modDev from './Lexical.dev.mjs';
import * as modProd from './Lexical.prod.mjs';
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
export const $addUpdateTag = mod.$addUpdateTag;
export const $applyNodeReplacement = mod.$applyNodeReplacement;
export const $caretFromPoint = mod.$caretFromPoint;
export const $caretRangeFromSelection = mod.$caretRangeFromSelection;
export const $cloneWithProperties = mod.$cloneWithProperties;
export const $comparePointCaretNext = mod.$comparePointCaretNext;
export const $copyNode = mod.$copyNode;
export const $create = mod.$create;
export const $createLineBreakNode = mod.$createLineBreakNode;
export const $createNodeSelection = mod.$createNodeSelection;
export const $createParagraphNode = mod.$createParagraphNode;
export const $createPoint = mod.$createPoint;
export const $createRangeSelection = mod.$createRangeSelection;
export const $createRangeSelectionFromDom = mod.$createRangeSelectionFromDom;
export const $createTabNode = mod.$createTabNode;
export const $createTextNode = mod.$createTextNode;
export const $extendCaretToRange = mod.$extendCaretToRange;
export const $getAdjacentChildCaret = mod.$getAdjacentChildCaret;
export const $getAdjacentNode = mod.$getAdjacentNode;
export const $getAdjacentSiblingOrParentSiblingCaret = mod.$getAdjacentSiblingOrParentSiblingCaret;
export const $getCaretInDirection = mod.$getCaretInDirection;
export const $getCaretRange = mod.$getCaretRange;
export const $getCaretRangeInDirection = mod.$getCaretRangeInDirection;
export const $getCharacterOffsets = mod.$getCharacterOffsets;
export const $getChildCaret = mod.$getChildCaret;
export const $getChildCaretAtIndex = mod.$getChildCaretAtIndex;
export const $getChildCaretOrSelf = mod.$getChildCaretOrSelf;
export const $getCollapsedCaretRange = mod.$getCollapsedCaretRange;
export const $getCommonAncestor = mod.$getCommonAncestor;
export const $getCommonAncestorResultBranchOrder = mod.$getCommonAncestorResultBranchOrder;
export const $getEditor = mod.$getEditor;
export const $getNearestNodeFromDOMNode = mod.$getNearestNodeFromDOMNode;
export const $getNearestRootOrShadowRoot = mod.$getNearestRootOrShadowRoot;
export const $getNodeByKey = mod.$getNodeByKey;
export const $getNodeByKeyOrThrow = mod.$getNodeByKeyOrThrow;
export const $getPreviousSelection = mod.$getPreviousSelection;
export const $getRoot = mod.$getRoot;
export const $getSelection = mod.$getSelection;
export const $getSiblingCaret = mod.$getSiblingCaret;
export const $getState = mod.$getState;
export const $getStateChange = mod.$getStateChange;
export const $getTextContent = mod.$getTextContent;
export const $getTextNodeOffset = mod.$getTextNodeOffset;
export const $getTextPointCaret = mod.$getTextPointCaret;
export const $getTextPointCaretSlice = mod.$getTextPointCaretSlice;
export const $getWritableNodeState = mod.$getWritableNodeState;
export const $hasAncestor = mod.$hasAncestor;
export const $hasUpdateTag = mod.$hasUpdateTag;
export const $insertNodes = mod.$insertNodes;
export const $isBlockElementNode = mod.$isBlockElementNode;
export const $isChildCaret = mod.$isChildCaret;
export const $isDecoratorNode = mod.$isDecoratorNode;
export const $isElementNode = mod.$isElementNode;
export const $isExtendableTextPointCaret = mod.$isExtendableTextPointCaret;
export const $isInlineElementOrDecoratorNode = mod.$isInlineElementOrDecoratorNode;
export const $isLeafNode = mod.$isLeafNode;
export const $isLineBreakNode = mod.$isLineBreakNode;
export const $isNodeCaret = mod.$isNodeCaret;
export const $isNodeSelection = mod.$isNodeSelection;
export const $isParagraphNode = mod.$isParagraphNode;
export const $isRangeSelection = mod.$isRangeSelection;
export const $isRootNode = mod.$isRootNode;
export const $isRootOrShadowRoot = mod.$isRootOrShadowRoot;
export const $isSiblingCaret = mod.$isSiblingCaret;
export const $isTabNode = mod.$isTabNode;
export const $isTextNode = mod.$isTextNode;
export const $isTextPointCaret = mod.$isTextPointCaret;
export const $isTextPointCaretSlice = mod.$isTextPointCaretSlice;
export const $isTokenOrSegmented = mod.$isTokenOrSegmented;
export const $isTokenOrTab = mod.$isTokenOrTab;
export const $nodesOfType = mod.$nodesOfType;
export const $normalizeCaret = mod.$normalizeCaret;
export const $normalizeSelection__EXPERIMENTAL = mod.$normalizeSelection__EXPERIMENTAL;
export const $onUpdate = mod.$onUpdate;
export const $parseSerializedNode = mod.$parseSerializedNode;
export const $removeTextFromCaretRange = mod.$removeTextFromCaretRange;
export const $rewindSiblingCaret = mod.$rewindSiblingCaret;
export const $selectAll = mod.$selectAll;
export const $setCompositionKey = mod.$setCompositionKey;
export const $setPointFromCaret = mod.$setPointFromCaret;
export const $setSelection = mod.$setSelection;
export const $setSelectionFromCaretRange = mod.$setSelectionFromCaretRange;
export const $setState = mod.$setState;
export const $splitAtPointCaretNext = mod.$splitAtPointCaretNext;
export const $splitNode = mod.$splitNode;
export const $updateRangeSelectionFromCaretRange = mod.$updateRangeSelectionFromCaretRange;
export const ArtificialNode__DO_NOT_USE = mod.ArtificialNode__DO_NOT_USE;
export const BLUR_COMMAND = mod.BLUR_COMMAND;
export const CAN_REDO_COMMAND = mod.CAN_REDO_COMMAND;
export const CAN_UNDO_COMMAND = mod.CAN_UNDO_COMMAND;
export const CLEAR_EDITOR_COMMAND = mod.CLEAR_EDITOR_COMMAND;
export const CLEAR_HISTORY_COMMAND = mod.CLEAR_HISTORY_COMMAND;
export const CLICK_COMMAND = mod.CLICK_COMMAND;
export const COLLABORATION_TAG = mod.COLLABORATION_TAG;
export const COMMAND_PRIORITY_CRITICAL = mod.COMMAND_PRIORITY_CRITICAL;
export const COMMAND_PRIORITY_EDITOR = mod.COMMAND_PRIORITY_EDITOR;
export const COMMAND_PRIORITY_HIGH = mod.COMMAND_PRIORITY_HIGH;
export const COMMAND_PRIORITY_LOW = mod.COMMAND_PRIORITY_LOW;
export const COMMAND_PRIORITY_NORMAL = mod.COMMAND_PRIORITY_NORMAL;
export const CONTROLLED_TEXT_INSERTION_COMMAND = mod.CONTROLLED_TEXT_INSERTION_COMMAND;
export const COPY_COMMAND = mod.COPY_COMMAND;
export const CUT_COMMAND = mod.CUT_COMMAND;
export const DELETE_CHARACTER_COMMAND = mod.DELETE_CHARACTER_COMMAND;
export const DELETE_LINE_COMMAND = mod.DELETE_LINE_COMMAND;
export const DELETE_WORD_COMMAND = mod.DELETE_WORD_COMMAND;
export const DRAGEND_COMMAND = mod.DRAGEND_COMMAND;
export const DRAGOVER_COMMAND = mod.DRAGOVER_COMMAND;
export const DRAGSTART_COMMAND = mod.DRAGSTART_COMMAND;
export const DROP_COMMAND = mod.DROP_COMMAND;
export const DecoratorNode = mod.DecoratorNode;
export const ElementNode = mod.ElementNode;
export const FOCUS_COMMAND = mod.FOCUS_COMMAND;
export const FORMAT_ELEMENT_COMMAND = mod.FORMAT_ELEMENT_COMMAND;
export const FORMAT_TEXT_COMMAND = mod.FORMAT_TEXT_COMMAND;
export const HISTORIC_TAG = mod.HISTORIC_TAG;
export const HISTORY_MERGE_TAG = mod.HISTORY_MERGE_TAG;
export const HISTORY_PUSH_TAG = mod.HISTORY_PUSH_TAG;
export const INDENT_CONTENT_COMMAND = mod.INDENT_CONTENT_COMMAND;
export const INSERT_LINE_BREAK_COMMAND = mod.INSERT_LINE_BREAK_COMMAND;
export const INSERT_PARAGRAPH_COMMAND = mod.INSERT_PARAGRAPH_COMMAND;
export const INSERT_TAB_COMMAND = mod.INSERT_TAB_COMMAND;
export const INTERNAL_$isBlock = mod.INTERNAL_$isBlock;
export const IS_ALL_FORMATTING = mod.IS_ALL_FORMATTING;
export const IS_BOLD = mod.IS_BOLD;
export const IS_CODE = mod.IS_CODE;
export const IS_HIGHLIGHT = mod.IS_HIGHLIGHT;
export const IS_ITALIC = mod.IS_ITALIC;
export const IS_STRIKETHROUGH = mod.IS_STRIKETHROUGH;
export const IS_SUBSCRIPT = mod.IS_SUBSCRIPT;
export const IS_SUPERSCRIPT = mod.IS_SUPERSCRIPT;
export const IS_UNDERLINE = mod.IS_UNDERLINE;
export const KEY_ARROW_DOWN_COMMAND = mod.KEY_ARROW_DOWN_COMMAND;
export const KEY_ARROW_LEFT_COMMAND = mod.KEY_ARROW_LEFT_COMMAND;
export const KEY_ARROW_RIGHT_COMMAND = mod.KEY_ARROW_RIGHT_COMMAND;
export const KEY_ARROW_UP_COMMAND = mod.KEY_ARROW_UP_COMMAND;
export const KEY_BACKSPACE_COMMAND = mod.KEY_BACKSPACE_COMMAND;
export const KEY_DELETE_COMMAND = mod.KEY_DELETE_COMMAND;
export const KEY_DOWN_COMMAND = mod.KEY_DOWN_COMMAND;
export const KEY_ENTER_COMMAND = mod.KEY_ENTER_COMMAND;
export const KEY_ESCAPE_COMMAND = mod.KEY_ESCAPE_COMMAND;
export const KEY_MODIFIER_COMMAND = mod.KEY_MODIFIER_COMMAND;
export const KEY_SPACE_COMMAND = mod.KEY_SPACE_COMMAND;
export const KEY_TAB_COMMAND = mod.KEY_TAB_COMMAND;
export const LineBreakNode = mod.LineBreakNode;
export const MOVE_TO_END = mod.MOVE_TO_END;
export const MOVE_TO_START = mod.MOVE_TO_START;
export const NODE_STATE_KEY = mod.NODE_STATE_KEY;
export const OUTDENT_CONTENT_COMMAND = mod.OUTDENT_CONTENT_COMMAND;
export const PASTE_COMMAND = mod.PASTE_COMMAND;
export const PASTE_TAG = mod.PASTE_TAG;
export const ParagraphNode = mod.ParagraphNode;
export const REDO_COMMAND = mod.REDO_COMMAND;
export const REMOVE_TEXT_COMMAND = mod.REMOVE_TEXT_COMMAND;
export const RootNode = mod.RootNode;
export const SELECTION_CHANGE_COMMAND = mod.SELECTION_CHANGE_COMMAND;
export const SELECTION_INSERT_CLIPBOARD_NODES_COMMAND = mod.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND;
export const SELECT_ALL_COMMAND = mod.SELECT_ALL_COMMAND;
export const SKIP_COLLAB_TAG = mod.SKIP_COLLAB_TAG;
export const SKIP_DOM_SELECTION_TAG = mod.SKIP_DOM_SELECTION_TAG;
export const SKIP_SCROLL_INTO_VIEW_TAG = mod.SKIP_SCROLL_INTO_VIEW_TAG;
export const TEXT_TYPE_TO_FORMAT = mod.TEXT_TYPE_TO_FORMAT;
export const TabNode = mod.TabNode;
export const TextNode = mod.TextNode;
export const UNDO_COMMAND = mod.UNDO_COMMAND;
export const buildImportMap = mod.buildImportMap;
export const createCommand = mod.createCommand;
export const createEditor = mod.createEditor;
export const createSharedNodeState = mod.createSharedNodeState;
export const createState = mod.createState;
export const flipDirection = mod.flipDirection;
export const getDOMOwnerDocument = mod.getDOMOwnerDocument;
export const getDOMSelection = mod.getDOMSelection;
export const getDOMSelectionFromTarget = mod.getDOMSelectionFromTarget;
export const getDOMTextNode = mod.getDOMTextNode;
export const getEditorPropertyFromDOMNode = mod.getEditorPropertyFromDOMNode;
export const getNearestEditorFromDOMNode = mod.getNearestEditorFromDOMNode;
export const getRegisteredNode = mod.getRegisteredNode;
export const getRegisteredNodeOrThrow = mod.getRegisteredNodeOrThrow;
export const getStaticNodeConfig = mod.getStaticNodeConfig;
export const isBlockDomNode = mod.isBlockDomNode;
export const isCurrentlyReadOnlyMode = mod.isCurrentlyReadOnlyMode;
export const isDOMDocumentNode = mod.isDOMDocumentNode;
export const isDOMNode = mod.isDOMNode;
export const isDOMTextNode = mod.isDOMTextNode;
export const isDOMUnmanaged = mod.isDOMUnmanaged;
export const isDocumentFragment = mod.isDocumentFragment;
export const isExactShortcutMatch = mod.isExactShortcutMatch;
export const isHTMLAnchorElement = mod.isHTMLAnchorElement;
export const isHTMLElement = mod.isHTMLElement;
export const isInlineDomNode = mod.isInlineDomNode;
export const isLexicalEditor = mod.isLexicalEditor;
export const isModifierMatch = mod.isModifierMatch;
export const isSelectionCapturedInDecoratorInput = mod.isSelectionCapturedInDecoratorInput;
export const isSelectionWithinEditor = mod.isSelectionWithinEditor;
export const makeStepwiseIterator = mod.makeStepwiseIterator;
export const removeFromParent = mod.removeFromParent;
export const resetRandomKey = mod.resetRandomKey;
export const setDOMUnmanaged = mod.setDOMUnmanaged;
export const setNodeIndentFromDOM = mod.setNodeIndentFromDOM;

View File

@@ -0,0 +1,65 @@
import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
import type { ValidationFieldError } from '../../../errors/index.js';
import type { SanitizedGlobalConfig } from '../../../globals/config/types.js';
import type { RequestContext } from '../../../index.js';
import type { JsonObject, Operation, PayloadRequest } from '../../../types/index.js';
import type { Field, TabAsField } from '../../config/types.js';
type Args = {
/**
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
*/
blockData?: JsonObject;
collection: null | SanitizedCollectionConfig;
context: RequestContext;
data: JsonObject;
/**
* The original data (not modified by any hooks)
*/
doc: JsonObject;
/**
* The original data with locales (not modified by any hooks)
*/
docWithLocales: JsonObject;
errors: ValidationFieldError[];
/**
* Built up labels of parent fields
*
* @example "Group Field > Tab Field > Text Field"
*/
fieldLabelPath: string;
fields: (Field | TabAsField)[];
global: null | SanitizedGlobalConfig;
id?: number | string;
mergeLocaleActions: (() => Promise<void> | void)[];
operation: Operation;
overrideAccess: boolean;
parentIndexPath: string;
/**
* @todo make required in v4.0
*/
parentIsLocalized?: boolean;
parentPath: string;
parentSchemaPath: string;
req: PayloadRequest;
siblingData: JsonObject;
/**
* The original siblingData (not modified by any hooks)
*/
siblingDoc: JsonObject;
/**
* The original siblingData with locales (not modified by any hooks)
*/
siblingDocWithLocales: JsonObject;
skipValidation?: boolean;
};
/**
* This function is responsible for the following actions, in order:
* - Run condition
* - Execute field hooks
* - Validate data
* - Transform data for storage
* - Unflatten locales. The input `data` is the normal document for one locale. The output result will become the document with locales.
*/
export declare const traverseFields: ({ id, blockData, collection, context, data, doc, docWithLocales, errors, fieldLabelPath, fields, global, mergeLocaleActions, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, siblingDocWithLocales, skipValidation, }: Args) => Promise<void>;
export {};
//# sourceMappingURL=traverseFields.d.ts.map

View File

@@ -0,0 +1,41 @@
var baseIsMatch = require('./_baseIsMatch'),
getMatchData = require('./_getMatchData');
/**
* This method is like `_.isMatch` except that it accepts `customizer` which
* is invoked to compare values. If `customizer` returns `undefined`, comparisons
* are handled by the method instead. The `customizer` is invoked with five
* arguments: (objValue, srcValue, index|key, object, source).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
* @param {Function} [customizer] The function to customize comparisons.
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
* @example
*
* function isGreeting(value) {
* return /^h(?:i|ello)$/.test(value);
* }
*
* function customizer(objValue, srcValue) {
* if (isGreeting(objValue) && isGreeting(srcValue)) {
* return true;
* }
* }
*
* var object = { 'greeting': 'hello' };
* var source = { 'greeting': 'hi' };
*
* _.isMatchWith(object, source, customizer);
* // => true
*/
function isMatchWith(object, source, customizer) {
customizer = typeof customizer == 'function' ? customizer : undefined;
return baseIsMatch(object, source, getMatchData(source), customizer);
}
module.exports = isMatchWith;

View File

@@ -0,0 +1,4 @@
import type { DefaultTranslationsObject, Language } from '../types.js';
export declare const taTranslations: DefaultTranslationsObject;
export declare const ta: Language;
//# sourceMappingURL=ta.d.ts.map

View File

@@ -0,0 +1,64 @@
{
"name": "agent-base",
"version": "6.0.2",
"description": "Turn a function into an `http.Agent` instance",
"main": "dist/src/index",
"typings": "dist/src/index",
"files": [
"dist/src",
"src"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc",
"postbuild": "cpy --parents src test '!**/*.ts' dist",
"test": "mocha --reporter spec dist/test/*.js",
"test-lint": "eslint src --ext .js,.ts",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/node-agent-base.git"
},
"keywords": [
"http",
"agent",
"base",
"barebones",
"https"
],
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/TooTallNate/node-agent-base/issues"
},
"dependencies": {
"debug": "4"
},
"devDependencies": {
"@types/debug": "4",
"@types/mocha": "^5.2.7",
"@types/node": "^14.0.20",
"@types/semver": "^7.1.0",
"@types/ws": "^6.0.3",
"@typescript-eslint/eslint-plugin": "1.6.0",
"@typescript-eslint/parser": "1.1.0",
"async-listen": "^1.2.0",
"cpy-cli": "^2.0.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "4.1.0",
"eslint-import-resolver-typescript": "1.1.1",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4",
"mocha": "^6.2.0",
"rimraf": "^3.0.0",
"semver": "^7.1.2",
"typescript": "^3.5.3",
"ws": "^3.0.0"
},
"engines": {
"node": ">= 6.0.0"
}
}

View File

@@ -0,0 +1,43 @@
import { resolveElements } from 'motion-dom';
const thresholds = {
some: 0,
all: 1,
};
function inView(elementOrSelector, onStart, { root, margin: rootMargin, amount = "some" } = {}) {
const elements = resolveElements(elementOrSelector);
const activeIntersections = new WeakMap();
const onIntersectionChange = (entries) => {
entries.forEach((entry) => {
const onEnd = activeIntersections.get(entry.target);
/**
* If there's no change to the intersection, we don't need to
* do anything here.
*/
if (entry.isIntersecting === Boolean(onEnd))
return;
if (entry.isIntersecting) {
const newOnEnd = onStart(entry);
if (typeof newOnEnd === "function") {
activeIntersections.set(entry.target, newOnEnd);
}
else {
observer.unobserve(entry.target);
}
}
else if (typeof onEnd === "function") {
onEnd(entry);
activeIntersections.delete(entry.target);
}
});
};
const observer = new IntersectionObserver(onIntersectionChange, {
root,
rootMargin,
threshold: typeof amount === "number" ? amount : thresholds[amount],
});
elements.forEach((element) => observer.observe(element));
return () => observer.disconnect();
}
export { inView };

View File

@@ -0,0 +1,14 @@
import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
import { wrapContextManagerClass } from '@sentry/opentelemetry';
/**
* This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
* It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Scopes are always in sync.
*
* Note that we currently only support AsyncHooks with this,
* but since this should work for Node 14+ anyhow that should be good enough.
*/
const SentryContextManager = wrapContextManagerClass(AsyncLocalStorageContextManager);
export { SentryContextManager };
//# sourceMappingURL=contextManager.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"eventUtils.js","sources":["../../../src/utils/eventUtils.ts"],"sourcesContent":["import type { Event } from '../types-hoist/event';\n\n/**\n * Get a list of possible event messages from a Sentry event.\n */\nexport function getPossibleEventMessages(event: Event): string[] {\n const possibleMessages: string[] = [];\n\n if (event.message) {\n possibleMessages.push(event.message);\n }\n\n try {\n // @ts-expect-error Try catching to save bundle size\n const lastException = event.exception.values[event.exception.values.length - 1];\n if (lastException?.value) {\n possibleMessages.push(lastException.value);\n if (lastException.type) {\n possibleMessages.push(`${lastException.type}: ${lastException.value}`);\n }\n }\n } catch {\n // ignore errors here\n }\n\n return possibleMessages;\n}\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,KAAK,EAAmB;AACjE,EAAE,MAAM,gBAAgB,GAAa,EAAE;;AAEvC,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE;AACrB,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;AACxC,EAAE;;AAEF,EAAE,IAAI;AACN;AACA,IAAI,MAAM,aAAA,GAAgB,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAA,GAAS,CAAC,CAAC;AACnF,IAAI,IAAI,aAAa,EAAE,KAAK,EAAE;AAC9B,MAAM,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;AAChD,MAAM,IAAI,aAAa,CAAC,IAAI,EAAE;AAC9B,QAAQ,gBAAgB,CAAC,IAAI,CAAC,CAAC,EAAA,aAAA,CAAA,IAAA,CAAA,EAAA,EAAA,aAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACA,MAAA;AACA,IAAA;AACA,EAAA,CAAA,CAAA,MAAA;AACA;AACA,EAAA;;AAEA,EAAA,OAAA,gBAAA;AACA;;;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"lasso-select.js","sources":["../../../src/icons/lasso-select.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name LassoSelect\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNyAyMmE1IDUgMCAwIDEtMi00IiAvPgogIDxwYXRoIGQ9Ik03IDE2LjkzYy45Ni40MyAxLjk2Ljc0IDIuOTkuOTEiIC8+CiAgPHBhdGggZD0iTTMuMzQgMTRBNi44IDYuOCAwIDAgMSAyIDEwYzAtNC40MiA0LjQ4LTggMTAtOHMxMCAzLjU4IDEwIDhhNy4xOSA3LjE5IDAgMCAxLS4zMyAyIiAvPgogIDxwYXRoIGQ9Ik01IDE4YTIgMiAwIDEgMCAwLTQgMiAyIDAgMCAwIDAgNHoiIC8+CiAgPHBhdGggZD0iTTE0LjMzIDIyaC0uMDlhLjM1LjM1IDAgMCAxLS4yNC0uMzJ2LTEwYS4zNC4zNCAwIDAgMSAuMzMtLjM0Yy4wOCAwIC4xNS4wMy4yMS4wOGw3LjM0IDZhLjMzLjMzIDAgMCAxLS4yMS41OWgtNC40OWwtMi41NyAzLjg1YS4zNS4zNSAwIDAgMS0uMjguMTR6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/lasso-select\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst LassoSelect = createLucideIcon('LassoSelect', [\n ['path', { d: 'M7 22a5 5 0 0 1-2-4', key: 'umushi' }],\n ['path', { d: 'M7 16.93c.96.43 1.96.74 2.99.91', key: 'ybbtv3' }],\n [\n 'path',\n {\n d: 'M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2',\n key: 'gt5e1w',\n },\n ],\n ['path', { d: 'M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z', key: 'bq3ynw' }],\n [\n 'path',\n {\n d: 'M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z',\n key: '72q637',\n },\n ],\n]);\n\nexport default LassoSelect;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAAA,CAClD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACpD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAChE,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAsC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACnE,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA;AACF,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,8 @@
/**
* Parse the spotlight option with proper precedence:
* - `false` or explicit string from options: use as-is
* - `true`: enable spotlight, but prefer a custom URL from the env var if set
* - `undefined`: defer entirely to the env var (bool or URL)
*/
export declare function getSpotlightConfig(optionsSpotlight: boolean | string | undefined): boolean | string | undefined;
//# sourceMappingURL=spotlight.d.ts.map

View File

@@ -0,0 +1,28 @@
import { addSeconds } from "./addSeconds.mjs";
/**
* @name subSeconds
* @category Second Helpers
* @summary Subtract the specified number of seconds from the given date.
*
* @description
* Subtract the specified number of seconds from the given date.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The date to be changed
* @param amount - The amount of seconds to be subtracted.
*
* @returns The new date with the seconds subtracted
*
* @example
* // Subtract 30 seconds from 10 July 2014 12:45:00:
* const result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)
* //=> Thu Jul 10 2014 12:44:30
*/
export function subSeconds(date, amount) {
return addSeconds(date, -amount);
}
// Fallback for modularized imports:
export default subSeconds;

View File

@@ -0,0 +1,6 @@
export declare const ATTR_NEXT_SPAN_TYPE = "next.span_type";
export declare const ATTR_NEXT_SPAN_NAME = "next.span_name";
export declare const ATTR_NEXT_ROUTE = "next.route";
export declare const ATTR_NEXT_SPAN_DESCRIPTION = "next.span_description";
export declare const ATTR_NEXT_SEGMENT = "next.segment";
//# sourceMappingURL=nextSpanAttributes.d.ts.map

View File

@@ -0,0 +1,74 @@
const path = require('path');
const picomatch = require('picomatch');
const isGlob = require('is-glob');
function normalizeOptions(dir, opts = {}) {
const { ignore, ...rest } = opts;
if (Array.isArray(ignore)) {
opts = { ...rest };
for (const value of ignore) {
if (isGlob(value)) {
if (!opts.ignoreGlobs) {
opts.ignoreGlobs = [];
}
const regex = picomatch.makeRe(value, {
// We set `dot: true` to workaround an issue with the
// regular expression on Linux where the resulting
// negative lookahead `(?!(\\/|^)` was never matching
// in some cases. See also https://bit.ly/3UZlQDm
dot: true,
windows: process.platform === 'win32',
});
opts.ignoreGlobs.push(regex.source);
} else {
if (!opts.ignorePaths) {
opts.ignorePaths = [];
}
opts.ignorePaths.push(path.resolve(dir, value));
}
}
}
return opts;
}
exports.createWrapper = (binding) => {
return {
writeSnapshot(dir, snapshot, opts) {
return binding.writeSnapshot(
path.resolve(dir),
path.resolve(snapshot),
normalizeOptions(dir, opts),
);
},
getEventsSince(dir, snapshot, opts) {
return binding.getEventsSince(
path.resolve(dir),
path.resolve(snapshot),
normalizeOptions(dir, opts),
);
},
async subscribe(dir, fn, opts) {
dir = path.resolve(dir);
opts = normalizeOptions(dir, opts);
await binding.subscribe(dir, fn, opts);
return {
unsubscribe() {
return binding.unsubscribe(dir, fn, opts);
},
};
},
unsubscribe(dir, fn, opts) {
return binding.unsubscribe(
path.resolve(dir),
fn,
normalizeOptions(dir, opts),
);
}
};
};

View File

@@ -0,0 +1,3 @@
export declare const DEFAULT_ENVIRONMENT = "production";
export declare const DEV_ENVIRONMENT = "development";
//# sourceMappingURL=constants.d.ts.map

View File

@@ -0,0 +1,44 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const WebpackError = require("./WebpackError");
/** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
/** @typedef {import("./Module")} Module */
/** @typedef {import("./ModuleBuildError").ErrorWithHideStack} ErrorWithHideStack */
class ModuleDependencyError extends WebpackError {
/**
* Creates an instance of ModuleDependencyError.
* @param {Module} module module tied to dependency
* @param {ErrorWithHideStack} err error thrown
* @param {DependencyLocation} loc location of dependency
*/
constructor(module, err, loc) {
super(err.message);
/** @type {string} */
this.name = "ModuleDependencyError";
this.details =
err && !err.hideStack
? /** @type {string} */ (err.stack).split("\n").slice(1).join("\n")
: undefined;
this.module = module;
this.loc = loc;
/** error is not (de)serialized, so it might be undefined after deserialization */
this.error = err;
if (err && err.hideStack && err.stack) {
this.stack = /** @type {string} */ `${err.stack
.split("\n")
.slice(1)
.join("\n")}\n\n${this.stack}`;
}
}
}
module.exports = ModuleDependencyError;

View File

@@ -0,0 +1,82 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict";
/**
* @template T, K, C
* @typedef {import("./SerializerMiddleware")<T, K, C>} SerializerMiddleware
*/
/**
* @template DeserializedValue
* @template SerializedValue
* @template Context
*/
class Serializer {
/**
* @param {SerializerMiddleware<EXPECTED_ANY, EXPECTED_ANY, EXPECTED_ANY>[]} middlewares serializer middlewares
* @param {Context=} context context
*/
constructor(middlewares, context) {
this.serializeMiddlewares = [...middlewares];
this.deserializeMiddlewares = [...middlewares].reverse();
this.context = context;
}
/**
* @template ExtendedContext
* @param {DeserializedValue | Promise<DeserializedValue>} obj object
* @param {Context & ExtendedContext} context context object
* @returns {Promise<SerializedValue>} result
*/
serialize(obj, context) {
const ctx = { ...context, ...this.context };
let current = obj;
for (const middleware of this.serializeMiddlewares) {
if (
current &&
typeof (/** @type {Promise<DeserializedValue>} */ (current).then) ===
"function"
) {
current =
/** @type {Promise<DeserializedValue>} */
(current).then((data) => data && middleware.serialize(data, ctx));
} else if (current) {
try {
current = middleware.serialize(current, ctx);
} catch (err) {
current = Promise.reject(err);
}
} else {
break;
}
}
return /** @type {Promise<SerializedValue>} */ (current);
}
/**
* @template ExtendedContext
* @param {SerializedValue | Promise<SerializedValue>} value value
* @param {Context & ExtendedContext} context object
* @returns {Promise<DeserializedValue>} result
*/
deserialize(value, context) {
const ctx = { ...context, ...this.context };
let current = value;
for (const middleware of this.deserializeMiddlewares) {
current =
current &&
typeof (/** @type {Promise<SerializedValue>} */ (current).then) ===
"function"
? /** @type {Promise<SerializedValue>} */ (current).then((data) =>
middleware.deserialize(data, ctx)
)
: middleware.deserialize(current, ctx);
}
return /** @type {Promise<DeserializedValue>} */ (current);
}
}
module.exports = Serializer;

View File

@@ -0,0 +1,38 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link lastDayOfISOWeekYear} function options.
*/
export interface LastDayOfISOWeekYearOptions<DateType extends Date = Date>
extends ContextOptions<DateType> {}
/**
* @name lastDayOfISOWeekYear
* @category ISO Week-Numbering Year Helpers
* @summary Return the last day of an ISO week-numbering year for the given date.
*
* @description
* Return the last day of an ISO week-numbering year,
* which always starts 3 days before the year's first Thursday.
* The result will be in the local timezone.
*
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
*
* @param date - The original date
* @param options - An object with options
*
* @returns The end of an ISO week-numbering year
*
* @example
* // The last day of an ISO week-numbering year for 2 July 2005:
* const result = lastDayOfISOWeekYear(new Date(2005, 6, 2))
* //=> Sun Jan 01 2006 00:00:00
*/
export declare function lastDayOfISOWeekYear<
DateType extends Date,
ResultDate extends Date = DateType,
>(
date: DateArg<DateType>,
options?: LastDayOfISOWeekYearOptions<ResultDate> | undefined,
): ResultDate;

View File

@@ -0,0 +1,4 @@
import { RequestOptions } from 'node:http';
/** Build a full URL from request options. */
export declare function getRequestUrl(requestOptions: RequestOptions): string;
//# sourceMappingURL=getRequestUrl.d.ts.map

View File

@@ -0,0 +1,14 @@
import React from 'react';
type Listener = {
handler: () => void;
ref: React.RefObject<HTMLElement>;
};
export declare const ClickOutsideProvider: React.FC<{
children: React.ReactNode;
}>;
export declare const useClickOutsideContext: () => {
register: (listener: Listener) => void;
unregister: (listener: Listener) => void;
};
export {};
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,41 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
const dateFormats = {
full: "EEEE d MMMM y",
long: "d MMMM y",
medium: "d MMM y",
short: "dd/MM/y",
};
const timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm",
};
const dateTimeFormats = {
full: "{{date}} 'à' {{time}}",
long: "{{date}} 'à' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});

View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _regeneratorKeys;
function _regeneratorKeys(val) {
var object = Object(val);
var keys = [];
var key;
for (var key in object) {
keys.unshift(key);
}
return function next() {
while (keys.length) {
key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
next.done = true;
return next;
};
}
//# sourceMappingURL=regeneratorKeys.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getVersionLabel.js","names":["getVersionLabel","currentLocale","currentlyPublishedVersion","latestDraftVersion","t","version","status","_status","publishedNewerThanDraft","updatedAt","name","label","pillStyle","isCurrentDraft","id","publishedInAnotherLocale","publishedLocale","isCurrentlyPublished"],"sources":["../../../../src/views/Version/VersionPillLabel/getVersionLabel.ts"],"sourcesContent":["import type { TFunction } from '@payloadcms/translations'\nimport type { Pill } from '@payloadcms/ui'\n\ntype Args = {\n currentLocale?: string\n currentlyPublishedVersion?: {\n id: number | string\n publishedLocale?: string\n updatedAt: string\n version: {\n updatedAt: string\n }\n }\n latestDraftVersion?: {\n id: number | string\n updatedAt: string\n }\n t: TFunction\n version: {\n id: number | string\n publishedLocale?: string\n version: { _status?: 'draft' | 'published'; updatedAt: string }\n }\n}\n\n/**\n * Gets the appropriate version label and version pill styling\n * given existing versions and the current version status.\n */\nexport function getVersionLabel({\n currentLocale,\n currentlyPublishedVersion,\n latestDraftVersion,\n t,\n version,\n}: Args): {\n label: string\n name: 'currentDraft' | 'currentlyPublished' | 'draft' | 'previouslyPublished' | 'published'\n pillStyle: Parameters<typeof Pill>[0]['pillStyle']\n} {\n const status = version.version._status\n\n if (status === 'draft') {\n const publishedNewerThanDraft =\n currentlyPublishedVersion?.updatedAt > latestDraftVersion?.updatedAt\n\n if (publishedNewerThanDraft) {\n return {\n name: 'draft',\n label: t('version:draft'),\n pillStyle: 'light',\n }\n }\n\n const isCurrentDraft = version.id === latestDraftVersion?.id\n\n return {\n name: isCurrentDraft ? 'currentDraft' : 'draft',\n label: isCurrentDraft ? t('version:currentDraft') : t('version:draft'),\n pillStyle: 'light',\n }\n }\n\n const publishedInAnotherLocale =\n status === 'published' && version.publishedLocale && currentLocale !== version.publishedLocale\n\n if (publishedInAnotherLocale) {\n return {\n name: 'currentDraft',\n label: t('version:currentDraft'),\n pillStyle: 'light',\n }\n }\n\n const isCurrentlyPublished =\n currentlyPublishedVersion && version.id === currentlyPublishedVersion.id\n\n return {\n name: isCurrentlyPublished ? 'currentlyPublished' : 'previouslyPublished',\n label: isCurrentlyPublished\n ? t('version:currentlyPublished')\n : t('version:previouslyPublished'),\n pillStyle: isCurrentlyPublished ? 'success' : 'light',\n }\n}\n"],"mappings":"AAyBA;;;GAIA,OAAO,SAASA,gBAAgB;EAC9BC,aAAa;EACbC,yBAAyB;EACzBC,kBAAkB;EAClBC,CAAC;EACDC;AAAO,CACF;EAKL,MAAMC,MAAA,GAASD,OAAA,CAAQA,OAAO,CAACE,OAAO;EAEtC,IAAID,MAAA,KAAW,SAAS;IACtB,MAAME,uBAAA,GACJN,yBAAA,EAA2BO,SAAA,GAAYN,kBAAA,EAAoBM,SAAA;IAE7D,IAAID,uBAAA,EAAyB;MAC3B,OAAO;QACLE,IAAA,EAAM;QACNC,KAAA,EAAOP,CAAA,CAAE;QACTQ,SAAA,EAAW;MACb;IACF;IAEA,MAAMC,cAAA,GAAiBR,OAAA,CAAQS,EAAE,KAAKX,kBAAA,EAAoBW,EAAA;IAE1D,OAAO;MACLJ,IAAA,EAAMG,cAAA,GAAiB,iBAAiB;MACxCF,KAAA,EAAOE,cAAA,GAAiBT,CAAA,CAAE,0BAA0BA,CAAA,CAAE;MACtDQ,SAAA,EAAW;IACb;EACF;EAEA,MAAMG,wBAAA,GACJT,MAAA,KAAW,eAAeD,OAAA,CAAQW,eAAe,IAAIf,aAAA,KAAkBI,OAAA,CAAQW,eAAe;EAEhG,IAAID,wBAAA,EAA0B;IAC5B,OAAO;MACLL,IAAA,EAAM;MACNC,KAAA,EAAOP,CAAA,CAAE;MACTQ,SAAA,EAAW;IACb;EACF;EAEA,MAAMK,oBAAA,GACJf,yBAAA,IAA6BG,OAAA,CAAQS,EAAE,KAAKZ,yBAAA,CAA0BY,EAAE;EAE1E,OAAO;IACLJ,IAAA,EAAMO,oBAAA,GAAuB,uBAAuB;IACpDN,KAAA,EAAOM,oBAAA,GACHb,CAAA,CAAE,gCACFA,CAAA,CAAE;IACNQ,SAAA,EAAWK,oBAAA,GAAuB,YAAY;EAChD;AACF","ignoreList":[]}

View File

@@ -0,0 +1,11 @@
import { FCPMetric, MetricRatingThresholds, ReportOpts } from './types';
/** Thresholds for FCP. See https://web.dev/articles/fcp#what_is_a_good_fcp_score */
export declare const FCPThresholds: MetricRatingThresholds;
/**
* Calculates the [FCP](https://web.dev/articles/fcp) value for the current page and
* calls the `callback` function once the value is ready, along with the
* relevant `paint` performance entry used to determine the value. The reported
* value is a `DOMHighResTimeStamp`.
*/
export declare const onFCP: (onReport: (metric: FCPMetric) => void, opts?: ReportOpts) => void;
//# sourceMappingURL=onFCP.d.ts.map

View File

@@ -0,0 +1,602 @@
export const ukTranslations = {
authentication: {
account: 'Обліковий запис',
accountOfCurrentUser: 'Обліковий запис поточного користувача',
accountVerified: 'Обліковий запис успішно перевірено.',
alreadyActivated: 'Вже активований',
alreadyLoggedIn: 'Вже увійшли в систему',
apiKey: 'API ключ',
authenticated: 'Аутентифікований',
backToLogin: 'Повернутися до входу',
beginCreateFirstUser: 'Щоб розпочати — створіть першого користувача',
changePassword: 'Змінити пароль',
checkYourEmailForPasswordReset: 'Якщо адреса електронної пошти пов\'язана з обліковим записом, незабаром ви отримаєте інструкції щодо скидання пароля. Будь ласка, перевірте папку "Спам" або "Небажана пошта", якщо ви не бачите цього електронного листа у своїй вхідній пошті.',
confirmGeneration: 'Підтвердити генерацію',
confirmPassword: 'Підтвердження паролю',
createFirstUser: 'Створення першого користувача',
emailNotValid: 'Вказана адреса електронної пошти недійсна',
emailOrUsername: "Електронна пошта або Ім'я користувача",
emailSent: 'Лист відправлено',
emailVerified: 'Електронну пошту успішно підтверджено.',
enableAPIKey: 'Активувати API ключ',
failedToUnlock: 'Не вдалось розблокувати',
forceUnlock: 'Примусове розблокування',
forgotPassword: 'Забули пароль',
forgotPasswordEmailInstructions: 'Будь ласка, вкажіть адресу вашої електронної пошти нижче. Ви отримаєте лист на вашу електронну пошту з інструкціями щодо скидання пароля.',
forgotPasswordQuestion: 'Забули пароль?',
forgotPasswordUsernameInstructions: "Будь ласка, введіть нижче своє ім'я користувача. Інструкції щодо скидання пароля буде відправлено на адресу електронної пошти, пов'язану з вашим ім'ям користувача.",
generate: 'Згенерувати',
generateNewAPIKey: 'Згенерувати новий API ключ',
generatingNewAPIKeyWillInvalidate: 'Генерація нового API ключа зробить попередній <1>недійсним</1>. Ви впевнені, що бажаєте продовжити?',
lockUntil: 'Заблокувати до',
logBackIn: 'Увійти знову',
loggedIn: 'Щоб увйти в систему з іншого облікового запису, спочатку <0>вийдіть з системи</0>.',
loggedInChangePassword: 'Щоб змінити ваш пароль, перейдіть до <0>сторінки облікового запису</0> і змініть ваш пароль.',
loggedOutInactivity: 'Ви вийшли з системи через бездіяльність.',
loggedOutSuccessfully: 'Ви успішно вийшли з системи.',
loggingOut: 'Вихід...',
login: 'Увійти',
loginAttempts: 'Спроби входу',
loginUser: 'Вхід користувача в систему',
loginWithAnotherUser: 'Щоб увйти в систему з іншого облікового запису, спочатку <0>вийдіть з системи</0>.',
logOut: 'Вийти',
logout: 'Вийти',
logoutSuccessful: 'Вихід успішний.',
logoutUser: 'Вийти з системи',
newAccountCreated: 'Новий обліковий запис було створено, щоб отримати доступ до <a href="{{serverURL}}">{{serverURL}}</a>, будь ласка, натисніть на наступне посилання, або вставте його в адресний рядок браузера, щоб підтвердити вашу електронну пошту: <a href="{{verificationURL}}">{{verificationURL}}</a><br> Після підтвердження вашої електронної пошти, ви зможете увійти в систему.',
newAPIKeyGenerated: 'Новий API ключ згенеровано.',
newPassword: 'Новий пароль',
passed: 'Аутентифікація пройшла успішно',
passwordResetSuccessfully: 'Пароль успішно скинуто.',
resetPassword: 'Скинути пароль',
resetPasswordExpiration: 'Скинути пароль після закінчення строку дії',
resetPasswordToken: 'Токен для скидання пароля',
resetYourPassword: 'Скинути ваш пароль',
stayLoggedIn: 'Залишитись в системі',
successfullyRegisteredFirstUser: 'Успішно зареєстровано першого користувача.',
successfullyUnlocked: 'Успішно розблоковано',
tokenRefreshSuccessful: 'Оновлення токену успішне.',
unableToVerify: 'Неможливо підтвердити',
username: "Ім'я користувача",
usernameNotValid: "Вказане ім'я користувача недійсне",
verified: 'Підтверджено',
verifiedSuccessfully: 'Успішно підтверджено',
verify: 'Підтвердити',
verifyUser: 'Підтвердити користувача',
verifyYourEmail: 'Підтвердити пошту',
youAreInactive: 'Ви були неактивні певний час і скоро, в цілях вашої безпеки, вас буде розлогінено. Чи бажаєте ви залишитись в системі?',
youAreReceivingResetPassword: 'Ви отримали це повідомлення, бо ви (або хтось інший) створив запит на скидання пароля до вашого облікового запису. Будь ласка, натисніть на наступне посилання, або вставте посилання в адресний рядок браузера, щоб завершити процес:',
youDidNotRequestPassword: 'Якщо ви не сторювали цей запит, будь ласка, проігноруйте це повідомлення'
},
dashboard: {
addWidget: 'Додати віджет',
deleteWidget: 'Видалити віджет {{id}}',
searchWidgets: 'Пошук віджетів...'
},
error: {
accountAlreadyActivated: 'Цей обліковий запис вже активований',
autosaving: 'Виникла проблема під час автозбереження цього документа.',
correctInvalidFields: 'Будь ласка, виправте невірні поля.',
deletingFile: 'Виникла помилка під час видалення файлу',
deletingTitle: "Виникла помилка під час видалення {{title}}. Будь ласка, перевірте ваше з'єднання та спробуйте ще раз.",
documentNotFound: 'Документ з ID {{id}} не вдалося знайти. Можливо, він був видалений або ніколи не існував, або у вас немає доступу до нього.',
emailOrPasswordIncorrect: 'Вказана адреса електронної пошти або пароль є невірними',
followingFieldsInvalid_one: 'Наступне поле невірне:',
followingFieldsInvalid_other: 'Наступні поля невірні',
incorrectCollection: 'Неправильна колекція',
insufficientClipboardPermissions: 'Доступ до буфера обміну відхилено. Перевірте свої дозволи на буфер обміну.',
invalidClipboardData: 'Невірні дані в буфері обміну.',
invalidFileType: 'Невірний тип файлу',
invalidFileTypeValue: 'Невірний тип файлу: {{value}}',
invalidRequestArgs: 'Неправильні аргументи передано в запиті: {{args}}',
loadingDocument: 'Виникла помилка під час завантаження документа з ID {{id}}.',
localesNotSaved_one: 'Не вдалося зберегти наступну локалізацію:',
localesNotSaved_other: 'Не вдалося зберегти такі локалізації:',
logoutFailed: 'Вихід не вдався.',
missingEmail: 'Відсутній email.',
missingIDOfDocument: 'Відсутній ID документа для оновлення.',
missingIDOfVersion: 'Відсутній ID версії.',
missingRequiredData: "Відсутні обов'язкові дані.",
noFilesUploaded: 'Жодного файлу не було завантажено.',
noMatchedField: 'Не знайдено відповідного поля для "{{label}}"',
notAllowedToAccessPage: 'Ви не маєте доступу до цієї сторінки.',
notAllowedToPerformAction: 'Ви не маєте дозволу виконувати цю дію.',
notFound: 'Запитуваний ресурс не знайдено.',
noUser: 'Немає користувача',
previewing: 'Виникла помилка під час попереднього перегляду цього документа.',
problemUploadingFile: 'Виникла помилка під час завантаження файлу.',
restoringTitle: "Виникла помилка при відновленні {{title}}. Будь ласка, перевірте своє з'єднання і спробуйте ще раз.",
revertingDocument: 'Виникла проблема під час відновлення цього документа.',
tokenInvalidOrExpired: 'Токен недійсний, або його строк дії закінчився.',
tokenNotProvided: 'Токен не надано.',
unableToCopy: 'Неможливо скопіювати.',
unableToDeleteCount: 'Не вдалося видалити {{count}} із {{total}} {{label}}.',
unableToReindexCollection: 'Помилка при повторному індексуванні колекції {{collection}}. Операцію скасовано.',
unableToUpdateCount: 'Не вдалося оновити {{count}} із {{total}} {{label}}.',
unauthorized: 'Немає доступу, ви повинні увійти, щоб виконати цей запит.',
unauthorizedAdmin: 'Немає доступу, цей користувач не має доступу до панелі адміністратора.',
unknown: 'Виникла невідома помилка.',
unPublishingDocument: 'Під час скасування публікації даного документа виникла помилка.',
unspecific: 'Виникла помилка.',
unverifiedEmail: 'Будь ласка, підтвердьте свою електронну пошту перед входом.',
userEmailAlreadyRegistered: 'Користувач із вказаною електронною поштою вже зареєстрований.',
userLocked: 'Цей користувач заблокований через велику кількість невдалих спроб входу.',
usernameAlreadyRegistered: 'Користувач з вказаним іменем користувача вже зареєстрований.',
usernameOrPasswordIncorrect: "Введене ім'я користувача або пароль неправильні.",
valueMustBeUnique: 'Значення має бути унікальним.',
verificationTokenInvalid: 'Токен верифікації недійсний.'
},
fields: {
addLabel: 'Додати {{label}}',
addLink: 'Додати посилання',
addNew: 'Додати новий',
addNewLabel: 'Створити {{label}}',
addRelationship: "Додати взаємозв'язок",
addUpload: 'Додати завантаження',
block: 'Блок',
blocks: 'блоки',
blockType: 'Тип блока',
chooseBetweenCustomTextOrDocument: 'Виберіть між введенням власної URL-адреси та посиланням на інший документ.',
chooseDocumentToLink: 'Оберіть документ, на який потрібно зробити посилання',
chooseFromExisting: 'Обрати з існуючих',
chooseLabel: 'Обрати {{label}}',
collapseAll: 'Згорнути все',
customURL: 'Власний URL',
editLabelData: 'Редагувати дані {{label}}',
editLink: 'Редагувати посилання',
editRelationship: "Редагувати взаємозв'язок",
enterURL: 'Введіть URL',
internalLink: 'Внутрішнє посилання',
itemsAndMore: '{{items}} і ще {{count}}',
labelRelationship: "{{label}} взаємов'язок",
latitude: 'Широта',
linkedTo: "Зв'язано з <0>{{label}}</0>",
linkType: 'Тип посилання',
longitude: 'Довгота',
newLabel: 'Новий {{label}}',
openInNewTab: 'Відкривати в новій вкладці',
passwordsDoNotMatch: 'Паролі не співпадають.',
relatedDocument: "Пов'язаний документ",
relationTo: "Пов'язано з",
removeRelationship: "Видалити взаємозв'язок",
removeUpload: 'Видалити завантаження',
saveChanges: 'Зберегти зміни',
searchForBlock: 'Знайти блок',
searchForLanguage: 'Пошук мови',
selectExistingLabel: 'Вибрати існуючий {{label}}',
selectFieldsToEdit: 'Виберіть поля для редагування',
showAll: 'Показати все',
swapRelationship: "Замінити зв'язок",
swapUpload: 'Замінити завантаження',
textToDisplay: 'Текст для відображення',
toggleBlock: 'Перемкнути блок',
uploadNewLabel: 'Завантажити новий {{label}}'
},
folder: {
browseByFolder: 'Переглянути за папкою',
byFolder: 'За папкою',
deleteFolder: 'Видалити папку',
folderName: 'Назва папки',
folders: 'Папки',
folderTypeDescription: 'Виберіть, який тип документів колекції повинен бути дозволений у цій папці.',
itemHasBeenMoved: '{{title}} було переміщено до {{folderName}}',
itemHasBeenMovedToRoot: '{{title}} був переміщений до кореневої папки',
itemsMovedToFolder: '{{title}} перенесено до {{folderName}}',
itemsMovedToRoot: '{{title}} переміщено до кореневої папки',
moveFolder: 'Перемістити папку',
moveItemsToFolderConfirmation: 'Ви збираєтесь перемістити <1>{{count}} {{label}}</1> до <2>{{toFolder}}</2>. Ви впевнені?',
moveItemsToRootConfirmation: 'Ви збираєтеся перемістити <1>{{count}} {{label}}</1> до кореневої папки. Ви впевнені?',
moveItemToFolderConfirmation: 'Ви збираєтеся перемістити <1>{{title}}</1> до <2>{{toFolder}}</2>. Ви впевнені?',
moveItemToRootConfirmation: 'Ви збираєтеся перемістити <1>{{title}}</1> до кореневої папки. Ви впевнені?',
movingFromFolder: 'Переміщення {{title}} з {{fromFolder}}',
newFolder: 'Нова папка',
noFolder: 'Немає папки',
renameFolder: 'Перейменувати папку',
searchByNameInFolder: 'Пошук за назвою у {{folderName}}',
selectFolderForItem: 'Виберіть папку для {{title}}'
},
general: {
name: "Ім'я",
aboutToDelete: 'Ви бажаєте видалити {{label}} <1>{{title}}</1>. Ви впевнені?',
aboutToDeleteCount_many: 'Ви бажаєте видалити {{count}} {{label}}',
aboutToDeleteCount_one: 'Ви бажаєте видалити {{count}} {{label}}',
aboutToDeleteCount_other: 'Ви бажаєте видалити {{count}} {{label}}',
aboutToPermanentlyDelete: 'Ви збираєтесь остаточно видалити {{label}} <1>{{title}}</1>. Ви впевнені?',
aboutToPermanentlyDeleteTrash: 'Ви збираєтеся назавжди видалити <0>{{count}}</0> <1>{{label}}</1> із смітника. Ви впевнені?',
aboutToRestore: 'Ви збираєтеся відновити {{label}} <1>{{title}}</1>. Ви впевнені?',
aboutToRestoreAsDraft: 'Ви збираєтеся відновити {{label}} <1>{{title}}</1> як чернетку. Ви впевнені?',
aboutToRestoreAsDraftCount: 'Ви збираєтеся відновити {{count}} {{label}} як чернетку',
aboutToRestoreCount: 'Ви збираєтеся відновити {{count}} {{label}}',
aboutToTrash: 'Ви збираєтеся перемістити {{label}} <1>{{title}}</1> у смітник. Ви впевнені?',
aboutToTrashCount: 'Ви збираєтеся перемістити {{count}} {{label}} до смітника',
addBelow: 'Додати нижче',
addFilter: 'Додати фільтр',
adminTheme: 'Тема адмін панелі',
all: 'Все',
allCollections: 'Усі Колекції',
allLocales: 'Всі локалізації',
and: 'і',
anotherUser: 'Інший користувач',
anotherUserTakenOver: 'Інший користувач взяв на себе редагування цього документа.',
applyChanges: 'Застосувати зміни',
ascending: 'В порядку зростання',
automatic: 'Автоматично',
backToDashboard: 'Повернутись до головної сторінки',
cancel: 'Скасувати',
changesNotSaved: 'Ваши зміни не були збережені. Якщо ви вийдете зараз, то втратите свої зміни.',
clear: 'Очистити',
clearAll: 'Очистити все',
close: 'Закрити',
collapse: 'Згорнути',
collections: 'Колекції',
columns: 'Колонки',
columnToSort: 'Колонка для сортування',
confirm: 'Підтвердити',
confirmCopy: 'Підтвердіть копію',
confirmDeletion: 'Підтвердити видалення',
confirmDuplication: 'Підтвердити копіювання',
confirmMove: 'Підтвердити переміщення',
confirmReindex: 'Перебудувати індекс для всіх {{collections}}?',
confirmReindexAll: 'Перебудувати індекс для всіх колекцій?',
confirmReindexDescription: 'Це видалить наявні індекси та перебудує індекси документів у колекціях {{collections}}.',
confirmReindexDescriptionAll: 'Це видалить наявні індекси та перебудує індекси документів у всіх колекціях.',
confirmRestoration: 'Підтвердіть відновлення',
copied: 'Скопійовано',
copy: 'Скопіювати',
copyField: 'Копіювати поле',
copying: 'Копіювання',
copyRow: 'Копіювати рядок',
copyWarning: 'Ви збираєтесь замінити {{to}} на {{from}} для {{label}} {{title}}. Ви впевнені?',
create: 'Створити',
created: 'Створено',
createdAt: 'Дата створення',
createNew: 'Створити',
createNewLabel: 'Створити новий {{label}}',
creating: 'Створення',
creatingNewLabel: 'Створення нового {{label}}',
currentlyEditing: 'зараз редагує цей документ. Якщо ви перехопите контроль, їм буде заблоковано продовження редагування, і вони також можуть втратити незбережені зміни.',
custom: 'Користувацьке',
dark: 'Темна',
dashboard: 'Головна',
delete: 'Видалити',
deleted: 'Видалено',
deletedAt: 'Видалено в',
deletedCountSuccessfully: 'Успішно видалено {{count}} {{label}}.',
deletedSuccessfully: 'Успішно видалено.',
deleteLabel: 'Видалити {{label}}',
deletePermanently: 'Пропустити кошик та видалити назавжди',
deleting: 'Видалення...',
depth: 'Глибина',
descending: 'В порядку спадання',
deselectAllRows: 'Скасувати вибір всіх рядків',
document: 'Документ',
documentIsTrashed: 'Цей {{label}} видалено та доступний лише для читання.',
documentLocked: 'Документ заблоковано',
documents: 'Документи',
duplicate: 'Дублювати',
duplicateWithoutSaving: 'Дублювання без збереження змін',
edit: 'Редагувати',
editAll: 'Редагувати все',
editedSince: 'Відредаговано з',
editing: 'Редагування',
editingLabel_many: 'Редагування {{count}} {{label}}',
editingLabel_one: 'Редагування {{count}} {{label}}',
editingLabel_other: 'Редагування {{count}} {{label}}',
editingTakenOver: 'Редагування перехоплено',
editLabel: 'Редагувати {{label}}',
email: 'Електронна пошта',
emailAddress: 'Адреса електронної пошти',
emptyTrash: 'Очистити кошик',
emptyTrashLabel: 'Очистити кошик для {{label}}',
enterAValue: 'Введіть значення',
error: 'Помилка',
errors: 'Помилки',
exitLivePreview: 'Вийти з режиму "Наживо"',
export: 'Експорт',
fallbackToDefaultLocale: 'Перехід на мову за замовчуванням',
false: 'Ні',
filter: 'Фільтрувати',
filters: 'Фільтри',
filterWhere: 'Де фільтрувати {{label}}',
globals: 'Глобальні',
goBack: 'Повернутися',
groupByLabel: 'Групувати за {{label}}',
import: 'Імпорт',
isEditing: 'редагує',
item: 'Предмет',
items: 'предмети',
language: 'Мова',
lastModified: 'Востаннє змінено',
layout: 'Макет',
leaveAnyway: 'Все одно вийти',
leaveWithoutSaving: 'Вийти без збереження',
light: 'Світла',
livePreview: 'Попередній перегляд',
loading: 'Завантаження',
locale: 'Локалізація',
locales: 'Локалізації',
lock: 'Замок',
menu: 'Меню',
moreOptions: 'Додатково',
move: 'Перемістити',
moveConfirm: 'Ви збираєтесь перемістити {{count}} {{label}} до <1>{{destination}}</1>. Ви впевнені?',
moveCount: 'Перемістити {{count}} {{label}}',
moveDown: 'Перемістити нижче',
moveUp: 'Перемістити вище',
moving: 'Переїзд',
movingCount: 'Переміщення {{count}} {{label}}',
newLabel: 'Новий {{label}}',
newPassword: 'Новий пароль',
next: 'Наступний',
no: 'Ні',
noDateSelected: 'Не вибрано жодної дати',
noFiltersSet: 'Відсусті фільтри',
noLabel: '<без {{label}}>',
none: 'Ніхто',
noOptions: 'Немає варіантів',
noResults: 'Жодного {{label}} не знайдено. Або {{label}} ще не існує, або жоден з них не відповідає фільтрам, що ви задали више.',
noResultsDescription: 'Або жодних не існує, або жодні не відповідають фільтрам, які ви вказали вище.',
noResultsFound: 'Результатів не знайдено.',
notFound: 'Не знайдено',
nothingFound: 'Нічого не знайдено',
noTrashResults: 'Немає {{label}} у смітнику.',
noUpcomingEventsScheduled: 'Не заплановано жодних майбутніх подій.',
noValue: 'Немає значення',
of: 'з',
only: 'Лише',
open: 'Відкрити',
or: 'або',
order: 'Порядок',
overwriteExistingData: 'Перезаписати існуючі дані поля',
pageNotFound: 'Сторінка не знайдена',
password: 'Пароль',
pasteField: 'Вставити поле',
pasteRow: 'Вставити рядок',
payloadSettings: 'Налаштування Payload',
permanentlyDelete: 'Назавжди видалити',
permanentlyDeletedCountSuccessfully: 'Успішно видалено назавжди {{count}} {{label}}.',
perPage: 'На сторінці: {{limit}}',
previous: 'Попередній',
reindex: 'Повторне індексування',
reindexingAll: 'Перебудова індексів для всіх {{collections}}.',
remove: 'Видалити',
rename: 'Перейменувати',
reset: 'Скидання',
resetPreferences: 'Скинути налаштування',
resetPreferencesDescription: 'Це скине всі ваші налаштування до значень за замовчуванням.',
resettingPreferences: 'Скидання налаштувань.',
restore: 'Відновити',
restoreAsPublished: 'Відновити як опубліковану версію',
restoredCountSuccessfully: 'Відновлено {{count}} {{label}} успішно.',
restoring: 'Відновлення...',
row: 'Рядок',
rows: 'Рядки',
save: 'Зберегти',
saveChanges: 'Зберегти зміни',
saving: 'Збереження...',
schedulePublishFor: 'Запланувати публікацію для {{title}}',
searchBy: 'Шукати по {{label}}',
select: 'Вибрати',
selectAll: 'Вибрати всі {{count}} {{label}}',
selectAllRows: 'Обрати всі рядки',
selectedCount: 'Обрано {{count}} {{label}}',
selectLabel: 'Виберіть {{label}}',
selectValue: 'Обрати значення',
showAllLabel: 'Показати всі {{label}}',
sorryNotFound: 'Вибачте, немає нічого, що відповідало б Вашому запиту.',
sort: 'Сортувати',
sortByLabelDirection: 'Сортувати за {{label}} {{direction}}',
stayOnThisPage: 'Залишитись на цій сторінці',
submissionSuccessful: 'Успішно відправлено.',
submit: 'Відправити',
submitting: 'Надсилаємо...',
success: 'Успіх',
successfullyCreated: '{{label}} успішно створено.',
successfullyDuplicated: '{{label}} успішно продубльовано.',
successfullyReindexed: 'Успішно переіндексовано {{count}} із {{total}} документів із {{collections}}, пропущено {{skips}} чернеток.',
takeOver: 'Перехопити',
thisLanguage: 'Українська',
time: 'Час',
timezone: 'Часовий пояс',
titleDeleted: '{{label}} "{{title}}" успішно видалено.',
titleRestored: '{{label}} "{{title}}" успішно відновлено.',
titleTrashed: '{{label}} "{{title}}" переміщено до кошика.',
trash: 'Сміття',
trashedCountSuccessfully: '{{count}} {{label}} перенесено в кошик.',
true: 'Так',
unauthorized: 'Немає доступу',
unlock: 'Розблокувати',
unsavedChanges: 'У вас є незбережені зміни. Збережіть або скасуйте перед продовженням.',
unsavedChangesDuplicate: 'Ви маєте незбережені зміни. Чи бажаєте ви продовжити дублювання?',
untitled: 'Без назви',
upcomingEvents: 'Майбутні події',
updatedAt: 'Змінено',
updatedCountSuccessfully: 'Успішно оновлено {{count}} {{label}}.',
updatedLabelSuccessfully: 'Успішно оновлено {{label}}.',
updatedSuccessfully: 'Успішно відредаговано.',
updateForEveryone: 'Оновлення для всіх',
updating: 'оновлення',
uploading: 'завантаження',
uploadingBulk: 'Завантаження {{current}} з {{total}}',
user: 'Користувач',
username: "Ім'я користувача",
users: 'Користувачі',
value: 'Значення',
viewing: 'Перегляд',
viewReadOnly: 'Перегляд тільки для читання',
welcome: 'Вітаю',
yes: 'Так'
},
localization: {
cannotCopySameLocale: 'Не можна копіювати в ту ж саму локалізацію',
copyFrom: 'Копіювати з',
copyFromTo: 'Копіювання з {{from}} до {{to}}',
copyTo: 'Копіювати в',
copyToLocale: 'Копіювати до локалізації',
localeToPublish: 'Місце публікації',
selectedLocales: 'Вибрані локалі',
selectLocaleToCopy: 'Виберіть локалізацію для копіювання',
selectLocaleToDuplicate: 'Виберіть локалі для дублювання'
},
operators: {
contains: 'містить',
equals: 'дорівнює',
exists: 'існує',
intersects: 'перетинається',
isGreaterThan: 'більше ніж',
isGreaterThanOrEqualTo: 'більше або дорівнює',
isIn: 'є в',
isLessThan: 'менше ніж',
isLessThanOrEqualTo: 'менше або дорівнює',
isLike: 'схоже',
isNotEqualTo: 'не дорівнює',
isNotIn: 'не в',
isNotLike: 'не такий як',
near: 'поруч',
within: 'в межах'
},
upload: {
addFile: 'Додати файл',
addFiles: 'Додати файли',
bulkUpload: 'Масове завантаження',
crop: 'Обрізати',
cropToolDescription: 'Перетягніть кути обраної області, намалюйте нову область або скоригуйте значення нижче.',
download: 'Завантажити',
dragAndDrop: 'Перемістіть файл',
dragAndDropHere: 'або перемістіть сюди файл',
editImage: 'Редагувати зображення',
fileName: 'Назва файлу',
fileSize: 'Розмір файлу',
filesToUpload: 'Файли для завантаження',
fileToUpload: 'Файл для завантаження',
focalPoint: 'Точка фокусу',
focalPointDescription: 'Перетягніть точку фокусу безпосередньо на попередньому перегляді або налаштуйте значення нижче.',
height: 'Висота',
lessInfo: 'Менше інформації',
moreInfo: 'Більше інформації',
noFile: 'Немає файлу',
pasteURL: 'Вставити URL',
previewSizes: 'Попередній перегляд розмірів',
selectCollectionToBrowse: 'Оберіть колекцію для перегляду',
selectFile: 'Оберіть файл',
setCropArea: 'Встановити область обрізки',
setFocalPoint: 'Встановити точку фокусу',
sizes: 'Розміри',
sizesFor: 'Розміри для {{label}}',
width: 'Ширина'
},
validation: {
emailAddress: 'Будь ласка, введіть коректну адресу електронної пошти.',
enterNumber: 'Будь ласка, введіть коректне число.',
fieldHasNo: 'У цьому полі немає {{label}}',
greaterThanMax: '{{value}} більше, ніж припустиме максимальне значення {{label}} в {{max}}.',
invalidBlock: 'Блок "{{block}}" не дозволено.',
invalidBlocks: 'Це поле містить блоки, які більше не дозволені: {{blocks}}.',
invalidInput: 'У цьому полі введено некоректне значення.',
invalidSelection: 'Це поле має некоректний вибір.',
invalidSelections: 'Це поле має наступні невірні варіанти вибору:',
latitudeOutOfBounds: 'Широта повинна бути між -90 та 90.',
lessThanMin: '{{value}} менше, ніж мінімальне припустиме значення {{label}} в {{min}}.',
limitReached: 'Досягнуто межі, можна додати лише {{max}} елементів.',
longerThanMin: 'Це значення має дорівнювати або бути довшим, ніж {{minLength}} символів.',
longitudeOutOfBounds: 'Довгота повинна бути в межах від -180 до 180.',
notValidDate: '"{{value}}" - некоректна дата.',
required: "Це поле є обов'язковим.",
requiresAtLeast: 'Це поле потребує не менше {{count}} {{label}}.',
requiresNoMoreThan: 'Це поле потребує не більше {{count}} {{label}}.',
requiresTwoNumbers: 'У цьому полі потрібно ввести два числа.',
shorterThanMax: 'Це значення має дорівнювати або бути коротшим, ніж {{maxLength}} символів.',
timezoneRequired: 'Потрібний часовий пояс.',
trueOrFalse: 'Це поле може мати значення тільки true або false.',
username: "Будь ласка, введіть коректне ім'я користувача. Може містити літери, цифри, дефіси, крапки та підкреслення.",
validUploadID: 'Це поле не є коректним ID завантаження.'
},
version: {
type: 'Тип',
aboutToPublishSelection: 'Ви бажаєте опублікувати всі {{label}} у вибірці. Ви впевнені?',
aboutToRestore: 'Ви бажаєте відновити цей документ {{label}} до стану, в якому він знаходився {{versionDate}}. Ви впевнені?',
aboutToRestoreGlobal: 'Ви бажаєте відновити глобальний запис {{label}} до стану, в якому він знаходився {{versionDate}}. Ви впевнені?',
aboutToRevertToPublished: 'Ви бажаєте повернути зміни цього документа до його опублікованого стану. Ви впевнені?',
aboutToUnpublish: 'Ви бажаєте скасувати публікацю цього документа. Ви впевнені?',
aboutToUnpublishIn: 'Ви збираєтеся зняти з публікації цей документ на {{locale}}. Ви впевнені?',
aboutToUnpublishSelection: 'Ви бажаєте скасувати публікацію всіх {{label}} у вибірці. Ви впевнені?',
autosave: 'Автозбереження',
autosavedSuccessfully: 'Зміни збережено автоматично.',
autosavedVersion: 'Автозбереження',
changed: 'Змінено',
changedFieldsCount_one: '{{count}} змінене поле',
changedFieldsCount_other: '{{count}} змінених полів',
compareVersion: 'Порівняти версію з:',
compareVersions: 'Порівняти версії',
comparingAgainst: 'Порівнюючи з',
confirmPublish: 'Підтвердити публікацію',
confirmRevertToSaved: 'Підтвердити повернення до збереженого стану',
confirmUnpublish: 'Підвтердити скасування публікації',
confirmVersionRestoration: 'Підтвердити відновлення версії',
currentDocumentStatus: 'Поточний статус {{docStatus}} документа',
currentDraft: 'Поточна чернетка',
currentlyPublished: 'Наразі опубліковано',
currentlyViewing: 'Поточний перегляд',
currentPublishedVersion: 'Поточна опублікована версія',
draft: 'Чернетка',
draftHasPublishedVersion: 'Чернетка (має опубліковану версію)',
draftSavedSuccessfully: 'Чернетку успішно збережено.',
lastSavedAgo: 'Востаннє збережено {{distance}} тому',
modifiedOnly: 'Модифіковано тільки',
moreVersions: 'Більше версій...',
noFurtherVersionsFound: 'Інших версій не знайдено',
noLabelGroup: 'Незатверджена група',
noRowsFound: 'Не знайдено {{label}}',
noRowsSelected: 'Не вибрано {{label}}',
preview: 'Попередній перегляд',
previouslyDraft: 'Раніше була чернетка',
previouslyPublished: 'Раніше опубліковано',
previousVersion: 'Попередня версія',
problemRestoringVersion: 'Виникла проблема з відновленням цієї версії',
publish: 'Опублікувати',
publishAllLocales: 'Опублікуйте всі локалізації',
publishChanges: 'Опублікувати зміни',
published: 'Опубліковано',
publishIn: 'Опублікувати в {{locale}}',
publishing: 'Публікація',
restoreAsDraft: 'Відновити як чернетку',
restoredSuccessfully: 'Відновлено успішно.',
restoreThisVersion: 'Відновити цю версію',
restoring: 'Відновлення...',
reverting: 'Повернення до опублікованого стану...',
revertToPublished: 'Повернутися до опублікованого стану',
revertUnsuccessful: 'Відкат невдалий. Раніше опублікована версія не знайдена.',
saveDraft: 'Зберегти чернетку',
scheduledSuccessfully: 'Успішно заплановано.',
schedulePublish: 'Розклад публікації',
selectLocales: 'Оберіть локаль для відображення',
selectVersionToCompare: 'Оберіть версію для порівняння',
showingVersionsFor: 'Показані версії для:',
showLocales: 'Показати локалізації:',
specificVersion: 'Специфічна версія',
status: 'Статус',
unpublish: 'Скасувати публікацію',
unpublished: 'Неопубліковано',
unpublishedSuccessfully: 'Успішно знято з публікації.',
unpublishIn: 'Скасувати публікацію в {{locale}}',
unpublishing: 'Скасування публікації...',
version: 'Версія',
versionAgo: '{{distance}} тому',
versionCount_many: '{{count}} версій знайдено',
versionCount_none: 'Версій не знайдено',
versionCount_one: '{{count}} версія знайдена',
versionCount_other: '{{count}} версій знайдено',
versionID: 'ID версії',
versions: 'Версії',
viewingVersion: 'Перегляд версії для {{entityLabel}} {{documentTitle}}',
viewingVersionGlobal: 'Перегляд версій для глобальної колекції {{entityLabel}}',
viewingVersions: 'Перегляд версій для {{entityLabel}} {{documentTitle}}',
viewingVersionsGlobal: 'Перегляд версій для глобальної колекції {{entityLabel}}'
}
};
export const uk = {
dateFNSKey: 'uk',
translations: ukTranslations
};
//# sourceMappingURL=uk.js.map

View File

@@ -0,0 +1,27 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const distDirRewriteFramesIntegration = core.defineIntegration(({ distDirName }) => {
const distDirAbsPath = distDirName.replace(/(\/|\\)$/, ''); // We strip trailing slashes because "app:///_next" also doesn't have one
// Normally we would use `path.resolve` to obtain the absolute path we will strip from the stack frame to align with
// the uploaded artifacts, however we don't have access to that API in edge so we need to be a bit more lax.
// eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor -- user input is escaped
const SOURCEMAP_FILENAME_REGEX = new RegExp(`.*${core.escapeStringForRegex(distDirAbsPath)}`);
const rewriteFramesIntegrationInstance = core.rewriteFramesIntegration({
iteratee: frame => {
frame.filename = frame.filename?.replace(SOURCEMAP_FILENAME_REGEX, 'app:///_next');
return frame;
},
});
return {
...rewriteFramesIntegrationInstance,
name: 'DistDirRewriteFrames',
};
});
exports.distDirRewriteFramesIntegration = distDirRewriteFramesIntegration;
//# sourceMappingURL=distDirRewriteFramesIntegration.js.map

View File

@@ -0,0 +1,60 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const debugBuild = require('../debug-build.js');
const debugLogger = require('../utils/debug-logger.js');
const spanUtils = require('../utils/spanUtils.js');
/**
* Print a log message for a started span.
*/
function logSpanStart(span) {
if (!debugBuild.DEBUG_BUILD) return;
const { description = '< unknown name >', op = '< unknown op >', parent_span_id: parentSpanId } = spanUtils.spanToJSON(span);
const { spanId } = span.spanContext();
const sampled = spanUtils.spanIsSampled(span);
const rootSpan = spanUtils.getRootSpan(span);
const isRootSpan = rootSpan === span;
const header = `[Tracing] Starting ${sampled ? 'sampled' : 'unsampled'} ${isRootSpan ? 'root ' : ''}span`;
const infoParts = [`op: ${op}`, `name: ${description}`, `ID: ${spanId}`];
if (parentSpanId) {
infoParts.push(`parent ID: ${parentSpanId}`);
}
if (!isRootSpan) {
const { op, description } = spanUtils.spanToJSON(rootSpan);
infoParts.push(`root ID: ${rootSpan.spanContext().spanId}`);
if (op) {
infoParts.push(`root op: ${op}`);
}
if (description) {
infoParts.push(`root description: ${description}`);
}
}
debugLogger.debug.log(`${header}
${infoParts.join('\n ')}`);
}
/**
* Print a log message for an ended span.
*/
function logSpanEnd(span) {
if (!debugBuild.DEBUG_BUILD) return;
const { description = '< unknown name >', op = '< unknown op >' } = spanUtils.spanToJSON(span);
const { spanId } = span.spanContext();
const rootSpan = spanUtils.getRootSpan(span);
const isRootSpan = rootSpan === span;
const msg = `[Tracing] Finishing "${op}" ${isRootSpan ? 'root ' : ''}span "${description}" with ID ${spanId}`;
debugLogger.debug.log(msg);
}
exports.logSpanEnd = logSpanEnd;
exports.logSpanStart = logSpanStart;
//# sourceMappingURL=logSpans.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/Popup/PopupButtonList/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,cAAc,CAAA;AAIrB,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE/E,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;CACxC,CAUA,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4D5C,CAAA"}

View File

@@ -0,0 +1,21 @@
@import '../../scss/styles.scss';
@layer payload-default {
.gutter {
&--left {
padding-left: var(--gutter-h);
}
&--right {
padding-right: var(--gutter-h);
}
&--negative-left {
margin-left: calc(-1 * var(--gutter-h));
}
&--negative-right {
margin-right: calc(-1 * var(--gutter-h));
}
}
}

View File

@@ -0,0 +1,49 @@
import { normalizeDates } from "./_lib/normalizeDates.js";
/**
* The {@link interval} function options.
*/
/**
* The {@link interval} function result type. It resolves the proper data type.
* It uses the first argument date object type, starting from the start argument,
* then the end interval date. If a context function is passed, it uses the context
* function return type.
*/
/**
* @name interval
* @category Interval Helpers
* @summary Creates an interval object and validates its values.
*
* @description
* Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown.
*
* @typeParam StartDate - Start date type.
* @typeParam EndDate - End date type.
* @typeParam Options - Options type.
*
* @param start - The start of the interval.
* @param end - The end of the interval.
* @param options - The options object.
*
* @throws `Start date is invalid` when `start` is invalid.
* @throws `End date is invalid` when `end` is invalid.
* @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true.
*
* @returns The normalized and validated interval object.
*/
export function interval(start, end, options) {
const [_start, _end] = normalizeDates(options?.in, start, end);
if (isNaN(+_start)) throw new TypeError("Start date is invalid");
if (isNaN(+_end)) throw new TypeError("End date is invalid");
if (options?.assertPositive && +_start > +_end)
throw new TypeError("End date must be after start date");
return { start: _start, end: _end };
}
// Fallback for modularized imports:
export default interval;

View File

@@ -0,0 +1,2 @@
export { addRequestBreadcrumb, addTracePropagationHeadersToOutgoingRequest, getRequestOptions, } from '../../utils/outgoingHttpRequest';
//# sourceMappingURL=outgoing-requests.d.ts.map

View File

@@ -0,0 +1,22 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.54.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-generic-pool';
//# sourceMappingURL=version.js.map

View File

@@ -0,0 +1,3 @@
export function stringHints(schema: Schema, logic: boolean): string[];
export function numberHints(schema: Schema, logic: boolean): string[];
export type Schema = import("../validate").Schema;

View File

@@ -0,0 +1,30 @@
import { entityKind } from "../../entity.js";
import { MySqlColumn, MySqlColumnBuilder } from "./common.js";
class MySqlJsonBuilder extends MySqlColumnBuilder {
static [entityKind] = "MySqlJsonBuilder";
constructor(name) {
super(name, "json", "MySqlJson");
}
/** @internal */
build(table) {
return new MySqlJson(table, this.config);
}
}
class MySqlJson extends MySqlColumn {
static [entityKind] = "MySqlJson";
getSQLType() {
return "json";
}
mapToDriverValue(value) {
return JSON.stringify(value);
}
}
function json(name) {
return new MySqlJsonBuilder(name ?? "");
}
export {
MySqlJson,
MySqlJsonBuilder,
json
};
//# sourceMappingURL=json.js.map

View File

@@ -0,0 +1,8 @@
"use strict";
exports.subMinutesWithOptions = void 0;
var _index = require("../subMinutes.cjs");
var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const subMinutesWithOptions = (exports.subMinutesWithOptions = (0,
_index2.convertToFP)(_index.subMinutes, 3));

Some files were not shown because too many files have changed in this diff Show More