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,13 @@
import { useContext, useMemo } from 'react';
import { MotionContext } from './index.mjs';
import { getCurrentTreeVariants } from './utils.mjs';
function useCreateMotionContext(props) {
const { initial, animate } = getCurrentTreeVariants(props, useContext(MotionContext));
return useMemo(() => ({ initial, animate }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);
}
function variantLabelsAsDependency(prop) {
return Array.isArray(prop) ? prop.join(" ") : prop;
}
export { useCreateMotionContext };

View File

@@ -0,0 +1,54 @@
//#region src/types/utils.d.ts
/**
* Makes types mutable
*/
type Mutable<T> = T extends object ? { -readonly [K in keyof T]: Mutable<T[K]> } : T;
/**
* Flatten array types to their singular root
*/
type UnpackList<Item> = Item extends any[] ? Item[number] : Item;
/**
* Merge two object types with never guard
*/
type Merge<A$1, B, TypeA = NeverToUnknown<A$1>, TypeB = NeverToUnknown<B>> = { [K in keyof TypeA | keyof TypeB]: K extends keyof TypeA & keyof TypeB ? TypeA[K] | TypeB[K] : K extends keyof TypeB ? TypeB[K] : K extends keyof TypeA ? TypeA[K] : never };
/**
* Fallback never to unknown
*/
type NeverToUnknown<T> = IfNever<T, unknown>;
type IfNever<T, Y, N = T> = [T] extends [never] ? Y : N;
/**
* Test for any
*/
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
type IsAny<T> = IfAny<T, true, never>;
type IsNullable<T, Y = true, N = never> = T | null extends T ? Y : N;
type IsDateTime<T, Y, N> = T extends 'datetime' ? Y : N;
type IsNumber<T, Y, N> = T extends number ? Y : N;
type IsString<T, Y, N> = T extends string ? Y : N;
/**
* Helpers for working with unions
*/
type UnionToParm<U> = U extends any ? (k: U) => void : never;
type UnionToSect<U> = UnionToParm<U> extends ((k: infer I) => void) ? I : never;
type ExtractParm<F> = F extends {
(a: infer A): void;
} ? A : never;
type SpliceOne<Union> = Exclude<Union, ExtractOne<Union>>;
type ExtractOne<Union> = ExtractParm<UnionToSect<UnionToParm<Union>>>;
type ToTuple<Union> = ToTupleRec<Union, []>;
type ToTupleRec<Union, Rslt extends any[]> = SpliceOne<Union> extends never ? [ExtractOne<Union>, ...Rslt] : ToTupleRec<SpliceOne<Union>, [ExtractOne<Union>, ...Rslt]>;
type TupleToUnion<T extends unknown[]> = T[number];
/**
* Recursively make properties optional
*/
type NestedPartial<Item> = Item extends any[] ? UnpackList<Item> extends infer RawItem ? NestedPartial<RawItem>[] : never : Item extends object ? { [Key in keyof Item]?: NestedUnion<Item[Key]> } : Item;
type NestedUnion<Item> = TupleToUnion<ToTuplePartial<Item>>;
type ToTuplePartial<Union> = ToTuplePartialRec<Union, []>;
type ToTuplePartialRec<Union, Rslt extends any[]> = SpliceOne<Union> extends never ? [NestedPartial<ExtractOne<Union>>, ...Rslt] : ToTuplePartialRec<SpliceOne<Union>, [NestedPartial<ExtractOne<Union>>, ...Rslt]>;
/**
* Reduces a complex object type to make it readable in IDEs.
*/
type Prettify<T> = { [K in keyof T]: T[K] } & unknown;
//#endregion
export { IfAny, IfNever, IsAny, IsDateTime, IsNullable, IsNumber, IsString, Merge, Mutable, NestedPartial, NeverToUnknown, Prettify, ToTuple, TupleToUnion, UnpackList };
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1,35 @@
"use strict";
exports.setSeconds = setSeconds;
var _index = require("./toDate.cjs");
/**
* The {@link setSeconds} function options.
*/
/**
* @name setSeconds
* @category Second Helpers
* @summary Set the seconds to the given date, with context support.
*
* @description
* Set the seconds to the given date, with an optional context for time zone specification.
*
* @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 seconds - The seconds of the new date
* @param options - An object with options
*
* @returns The new date with the seconds set
*
* @example
* // Set 45 seconds to 1 September 2014 11:30:40:
* const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45)
* //=> Mon Sep 01 2014 11:30:45
*/
function setSeconds(date, seconds, options) {
const _date = (0, _index.toDate)(date, options?.in);
_date.setSeconds(seconds);
return _date;
}

View File

@@ -0,0 +1,2 @@
export { de } from '@payloadcms/translations/languages/de';
//# sourceMappingURL=de.d.ts.map

View File

@@ -0,0 +1,56 @@
import { bigint } from "./bigint.cjs";
import { binary } from "./binary.cjs";
import { boolean } from "./boolean.cjs";
import { char } from "./char.cjs";
import { customType } from "./custom.cjs";
import { date } from "./date.cjs";
import { datetime } from "./datetime.cjs";
import { decimal } from "./decimal.cjs";
import { double } from "./double.cjs";
import { singlestoreEnum } from "./enum.cjs";
import { float } from "./float.cjs";
import { int } from "./int.cjs";
import { json } from "./json.cjs";
import { mediumint } from "./mediumint.cjs";
import { real } from "./real.cjs";
import { serial } from "./serial.cjs";
import { smallint } from "./smallint.cjs";
import { longtext, mediumtext, text, tinytext } from "./text.cjs";
import { time } from "./time.cjs";
import { timestamp } from "./timestamp.cjs";
import { tinyint } from "./tinyint.cjs";
import { varbinary } from "./varbinary.cjs";
import { varchar } from "./varchar.cjs";
import { vector } from "./vector.cjs";
import { year } from "./year.cjs";
export declare function getSingleStoreColumnBuilders(): {
bigint: typeof bigint;
binary: typeof binary;
boolean: typeof boolean;
char: typeof char;
customType: typeof customType;
date: typeof date;
datetime: typeof datetime;
decimal: typeof decimal;
double: typeof double;
singlestoreEnum: typeof singlestoreEnum;
float: typeof float;
int: typeof int;
json: typeof json;
mediumint: typeof mediumint;
real: typeof real;
serial: typeof serial;
smallint: typeof smallint;
longtext: typeof longtext;
mediumtext: typeof mediumtext;
text: typeof text;
tinytext: typeof tinytext;
time: typeof time;
timestamp: typeof timestamp;
tinyint: typeof tinyint;
varbinary: typeof varbinary;
varchar: typeof varchar;
vector: typeof vector;
year: typeof year;
};
export type SingleStoreColumnBuilders = ReturnType<typeof getSingleStoreColumnBuilders>;

View File

@@ -0,0 +1 @@
{"version":3,"file":"versions.js","names":[],"sources":["../../../../src/rest/commands/read/versions.ts"],"sourcesContent":["import type { DirectusVersion } from '../../../schema/version.js';\nimport type { ApplyQueryFields, Query } from '../../../types/index.js';\nimport type { RestCommand } from '../../types.js';\nimport { throwIfEmpty } from '../../utils/index.js';\n\nexport type ReadContentVersionOutput<\n\tSchema,\n\tTQuery extends Query<Schema, Item>,\n\tItem extends object = DirectusVersion<Schema>,\n> = ApplyQueryFields<Schema, Item, TQuery['fields']>;\n\n/**\n * List all Content Versions that exist in Directus.\n * @param query The query parameters\n * @returns An array of up to limit Content Version objects. If no items are available, data will be an empty array.\n */\nexport const readContentVersions =\n\t<Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(\n\t\tquery?: TQuery,\n\t): RestCommand<ReadContentVersionOutput<Schema, TQuery>[], Schema> =>\n\t() => ({\n\t\tpath: `/versions`,\n\t\tparams: query ?? {},\n\t\tmethod: 'GET',\n\t});\n\n/**\n * List an existing COntent Version by primary key.\n * @param key The primary key of the Content Version\n * @param query The query parameters\n * @returns Returns a Content Version object if a valid primary key was provided.\n * @throws Will throw if key is empty\n */\nexport const readContentVersion =\n\t<Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(\n\t\tkey: DirectusVersion<Schema>['id'],\n\t\tquery?: TQuery,\n\t): RestCommand<ReadContentVersionOutput<Schema, TQuery>, Schema> =>\n\t() => {\n\t\tthrowIfEmpty(String(key), 'Key cannot be empty');\n\n\t\treturn {\n\t\t\tpath: `/versions/${key}`,\n\t\t\tparams: query ?? {},\n\t\t\tmethod: 'GET',\n\t\t};\n\t};\n"],"mappings":"6DAgBA,MAAa,EAEX,QAEM,CACN,KAAM,YACN,OAAQ,GAAS,EAAE,CACnB,OAAQ,MACR,EASW,GAEX,EACA,SAGA,EAAa,OAAO,EAAI,CAAE,sBAAsB,CAEzC,CACN,KAAM,aAAa,IACnB,OAAQ,GAAS,EAAE,CACnB,OAAQ,MACR"}

View File

@@ -0,0 +1,4 @@
import type { DefaultCellComponentProps } from 'payload';
import React from 'react';
export declare const QueryPresetsWhereCell: React.FC<DefaultCellComponentProps>;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,260 @@
'use strict';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
const helper = require('../helper');
/**
* Default arguments for the `--ignore` option.
* @type {string[]}
*/
const DEFAULT_IGNORE = ['node_modules'];
/**
* Schema for the `upload-sourcemaps` command.
* @type {import('../helper').OptionsSchema}
*/
const SOURCEMAPS_SCHEMA = require('./options/uploadSourcemaps');
/**
* Schema for the `deploys new` command.
* @type {import('../helper').OptionsSchema}
*/
const DEPLOYS_SCHEMA = require('./options/deploys');
/**
* @typedef {import('../types').SentryCliUploadSourceMapsOptions} SentryCliUploadSourceMapsOptions
* @typedef {import('../types').SourceMapsPathDescriptor} SourceMapsPathDescriptor
* @typedef {import('../types').SentryCliNewDeployOptions} SentryCliNewDeployOptions
* @typedef {import('../types').SentryCliCommitsOptions} SentryCliCommitsOptions
*/
/**
* Manages releases and release artifacts on Sentry.
* @namespace SentryReleases
*/
class Releases {
/**
* Creates a new `Releases` instance.
*
* @param {Object} [options] More options to pass to the CLI
*/
constructor(options) {
this.options = options || {};
if (typeof this.options.configFile === 'string') {
this.configFile = this.options.configFile;
}
delete this.options.configFile;
}
/**
* Registers a new release with sentry.
*
* The given release name should be unique and deterministic. It can later be used to
* upload artifacts, such as source maps.
*
* @param {string} release Unique name of the new release.
* @param {{projects?: string[]}} [options] The list of project slugs for a release.
* @returns {Promise<string>} A promise that resolves when the release has been created.
* @memberof SentryReleases
*/
new(release, options) {
return __awaiter(this, void 0, void 0, function* () {
const args = ['releases', 'new', release].concat(helper.getProjectFlagsFromOptions(options));
return this.execute(args, null);
});
}
/**
* Specifies the set of commits covered in this release.
*
* @param {string} release Unique name of the release
* @param {SentryCliCommitsOptions} options A set of options to configure the commits to include
* @returns {Promise<string>} A promise that resolves when the commits have been associated
* @memberof SentryReleases
*/
setCommits(release, options) {
return __awaiter(this, void 0, void 0, function* () {
if (!options || (!options.auto && (!options.repo || !options.commit))) {
throw new Error('options.auto, or options.repo and options.commit must be specified');
}
let commitFlags = [];
if (options.auto) {
commitFlags = ['--auto'];
}
else if (options.previousCommit) {
commitFlags = ['--commit', `${options.repo}@${options.previousCommit}..${options.commit}`];
}
else {
commitFlags = ['--commit', `${options.repo}@${options.commit}`];
}
if (options.ignoreMissing) {
commitFlags.push('--ignore-missing');
}
return this.execute(['releases', 'set-commits', release].concat(commitFlags), false);
});
}
/**
* Marks this release as complete. This should be called once all artifacts has been
* uploaded.
*
* @param {string} release Unique name of the release.
* @returns {Promise<string>} A promise that resolves when the release has been finalized.
* @memberof SentryReleases
*/
finalize(release) {
return __awaiter(this, void 0, void 0, function* () {
return this.execute(['releases', 'finalize', release], null);
});
}
/**
* Creates a unique, deterministic version identifier based on the project type and
* source files. This identifier can be used as release name.
*
* @returns {Promise<string>} A promise that resolves to the version string.
* @memberof SentryReleases
*/
proposeVersion() {
return __awaiter(this, void 0, void 0, function* () {
const version = yield this.execute(['releases', 'propose-version'], null);
return version.trim();
});
}
/**
* Scans the given include folders for JavaScript source maps and uploads them to the
* specified release for processing.
*
* The options require an `include` array, which is a list of directories to scan.
* Additionally, it supports to ignore certain files, validate and preprocess source
* maps and define a URL prefix.
*
* @example
* await cli.releases.uploadSourceMaps(cli.releases.proposeVersion(), {
* // required options:
* include: ['build'],
*
* // default options:
* ignore: ['node_modules'], // globs for files to ignore
* ignoreFile: null, // path to a file with ignore rules
* rewrite: false, // preprocess sourcemaps before uploading
* sourceMapReference: true, // add a source map reference to source files
* dedupe: true, // deduplicate already uploaded files
* stripPrefix: [], // remove certain prefixes from filenames
* stripCommonPrefix: false, // guess common prefixes to remove from filenames
* validate: false, // validate source maps and cancel the upload on error
* urlPrefix: '', // add a prefix source map urls after stripping them
* urlSuffix: '', // add a suffix source map urls after stripping them
* ext: ['js', 'map', 'jsbundle', 'bundle'], // override file extensions to scan for
* projects: ['node'], // provide a list of projects
* decompress: false // decompress gzip files before uploading
* live: true // whether to inherit stdio to display `sentry-cli` output directly.
* });
*
* @param {string} release Unique name of the release.
* @param {SentryCliUploadSourceMapsOptions & {live?: boolean | 'rejectOnError'}} options Options to configure the source map upload.
* @returns {Promise<string[]>} A promise that resolves when the upload has completed successfully.
* @memberof SentryReleases
*/
uploadSourceMaps(release, options) {
return __awaiter(this, void 0, void 0, function* () {
if (!options || !options.include || !Array.isArray(options.include)) {
throw new Error('`options.include` must be a valid array of paths and/or path descriptor objects.');
}
// Each entry in the `include` array will map to an array of promises, which
// will in turn contain one promise per literal path value. Thus `uploads`
// will be an array of Promise arrays, which we'll flatten later.
const uploads = options.include.map((includeEntry) => {
let pathOptions;
let uploadPaths;
if (typeof includeEntry === 'object') {
pathOptions = includeEntry;
uploadPaths = includeEntry.paths;
if (!Array.isArray(uploadPaths)) {
throw new Error(`Path descriptor objects in \`options.include\` must contain a \`paths\` array. Got ${includeEntry}.`);
}
}
// `includeEntry` should be a string, which we can wrap in an array to
// match the `paths` property in the descriptor object type
else {
pathOptions = {};
uploadPaths = [includeEntry];
}
const newOptions = Object.assign(Object.assign({}, options), pathOptions);
if (!newOptions.ignoreFile && !newOptions.ignore) {
newOptions.ignore = DEFAULT_IGNORE;
}
// args which apply to the entire `include` entry (everything besides the path)
const args = ['sourcemaps', 'upload']
.concat(helper.getProjectFlagsFromOptions(options))
.concat(['--release', release]);
return uploadPaths.map((path) =>
// `execute()` is async and thus we're returning a promise here
this.execute(helper.prepareCommand([...args, path], SOURCEMAPS_SCHEMA, newOptions), options.live != null ? options.live : true));
});
// `uploads` is an array of Promise arrays, which needs to be flattened
// before being passed to `Promise.all()`. (`Array.flat()` doesn't exist in
// Node < 11; this polyfill takes advantage of the fact that `concat()` is
// willing to accept an arbitrary number of items to add to and/or iterables
// to unpack into the given array.)
return Promise.all([].concat(...uploads));
});
}
/**
* List all deploys for a given release.
*
* @param {string} release Unique name of the release.
* @returns {Promise<string>} A promise that resolves when the list comes back from the server.
* @memberof SentryReleases
*/
listDeploys(release) {
return __awaiter(this, void 0, void 0, function* () {
return this.execute(['releases', 'deploys', release, 'list'], null);
});
}
/**
* Creates a new release deployment. This should be called after the release has been
* finalized, while deploying on a given environment.
*
* @example
* await cli.releases.newDeploy(cli.releases.proposeVersion(), {
* // required options:
* env: 'production', // environment for this release. Values that make sense here would be 'production' or 'staging'
*
* // optional options:
* started: 42, // unix timestamp when the deployment started
* finished: 1337, // unix timestamp when the deployment finished
* time: 1295, // deployment duration in seconds. This can be specified alternatively to `started` and `finished`
* name: 'PickleRick', // human readable name for this deployment
* url: 'https://example.com', // URL that points to the deployment
* });
*
* @param {string} release Unique name of the release.
* @param {SentryCliNewDeployOptions} options Options to configure the new release deploy.
* @returns {Promise<string>} A promise that resolves when the deploy has been created.
* @memberof SentryReleases
*/
newDeploy(release, options) {
return __awaiter(this, void 0, void 0, function* () {
if (!options || !options.env) {
throw new Error('options.env must be a valid name');
}
const args = ['releases', 'deploys', release, 'new'];
return this.execute(helper.prepareCommand(args, DEPLOYS_SCHEMA, options), null);
});
}
/**
* See {helper.execute} docs.
* @param {string[]} args Command line arguments passed to `sentry-cli`.
* @param {boolean | 'rejectOnError'} live can be set to:
* - `true` to inherit stdio to display `sentry-cli` output directly.
* - `false` to not inherit stdio and return the output as a string.
* - `'rejectOnError'` to inherit stdio and reject the promise if the command
* exits with a non-zero exit code.
* @returns {Promise<string>} A promise that resolves to the standard output.
*/
execute(args, live) {
return __awaiter(this, void 0, void 0, function* () {
return helper.execute(args, live, this.options.silent, this.configFile, this.options);
});
}
}
module.exports = Releases;

View File

@@ -0,0 +1,78 @@
var AND_REGEXP = /^\s+and\s+(.*)/i
var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i
function flatten(array) {
if (!Array.isArray(array)) return [array]
return array.reduce(function (a, b) {
return a.concat(flatten(b))
}, [])
}
function find(string, predicate) {
for (var max = string.length, n = 1; n <= max; n++) {
var parsed = string.substr(-n, n)
if (predicate(parsed, n, max)) {
return string.slice(0, -n)
}
}
return ''
}
function matchQuery(all, query) {
var node = { query: query }
if (query.indexOf('not ') === 0) {
node.not = true
query = query.slice(4)
}
for (var name in all) {
var type = all[name]
var match = query.match(type.regexp)
if (match) {
node.type = name
for (var i = 0; i < type.matches.length; i++) {
node[type.matches[i]] = match[i + 1]
}
return node
}
}
node.type = 'unknown'
return node
}
function matchBlock(all, string, qs) {
var node
return find(string, function (parsed, n, max) {
if (AND_REGEXP.test(parsed)) {
node = matchQuery(all, parsed.match(AND_REGEXP)[1])
node.compose = 'and'
qs.unshift(node)
return true
} else if (OR_REGEXP.test(parsed)) {
node = matchQuery(all, parsed.match(OR_REGEXP)[1])
node.compose = 'or'
qs.unshift(node)
return true
} else if (n === max) {
node = matchQuery(all, parsed.trim())
node.compose = 'or'
qs.unshift(node)
return true
}
return false
})
}
module.exports = function parse(all, queries) {
if (!Array.isArray(queries)) queries = [queries]
return flatten(
queries.map(function (block) {
var qs = []
do {
block = matchBlock(all, block, qs)
} while (block)
return qs
})
)
}

View File

@@ -0,0 +1,33 @@
/// <reference types="node" />
// See https://github.com/nodejs/undici/issues/1740
export type DOMException = typeof globalThis extends { DOMException: infer T }
? T
: any
export interface EventInit {
bubbles?: boolean
cancelable?: boolean
composed?: boolean
}
export interface EventListenerOptions {
capture?: boolean
}
export interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean
passive?: boolean
signal?: AbortSignal
}
export type EventListenerOrEventListenerObject = EventListener | EventListenerObject
export interface EventListenerObject {
handleEvent (object: Event): void
}
export interface EventListener {
(evt: Event): void
}

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env node
"use strict";
require("../tools/exit.cjs");
try {
require("source-map-support").install();
} catch (err) {}
const fs = require("fs");
const path = require("path");
const program = require("commander");
const packageJson = require("../package.json");
const { _run_cli: run_cli } = require("..");
run_cli({ program, packageJson, fs, path }).catch((error) => {
console.error(error);
process.exitCode = 1;
});

View File

@@ -0,0 +1,34 @@
"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.semconvStabilityFromStr = exports.SemconvStability = exports.safeExecuteInTheMiddleAsync = exports.safeExecuteInTheMiddle = exports.isWrapped = exports.InstrumentationNodeModuleFile = exports.InstrumentationNodeModuleDefinition = exports.InstrumentationBase = exports.registerInstrumentations = void 0;
var autoLoader_1 = require("./autoLoader");
Object.defineProperty(exports, "registerInstrumentations", { enumerable: true, get: function () { return autoLoader_1.registerInstrumentations; } });
var index_1 = require("./platform/index");
Object.defineProperty(exports, "InstrumentationBase", { enumerable: true, get: function () { return index_1.InstrumentationBase; } });
var instrumentationNodeModuleDefinition_1 = require("./instrumentationNodeModuleDefinition");
Object.defineProperty(exports, "InstrumentationNodeModuleDefinition", { enumerable: true, get: function () { return instrumentationNodeModuleDefinition_1.InstrumentationNodeModuleDefinition; } });
var instrumentationNodeModuleFile_1 = require("./instrumentationNodeModuleFile");
Object.defineProperty(exports, "InstrumentationNodeModuleFile", { enumerable: true, get: function () { return instrumentationNodeModuleFile_1.InstrumentationNodeModuleFile; } });
var utils_1 = require("./utils");
Object.defineProperty(exports, "isWrapped", { enumerable: true, get: function () { return utils_1.isWrapped; } });
Object.defineProperty(exports, "safeExecuteInTheMiddle", { enumerable: true, get: function () { return utils_1.safeExecuteInTheMiddle; } });
Object.defineProperty(exports, "safeExecuteInTheMiddleAsync", { enumerable: true, get: function () { return utils_1.safeExecuteInTheMiddleAsync; } });
var semconvStability_1 = require("./semconvStability");
Object.defineProperty(exports, "SemconvStability", { enumerable: true, get: function () { return semconvStability_1.SemconvStability; } });
Object.defineProperty(exports, "semconvStabilityFromStr", { enumerable: true, get: function () { return semconvStability_1.semconvStabilityFromStr; } });
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,9 @@
'use strict'
module.exports = testFile => {
// Ignore coverage on files that do not have a direct corollary.
if (testFile.startsWith('test/')) return false
// Indicate the matching name, sans '.test.js', should be checked for coverage.
return testFile.replace(/\.test\.js$/, '.js')
}

View File

@@ -0,0 +1,27 @@
import { entityKind } from "../../entity.js";
import { MySqlColumn, MySqlColumnBuilder } from "./common.js";
class MySqlYearBuilder extends MySqlColumnBuilder {
static [entityKind] = "MySqlYearBuilder";
constructor(name) {
super(name, "number", "MySqlYear");
}
/** @internal */
build(table) {
return new MySqlYear(table, this.config);
}
}
class MySqlYear extends MySqlColumn {
static [entityKind] = "MySqlYear";
getSQLType() {
return `year`;
}
}
function year(name) {
return new MySqlYearBuilder(name ?? "");
}
export {
MySqlYear,
MySqlYearBuilder,
year
};
//# sourceMappingURL=year.js.map

View File

@@ -0,0 +1,41 @@
import { GLOBAL_OBJ } from '../utils/worldwide.js';
import { addHandler, maybeInstrument, triggerHandlers } from './handlers.js';
let _oldOnUnhandledRejectionHandler = null;
/**
* Add an instrumentation handler for when an unhandled promise rejection is captured.
*
* Use at your own risk, this might break without changelog notice, only used internally.
* @hidden
*/
function addGlobalUnhandledRejectionInstrumentationHandler(
handler,
) {
const type = 'unhandledrejection';
addHandler(type, handler);
maybeInstrument(type, instrumentUnhandledRejection);
}
function instrumentUnhandledRejection() {
_oldOnUnhandledRejectionHandler = GLOBAL_OBJ.onunhandledrejection;
// Note: The reason we are doing window.onunhandledrejection instead of window.addEventListener('unhandledrejection')
// is that we are using this handler in the Loader Script, to handle buffered rejections consistently
GLOBAL_OBJ.onunhandledrejection = function (e) {
const handlerData = e;
triggerHandlers('unhandledrejection', handlerData);
if (_oldOnUnhandledRejectionHandler) {
// eslint-disable-next-line prefer-rest-params
return _oldOnUnhandledRejectionHandler.apply(this, arguments);
}
return true;
};
GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
}
export { addGlobalUnhandledRejectionInstrumentationHandler };
//# sourceMappingURL=globalUnhandledRejection.js.map

View File

@@ -0,0 +1,9 @@
'use strict'
const pino = require('../..')
const transport = pino.transport({
target: 'pino/file',
options: { destination: '1' }
})
const logger = pino(transport)
logger.info('Hello')

View File

@@ -0,0 +1,15 @@
import type { DocumentSlots, Locale, PayloadRequest, SanitizedCollectionConfig, SanitizedGlobalConfig, SanitizedPermissions, ServerFunction } from 'payload';
export declare const renderDocumentSlots: (args: {
collectionConfig?: SanitizedCollectionConfig;
globalConfig?: SanitizedGlobalConfig;
hasSavePermission: boolean;
id?: number | string;
locale: Locale;
permissions: SanitizedPermissions;
req: PayloadRequest;
}) => DocumentSlots;
export declare const renderDocumentSlotsHandler: ServerFunction<{
collectionSlug: string;
id?: number | string;
}>;
//# sourceMappingURL=renderDocumentSlots.d.ts.map

View File

@@ -0,0 +1,2 @@
const e=(e=`item`)=>()=>({method:`GET`,path:e===`item`?`/server/specs/graphql`:`/server/specs/graphql/system`});exports.readGraphqlSdl=e;
//# sourceMappingURL=graphql.cjs.map

View File

@@ -0,0 +1 @@
const A=r=>r!==null&&typeof r=="object",a=(r,t)=>Object.assign(new Error(`[${r}]: ${t}`),{code:r}),_="ERR_INVALID_PACKAGE_CONFIG",E="ERR_INVALID_PACKAGE_TARGET",I="ERR_PACKAGE_PATH_NOT_EXPORTED",P="ERR_PACKAGE_IMPORT_NOT_DEFINED",R=/^\d+$/,O=/^(\.{1,2}|node_modules)$/i,w=/\/|\\/;var h=(r=>(r.Export="exports",r.Import="imports",r))(h||{});const f=(r,t,e,o,c)=>{if(t==null)return[];if(typeof t=="string"){const[n,...i]=t.split(w);if(n===".."||i.some(l=>O.test(l)))throw a(E,`Invalid "${r}" target "${t}" defined in the package config`);return[c?t.replace(/\*/g,c):t]}if(Array.isArray(t))return t.flatMap(n=>f(r,n,e,o,c));if(A(t)){for(const n of Object.keys(t)){if(R.test(n))throw a(_,"Cannot contain numeric property keys");if(n==="default"||o.includes(n))return f(r,t[n],e,o,c)}return[]}throw a(E,`Invalid "${r}" target "${t}"`)},s="*",m=(r,t)=>{const e=r.indexOf(s),o=t.indexOf(s);return e===o?t.length>r.length:o>e};function d(r,t){if(!t.includes(s)&&r.hasOwnProperty(t))return[t];let e,o;for(const c of Object.keys(r))if(c.includes(s)){const[n,i,l]=c.split(s);if(l===void 0&&t.startsWith(n)&&t.endsWith(i)){const g=t.slice(n.length,-i.length||void 0);g&&(!e||m(e,c))&&(e=c,o=g)}}return[e,o]}const p=r=>Object.keys(r).reduce((t,e)=>{const o=e===""||e[0]!==".";if(t===void 0||t===o)return o;throw a(_,'"exports" cannot contain some keys starting with "." and some not')},void 0),u=/^\w+:/,v=(r,t,e)=>{if(!r)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof r=="string"||Array.isArray(r)||A(r)&&p(r))&&(r={".":r});const[o,c]=d(r,t),n=f(h.Export,r[o],t,e,c);if(n.length===0)throw a(I,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const i of n)if(!i.startsWith("./")&&!u.test(i))throw a(E,`Invalid "exports" target "${i}" defined in the package config`);return n},T=(r,t,e)=>{if(!r)throw new Error('"imports" is required');const[o,c]=d(r,t),n=f(h.Import,r[o],t,e,c);if(n.length===0)throw a(P,`Package import specifier "${t}" is not defined in package`);return n};export{v as resolveExports,T as resolveImports};

View File

@@ -0,0 +1 @@
module.exports={A:{D:{"1":"0 1 2 3 4 5 6 7 8 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","33":"9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 6 7 8 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","33":"C L M G N O P Q H R S T U V W X"},C:{"1":"0 1 2 3 4 5 6 7 8 YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C","2":"9 0C VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R 4C 5C"},M:{"1":"OC"},A:{"2":"K D E F zC","33":"A B"},F:{"1":"0 1 2 3 4 5 6 7 8 KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C JD KD LD MD PC xC ND QC","33":"9 G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC"},K:{"1":"H","2":"A B C PC xC QC"},E:{"1":"G CD DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC vC wC","2":"ID","33":"J bB K D E F A B C L M 6C bC 7C 8C 9C AD cC PC QC BD"},G:{"1":"gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC","33":"E bC OD yC PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD fD"},P:{"1":"9 AB BB CB DB EB FB GB HB IB 2D SC TC UC 3D","33":"J tD uD vD wD xD cC yD zD 0D 1D"},I:{"1":"I","2":"VC J nD oD pD qD yC","33":"rD sD"}},B:6,C:"::file-selector-button CSS pseudo-element",D:undefined};

View File

@@ -0,0 +1,7 @@
export declare const setMillisecondsWithOptions: import("./types.js").FPFn3<
Date,
| import("../setMilliseconds.js").SetMillisecondsOptions<Date>
| undefined,
number,
import("../fp.js").DateArg<Date>
>;

View File

@@ -0,0 +1,8 @@
import type { GraphQLInfo, SanitizedConfig } from 'payload';
type InitCollectionsGraphQLArgs = {
config: SanitizedConfig;
graphqlResult: GraphQLInfo;
};
export declare function initCollections({ config, graphqlResult }: InitCollectionsGraphQLArgs): void;
export {};
//# sourceMappingURL=initCollections.d.ts.map

View File

@@ -0,0 +1,18 @@
/**
* Converts `iterator` to an array.
*
* @private
* @param {Object} iterator The iterator to convert.
* @returns {Array} Returns the converted array.
*/
function iteratorToArray(iterator) {
var data,
result = [];
while (!(data = iterator.next()).done) {
result.push(data.value);
}
return result;
}
module.exports = iteratorToArray;

View File

@@ -0,0 +1,73 @@
html2canvas
===========
[Homepage](https://html2canvas.hertzen.com) | [Downloads](https://github.com/niklasvh/html2canvas/releases) | [Questions](https://github.com/niklasvh/html2canvas/discussions/categories/q-a)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/niklasvh/html2canvas?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
![CI](https://github.com/niklasvh/html2canvas/workflows/CI/badge.svg?branch=master)
[![NPM Downloads](https://img.shields.io/npm/dm/html2canvas.svg)](https://www.npmjs.org/package/html2canvas)
[![NPM Version](https://img.shields.io/npm/v/html2canvas.svg)](https://www.npmjs.org/package/html2canvas)
#### JavaScript HTML renderer ####
The script allows you to take "screenshots" of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.
### How does it work? ###
The script renders the current page as a canvas image, by reading the DOM and the different styles applied to the elements.
It does **not require any rendering from the server**, as the whole image is created on the **client's browser**. However, as it is heavily dependent on the browser, this library is *not suitable* to be used in nodejs.
It doesn't magically circumvent any browser content policy restrictions either, so rendering cross-origin content will require a [proxy](https://github.com/niklasvh/html2canvas/wiki/Proxies) to get the content to the [same origin](http://en.wikipedia.org/wiki/Same_origin_policy).
The script is still in a **very experimental state**, so I don't recommend using it in a production environment nor start building applications with it yet, as there will be still major changes made.
### Browser compatibility ###
The library should work fine on the following browsers (with `Promise` polyfill):
* Firefox 3.5+
* Google Chrome
* Opera 12+
* IE9+
* Safari 6+
As each CSS property needs to be manually built to be supported, there are a number of properties that are not yet supported.
### Usage ###
The html2canvas library utilizes `Promise`s and expects them to be available in the global context. If you wish to
support [older browsers](http://caniuse.com/#search=promise) that do not natively support `Promise`s, please include a polyfill such as
[es6-promise](https://github.com/jakearchibald/es6-promise) before including `html2canvas`.
To render an `element` with html2canvas, simply call:
` html2canvas(element[, options]);`
The function returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) containing the `<canvas>` element. Simply add a promise fulfillment handler to the promise using `then`:
html2canvas(document.body).then(function(canvas) {
document.body.appendChild(canvas);
});
### Building ###
You can download ready builds [here](https://github.com/niklasvh/html2canvas/releases).
Clone git repository:
$ git clone git://github.com/niklasvh/html2canvas.git
Install dependencies:
$ npm install
Build browser bundle
$ npm run build
### Examples ###
For more information and examples, please visit the [homepage](https://html2canvas.hertzen.com) or try the [test console](https://html2canvas.hertzen.com/tests/).
### Contributing ###
If you wish to contribute to the project, please send the pull requests to the develop branch. Before submitting any changes, try and test that the changes work with all the support browsers. If some CSS property isn't supported or is incomplete, please create appropriate tests for it as well before submitting any code changes.

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"zC","8":"K D E","260":"F A B"},B:{"1":"0 1 2 3 4 5 6 7 8 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I"},C:{"1":"0 1 2 3 4 5 6 7 8 AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C","2":"0C","132":"VC 4C 5C","260":"9 J bB K D E F A B C L M G N O P cB"},D:{"1":"0 1 2 3 4 5 6 7 8 FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","132":"J bB","260":"9 K D E F A B C L M G N O P cB AB BB CB DB EB"},E:{"1":"D E F A B C L M G 8C 9C AD cC PC QC BD CD DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC vC wC ID","132":"J 6C bC","260":"bB K 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","132":"F B JD KD LD MD","260":"C PC xC ND QC"},G:{"1":"E RD SD TD UD VD WD XD YD ZD aD bD cD dD eD fD gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC","132":"bC","260":"OD yC PD QD"},H:{"132":"mD"},I:{"1":"I rD sD","132":"nD","260":"VC J oD pD qD yC"},J:{"260":"D A"},K:{"1":"H","132":"A","260":"B C PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"260":"A B"},O:{"1":"RC"},P:{"1":"9 J AB BB CB DB EB FB GB HB IB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D"},Q:{"1":"4D"},R:{"1":"5D"},S:{"1":"6D 7D"}},B:1,C:"HTML5 semantic elements",D:true};

View File

@@ -0,0 +1,71 @@
import { is } from "../entity.js";
import { SQL } from "../sql/sql.js";
import { Subquery } from "../subquery.js";
import { Table } from "../table.js";
import { ViewBaseConfig } from "../view-common.js";
import { CheckBuilder } from "./checks.js";
import { ForeignKeyBuilder } from "./foreign-keys.js";
import { IndexBuilder } from "./indexes.js";
import { PrimaryKeyBuilder } from "./primary-keys.js";
import { SQLiteTable } from "./table.js";
import { UniqueConstraintBuilder } from "./unique-constraint.js";
function getTableConfig(table) {
const columns = Object.values(table[SQLiteTable.Symbol.Columns]);
const indexes = [];
const checks = [];
const primaryKeys = [];
const uniqueConstraints = [];
const foreignKeys = Object.values(table[SQLiteTable.Symbol.InlineForeignKeys]);
const name = table[Table.Symbol.Name];
const extraConfigBuilder = table[SQLiteTable.Symbol.ExtraConfigBuilder];
if (extraConfigBuilder !== void 0) {
const extraConfig = extraConfigBuilder(table[SQLiteTable.Symbol.Columns]);
const extraValues = Array.isArray(extraConfig) ? extraConfig.flat(1) : Object.values(extraConfig);
for (const builder of Object.values(extraValues)) {
if (is(builder, IndexBuilder)) {
indexes.push(builder.build(table));
} else if (is(builder, CheckBuilder)) {
checks.push(builder.build(table));
} else if (is(builder, UniqueConstraintBuilder)) {
uniqueConstraints.push(builder.build(table));
} else if (is(builder, PrimaryKeyBuilder)) {
primaryKeys.push(builder.build(table));
} else if (is(builder, ForeignKeyBuilder)) {
foreignKeys.push(builder.build(table));
}
}
}
return {
columns,
indexes,
foreignKeys,
checks,
primaryKeys,
uniqueConstraints,
name
};
}
function extractUsedTable(table) {
if (is(table, SQLiteTable)) {
return [`${table[Table.Symbol.BaseName]}`];
}
if (is(table, Subquery)) {
return table._.usedTables ?? [];
}
if (is(table, SQL)) {
return table.usedTables ?? [];
}
return [];
}
function getViewConfig(view) {
return {
...view[ViewBaseConfig]
// ...view[SQLiteViewConfig],
};
}
export {
extractUsedTable,
getTableConfig,
getViewConfig
};
//# sourceMappingURL=utils.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 Heading1 = createLucideIcon("Heading1", [
["path", { d: "M4 12h8", key: "17cfdx" }],
["path", { d: "M4 18V6", key: "1rz3zl" }],
["path", { d: "M12 18V6", key: "zqpxq5" }],
["path", { d: "m17 12 3-2v8", key: "1hhhft" }]
]);
export { Heading1 as default };
//# sourceMappingURL=heading-1.js.map

View File

@@ -0,0 +1,42 @@
{
"name": "@lexical/history",
"description": "This package contains selection history helpers for Lexical.",
"keywords": [
"lexical",
"editor",
"rich-text",
"history"
],
"license": "MIT",
"version": "0.35.0",
"main": "LexicalHistory.js",
"types": "index.d.ts",
"dependencies": {
"@lexical/utils": "0.35.0",
"lexical": "0.35.0"
},
"repository": {
"type": "git",
"url": "https://github.com/facebook/lexical",
"directory": "packages/lexical-history"
},
"module": "LexicalHistory.mjs",
"sideEffects": false,
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"development": "./LexicalHistory.dev.mjs",
"production": "./LexicalHistory.prod.mjs",
"node": "./LexicalHistory.node.mjs",
"default": "./LexicalHistory.mjs"
},
"require": {
"types": "./index.d.ts",
"development": "./LexicalHistory.dev.js",
"production": "./LexicalHistory.prod.js",
"default": "./LexicalHistory.js"
}
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* Checks if a given element matches a selector.
*
* @param node the element
* @param selector the selector
*/
export default function matches(node: Element, selector: string): boolean;

View File

@@ -0,0 +1,36 @@
import { startOfQuarter } from "./startOfQuarter.mjs";
/**
* @name isSameQuarter
* @category Quarter Helpers
* @summary Are the given dates in the same quarter (and year)?
*
* @description
* Are the given dates in the same quarter (and year)?
*
* @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 dateLeft - The first date to check
* @param dateRight - The second date to check
* @returns The dates are in the same quarter (and year)
*
* @example
* // Are 1 January 2014 and 8 March 2014 in the same quarter?
* const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8))
* //=> true
*
* @example
* // Are 1 January 2014 and 1 January 2015 in the same quarter?
* const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1))
* //=> false
*/
export function isSameQuarter(dateLeft, dateRight) {
const dateLeftStartOfQuarter = startOfQuarter(dateLeft);
const dateRightStartOfQuarter = startOfQuarter(dateRight);
return +dateLeftStartOfQuarter === +dateRightStartOfQuarter;
}
// Fallback for modularized imports:
export default isSameQuarter;

View File

@@ -0,0 +1,34 @@
import { entityKind } from "../../entity.js";
import { PgColumn } from "./common.js";
import { PgIntColumnBaseBuilder } from "./int.common.js";
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
static [entityKind] = "PgSmallIntBuilder";
constructor(name) {
super(name, "number", "PgSmallInt");
}
/** @internal */
build(table) {
return new PgSmallInt(table, this.config);
}
}
class PgSmallInt extends PgColumn {
static [entityKind] = "PgSmallInt";
getSQLType() {
return "smallint";
}
mapFromDriverValue = (value) => {
if (typeof value === "string") {
return Number(value);
}
return value;
};
}
function smallint(name) {
return new PgSmallIntBuilder(name ?? "");
}
export {
PgSmallInt,
PgSmallIntBuilder,
smallint
};
//# sourceMappingURL=smallint.js.map

View File

@@ -0,0 +1,17 @@
export const generateTransitionClasses = (baseClass) => {
if (baseClass) {
return ({
appear: `${baseClass}--appear`,
appearActive: `${baseClass}--appearActive`,
appearDone: `${baseClass}--appearDone`,
enter: `${baseClass}--enter`,
enterActive: `${baseClass}--enterActive`,
enterDone: `${baseClass}--enterDone`,
exit: `${baseClass}--exit`,
exitActive: `${baseClass}--exitActive`,
exitDone: `${baseClass}--exitDone`,
});
}
return {};
};
//# sourceMappingURL=generateTransitionClasses.js.map

View File

@@ -0,0 +1,88 @@
"use strict";
exports.differenceInBusinessDays = differenceInBusinessDays;
var _index = require("./addDays.js");
var _index2 = require("./differenceInCalendarDays.js");
var _index3 = require("./isSameDay.js");
var _index4 = require("./isValid.js");
var _index5 = require("./isWeekend.js");
var _index6 = require("./toDate.js");
/**
* @name differenceInBusinessDays
* @category Day Helpers
* @summary Get the number of business days between the given dates.
*
* @description
* Get the number of business day periods between the given dates.
* Business days being days that arent in the weekend.
* Like `differenceInCalendarDays`, the function removes the times from
* the dates before calculating the difference.
*
* @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 dateLeft - The later date
* @param dateRight - The earlier date
*
* @returns The number of business days
*
* @example
* // How many business days are between
* // 10 January 2014 and 20 July 2014?
* const result = differenceInBusinessDays(
* new Date(2014, 6, 20),
* new Date(2014, 0, 10)
* )
* //=> 136
*
* // How many business days are between
* // 30 November 2021 and 1 November 2021?
* const result = differenceInBusinessDays(
* new Date(2021, 10, 30),
* new Date(2021, 10, 1)
* )
* //=> 21
*
* // How many business days are between
* // 1 November 2021 and 1 December 2021?
* const result = differenceInBusinessDays(
* new Date(2021, 10, 1),
* new Date(2021, 11, 1)
* )
* //=> -22
*
* // How many business days are between
* // 1 November 2021 and 1 November 2021 ?
* const result = differenceInBusinessDays(
* new Date(2021, 10, 1),
* new Date(2021, 10, 1)
* )
* //=> 0
*/
function differenceInBusinessDays(dateLeft, dateRight) {
const _dateLeft = (0, _index6.toDate)(dateLeft);
let _dateRight = (0, _index6.toDate)(dateRight);
if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))
return NaN;
const calendarDifference = (0, _index2.differenceInCalendarDays)(
_dateLeft,
_dateRight,
);
const sign = calendarDifference < 0 ? -1 : 1;
const weeks = Math.trunc(calendarDifference / 7);
let result = weeks * 5;
_dateRight = (0, _index.addDays)(_dateRight, weeks * 7);
// the loop below will run at most 6 times to account for the remaining days that don't makeup a full week
while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {
// sign is used to account for both negative and positive differences
result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;
_dateRight = (0, _index.addDays)(_dateRight, sign);
}
// Prevent negative zero
return result === 0 ? 0 : result;
}

View File

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

View File

@@ -0,0 +1,602 @@
export const zhTranslations = {
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: '缺少电子邮件。',
missingIDOfDocument: '缺少文档 ID 以更新。',
missingIDOfVersion: '缺少版本的 ID。',
missingRequiredData: '缺少必要的数据。',
noFilesUploaded: '没有上传文件。',
noMatchedField: '找不到与「{{label}}」匹配的字段',
notAllowedToAccessPage: '您无权访问此页面。',
notAllowedToPerformAction: '您无权执行此操作。',
notFound: '没有找到请求的资源。',
noUser: '没有用户',
previewing: '预览该文档时出现了问题。',
problemUploadingFile: '上传文件时出现了问题。',
restoringTitle: '恢复 {{title}} 时出现错误。请检查您的连接并重试。',
revertingDocument: '在还原此文档时出现了问题。',
tokenInvalidOrExpired: '令牌无效或已过期。',
tokenNotProvided: '未提供令牌。',
unableToCopy: '无法复制。',
unableToDeleteCount: '无法从 {{total}} 个 {{label}} 中删除 {{count}} 个。',
unableToReindexCollection: '重新索引集合 {{collection}} 时出错。操作已中止。',
unableToUpdateCount: '无法在 {{total}} 个 {{label}} 中更新 {{count}} 个。',
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: '正在从 {{fromFolder}} 文件夹中移出 {{title}}',
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: '您即将用 {{from}} 覆盖 {{label}} {{title}} 中的 {{to}}。您确定吗?',
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}} 个来自 {{collections}} 的 {{total}} 个文档,并跳过了 {{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: '粘贴网址',
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: '此项仅可选择"是"或"否"。',
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 zh = {
dateFNSKey: 'zh-CN',
translations: zhTranslations
};
//# sourceMappingURL=zh.js.map

View File

@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "es6",
"lib": [ "es2015", "dom" ],
"module": "commonjs",
"noEmit": true,
"strict": true,
"esModuleInterop": true
},
"exclude": [
"./test/types/*.test-d.ts",
"./*.d.ts"
]
}

View File

@@ -0,0 +1,2 @@
export type { Modifier, Modifiers } from './types';
export { applyModifiers } from './applyModifiers';

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/libsql/http/index.ts"],"sourcesContent":["import { type Client, type Config, createClient } from '@libsql/client/http';\nimport { type DrizzleConfig, isConfig } from '~/utils.ts';\nimport { construct, type LibSQLDatabase } from '../driver-core.ts';\n\nexport function drizzle<\n\tTSchema extends Record<string, unknown> = Record<string, never>,\n\tTClient extends Client = Client,\n>(\n\t...params: [\n\t\tTClient | string,\n\t] | [\n\t\tTClient | string,\n\t\tDrizzleConfig<TSchema>,\n\t] | [\n\t\t(\n\t\t\t& DrizzleConfig<TSchema>\n\t\t\t& ({\n\t\t\t\tconnection: string | Config;\n\t\t\t} | {\n\t\t\t\tclient: TClient;\n\t\t\t})\n\t\t),\n\t]\n): LibSQLDatabase<TSchema> & {\n\t$client: TClient;\n} {\n\tif (typeof params[0] === 'string') {\n\t\tconst instance = createClient({\n\t\t\turl: params[0],\n\t\t});\n\n\t\treturn construct(instance, params[1]) as any;\n\t}\n\n\tif (isConfig(params[0])) {\n\t\tconst { connection, client, ...drizzleConfig } = params[0] as\n\t\t\t& { connection?: Config; client?: TClient }\n\t\t\t& DrizzleConfig<TSchema>;\n\n\t\tif (client) return construct(client, drizzleConfig) as any;\n\n\t\tconst instance = typeof connection === 'string' ? createClient({ url: connection }) : createClient(connection!);\n\n\t\treturn construct(instance, drizzleConfig) as any;\n\t}\n\n\treturn construct(params[0] as TClient, params[1] as DrizzleConfig<TSchema> | undefined) as any;\n}\n\nexport namespace drizzle {\n\texport function mock<TSchema extends Record<string, unknown> = Record<string, never>>(\n\t\tconfig?: DrizzleConfig<TSchema>,\n\t): LibSQLDatabase<TSchema> & {\n\t\t$client: '$client is not available on drizzle.mock()';\n\t} {\n\t\treturn construct({} as any, config) as any;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuD;AACvD,mBAA6C;AAC7C,yBAA+C;AAExC,SAAS,WAIZ,QAiBF;AACD,MAAI,OAAO,OAAO,CAAC,MAAM,UAAU;AAClC,UAAM,eAAW,0BAAa;AAAA,MAC7B,KAAK,OAAO,CAAC;AAAA,IACd,CAAC;AAED,eAAO,8BAAU,UAAU,OAAO,CAAC,CAAC;AAAA,EACrC;AAEA,UAAI,uBAAS,OAAO,CAAC,CAAC,GAAG;AACxB,UAAM,EAAE,YAAY,QAAQ,GAAG,cAAc,IAAI,OAAO,CAAC;AAIzD,QAAI,OAAQ,YAAO,8BAAU,QAAQ,aAAa;AAElD,UAAM,WAAW,OAAO,eAAe,eAAW,0BAAa,EAAE,KAAK,WAAW,CAAC,QAAI,0BAAa,UAAW;AAE9G,eAAO,8BAAU,UAAU,aAAa;AAAA,EACzC;AAEA,aAAO,8BAAU,OAAO,CAAC,GAAc,OAAO,CAAC,CAAuC;AACvF;AAAA,CAEO,CAAUA,aAAV;AACC,WAAS,KACf,QAGC;AACD,eAAO,8BAAU,CAAC,GAAU,MAAM;AAAA,EACnC;AANO,EAAAA,SAAS;AAAA,GADA;","names":["drizzle"]}

View File

@@ -0,0 +1,251 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const opentelemetry = require('@sentry/opentelemetry');
const debugBuild = require('../debug-build.js');
const childProcess = require('../integrations/childProcess.js');
const context = require('../integrations/context.js');
const contextlines = require('../integrations/contextlines.js');
const index = require('../integrations/http/index.js');
const index$2 = require('../integrations/local-variables/index.js');
const modules = require('../integrations/modules.js');
const index$1 = require('../integrations/node-fetch/index.js');
const onuncaughtexception = require('../integrations/onuncaughtexception.js');
const onunhandledrejection = require('../integrations/onunhandledrejection.js');
const processSession = require('../integrations/processSession.js');
const spotlight = require('../integrations/spotlight.js');
const systemError = require('../integrations/systemError.js');
const http = require('../transports/http.js');
const detection = require('../utils/detection.js');
const spotlight$1 = require('../utils/spotlight.js');
const api = require('./api.js');
const client = require('./client.js');
const esmLoader = require('./esmLoader.js');
/**
* Get default integrations for the Node-Core SDK.
*/
function getDefaultIntegrations() {
return [
// Common
// TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
// eslint-disable-next-line deprecation/deprecation
core.inboundFiltersIntegration(),
core.functionToStringIntegration(),
core.linkedErrorsIntegration(),
core.requestDataIntegration(),
systemError.systemErrorIntegration(),
core.conversationIdIntegration(),
// Native Wrappers
core.consoleIntegration(),
index.httpIntegration(),
index$1.nativeNodeFetchIntegration(),
// Global Handlers
onuncaughtexception.onUncaughtExceptionIntegration(),
onunhandledrejection.onUnhandledRejectionIntegration(),
// Event Info
contextlines.contextLinesIntegration(),
index$2.localVariablesIntegration(),
context.nodeContextIntegration(),
childProcess.childProcessIntegration(),
processSession.processSessionIntegration(),
modules.modulesIntegration(),
];
}
/**
* Initialize Sentry for Node.
*/
function init(options = {}) {
return _init(options, getDefaultIntegrations);
}
/**
* Initialize Sentry for Node, without any integrations added by default.
*/
function initWithoutDefaultIntegrations(options = {}) {
return _init(options, () => []);
}
/**
* Initialize Sentry for Node, without performance instrumentation.
*/
function _init(
_options = {},
getDefaultIntegrationsImpl,
) {
const options = getClientOptions(_options, getDefaultIntegrationsImpl);
if (options.debug === true) {
if (debugBuild.DEBUG_BUILD) {
core.debug.enable();
} else {
// use `console.warn` rather than `debug.warn` since by non-debug bundles have all `debug.x` statements stripped
core.consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
});
}
}
if (options.registerEsmLoaderHooks !== false) {
esmLoader.initializeEsmLoader();
}
opentelemetry.setOpenTelemetryContextAsyncContextStrategy();
const scope = core.getCurrentScope();
scope.update(options.initialScope);
if (options.spotlight && !options.integrations.some(({ name }) => name === spotlight.INTEGRATION_NAME)) {
options.integrations.push(
spotlight.spotlightIntegration({
sidecarUrl: typeof options.spotlight === 'string' ? options.spotlight : undefined,
}),
);
}
core.applySdkMetadata(options, 'node-core');
const client$1 = new client.NodeClient(options);
// The client is on the current scope, from where it generally is inherited
core.getCurrentScope().setClient(client$1);
client$1.init();
core.GLOBAL_OBJ._sentryInjectLoaderHookRegister?.();
core.debug.log(`SDK initialized from ${detection.isCjs() ? 'CommonJS' : 'ESM'}`);
client$1.startClientReportTracking();
updateScopeFromEnvVariables();
opentelemetry.enhanceDscWithOpenTelemetryRootSpanName(client$1);
opentelemetry.setupEventContextTrace(client$1);
// Ensure we flush events when vercel functions are ended
// See: https://vercel.com/docs/functions/functions-api-reference#sigterm-signal
if (process.env.VERCEL) {
process.on('SIGTERM', async () => {
// We have 500ms for processing here, so we try to make sure to have enough time to send the events
await client$1.flush(200);
});
}
return client$1;
}
/**
* Validate that your OpenTelemetry setup is correct.
*/
function validateOpenTelemetrySetup() {
if (!debugBuild.DEBUG_BUILD) {
return;
}
const setup = opentelemetry.openTelemetrySetupCheck();
const required = ['SentryContextManager', 'SentryPropagator'];
if (core.hasSpansEnabled()) {
required.push('SentrySpanProcessor');
}
for (const k of required) {
if (!setup.includes(k)) {
core.debug.error(
`You have to set up the ${k}. Without this, the OpenTelemetry & Sentry integration will not work properly.`,
);
}
}
if (!setup.includes('SentrySampler')) {
core.debug.warn(
'You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.',
);
}
}
function getClientOptions(
options,
getDefaultIntegrationsImpl,
) {
const release = getRelease(options.release);
const spotlight = spotlight$1.getSpotlightConfig(options.spotlight);
const tracesSampleRate = getTracesSampleRate(options.tracesSampleRate);
const mergedOptions = {
...options,
dsn: options.dsn ?? process.env.SENTRY_DSN,
environment: options.environment ?? process.env.SENTRY_ENVIRONMENT,
sendClientReports: options.sendClientReports ?? true,
transport: options.transport ?? http.makeNodeTransport,
stackParser: core.stackParserFromStackParserOptions(options.stackParser || api.defaultStackParser),
release,
tracesSampleRate,
spotlight,
debug: core.envToBool(options.debug ?? process.env.SENTRY_DEBUG),
};
const integrations = options.integrations;
const defaultIntegrations = options.defaultIntegrations ?? getDefaultIntegrationsImpl(mergedOptions);
return {
...mergedOptions,
integrations: core.getIntegrationsToSetup({
defaultIntegrations,
integrations,
}),
};
}
function getRelease(release) {
if (release !== undefined) {
return release;
}
const detectedRelease = api.getSentryRelease();
if (detectedRelease !== undefined) {
return detectedRelease;
}
return undefined;
}
function getTracesSampleRate(tracesSampleRate) {
if (tracesSampleRate !== undefined) {
return tracesSampleRate;
}
const sampleRateFromEnv = process.env.SENTRY_TRACES_SAMPLE_RATE;
if (!sampleRateFromEnv) {
return undefined;
}
const parsed = parseFloat(sampleRateFromEnv);
return isFinite(parsed) ? parsed : undefined;
}
/**
* Update scope and propagation context based on environmental variables.
*
* See https://github.com/getsentry/rfcs/blob/main/text/0071-continue-trace-over-process-boundaries.md
* for more details.
*/
function updateScopeFromEnvVariables() {
if (core.envToBool(process.env.SENTRY_USE_ENVIRONMENT) !== false) {
const sentryTraceEnv = process.env.SENTRY_TRACE;
const baggageEnv = process.env.SENTRY_BAGGAGE;
const propagationContext = core.propagationContextFromHeaders(sentryTraceEnv, baggageEnv);
core.getCurrentScope().setPropagationContext(propagationContext);
}
}
exports.getDefaultIntegrations = getDefaultIntegrations;
exports.init = init;
exports.initWithoutDefaultIntegrations = initWithoutDefaultIntegrations;
exports.validateOpenTelemetrySetup = validateOpenTelemetrySetup;
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,4 @@
import type { Coordinates } from '../../types';
export declare function getScrollOffsets(scrollableAncestors: Element[]): Coordinates;
export declare function getScrollXOffset(scrollableAncestors: Element[]): number;
export declare function getScrollYOffset(scrollableAncestors: Element[]): number;

View File

@@ -0,0 +1,22 @@
/**
* @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 ChartArea = createLucideIcon("ChartArea", [
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
[
"path",
{
d: "M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",
key: "q0gr47"
}
]
]);
export { ChartArea as default };
//# sourceMappingURL=chart-area.js.map

View File

@@ -0,0 +1 @@
module.exports={C:{"5":0.0071,"72":0.0071,"115":0.09946,"140":0.02131,"142":0.02842,"143":0.01421,"144":0.01421,"145":0.46886,"146":0.61805,"147":0.0071,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 148 149 3.5 3.6"},D:{"63":0.0071,"69":0.0071,"70":0.0071,"71":0.0071,"74":0.01421,"76":0.0071,"78":0.0071,"79":0.02131,"80":0.0071,"81":0.0071,"86":0.0071,"87":0.0071,"91":0.0071,"92":0.0071,"93":0.0071,"94":0.0071,"97":0.0071,"99":0.0071,"101":0.0071,"103":0.05683,"104":0.01421,"105":0.01421,"106":0.01421,"107":0.01421,"108":0.01421,"109":0.7104,"110":0.01421,"111":0.02131,"112":0.63936,"114":0.0071,"116":0.03552,"117":0.01421,"119":0.0071,"120":0.02842,"121":0.0071,"122":0.02842,"123":0.0071,"124":0.02131,"125":0.12077,"126":0.1776,"127":0.02842,"128":0.02842,"129":0.02131,"130":0.01421,"131":0.08525,"132":0.02842,"133":0.03552,"134":0.02131,"135":0.04973,"136":0.04262,"137":0.04262,"138":0.12787,"139":0.09946,"140":0.14918,"141":0.22022,"142":6.07392,"143":9.90298,"144":0.01421,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 72 73 75 77 83 84 85 88 89 90 95 96 98 100 102 113 115 118 145 146"},F:{"92":0.02131,"93":0.05683,"95":0.07814,"123":0.0071,"124":0.51149,"125":0.19181,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01421,"92":0.03552,"100":0.0071,"109":0.01421,"113":0.0071,"122":0.02842,"131":0.01421,"133":0.0071,"134":0.0071,"135":0.0071,"136":0.0071,"137":0.0071,"138":0.0071,"139":0.01421,"140":0.02842,"141":0.08525,"142":14.49926,"143":27.54931,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 114 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 17.0 17.2 17.3 26.3","15.6":0.01421,"16.1":0.0071,"16.5":0.0071,"16.6":0.01421,"17.1":0.0071,"17.4":0.0071,"17.5":0.0071,"17.6":0.02131,"18.0":0.0071,"18.1":0.0071,"18.2":0.0071,"18.3":0.01421,"18.4":0.0071,"18.5-18.6":0.02842,"26.0":0.02131,"26.1":0.07104,"26.2":0.02131},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00076,"5.0-5.1":0,"6.0-6.1":0.00153,"7.0-7.1":0.00115,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00305,"10.0-10.2":0.00038,"10.3":0.00534,"11.0-11.2":0.06565,"11.3-11.4":0.00191,"12.0-12.1":0.00153,"12.2-12.5":0.01718,"13.0-13.1":0.00038,"13.2":0.00267,"13.3":0.00076,"13.4-13.7":0.00267,"14.0-14.4":0.00534,"14.5-14.8":0.00573,"15.0-15.1":0.00611,"15.2-15.3":0.00458,"15.4":0.00496,"15.5":0.00534,"15.6-15.8":0.08283,"16.0":0.00954,"16.1":0.01832,"16.2":0.00954,"16.3":0.01718,"16.4":0.0042,"16.5":0.00725,"16.6-16.7":0.10764,"17.0":0.00611,"17.1":0.00992,"17.2":0.00725,"17.3":0.01107,"17.4":0.0187,"17.5":0.03664,"17.6-17.7":0.08474,"18.0":0.01908,"18.1":0.0397,"18.2":0.02099,"18.3":0.06832,"18.4":0.03512,"18.5-18.7":2.52146,"26.0":0.04924,"26.1":0.40956,"26.2":0.07787,"26.3":0.00344},P:{"4":0.02117,"20":0.01058,"21":0.01058,"22":0.03175,"23":0.02117,"24":0.04234,"25":0.08468,"26":0.06351,"27":0.07409,"28":0.24345,"29":0.61391,_:"5.0-5.4 6.2-6.4 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.24345,"8.2":0.01058,"11.1-11.2":0.01058,"17.0":0.01058,"19.0":0.01058},I:{"0":0.01446,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},A:{_:"6 7 8 9 10 11 5.5"},K:{"0":0.82536,_:"10 11 12 11.1 11.5 12.1"},N:{_:"10 11"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},Q:{_:"14.9"},O:{"0":0.1448},H:{"0":0},L:{"0":28.46597},R:{_:"0"},M:{"0":0.11005}};

View File

@@ -0,0 +1,43 @@
import type { SourceMapSegment } from './sourcemap-segment';
export interface SourceMapV3 {
file?: string | null;
names: readonly string[];
sourceRoot?: string;
sources: readonly (string | null)[];
sourcesContent?: readonly (string | null)[];
version: 3;
ignoreList?: readonly number[];
}
export interface EncodedSourceMap extends SourceMapV3 {
mappings: string;
}
export interface DecodedSourceMap extends SourceMapV3 {
mappings: readonly SourceMapSegment[][];
}
export interface Pos {
line: number;
column: number;
}
export interface OriginalPos extends Pos {
source: string;
}
export interface BindingExpressionRange {
start: Pos;
expression: string;
}
export type Mapping = {
generated: Pos;
source: undefined;
original: undefined;
name: undefined;
} | {
generated: Pos;
source: string;
original: Pos;
name: string;
} | {
generated: Pos;
source: string;
original: Pos;
name: undefined;
};

View File

@@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://json-schema.org/draft/2019-09/meta/meta-data",
"$vocabulary": {
"https://json-schema.org/draft/2019-09/vocab/meta-data": true
},
"$recursiveAnchor": true,
"title": "Meta-data vocabulary meta-schema",
"type": ["object", "boolean"],
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"default": true,
"deprecated": {
"type": "boolean",
"default": false
},
"readOnly": {
"type": "boolean",
"default": false
},
"writeOnly": {
"type": "boolean",
"default": false
},
"examples": {
"type": "array",
"items": true
}
}
}

View File

@@ -0,0 +1,104 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/**
* @template T
*/
class ArrayQueue {
/**
* @param {Iterable<T>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {T[]}
*/
this._list = items ? [...items] : [];
/**
* @private
* @type {T[]}
*/
this._listReversed = [];
}
/**
* Returns the number of elements in this queue.
* @returns {number} The number of elements in this queue.
*/
get length() {
return this._list.length + this._listReversed.length;
}
/**
* Empties the queue.
*/
clear() {
this._list.length = 0;
this._listReversed.length = 0;
}
/**
* Appends the specified element to this queue.
* @param {T} item The element to add.
* @returns {void}
*/
enqueue(item) {
this._list.push(item);
}
/**
* Retrieves and removes the head of this queue.
* @returns {T | undefined} The head of the queue of `undefined` if this queue is empty.
*/
dequeue() {
if (this._listReversed.length === 0) {
if (this._list.length === 0) return;
if (this._list.length === 1) return this._list.pop();
if (this._list.length < 16) return this._list.shift();
const temp = this._listReversed;
this._listReversed = this._list;
this._listReversed.reverse();
this._list = temp;
}
return this._listReversed.pop();
}
/**
* Finds and removes an item
* @param {T} item the item
* @returns {void}
*/
delete(item) {
const i = this._list.indexOf(item);
if (i >= 0) {
this._list.splice(i, 1);
} else {
const i = this._listReversed.indexOf(item);
if (i >= 0) this._listReversed.splice(i, 1);
}
}
[Symbol.iterator]() {
return {
next: () => {
const item = this.dequeue();
if (item) {
return {
done: false,
value: item
};
}
return {
done: true,
value: undefined
};
}
};
}
}
module.exports = ArrayQueue;

View File

@@ -0,0 +1 @@
{"version":3,"file":"errorhandling.js","sources":["../../../src/utils/errorhandling.ts"],"sourcesContent":["import { consoleSandbox, debug, getClient } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { NodeClient } from '../sdk/client';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nexport function logAndExitProcess(error: unknown): void {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient<NodeClient>();\n\n if (client === undefined) {\n DEBUG_BUILD && debug.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n return;\n }\n\n const options = client.getOptions();\n const timeout =\n options?.shutdownTimeout && options.shutdownTimeout > 0 ? options.shutdownTimeout : DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result: boolean) => {\n if (!result) {\n DEBUG_BUILD && debug.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && debug.error(error);\n },\n );\n}\n"],"names":["consoleSandbox","getClient","DEBUG_BUILD","debug"],"mappings":";;;;;AAIA,MAAM,wBAAA,GAA2B,IAAI;;AAErC;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,KAAK,EAAiB;AACxD,EAAEA,mBAAc,CAAC,MAAM;AACvB;AACA,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACxB,EAAE,CAAC,CAAC;;AAEJ,EAAE,MAAM,MAAA,GAASC,cAAS,EAAc;;AAExC,EAAE,IAAI,MAAA,KAAW,SAAS,EAAE;AAC5B,IAAIC,0BAAeC,UAAK,CAAC,IAAI,CAAC,4DAA4D,CAAC;AAC3F,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1B,IAAI;AACJ,EAAE;;AAEF,EAAE,MAAM,OAAA,GAAU,MAAM,CAAC,UAAU,EAAE;AACrC,EAAE,MAAM,OAAA;AACR,IAAI,OAAO,EAAE,eAAA,IAAmB,OAAO,CAAC,eAAA,GAAkB,CAAA,GAAI,OAAO,CAAC,eAAA,GAAkB,wBAAwB;AAChH,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;AAC5B,IAAI,CAAC,MAAM,KAAc;AACzB,MAAM,IAAI,CAAC,MAAM,EAAE;AACnB,QAAQD,0BAAeC,UAAK,CAAC,IAAI,CAAC,4EAA4E,CAAC;AAC/G,MAAM;AACN,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5B,IAAI,CAAC;AACL,IAAI,SAAS;AACb,MAAMD,0BAAeC,UAAK,CAAC,KAAK,CAAC,KAAK,CAAC;AACvC,IAAI,CAAC;AACL,GAAG;AACH;;;;"}

View File

@@ -0,0 +1 @@
Prism.languages.n4js=Prism.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Prism.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Prism.languages.n4jsd=Prism.languages.n4js;

View File

@@ -0,0 +1 @@
Prism.languages.n4js=Prism.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Prism.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Prism.languages.n4jsd=Prism.languages.n4js;

View File

@@ -0,0 +1,23 @@
import { DirectusUser } from "./user.cjs";
import { DirectusFlow } from "./flow.cjs";
import { MergeCoreCollection } from "../types/schema.cjs";
//#region src/schema/operation.d.ts
type DirectusOperation<Schema = any> = MergeCoreCollection<Schema, 'directus_operations', {
id: string;
name: string | null;
key: string;
type: string;
position_x: number;
position_y: number;
timestamp: string;
options: Record<string, any> | null;
resolve: DirectusOperation<Schema> | string | null;
reject: DirectusOperation<Schema> | string | null;
flow: DirectusFlow<Schema> | string;
date_created: 'datetime' | null;
user_created: DirectusUser<Schema> | string | null;
}>;
//#endregion
export { DirectusOperation };
//# sourceMappingURL=operation.d.cts.map

View File

@@ -0,0 +1,95 @@
export const cuid = /^[cC][^\s-]{8,}$/;
export const cuid2 = /^[0-9a-z]+$/;
export const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
export const xid = /^[0-9a-vA-V]{20}$/;
export const ksuid = /^[A-Za-z0-9]{27}$/;
export const nanoid = /^[a-zA-Z0-9_-]{21}$/;
/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
export const duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */
export const extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
export const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
/** Returns a regex for validating an RFC 4122 UUID.
*
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
export const uuid = (version) => {
if (!version)
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
};
export const uuid4 = /*@__PURE__*/ uuid(4);
export const uuid6 = /*@__PURE__*/ uuid(6);
export const uuid7 = /*@__PURE__*/ uuid(7);
/** Practical email validation */
export const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */
export const html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
/** The classic emailregex.com regex for RFC 5322-compliant emails */
export const rfc5322Email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */
export const unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
export const browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
export const _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
export function emoji() {
return new RegExp(_emoji, "u");
}
export const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
export const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
export const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
export const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
export const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
export const base64url = /^[A-Za-z0-9_-]*$/;
// based on https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address
// export const hostname: RegExp =
// /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/;
export const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
export const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
// https://blog.stevenlevithan.com/archives/validate-phone-number#r4-3 (regex sans spaces)
export const e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
// const dateSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
export const date = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
function timeSource(args) {
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
const regex = typeof args.precision === "number"
? args.precision === -1
? `${hhmm}`
: args.precision === 0
? `${hhmm}:[0-5]\\d`
: `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}`
: `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
return regex;
}
export function time(args) {
return new RegExp(`^${timeSource(args)}$`);
}
// Adapted from https://stackoverflow.com/a/3143231
export function datetime(args) {
const time = timeSource({ precision: args.precision });
const opts = ["Z"];
if (args.local)
opts.push("");
if (args.offset)
opts.push(`([+-]\\d{2}:\\d{2})`);
const timeRegex = `${time}(?:${opts.join("|")})`;
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
}
export const string = (params) => {
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
return new RegExp(`^${regex}$`);
};
export const bigint = /^\d+n?$/;
export const integer = /^\d+$/;
export const number = /^-?\d+(?:\.\d+)?/i;
export const boolean = /true|false/i;
const _null = /null/i;
export { _null as null };
const _undefined = /undefined/i;
export { _undefined as undefined };
// regex for string with no uppercase letters
export const lowercase = /^[^A-Z]*$/;
// regex for string with no lowercase letters
export const uppercase = /^[^a-z]*$/;

View File

@@ -0,0 +1,7 @@
/*
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn fix:special` to update
*/
declare const check: (options: import("../../../declarations/plugins/optimize/AggressiveSplittingPlugin").AggressiveSplittingPluginOptions) => boolean;
export = check;

View File

@@ -0,0 +1 @@
{"version":3,"file":"arrow-up-left-from-square.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}

View File

@@ -0,0 +1,5 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});

View File

@@ -0,0 +1,38 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.cjs");
const dateFormats = {
full: "EEEE, dd MMMM yyyy",
long: "dd MMMM yyyy",
medium: "dd MMM yyyy",
short: "dd.MM.yyyy",
};
const timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "H:mm",
};
const dateTimeFormats = {
any: "{{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: "any",
}),
});

View File

@@ -0,0 +1 @@
{"version":3,"file":"baggage.d.ts","sourceRoot":"","sources":["../../../src/utils/baggage.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,EACzF,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,SAAS,GAAG,QAAQ,CAqB/B"}

View File

@@ -0,0 +1,3 @@
{
"$ref": "../../WebpackOptions.json#/definitions/JsonGeneratorOptions"
}

View File

@@ -0,0 +1,13 @@
/**
* 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.
*
*/
const mod = await (process.env.NODE_ENV !== 'production' ? import('./LexicalHorizontalRuleNode.dev.mjs') : import('./LexicalHorizontalRuleNode.prod.mjs'));
export const $createHorizontalRuleNode = mod.$createHorizontalRuleNode;
export const $isHorizontalRuleNode = mod.$isHorizontalRuleNode;
export const HorizontalRuleNode = mod.HorizontalRuleNode;
export const INSERT_HORIZONTAL_RULE_COMMAND = mod.INSERT_HORIZONTAL_RULE_COMMAND;

View File

@@ -0,0 +1,42 @@
import { isGenerator } from 'motion-dom';
import { warning } from 'motion-utils';
import { isAnimatable } from '../../utils/is-animatable.mjs';
function hasKeyframesChanged(keyframes) {
const current = keyframes[0];
if (keyframes.length === 1)
return true;
for (let i = 0; i < keyframes.length; i++) {
if (keyframes[i] !== current)
return true;
}
}
function canAnimate(keyframes, name, type, velocity) {
/**
* Check if we're able to animate between the start and end keyframes,
* and throw a warning if we're attempting to animate between one that's
* animatable and another that isn't.
*/
const originKeyframe = keyframes[0];
if (originKeyframe === null)
return false;
/**
* These aren't traditionally animatable but we do support them.
* In future we could look into making this more generic or replacing
* this function with mix() === mixImmediate
*/
if (name === "display" || name === "visibility")
return true;
const targetKeyframe = keyframes[keyframes.length - 1];
const isOriginAnimatable = isAnimatable(originKeyframe, name);
const isTargetAnimatable = isAnimatable(targetKeyframe, name);
warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from "${originKeyframe}" to "${targetKeyframe}". ${originKeyframe} is not an animatable value - to enable this animation set ${originKeyframe} to a value animatable to ${targetKeyframe} via the \`style\` property.`);
// Always skip if any of these are true
if (!isOriginAnimatable || !isTargetAnimatable) {
return false;
}
return (hasKeyframesChanged(keyframes) ||
((type === "spring" || isGenerator(type)) && velocity));
}
export { canAnimate };

View File

@@ -0,0 +1,13 @@
import type { Data, ViewTypes } from 'payload';
import React from 'react';
type Props = {
readonly collectionSlug: string;
readonly data: Data;
readonly docTitle: string;
readonly folderCollectionSlug: string;
readonly folderFieldName: string;
readonly viewType?: ViewTypes;
};
export declare const FolderTableCellClient: ({ collectionSlug, data, docTitle, folderCollectionSlug, folderFieldName, viewType, }: Props) => React.JSX.Element;
export {};
//# sourceMappingURL=index.client.d.ts.map

View File

@@ -0,0 +1,2 @@
declare const _exports: typeof import("./index");
export = _exports;

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/queues/operations/handleSchedules/getQueuesWithSchedules.ts"],"sourcesContent":["import type { SanitizedJobsConfig, ScheduleConfig } from '../../config/types/index.js'\nimport type { TaskConfig } from '../../config/types/taskTypes.js'\nimport type { WorkflowConfig } from '../../config/types/workflowTypes.js'\n\ntype QueuesWithSchedules = {\n [queue: string]: {\n schedules: {\n scheduleConfig: ScheduleConfig\n taskConfig?: TaskConfig\n workflowConfig?: WorkflowConfig\n }[]\n }\n}\n\nexport const getQueuesWithSchedules = ({\n jobsConfig,\n}: {\n jobsConfig: SanitizedJobsConfig\n}): QueuesWithSchedules => {\n const tasksWithSchedules =\n jobsConfig.tasks?.filter((task) => {\n return task.schedule?.length\n }) ?? []\n\n const workflowsWithSchedules =\n jobsConfig.workflows?.filter((workflow) => {\n return workflow.schedule?.length\n }) ?? []\n\n const queuesWithSchedules: QueuesWithSchedules = {}\n\n for (const task of tasksWithSchedules) {\n for (const schedule of task.schedule ?? []) {\n ;(queuesWithSchedules[schedule.queue] ??= { schedules: [] }).schedules.push({\n scheduleConfig: schedule,\n taskConfig: task,\n })\n }\n }\n for (const workflow of workflowsWithSchedules) {\n for (const schedule of workflow.schedule ?? []) {\n ;(queuesWithSchedules[schedule.queue] ??= { schedules: [] }).schedules.push({\n scheduleConfig: schedule,\n workflowConfig: workflow,\n })\n }\n }\n\n return queuesWithSchedules\n}\n"],"names":["getQueuesWithSchedules","jobsConfig","tasksWithSchedules","tasks","filter","task","schedule","length","workflowsWithSchedules","workflows","workflow","queuesWithSchedules","queue","schedules","push","scheduleConfig","taskConfig","workflowConfig"],"mappings":"AAcA,OAAO,MAAMA,yBAAyB,CAAC,EACrCC,UAAU,EAGX;IACC,MAAMC,qBACJD,WAAWE,KAAK,EAAEC,OAAO,CAACC;QACxB,OAAOA,KAAKC,QAAQ,EAAEC;IACxB,MAAM,EAAE;IAEV,MAAMC,yBACJP,WAAWQ,SAAS,EAAEL,OAAO,CAACM;QAC5B,OAAOA,SAASJ,QAAQ,EAAEC;IAC5B,MAAM,EAAE;IAEV,MAAMI,sBAA2C,CAAC;IAElD,KAAK,MAAMN,QAAQH,mBAAoB;QACrC,KAAK,MAAMI,YAAYD,KAAKC,QAAQ,IAAI,EAAE,CAAE;;YACxCK,CAAAA,mBAAmB,CAACL,SAASM,KAAK,CAAC,KAAK;gBAAEC,WAAW,EAAE;YAAC,CAAA,EAAGA,SAAS,CAACC,IAAI,CAAC;gBAC1EC,gBAAgBT;gBAChBU,YAAYX;YACd;QACF;IACF;IACA,KAAK,MAAMK,YAAYF,uBAAwB;QAC7C,KAAK,MAAMF,YAAYI,SAASJ,QAAQ,IAAI,EAAE,CAAE;;YAC5CK,CAAAA,mBAAmB,CAACL,SAASM,KAAK,CAAC,KAAK;gBAAEC,WAAW,EAAE;YAAC,CAAA,EAAGA,SAAS,CAACC,IAAI,CAAC;gBAC1EC,gBAAgBT;gBAChBW,gBAAgBP;YAClB;QACF;IACF;IAEA,OAAOC;AACT,EAAC"}

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"K D E F zC"},B:{"1":"0 1 2 3 4 5 6 7 8 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C","2":"0C VC 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","2":"J"},E:{"1":"bB K D E F A B C L M G 7C 8C 9C AD cC PC QC BD CD DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC vC wC ID","2":"J 6C bC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD KD LD MD PC xC ND QC","2":"F"},G:{"1":"E bC OD yC PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD fD gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC"},H:{"2":"mD"},I:{"1":"VC J I qD yC rD sD","132":"nD oD pD"},J:{"1":"A","132":"D"},K:{"1":"A B C H PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"1":"A B"},O:{"1":"RC"},P:{"1":"9 J AB BB CB DB EB FB GB HB IB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D"},Q:{"1":"4D"},R:{"1":"5D"},S:{"1":"6D 7D"}},B:1,C:"Email, telephone & URL input types",D:true};

View File

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

View File

@@ -0,0 +1,57 @@
import type {CodeKeywordDefinition} from "../../types"
import {KeywordCxt} from "../../compile/validate"
import {propertyInData, allSchemaProperties} from "../code"
import {alwaysValidSchema, toHash, mergeEvaluated} from "../../compile/util"
import apDef from "./additionalProperties"
const def: CodeKeywordDefinition = {
keyword: "properties",
type: "object",
schemaType: "object",
code(cxt: KeywordCxt) {
const {gen, schema, parentSchema, data, it} = cxt
if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) {
apDef.code(new KeywordCxt(it, apDef, "additionalProperties"))
}
const allProps = allSchemaProperties(schema)
for (const prop of allProps) {
it.definedProperties.add(prop)
}
if (it.opts.unevaluated && allProps.length && it.props !== true) {
it.props = mergeEvaluated.props(gen, toHash(allProps), it.props)
}
const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p]))
if (properties.length === 0) return
const valid = gen.name("valid")
for (const prop of properties) {
if (hasDefault(prop)) {
applyPropertySchema(prop)
} else {
gen.if(propertyInData(gen, data, prop, it.opts.ownProperties))
applyPropertySchema(prop)
if (!it.allErrors) gen.else().var(valid, true)
gen.endIf()
}
cxt.it.definedProperties.add(prop)
cxt.ok(valid)
}
function hasDefault(prop: string): boolean | undefined {
return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined
}
function applyPropertySchema(prop: string): void {
cxt.subschema(
{
keyword: "properties",
schemaProp: prop,
dataProp: prop,
},
valid
)
}
},
}
export default def

View File

@@ -0,0 +1,19 @@
import { ShimWrapped } from './types';
/**
* function to execute patched function and being able to catch errors
* @param execute - function to be executed
* @param onFinish - callback to run when execute finishes
*/
export declare function safeExecuteInTheMiddle<T>(execute: () => T, onFinish: (e: Error | undefined, result: T | undefined) => void, preventThrowingError?: boolean): T;
/**
* Async function to execute patched function and being able to catch errors
* @param execute - function to be executed
* @param onFinish - callback to run when execute finishes
*/
export declare function safeExecuteInTheMiddleAsync<T>(execute: () => T, onFinish: (e: Error | undefined, result: T | undefined) => Promise<void> | void, preventThrowingError?: boolean): Promise<T>;
/**
* Checks if certain function has been already wrapped
* @param func
*/
export declare function isWrapped(func: unknown): func is ShimWrapped;
//# sourceMappingURL=utils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/attachment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,wBAAwB,GACxB,gBAAgB,GAChB,aAAa,GACb,sBAAsB,CAAC;AAE3B;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC"}

View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UPDATE_OPERATORS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.STATEMENT_OR_BLOCK_KEYS = exports.NUMBER_UNARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.LOGICAL_OPERATORS = exports.INHERIT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.EQUALITY_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.COMMENT_KEYS = exports.BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.BINARY_OPERATORS = exports.ASSIGNMENT_OPERATORS = void 0;
const STATEMENT_OR_BLOCK_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
const FLATTENABLE_KEYS = exports.FLATTENABLE_KEYS = ["body", "expressions"];
const FOR_INIT_KEYS = exports.FOR_INIT_KEYS = ["left", "init"];
const COMMENT_KEYS = exports.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
const LOGICAL_OPERATORS = exports.LOGICAL_OPERATORS = ["||", "&&", "??"];
const UPDATE_OPERATORS = exports.UPDATE_OPERATORS = ["++", "--"];
const BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
const EQUALITY_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
const COMPARISON_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"];
const BOOLEAN_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
const NUMBER_BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
const BINARY_OPERATORS = exports.BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS, "|>"];
const ASSIGNMENT_OPERATORS = exports.ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")];
const BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
const NUMBER_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = ["+", "-", "~"];
const STRING_UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = ["typeof"];
const UNARY_OPERATORS = exports.UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS];
const INHERIT_KEYS = exports.INHERIT_KEYS = {
optional: ["typeAnnotation", "typeParameters", "returnType"],
force: ["start", "loc", "end"]
};
exports.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped");
exports.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,6 @@
import { Printer } from "../index.js";
export declare const printers: {
estree: Printer;
"estree-json": Printer;
};

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 SquareArrowOutUpLeft = createLucideIcon("SquareArrowOutUpLeft", [
["path", { d: "M13 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6", key: "14mv1t" }],
["path", { d: "m3 3 9 9", key: "rks13r" }],
["path", { d: "M3 9V3h6", key: "ira0h2" }]
]);
export { SquareArrowOutUpLeft as default };
//# sourceMappingURL=square-arrow-out-up-left.js.map

View File

@@ -0,0 +1,131 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
const eraValues = {
narrow: ["v.C.", "n.C."],
abbreviated: ["v.Chr.", "n.Chr."],
wide: ["voor Christus", "na Christus"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["K1", "K2", "K3", "K4"],
wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"],
};
const monthValues = {
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
abbreviated: [
"jan.",
"feb.",
"mrt.",
"apr.",
"mei",
"jun.",
"jul.",
"aug.",
"sep.",
"okt.",
"nov.",
"dec.",
],
wide: [
"januari",
"februari",
"maart",
"april",
"mei",
"juni",
"juli",
"augustus",
"september",
"oktober",
"november",
"december",
],
};
const dayValues = {
narrow: ["Z", "M", "D", "W", "D", "V", "Z"],
short: ["zo", "ma", "di", "wo", "do", "vr", "za"],
abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"],
wide: [
"zondag",
"maandag",
"dinsdag",
"woensdag",
"donderdag",
"vrijdag",
"zaterdag",
],
};
const dayPeriodValues = {
narrow: {
am: "AM",
pm: "PM",
midnight: "middernacht",
noon: "het middag",
morning: "'s ochtends",
afternoon: "'s namiddags",
evening: "'s avonds",
night: "'s nachts",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "middernacht",
noon: "het middag",
morning: "'s ochtends",
afternoon: "'s namiddags",
evening: "'s avonds",
night: "'s nachts",
},
wide: {
am: "AM",
pm: "PM",
midnight: "middernacht",
noon: "het middag",
morning: "'s ochtends",
afternoon: "'s namiddags",
evening: "'s avonds",
night: "'s nachts",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
return number + "e";
};
const localize = (exports.localize = {
ordinalNumber,
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: (0, _index.buildLocalizeFn)({
values: monthValues,
defaultWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
}),
});

View File

@@ -0,0 +1,41 @@
var createRange = require('./_createRange');
/**
* This method is like `_.range` except that it populates values in
* descending order.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Util
* @param {number} [start=0] The start of the range.
* @param {number} end The end of the range.
* @param {number} [step=1] The value to increment or decrement by.
* @returns {Array} Returns the range of numbers.
* @see _.inRange, _.range
* @example
*
* _.rangeRight(4);
* // => [3, 2, 1, 0]
*
* _.rangeRight(-4);
* // => [-3, -2, -1, 0]
*
* _.rangeRight(1, 5);
* // => [4, 3, 2, 1]
*
* _.rangeRight(0, 20, 5);
* // => [15, 10, 5, 0]
*
* _.rangeRight(0, -4, -1);
* // => [-3, -2, -1, 0]
*
* _.rangeRight(1, 4, 0);
* // => [1, 1, 1]
*
* _.rangeRight(0);
* // => []
*/
var rangeRight = createRange(true);
module.exports = rangeRight;

View File

@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvdHVwbGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIFR1cGxlPFR5cGUgPSBhbnk+ID0gW1R5cGU/LCAuLi5UeXBlW11dO1xuIl19

View File

@@ -0,0 +1,10 @@
import type { Locale } from "./types.js";
/**
* @type {Locale}
* @category Locales
* @summary Central Kurdish locale.
* @language Central Kurdish
* @iso-639-2 kur
* @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99}
*/
export declare const ckb: Locale;

View File

@@ -0,0 +1,51 @@
![React Email container cover](https://react.email/static/covers/container.png)
<div align="center"><strong>@react-email/container</strong></div>
<div align="center">A layout component that centers all the email content.</div>
<br />
<div align="center">
<a href="https://react.email">Website</a>
<span> · </span>
<a href="https://github.com/resend/react-email">GitHub</a>
<span> · </span>
<a href="https://react.email/discord">Discord</a>
</div>
## Install
Install component from your command line.
#### With yarn
```sh
yarn add @react-email/container -E
```
#### With npm
```sh
npm install @react-email/container -E
```
## Getting started
Add the component to your email template. Include styles where needed.
```jsx
import { Button } from "@react-email/button";
import { Container } from "@react-email/container";
const Email = () => {
return (
<Container>
<Button href="https://example.com" style={{ color: "#61dafb" }}>
Click me
</Button>
</Container>
);
};
```
## License
MIT License

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"0 1 2 3 4 5 6 7 8 o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 1 2 3 4 5 6 7 8 q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C","2":"9 0C VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","2":"9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X Y Z a b c d e f g h i j"},E:{"1":"eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC vC wC ID","2":"J bB K D E F A B C L M G 6C bC 7C 8C 9C AD cC PC QC BD CD DD dC"},F:{"1":"0 1 2 3 4 5 6 7 8 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"9 F B C G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V JD KD LD MD PC xC ND QC"},G:{"1":"eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC","2":"E bC OD yC PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD fD gD hD dC"},H:{"2":"mD"},I:{"1":"I","2":"VC J nD oD pD qD yC rD sD"},J:{"2":"D A"},K:{"1":"H","2":"A B C PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"2":"A B"},O:{"2":"RC"},P:{"1":"9 AB BB CB DB EB FB GB HB IB 3D","2":"J tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC"},Q:{"2":"4D"},R:{"2":"5D"},S:{"2":"6D 7D"}},B:5,C:"CSS font-palette",D:true};

View File

@@ -0,0 +1,137 @@
import {
millisecondsInHour,
millisecondsInMinute,
millisecondsInSecond,
} from "../../constants.mjs";
import { numericPatterns } from "./constants.mjs";
export function mapValue(parseFnResult, mapFn) {
if (!parseFnResult) {
return parseFnResult;
}
return {
value: mapFn(parseFnResult.value),
rest: parseFnResult.rest,
};
}
export function parseNumericPattern(pattern, dateString) {
const matchResult = dateString.match(pattern);
if (!matchResult) {
return null;
}
return {
value: parseInt(matchResult[0], 10),
rest: dateString.slice(matchResult[0].length),
};
}
export function parseTimezonePattern(pattern, dateString) {
const matchResult = dateString.match(pattern);
if (!matchResult) {
return null;
}
// Input is 'Z'
if (matchResult[0] === "Z") {
return {
value: 0,
rest: dateString.slice(1),
};
}
const sign = matchResult[1] === "+" ? 1 : -1;
const hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
const minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
const seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
return {
value:
sign *
(hours * millisecondsInHour +
minutes * millisecondsInMinute +
seconds * millisecondsInSecond),
rest: dateString.slice(matchResult[0].length),
};
}
export function parseAnyDigitsSigned(dateString) {
return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
}
export function parseNDigits(n, dateString) {
switch (n) {
case 1:
return parseNumericPattern(numericPatterns.singleDigit, dateString);
case 2:
return parseNumericPattern(numericPatterns.twoDigits, dateString);
case 3:
return parseNumericPattern(numericPatterns.threeDigits, dateString);
case 4:
return parseNumericPattern(numericPatterns.fourDigits, dateString);
default:
return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString);
}
}
export function parseNDigitsSigned(n, dateString) {
switch (n) {
case 1:
return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
case 2:
return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
case 3:
return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
case 4:
return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
default:
return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString);
}
}
export function dayPeriodEnumToHours(dayPeriod) {
switch (dayPeriod) {
case "morning":
return 4;
case "evening":
return 17;
case "pm":
case "noon":
case "afternoon":
return 12;
case "am":
case "midnight":
case "night":
default:
return 0;
}
}
export function normalizeTwoDigitYear(twoDigitYear, currentYear) {
const isCommonEra = currentYear > 0;
// Absolute number of the current year:
// 1 -> 1 AC
// 0 -> 1 BC
// -1 -> 2 BC
const absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
let result;
if (absCurrentYear <= 50) {
result = twoDigitYear || 100;
} else {
const rangeEnd = absCurrentYear + 50;
const rangeEndCentury = Math.trunc(rangeEnd / 100) * 100;
const isPreviousCentury = twoDigitYear >= rangeEnd % 100;
result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
}
return isCommonEra ? result : 1 - result;
}
export function isLeapYearIndex(year) {
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
}

View File

@@ -0,0 +1,11 @@
/**
* web-vitals 5.1.0 switched listeners to be added on the window rather than the document.
* Instead of having to check for window/document every time we add a listener, we can use this function.
*/
export declare function addPageListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
/**
* web-vitals 5.1.0 switched listeners to be removed from the window rather than the document.
* Instead of having to check for window/document every time we remove a listener, we can use this function.
*/
export declare function removePageListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
//# sourceMappingURL=globalListeners.d.ts.map

View File

@@ -0,0 +1,30 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.LIElementContainer = void 0;
var element_container_1 = require("../element-container");
var LIElementContainer = /** @class */ (function (_super) {
__extends(LIElementContainer, _super);
function LIElementContainer(context, element) {
var _this = _super.call(this, context, element) || this;
_this.value = element.value;
return _this;
}
return LIElementContainer;
}(element_container_1.ElementContainer));
exports.LIElementContainer = LIElementContainer;
//# sourceMappingURL=li-element-container.js.map

View File

@@ -0,0 +1,54 @@
/**
* Template for localizeStatus migration
* Transforms version._status from single value to per-locale object
*/ export const localizeStatusTemplate = (options)=>{
const { collectionSlug, dbType, globalSlug } = options;
const entity = collectionSlug ? `collectionSlug: '${collectionSlug}'` : `globalSlug: '${globalSlug}'`;
if (dbType === 'mongodb') {
return `import { MigrateUpArgs, MigrateDownArgs } from '@payloadcms/db-mongodb'
import { localizeStatus } from 'payload'
export async function up({ payload, req }: MigrateUpArgs): Promise<void> {
await localizeStatus.up({
${entity},
payload,
req,
})
}
export async function down({ payload, req }: MigrateDownArgs): Promise<void> {
await localizeStatus.down({
${entity},
payload,
req,
})
}
`;
}
// SQL databases (Postgres, SQLite)
return `import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-${dbType}'
import { localizeStatus } from 'payload'
export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
await localizeStatus.up({
${entity},
db,
payload,
req,
sql,
})
}
export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
await localizeStatus.down({
${entity},
db,
payload,
req,
sql,
})
}
`;
};
//# sourceMappingURL=localizeStatus.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"react-select-async.cjs.d.mts","sourceRoot":"","sources":["../../dist/declarations/src/async/index.d.ts"],"names":[],"mappings":"AAAA"}

View File

@@ -0,0 +1,15 @@
var shuffleSelf = require('./_shuffleSelf'),
values = require('./values');
/**
* The base implementation of `_.shuffle`.
*
* @private
* @param {Array|Object} collection The collection to shuffle.
* @returns {Array} Returns the new shuffled array.
*/
function baseShuffle(collection) {
return shuffleSelf(values(collection));
}
module.exports = baseShuffle;

View File

@@ -0,0 +1,10 @@
import type {CodeKeywordDefinition} from "../../types"
const def: CodeKeywordDefinition = {
keyword: "id",
code() {
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')
},
}
export default def

View File

@@ -0,0 +1,47 @@
import * as immutable from "immutable"
import "./sass.dart.js";
const _cliPkgLibrary = globalThis._cliPkgExports.pop();
if (globalThis._cliPkgExports.length === 0) delete globalThis._cliPkgExports;
const _cliPkgExports = {};
_cliPkgLibrary.load({immutable}, _cliPkgExports);
export const compile = _cliPkgExports.compile;
export const compileAsync = _cliPkgExports.compileAsync;
export const compileString = _cliPkgExports.compileString;
export const compileStringAsync = _cliPkgExports.compileStringAsync;
export const initCompiler = _cliPkgExports.initCompiler;
export const initAsyncCompiler = _cliPkgExports.initAsyncCompiler;
export const Compiler = _cliPkgExports.Compiler;
export const AsyncCompiler = _cliPkgExports.AsyncCompiler;
export const Logger = _cliPkgExports.Logger;
export const SassArgumentList = _cliPkgExports.SassArgumentList;
export const SassBoolean = _cliPkgExports.SassBoolean;
export const SassCalculation = _cliPkgExports.SassCalculation;
export const CalculationOperation = _cliPkgExports.CalculationOperation;
export const CalculationInterpolation = _cliPkgExports.CalculationInterpolation;
export const SassColor = _cliPkgExports.SassColor;
export const SassFunction = _cliPkgExports.SassFunction;
export const SassList = _cliPkgExports.SassList;
export const SassMap = _cliPkgExports.SassMap;
export const SassMixin = _cliPkgExports.SassMixin;
export const SassNumber = _cliPkgExports.SassNumber;
export const SassString = _cliPkgExports.SassString;
export const Value = _cliPkgExports.Value;
export const CustomFunction = _cliPkgExports.CustomFunction;
export const ListSeparator = _cliPkgExports.ListSeparator;
export const sassFalse = _cliPkgExports.sassFalse;
export const sassNull = _cliPkgExports.sassNull;
export const sassTrue = _cliPkgExports.sassTrue;
export const Exception = _cliPkgExports.Exception;
export const PromiseOr = _cliPkgExports.PromiseOr;
export const info = _cliPkgExports.info;
export const render = _cliPkgExports.render;
export const renderSync = _cliPkgExports.renderSync;
export const TRUE = _cliPkgExports.TRUE;
export const FALSE = _cliPkgExports.FALSE;
export const NULL = _cliPkgExports.NULL;
export const types = _cliPkgExports.types;
export const NodePackageImporter = _cliPkgExports.NodePackageImporter;
export const deprecations = _cliPkgExports.deprecations;
export const Version = _cliPkgExports.Version;

View File

@@ -0,0 +1 @@
{"version":3,"file":"operations.cjs","names":[],"sources":["../../../../src/rest/commands/create/operations.ts"],"sourcesContent":["import type { DirectusOperation } from '../../../schema/operation.js';\nimport type { ApplyQueryFields, NestedPartial, Query } from '../../../types/index.js';\nimport type { RestCommand } from '../../types.js';\n\nexport type CreateOperationOutput<\n\tSchema,\n\tTQuery extends Query<Schema, Item>,\n\tItem extends object = DirectusOperation<Schema>,\n> = ApplyQueryFields<Schema, Item, TQuery['fields']>;\n\n/**\n * Create multiple new operations.\n *\n * @param items The operation to create\n * @param query Optional return data query\n *\n * @returns Returns the operation object for the created operation.\n */\nexport const createOperations =\n\t<Schema, const TQuery extends Query<Schema, DirectusOperation<Schema>>>(\n\t\titems: NestedPartial<DirectusOperation<Schema>>[],\n\t\tquery?: TQuery,\n\t): RestCommand<CreateOperationOutput<Schema, TQuery>[], Schema> =>\n\t() => ({\n\t\tpath: `/operations`,\n\t\tparams: query ?? {},\n\t\tbody: JSON.stringify(items),\n\t\tmethod: 'POST',\n\t});\n\n/**\n * Create a new operation.\n *\n * @param item The operation to create\n * @param query Optional return data query\n *\n * @returns Returns the operation object for the created operation.\n */\nexport const createOperation =\n\t<Schema, const TQuery extends Query<Schema, DirectusOperation<Schema>>>(\n\t\titem: NestedPartial<DirectusOperation<Schema>>,\n\t\tquery?: TQuery,\n\t): RestCommand<CreateOperationOutput<Schema, TQuery>, Schema> =>\n\t() => ({\n\t\tpath: `/operations`,\n\t\tparams: query ?? {},\n\t\tbody: JSON.stringify(item),\n\t\tmethod: 'POST',\n\t});\n"],"mappings":"AAkBA,MAAa,GAEX,EACA,SAEM,CACN,KAAM,cACN,OAAQ,GAAS,EAAE,CACnB,KAAM,KAAK,UAAU,EAAM,CAC3B,OAAQ,OACR,EAUW,GAEX,EACA,SAEM,CACN,KAAM,cACN,OAAQ,GAAS,EAAE,CACnB,KAAM,KAAK,UAAU,EAAK,CAC1B,OAAQ,OACR"}

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"0 1 2 3 4 5 6 7 8 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","2":"C L M G N"},C:{"2":"9 0C VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 4C 5C","4609":"7B 8B 9B AC BC CC DC EC FC","4674":"XC","5698":"6B","7490":"0B 1B 2B 3B 4B","7746":"5B WC","8705":"0 1 2 3 4 5 6 7 8 GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C"},D:{"1":"0 1 2 3 4 5 6 7 8 CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","2":"9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","4097":"BC","4290":"WC 6B XC","6148":"7B 8B 9B AC"},E:{"1":"G DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC vC wC ID","2":"J bB K D E F A 6C bC 7C 8C 9C AD cC","4609":"B C PC QC","8193":"L M BD CD"},F:{"1":"0 1 2 3 4 5 6 7 8 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"9 F B C G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB JD KD LD MD PC xC ND QC","4097":"0B","6148":"wB xB yB zB"},G:{"1":"bD cD dD eD fD gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC","2":"E bC OD yC PD QD RD SD TD UD VD WD","4097":"XD YD ZD aD"},H:{"2":"mD"},I:{"1":"I","2":"VC J nD oD pD qD yC rD sD"},J:{"2":"D A"},K:{"1":"H","2":"A B C PC xC QC"},L:{"1":"I"},M:{"4097":"OC"},N:{"2":"A B"},O:{"1":"RC"},P:{"2":"J tD uD vD","4097":"9 AB BB CB DB EB FB GB HB IB wD xD cC yD zD 0D 1D 2D SC TC UC 3D"},Q:{"1":"4D"},R:{"1":"5D"},S:{"1":"7D","2":"6D"}},B:5,C:"Variable fonts",D:true};

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/sql/expressions/index.ts"],"sourcesContent":["export * from './conditions.ts';\nexport * from './select.ts';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/Upload/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAIhF,OAAO,KAA6D,MAAM,OAAO,CAAA;AAiBjF,OAAO,cAAc,CAAA;AAMrB,eAAO,MAAM,cAAc,gBAAgB,CAAA;AAC3C,eAAO,MAAM,eAAe,kBAAkB,CAAA;AAc9C,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IAC1C,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAA;IACnC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAA;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,wEAKvB,iBAAiB,sBAkDnB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,YAAY,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAA;IAC1D,QAAQ,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1C,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAYxC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IACxD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CACnC,GAAG,WAAW,CAAA;AAEf,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0a9C,CAAA"}

View File

@@ -0,0 +1,101 @@
const formatDistanceLocale = {
lessThanXSeconds: {
one: "sekunddan kam",
other: "{{count}} sekunddan kam",
},
xSeconds: {
one: "1 sekund",
other: "{{count}} sekund",
},
halfAMinute: "yarim minut",
lessThanXMinutes: {
one: "bir minutdan kam",
other: "{{count}} minutdan kam",
},
xMinutes: {
one: "1 minut",
other: "{{count}} minut",
},
aboutXHours: {
one: "tahminan 1 soat",
other: "tahminan {{count}} soat",
},
xHours: {
one: "1 soat",
other: "{{count}} soat",
},
xDays: {
one: "1 kun",
other: "{{count}} kun",
},
aboutXWeeks: {
one: "tahminan 1 hafta",
other: "tahminan {{count}} hafta",
},
xWeeks: {
one: "1 hafta",
other: "{{count}} hafta",
},
aboutXMonths: {
one: "tahminan 1 oy",
other: "tahminan {{count}} oy",
},
xMonths: {
one: "1 oy",
other: "{{count}} oy",
},
aboutXYears: {
one: "tahminan 1 yil",
other: "tahminan {{count}} yil",
},
xYears: {
one: "1 yil",
other: "{{count}} yil",
},
overXYears: {
one: "1 yildan ko'p",
other: "{{count}} yildan ko'p",
},
almostXYears: {
one: "deyarli 1 yil",
other: "deyarli {{count}} yil",
},
};
export 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 + " dan keyin";
} else {
return result + " oldin";
}
}
return result;
};

View File

@@ -0,0 +1,113 @@
import Container, { ContainerProps } from './container.js'
declare namespace Rule {
export interface RuleRaws extends Record<string, unknown> {
/**
* The space symbols after the last child of the node to the end of the node.
*/
after?: string
/**
* The space symbols before the node. It also stores `*`
* and `_` symbols before the declaration (IE hack).
*/
before?: string
/**
* The symbols between the selector and `{` for rules.
*/
between?: string
/**
* Contains `true` if there is semicolon after rule.
*/
ownSemicolon?: string
/**
* The rules selector with comments.
*/
selector?: {
raw: string
value: string
}
/**
* Contains `true` if the last child has an (optional) semicolon.
*/
semicolon?: boolean
}
export interface RuleProps extends ContainerProps {
/** Information used to generate byte-to-byte equal node string as it was in the origin input. */
raws?: RuleRaws
/** Selector or selectors of the rule. */
selector?: string
/** Selectors of the rule represented as an array of strings. */
selectors?: string[]
}
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Rule_ as default }
}
/**
* Represents a CSS rule: a selector followed by a declaration block.
*
* ```js
* Once (root, { Rule }) {
* let a = new Rule({ selector: 'a' })
* a.append(…)
* root.append(a)
* }
* ```
*
* ```js
* const root = postcss.parse('a{}')
* const rule = root.first
* rule.type //=> 'rule'
* rule.toString() //=> 'a{}'
* ```
*/
declare class Rule_ extends Container {
parent: Container | undefined
raws: Rule.RuleRaws
/**
* The rules full selector represented as a string.
*
* ```js
* const root = postcss.parse('a, b { }')
* const rule = root.first
* rule.selector //=> 'a, b'
* ```
*/
selector: string
/**
* An array containing the rules individual selectors.
* Groups of selectors are split at commas.
*
* ```js
* const root = postcss.parse('a, b { }')
* const rule = root.first
*
* rule.selector //=> 'a, b'
* rule.selectors //=> ['a', 'b']
*
* rule.selectors = ['a', 'strong']
* rule.selector //=> 'a, strong'
* ```
*/
selectors: string[]
type: 'rule'
constructor(defaults?: Rule.RuleProps)
assign(overrides: object | Rule.RuleProps): this
clone(overrides?: Partial<Rule.RuleProps>): Rule
cloneAfter(overrides?: Partial<Rule.RuleProps>): Rule
cloneBefore(overrides?: Partial<Rule.RuleProps>): Rule
}
declare class Rule extends Rule_ {}
export = Rule

View File

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

View File

@@ -0,0 +1,117 @@
"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.AsyncHooksContextManager = void 0;
const api_1 = require("@opentelemetry/api");
const asyncHooks = require("async_hooks");
const AbstractAsyncHooksContextManager_1 = require("./AbstractAsyncHooksContextManager");
/**
* @deprecated Use AsyncLocalStorageContextManager instead.
*/
class AsyncHooksContextManager extends AbstractAsyncHooksContextManager_1.AbstractAsyncHooksContextManager {
_asyncHook;
_contexts = new Map();
_stack = [];
constructor() {
super();
this._asyncHook = asyncHooks.createHook({
init: this._init.bind(this),
before: this._before.bind(this),
after: this._after.bind(this),
destroy: this._destroy.bind(this),
promiseResolve: this._destroy.bind(this),
});
}
active() {
return this._stack[this._stack.length - 1] ?? api_1.ROOT_CONTEXT;
}
with(context, fn, thisArg, ...args) {
this._enterContext(context);
try {
return fn.call(thisArg, ...args);
}
finally {
this._exitContext();
}
}
enable() {
this._asyncHook.enable();
return this;
}
disable() {
this._asyncHook.disable();
this._contexts.clear();
this._stack = [];
return this;
}
/**
* Init hook will be called when userland create a async context, setting the
* context as the current one if it exist.
* @param uid id of the async context
* @param type the resource type
*/
_init(uid, type) {
// ignore TIMERWRAP as they combine timers with same timeout which can lead to
// false context propagation. TIMERWRAP has been removed in node 11
// every timer has it's own `Timeout` resource anyway which is used to propagate
// context.
if (type === 'TIMERWRAP')
return;
const context = this._stack[this._stack.length - 1];
if (context !== undefined) {
this._contexts.set(uid, context);
}
}
/**
* Destroy hook will be called when a given context is no longer used so we can
* remove its attached context.
* @param uid uid of the async context
*/
_destroy(uid) {
this._contexts.delete(uid);
}
/**
* Before hook is called just before executing a async context.
* @param uid uid of the async context
*/
_before(uid) {
const context = this._contexts.get(uid);
if (context !== undefined) {
this._enterContext(context);
}
}
/**
* After hook is called just after completing the execution of a async context.
*/
_after() {
this._exitContext();
}
/**
* Set the given context as active
*/
_enterContext(context) {
this._stack.push(context);
}
/**
* Remove the context at the root of the stack
*/
_exitContext() {
this._stack.pop();
}
}
exports.AsyncHooksContextManager = AsyncHooksContextManager;
//# sourceMappingURL=AsyncHooksContextManager.js.map

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