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,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 ExternalLink = createLucideIcon("ExternalLink", [
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
["path", { d: "M10 14 21 3", key: "gplh6r" }],
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
]);
export { ExternalLink as default };
//# sourceMappingURL=external-link.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"findVersions.d.ts","sourceRoot":"","sources":["../../../../src/globals/operations/local/findVersions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,KAAK,EACN,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAM/D,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,IAAI;IAC9C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,WAAW,CAAA;IACpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAA;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAA;IACX;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAA;AAEnD,wBAAsB,uBAAuB,CAAC,KAAK,SAAS,UAAU,EACpE,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,GACtB,OAAO,CAAC,aAAa,CAAC,eAAe,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAmCpE"}

View File

@@ -0,0 +1,31 @@
"use strict";
exports.endOfMonth = endOfMonth;
var _index = require("./toDate.js");
/**
* @name endOfMonth
* @category Month Helpers
* @summary Return the end of a month for the given date.
*
* @description
* Return the end of a month for the given date.
* The result will be in the local timezone.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The original date
*
* @returns The end of a month
*
* @example
* // The end of a month for 2 September 2014 11:55:00:
* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 30 2014 23:59:59.999
*/
function endOfMonth(date) {
const _date = (0, _index.toDate)(date);
const month = _date.getMonth();
_date.setFullYear(_date.getFullYear(), month + 1, 0);
_date.setHours(23, 59, 59, 999);
return _date;
}

View File

@@ -0,0 +1,60 @@
{
"name": "tapable",
"version": "2.3.0",
"description": "Just a little module for plugins.",
"homepage": "https://github.com/webpack/tapable",
"repository": {
"type": "git",
"url": "http://github.com/webpack/tapable.git"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
"license": "MIT",
"author": "Tobias Koppers @sokra",
"main": "lib/index.js",
"browser": {
"util": "./lib/util-browser.js"
},
"types": "./tapable.d.ts",
"files": ["lib", "!lib/__tests__", "tapable.d.ts"],
"scripts": {
"lint": "yarn lint:code && yarn fmt:check",
"lint:code": "eslint --cache .",
"fmt": "yarn fmt:base --log-level warn --write",
"fmt:check": "yarn fmt:base --check",
"fmt:base": "node ./node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
"fix": "yarn fix:code && yarn fmt",
"fix:code": "yarn lint:code --fix",
"test": "jest"
},
"jest": {
"transform": {
"__tests__[\\\\/].+\\.js$": "babel-jest"
}
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@eslint/js": "^9.28.0",
"@eslint/markdown": "^7.1.0",
"@stylistic/eslint-plugin": "^5.2.3",
"babel-jest": "^24.8.0",
"globals": "^16.2.0",
"eslint": "^9.28.0",
"eslint-config-webpack": "^4.6.3",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-n": "^17.19.0",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-unicorn": "^60.0.0",
"jest": "^24.8.0",
"prettier": "^3.5.3",
"prettier-1": "npm:prettier@^1"
},
"engines": {
"node": ">=6"
}
}

View File

@@ -0,0 +1,18 @@
"use strict";
function _is_native_reflect_construct() {
// Since Reflect.construct can't be properly polyfilled, some
// implementations (e.g. core-js@2) don't set the correct internal slots.
// Those polyfills don't allow us to subclass built-ins, so we need to
// use our fallback implementation.
try {
// If the internal slots aren't set, this throws an error similar to
// TypeError: this is not a Boolean object.
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch (_) {}
return (exports._ = _is_native_reflect_construct = function() {
return !!result;
})();
}
exports._ = _is_native_reflect_construct;

View File

@@ -0,0 +1,25 @@
function defineRouting(config) {
if (config.domains) {
validateUniqueLocalesPerDomain(config.domains);
}
return config;
}
function validateUniqueLocalesPerDomain(domains) {
const domainsByLocale = new Map();
for (const {
domain,
locales
} of domains) {
for (const locale of locales) {
const localeDomains = domainsByLocale.get(locale) || new Set();
localeDomains.add(domain);
domainsByLocale.set(locale, localeDomains);
}
}
const duplicateLocaleMessages = Array.from(domainsByLocale.entries()).filter(([, localeDomains]) => localeDomains.size > 1).map(([locale, localeDomains]) => `- "${locale}" is used by: ${Array.from(localeDomains).join(', ')}`);
if (duplicateLocaleMessages.length > 0) {
console.warn('Locales are expected to be unique per domain, but found overlap:\n' + duplicateLocaleMessages.join('\n') + '\nPlease see https://next-intl.dev/docs/routing/configuration#domains');
}
}
export { defineRouting as default };

View File

@@ -0,0 +1,66 @@
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import NextLinkImport from 'next/link.js';
import { useRouter } from 'next/navigation.js';
import React from 'react';
import { useRouteTransition } from '../../providers/RouteTransition/index.js';
import { formatUrl } from './formatUrl.js';
const NextLink = 'default' in NextLinkImport ? NextLinkImport.default : NextLinkImport;
// Copied from https://github.com/vercel/next.js/blob/canary/packages/next/src/client/link.tsx#L180-L191
function isModifiedEvent(event) {
const eventTarget = event.currentTarget;
const target = eventTarget.getAttribute('target');
return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey ||
// triggers resource download
event.nativeEvent && event.nativeEvent.which === 2;
}
export const Link = ({
children,
href,
onClick,
preventDefault = true,
ref,
replace,
scroll,
...rest
}) => {
const router = useRouter();
const {
startRouteTransition
} = useRouteTransition();
return /*#__PURE__*/_jsx(NextLink, {
href: href,
onClick: e => {
if (isModifiedEvent(e)) {
return;
}
if (onClick) {
onClick(e);
}
// We need a preventDefault here so that a clicked link doesn't trigger twice,
// once for default browser navigation and once for startRouteTransition
if (preventDefault) {
e.preventDefault();
}
const url = typeof href === 'string' ? href : formatUrl(href);
const navigate = () => {
if (replace) {
void router.replace(url, {
scroll
});
} else {
void router.push(url, {
scroll
});
}
};
// Call startRouteTransition if available, otherwise navigate directly
startRouteTransition(navigate);
},
ref: ref,
...rest,
children: children
});
};
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,12 @@
import { RestCommand } from "../../types.cjs";
//#region src/rest/commands/utils/cache.d.ts
/**
* Resets both the data and schema cache of Directus. This endpoint is only available to admin users.
* @returns Nothing
*/
declare const clearCache: <Schema>() => RestCommand<void, Schema>;
//#endregion
export { clearCache };
//# sourceMappingURL=cache.d.cts.map

View File

@@ -0,0 +1,58 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.once = once;
var _async = require("./async.js");
function once(fn) {
let result;
let resultP;
let promiseReferenced = false;
return function* () {
if (!result) {
if (resultP) {
promiseReferenced = true;
return yield* (0, _async.waitFor)(resultP);
}
if (!(yield* (0, _async.isAsync)())) {
try {
result = {
ok: true,
value: yield* fn()
};
} catch (error) {
result = {
ok: false,
value: error
};
}
} else {
let resolve, reject;
resultP = new Promise((res, rej) => {
resolve = res;
reject = rej;
});
try {
result = {
ok: true,
value: yield* fn()
};
resultP = null;
if (promiseReferenced) resolve(result.value);
} catch (error) {
result = {
ok: false,
value: error
};
resultP = null;
if (promiseReferenced) reject(error);
}
}
}
if (result.ok) return result.value;else throw result.value;
};
}
0 && 0;
//# sourceMappingURL=functional.js.map

View File

@@ -0,0 +1,47 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const dsn = require('./utils/dsn.js');
const envelope = require('./utils/envelope.js');
/**
* Create envelope from check in item.
*/
function createCheckInEnvelope(
checkIn,
dynamicSamplingContext,
metadata,
tunnel,
dsn$1,
) {
const headers = {
sent_at: new Date().toISOString(),
};
if (metadata?.sdk) {
headers.sdk = {
name: metadata.sdk.name,
version: metadata.sdk.version,
};
}
if (!!tunnel && !!dsn$1) {
headers.dsn = dsn.dsnToString(dsn$1);
}
if (dynamicSamplingContext) {
headers.trace = dynamicSamplingContext ;
}
const item = createCheckInEnvelopeItem(checkIn);
return envelope.createEnvelope(headers, [item]);
}
function createCheckInEnvelopeItem(checkIn) {
const checkInHeaders = {
type: 'check_in',
};
return [checkInHeaders, checkIn];
}
exports.createCheckInEnvelope = createCheckInEnvelope;
//# sourceMappingURL=checkin.js.map

View File

@@ -0,0 +1,34 @@
import { INPMetric, INPReportOpts, MetricRatingThresholds } from './types';
/** Thresholds for INP. See https://web.dev/articles/inp#what_is_a_good_inp_score */
export declare const INPThresholds: MetricRatingThresholds;
/**
* Calculates the [INP](https://web.dev/articles/inp) value for the current
* page and calls the `callback` function once the value is ready, along with
* the `event` performance entries reported for that interaction. The reported
* value is a `DOMHighResTimeStamp`.
*
* A custom `durationThreshold` configuration option can optionally be passed
* to control what `event-timing` entries are considered for INP reporting. The
* default threshold is `40`, which means INP scores of less than 40 will not
* be reported. To avoid reporting no interactions in these cases, the library
* will fall back to the input delay of the first interaction. Note that this
* will not affect your 75th percentile INP value unless that value is also
* less than 40 (well below the recommended
* [good](https://web.dev/articles/inp#what_is_a_good_inp_score) threshold).
*
* If the `reportAllChanges` configuration option is set to `true`, the
* `callback` function will be called as soon as the value is initially
* determined as well as any time the value changes throughout the page
* lifespan.
*
* _**Important:** INP should be continually monitored for changes throughout
* the entire lifespan of a page—including if the user returns to the page after
* it's been hidden/backgrounded. However, since browsers often [will not fire
* additional callbacks once the user has backgrounded a
* page](https://developer.chrome.com/blog/page-lifecycle-api/#advice-hidden),
* `callback` is always called when the page's visibility state changes to
* hidden. As a result, the `callback` function might be called multiple times
* during the same page load._
*/
export declare const onINP: (onReport: (metric: INPMetric) => void, opts?: INPReportOpts) => void;
//# sourceMappingURL=getINP.d.ts.map

View File

@@ -0,0 +1,11 @@
import type { FlattenedField } from 'payload';
type Args = {
doc: Record<string, unknown>;
fields: FlattenedField[];
locale?: string;
path: string;
rows: Record<string, unknown>[];
};
export declare const traverseFields: ({ doc, fields, locale, path, rows }: Args) => void;
export {};
//# sourceMappingURL=traverseFields.d.ts.map

View File

@@ -0,0 +1,29 @@
var path = require('path');
module.exports = function (basedir, relfiles) {
if (relfiles) {
var files = relfiles.map(function (r) {
return path.resolve(basedir, r);
});
}
else {
var files = basedir;
}
var res = files.slice(1).reduce(function (ps, file) {
if (!file.match(/^([A-Za-z]:)?\/|\\/)) {
throw new Error('relative path without a basedir');
}
var xs = file.split(/\/+|\\+/);
for (
var i = 0;
ps[i] === xs[i] && i < Math.min(ps.length, xs.length);
i++
);
return ps.slice(0, i);
}, files[0].split(/\/+|\\+/));
// Windows correctly handles paths with forward-slashes
return res.length > 1 ? res.join('/') : '/'
};

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 FileX = createLucideIcon("FileX", [
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
["path", { d: "m14.5 12.5-5 5", key: "b62r18" }],
["path", { d: "m9.5 12.5 5 5", key: "1rk7el" }]
]);
export { FileX as default };
//# sourceMappingURL=file-x.js.map

View File

@@ -0,0 +1,121 @@
@import '../../scss/styles.scss';
@layer payload-default {
.array-field {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 2);
&__header {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 2);
&__header-content {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
}
}
&--has-no-error {
> .array-field__header .array-field__header-content {
color: var(--theme-text);
}
}
&__header-content {
display: flex;
align-items: center;
gap: base(0.5);
}
&__header-wrap {
display: flex;
align-items: flex-end;
width: 100%;
justify-content: space-between;
}
&__header-actions {
list-style: none;
margin: 0;
padding: 0;
display: flex;
color: var(--theme-elevation-800);
}
&__header-action {
@extend %btn-reset;
cursor: pointer;
margin-left: base(0.5);
&:hover,
&:focus-visible {
text-decoration: underline;
color: var(--theme-elevation-600);
}
}
&__row-header {
display: flex;
align-items: center;
gap: base(0.5);
pointer-events: none;
}
&__draggable-rows {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 2);
}
&__title {
margin-bottom: 0;
}
&__add-row {
align-self: flex-start;
margin: 2px 0;
--btn-color: var(--theme-elevation-400);
&:hover:not(:disabled) {
--btn-color: var(--theme-elevation-800);
}
&:disabled {
--btn-color: var(--theme-elevation-300);
}
.btn__label {
color: var(--btn-color);
}
.btn__icon {
border-color: var(--btn-color);
path {
stroke: var(--btn-color);
}
}
}
}
html[data-theme='light'] {
.array-field {
&--has-error {
> .array-field__header .array-field__header-content {
color: var(--theme-error-750);
}
}
}
}
html[data-theme='dark'] {
.array-field {
&--has-error {
> .array-field__header .array-field__header-content {
color: var(--theme-error-500);
}
}
}
}
}

View File

@@ -0,0 +1,134 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
const matchOrdinalNumberPattern = /^(\d+)(వ)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,
abbreviated:
/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,
wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i,
};
const parseEraPatterns = {
any: [/^(పూ|శ)/i, /^సా/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^త్రై[1234]/i,
wide: /^[1234](వ)? త్రైమాసికం/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,
abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,
wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i,
};
const parseMonthPatterns = {
narrow: [
/^జ/i,
/^ఫి/i,
/^మా/i,
/^ఏ/i,
/^మే/i,
/^జూ/i,
/^జు/i,
/^ఆ/i,
/^సె/i,
/^అ/i,
/^న/i,
/^డి/i,
],
any: [
/^జన/i,
/^ఫి/i,
/^మా/i,
/^ఏ/i,
/^మే/i,
/^జూన్/i,
/^జులై/i,
/^ఆగ/i,
/^సె/i,
/^అ/i,
/^న/i,
/^డి/i,
],
};
const matchDayPatterns = {
narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i,
short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,
abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,
wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i,
};
const parseDayPatterns = {
narrow: [/^ఆ/i, /^సో/i, /^మ/i, /^బు/i, /^గు/i, /^శు/i, /^శ/i],
any: [/^ఆది/i, /^సోమ/i, /^మం/i, /^బుధ/i, /^గురు/i, /^శుక్ర/i, /^శని/i],
};
const matchDayPeriodPatterns = {
narrow:
/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,
any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^పూర్వాహ్నం/i,
pm: /^అపరాహ్నం/i,
midnight: /^అర్ధ/i,
noon: /^మిట్ట/i,
morning: /ఉదయం/i,
afternoon: /మధ్యాహ్నం/i,
evening: /సాయంత్రం/i,
night: /రాత్రి/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};

View File

@@ -0,0 +1,19 @@
/**
* @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 Fullscreen = createLucideIcon("Fullscreen", [
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
["path", { d: "M7 21H5a2 2 0 0 1-2-2v-2", key: "ioqczr" }],
["rect", { width: "10", height: "8", x: "7", y: "8", rx: "1", key: "vys8me" }]
]);
export { Fullscreen as default };
//# sourceMappingURL=fullscreen.js.map

View File

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

View File

@@ -0,0 +1,28 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const worldwide = require('./worldwide.js');
/**
* Function that delays closing of a Vercel lambda until the provided promise is resolved.
*
* Vendored from https://www.npmjs.com/package/@vercel/functions
*/
function vercelWaitUntil(task) {
// We only flush manually in Vercel Edge runtime
// In Node runtime, we use process.on('SIGTERM') instead
if (typeof EdgeRuntime !== 'string') {
return;
}
const vercelRequestContextGlobal =
// @ts-expect-error This is not typed
worldwide.GLOBAL_OBJ[Symbol.for('@vercel/request-context')];
const ctx = vercelRequestContextGlobal?.get?.();
if (ctx?.waitUntil) {
ctx.waitUntil(task);
}
}
exports.vercelWaitUntil = vercelWaitUntil;
//# sourceMappingURL=vercelWaitUntil.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"nodeVersion.d.ts","sourceRoot":"","sources":["../../src/nodeVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAyC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAClH,eAAO,MAAM,UAAU,QAAqB,CAAC;AAC7C,eAAO,MAAM,UAAU,QAAqB,CAAC"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/internal/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;GAIG;AACH,wBAAwB;AACxB,SAAgB,cAAc,CAAI,MAAyB;IACzD,4EAA4E;IAC5E,IAAI,GAAG,GAAQ,EAAE,CAAC;IAClB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1B,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,EAAE;QAC/B,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QACvB,IAAI,GAAG,EAAE;YACP,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;SAC5D;KACF;IAED,OAAO,GAAQ,CAAC;AAClB,CAAC;AAZD,wCAYC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Creates a const map from the given values\n * @param values - An array of values to be used as keys and values in the map.\n * @returns A populated version of the map with the values and keys derived from the values.\n */\n/*#__NO_SIDE_EFFECTS__*/\nexport function createConstMap<T>(values: Array<T[keyof T]>): T {\n // eslint-disable-next-line prefer-const, @typescript-eslint/no-explicit-any\n let res: any = {};\n const len = values.length;\n for (let lp = 0; lp < len; lp++) {\n const val = values[lp];\n if (val) {\n res[String(val).toUpperCase().replace(/[-.]/g, '_')] = val;\n }\n }\n\n return res as T;\n}\n"]}

View File

@@ -0,0 +1,60 @@
@import '../../scss/styles.scss';
@layer payload-default {
.upload {
&__dropzoneAndUpload {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
}
&__dropzoneContent {
display: flex;
flex-wrap: wrap;
gap: base(0.4);
justify-content: space-between;
width: 100%;
}
&__dropzoneContent__buttons {
display: flex;
gap: calc(var(--base) / 2);
position: relative;
left: -2px;
.btn .btn__content {
gap: calc(var(--base) / 5);
}
}
&__dropzoneContent__orText {
color: var(--theme-elevation-500);
text-transform: lowercase;
}
&__dragAndDropText {
flex-shrink: 0;
margin: 0;
text-transform: lowercase;
align-self: center;
color: var(--theme-elevation-500);
}
&__loadingRows {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
}
.shimmer-effect {
border-radius: var(--style-radius-s);
border: 1px solid var(--theme-border-color);
}
@include small-break {
&__dragAndDropText {
display: none;
}
}
}
}

View File

@@ -0,0 +1,21 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 15
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- "discussion"
- "feature request"
- "bug"
- "help wanted"
- "plugin suggestion"
- "good first issue"
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

View File

@@ -0,0 +1,26 @@
function isIdentityScale(scale) {
return scale === undefined || scale === 1;
}
function hasScale({ scale, scaleX, scaleY }) {
return (!isIdentityScale(scale) ||
!isIdentityScale(scaleX) ||
!isIdentityScale(scaleY));
}
function hasTransform(values) {
return (hasScale(values) ||
has2DTranslate(values) ||
values.z ||
values.rotate ||
values.rotateX ||
values.rotateY ||
values.skewX ||
values.skewY);
}
function has2DTranslate(values) {
return is2DTranslate(values.x) || is2DTranslate(values.y);
}
function is2DTranslate(value) {
return value && value !== "0%";
}
export { has2DTranslate, hasScale, hasTransform };

View File

@@ -0,0 +1 @@
{"version":3,"file":"wrapCustomResolver.d.ts","sourceRoot":"","sources":["../../src/utilities/wrapCustomResolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,4BAA4B,CAAA;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,KAAK,cAAc,GAAG;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,CAAA;AAe7C,wBAAgB,gBAAgB,CAAC,OAAO,EACtC,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,GAC1D,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAOrD"}

View File

@@ -0,0 +1,24 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("./config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
/** @typedef {import("./config/normalization").WebpackOptionsInterception} WebpackOptionsInterception */
/** @typedef {import("./Compiler")} Compiler */
class OptionsApply {
/**
* @param {WebpackOptions} options options object
* @param {Compiler} compiler compiler object
* @param {WebpackOptionsInterception=} interception intercepted options
* @returns {WebpackOptions} options object
*/
process(options, compiler, interception) {
return options;
}
}
module.exports = OptionsApply;

View File

@@ -0,0 +1,4 @@
import React from 'react';
import './index.scss';
export declare const LivePreviewToggler: React.FC;
//# sourceMappingURL=index.d.ts.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 FileImage = createLucideIcon("FileImage", [
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
]);
export { FileImage as default };
//# sourceMappingURL=file-image.js.map

View File

@@ -0,0 +1,186 @@
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const react = require('@sentry/react');
const debugBuild = require('../common/debug-build.js');
const devErrorSymbolicationEventProcessor = require('../common/devErrorSymbolicationEventProcessor.js');
const getVercelEnv = require('../common/getVercelEnv.js');
const nextNavigationErrorUtils = require('../common/nextNavigationErrorUtils.js');
const browserTracingIntegration = require('./browserTracingIntegration.js');
const clientNormalizationIntegration = require('./clientNormalizationIntegration.js');
const appRouterRoutingInstrumentation = require('./routing/appRouterRoutingInstrumentation.js');
const isrRoutingTracing = require('./routing/isrRoutingTracing.js');
const tunnelRoute = require('./tunnelRoute.js');
const wrapGetStaticPropsWithSentry = require('../common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');
const wrapGetInitialPropsWithSentry = require('../common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');
const wrapAppGetInitialPropsWithSentry = require('../common/pages-router-instrumentation/wrapAppGetInitialPropsWithSentry.js');
const wrapDocumentGetInitialPropsWithSentry = require('../common/pages-router-instrumentation/wrapDocumentGetInitialPropsWithSentry.js');
const wrapErrorGetInitialPropsWithSentry = require('../common/pages-router-instrumentation/wrapErrorGetInitialPropsWithSentry.js');
const wrapGetServerSidePropsWithSentry = require('../common/pages-router-instrumentation/wrapGetServerSidePropsWithSentry.js');
const wrapServerComponentWithSentry = require('../common/wrapServerComponentWithSentry.js');
const wrapRouteHandlerWithSentry = require('../common/wrapRouteHandlerWithSentry.js');
const wrapApiHandlerWithSentryVercelCrons = require('../common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js');
const wrapMiddlewareWithSentry = require('../common/wrapMiddlewareWithSentry.js');
const wrapPageComponentWithSentry = require('../common/pages-router-instrumentation/wrapPageComponentWithSentry.js');
const wrapGenerationFunctionWithSentry = require('../common/wrapGenerationFunctionWithSentry.js');
const withServerActionInstrumentation = require('../common/withServerActionInstrumentation.js');
const captureRequestError = require('../common/captureRequestError.js');
const _error = require('../common/pages-router-instrumentation/_error.js');
const nextSpan = require('../common/utils/nextSpan.js');
let clientIsInitialized = false;
const globalWithInjectedValues = core.GLOBAL_OBJ
;
// Treeshakable guard to remove all code related to tracing
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */
function init(options) {
if (clientIsInitialized) {
core.consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn(
'[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.',
);
});
}
clientIsInitialized = true;
if (!debugBuild.DEBUG_BUILD && options.debug) {
core.consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn(
'[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.',
);
});
}
// Remove cached trace meta tags for ISR/SSG pages before initializing
// This prevents the browser tracing integration from using stale trace IDs
if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) {
isrRoutingTracing.removeIsrSsgTraceMetaTags();
}
const opts = {
environment: getVercelEnv.getVercelEnv(true) || process.env.NODE_ENV,
defaultIntegrations: getDefaultIntegrations(options),
release: process.env._sentryRelease || globalWithInjectedValues._sentryRelease,
...options,
} ;
tunnelRoute.applyTunnelRouteOption(opts);
core.applySdkMetadata(opts, 'nextjs', ['nextjs', 'react']);
const client = react.init(opts);
const filterTransactions = event =>
event.type === 'transaction' && event.transaction === '/404' ? null : event;
filterTransactions.id = 'NextClient404Filter';
core.addEventProcessor(filterTransactions);
const filterIncompleteNavigationTransactions = event =>
event.type === 'transaction' && event.transaction === appRouterRoutingInstrumentation.INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME
? null
: event;
filterIncompleteNavigationTransactions.id = 'IncompleteTransactionFilter';
core.addEventProcessor(filterIncompleteNavigationTransactions);
const filterNextRedirectError = (event, hint) =>
nextNavigationErrorUtils.isRedirectNavigationError(hint?.originalException) || event.exception?.values?.[0]?.value === 'NEXT_REDIRECT'
? null
: event;
filterNextRedirectError.id = 'NextRedirectErrorFilter';
core.addEventProcessor(filterNextRedirectError);
if (process.env.NODE_ENV === 'development') {
core.addEventProcessor(devErrorSymbolicationEventProcessor.devErrorSymbolicationEventProcessor);
}
try {
// @ts-expect-error `process.turbopack` is a magic string that will be replaced by Next.js
if (process.turbopack) {
core.getGlobalScope().setTag('turbopack', true);
}
} catch {
// Noop
// The statement above can throw because process is not defined on the client
}
return client;
}
function getDefaultIntegrations(options) {
const customDefaultIntegrations = react.getDefaultIntegrations(options);
// This evaluates to true unless __SENTRY_TRACING__ is text-replaced with "false",
// in which case everything inside will get tree-shaken away
if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) {
customDefaultIntegrations.push(browserTracingIntegration.browserTracingIntegration());
}
// These values are injected at build time, based on the output directory specified in the build config. Though a default
// is set there, we set it here as well, just in case something has gone wrong with the injection.
const rewriteFramesAssetPrefixPath =
process.env._sentryRewriteFramesAssetPrefixPath ||
globalWithInjectedValues._sentryRewriteFramesAssetPrefixPath ||
'';
const assetPrefix = process.env._sentryAssetPrefix || globalWithInjectedValues._sentryAssetPrefix;
const basePath = process.env._sentryBasePath || globalWithInjectedValues._sentryBasePath;
const experimentalThirdPartyOriginStackFrames =
process.env._experimentalThirdPartyOriginStackFrames === 'true' ||
globalWithInjectedValues._experimentalThirdPartyOriginStackFrames === 'true';
customDefaultIntegrations.push(
clientNormalizationIntegration.nextjsClientStackFrameNormalizationIntegration({
assetPrefix,
basePath,
rewriteFramesAssetPrefixPath,
experimentalThirdPartyOriginStackFrames,
}),
);
return customDefaultIntegrations;
}
/**
* Just a passthrough in case this is imported from the client.
*/
function withSentryConfig(exportedUserNextConfig) {
return exportedUserNextConfig;
}
exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration;
exports.captureRouterTransitionStart = appRouterRoutingInstrumentation.captureRouterTransitionStart;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;
exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;
exports.wrapAppGetInitialPropsWithSentry = wrapAppGetInitialPropsWithSentry.wrapAppGetInitialPropsWithSentry;
exports.wrapDocumentGetInitialPropsWithSentry = wrapDocumentGetInitialPropsWithSentry.wrapDocumentGetInitialPropsWithSentry;
exports.wrapErrorGetInitialPropsWithSentry = wrapErrorGetInitialPropsWithSentry.wrapErrorGetInitialPropsWithSentry;
exports.wrapGetServerSidePropsWithSentry = wrapGetServerSidePropsWithSentry.wrapGetServerSidePropsWithSentry;
exports.wrapServerComponentWithSentry = wrapServerComponentWithSentry.wrapServerComponentWithSentry;
exports.wrapRouteHandlerWithSentry = wrapRouteHandlerWithSentry.wrapRouteHandlerWithSentry;
exports.wrapApiHandlerWithSentryVercelCrons = wrapApiHandlerWithSentryVercelCrons.wrapApiHandlerWithSentryVercelCrons;
exports.wrapMiddlewareWithSentry = wrapMiddlewareWithSentry.wrapMiddlewareWithSentry;
exports.wrapPageComponentWithSentry = wrapPageComponentWithSentry.wrapPageComponentWithSentry;
exports.wrapGenerationFunctionWithSentry = wrapGenerationFunctionWithSentry.wrapGenerationFunctionWithSentry;
exports.withServerActionInstrumentation = withServerActionInstrumentation.withServerActionInstrumentation;
exports.captureRequestError = captureRequestError.captureRequestError;
exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;
exports.startInactiveSpan = nextSpan.startInactiveSpan;
exports.startSpan = nextSpan.startSpan;
exports.startSpanManual = nextSpan.startSpanManual;
exports.init = init;
exports.withSentryConfig = withSentryConfig;
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
Object.defineProperty(exports, '__proto__', {
enumerable: true,
value: react['__proto__']
});
Object.keys(react).forEach(k => {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
});
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,11 @@
/**
* 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('./LexicalDecoratorBlockNode.dev.mjs') : import('./LexicalDecoratorBlockNode.prod.mjs'));
export const $isDecoratorBlockNode = mod.$isDecoratorBlockNode;
export const DecoratorBlockNode = mod.DecoratorBlockNode;

View File

@@ -0,0 +1,4 @@
export declare const lastDayOfISOWeek: import("./types.js").FPFn1<
Date,
import("../fp.js").DateArg<Date>
>;

View File

@@ -0,0 +1,8 @@
import { createWriteStream } from 'node:fs'
import { once } from 'node:events'
export default async function run (opts) {
const stream = createWriteStream(opts.destination)
await once(stream, 'open')
return stream
}

View File

@@ -0,0 +1,123 @@
/**
* okaidia theme for JavaScript, CSS and HTML
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
* @author ocodia
*/
code[class*="language-"],
pre[class*="language-"] {
color: #f8f8f2;
background: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
border-radius: 0.3em;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #272822;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #8292a2;
}
.token.punctuation {
color: #f8f8f2;
}
.token.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
color: #f92672;
}
.token.boolean,
.token.number {
color: #ae81ff;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #a6e22e;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
color: #f8f8f2;
}
.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
color: #e6db74;
}
.token.keyword {
color: #66d9ef;
}
.token.regex,
.token.important {
color: #fd971f;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}

View File

@@ -0,0 +1,74 @@
import { entityKind } from "../entity.js";
import { TableName } from "../table.utils.js";
class ForeignKeyBuilder {
static [entityKind] = "GelForeignKeyBuilder";
/** @internal */
reference;
/** @internal */
_onUpdate = "no action";
/** @internal */
_onDelete = "no action";
constructor(config, actions) {
this.reference = () => {
const { name, columns, foreignColumns } = config();
return { name, columns, foreignTable: foreignColumns[0].table, foreignColumns };
};
if (actions) {
this._onUpdate = actions.onUpdate;
this._onDelete = actions.onDelete;
}
}
onUpdate(action) {
this._onUpdate = action === void 0 ? "no action" : action;
return this;
}
onDelete(action) {
this._onDelete = action === void 0 ? "no action" : action;
return this;
}
/** @internal */
build(table) {
return new ForeignKey(table, this);
}
}
class ForeignKey {
constructor(table, builder) {
this.table = table;
this.reference = builder.reference;
this.onUpdate = builder._onUpdate;
this.onDelete = builder._onDelete;
}
static [entityKind] = "GelForeignKey";
reference;
onUpdate;
onDelete;
getName() {
const { name, columns, foreignColumns } = this.reference();
const columnNames = columns.map((column) => column.name);
const foreignColumnNames = foreignColumns.map((column) => column.name);
const chunks = [
this.table[TableName],
...columnNames,
foreignColumns[0].table[TableName],
...foreignColumnNames
];
return name ?? `${chunks.join("_")}_fk`;
}
}
function foreignKey(config) {
function mappedConfig() {
const { name, columns, foreignColumns } = config;
return {
name,
columns,
foreignColumns
};
}
return new ForeignKeyBuilder(mappedConfig);
}
export {
ForeignKey,
ForeignKeyBuilder,
foreignKey
};
//# sourceMappingURL=foreign-keys.js.map

View File

@@ -0,0 +1,129 @@
import { Integration, IntegrationFn } from '@sentry/core';
export declare const INTEGRATION_NAME = "WebWorker";
interface WebWorkerIntegration extends Integration {
addWorker: (worker: Worker) => void;
}
/**
* Use this integration to set up Sentry with web workers.
*
* IMPORTANT: This integration must be added **before** you start listening to
* any messages from the worker. Otherwise, your message handlers will receive
* messages from the Sentry SDK which you need to ignore.
*
* This integration only has an effect, if you call `Sentry.registerWebWorker(self)`
* from within the worker(s) you're adding to the integration.
*
* Given that you want to initialize the SDK as early as possible, you most likely
* want to add this integration **after** initializing the SDK:
*
* @example:
* ```ts filename={main.js}
* import * as Sentry from '@sentry/<your-sdk>';
*
* // some time earlier:
* Sentry.init(...)
*
* // 1. Initialize the worker
* const worker = new Worker(new URL('./worker.ts', import.meta.url));
*
* // 2. Add the integration
* const webWorkerIntegration = Sentry.webWorkerIntegration({ worker });
* Sentry.addIntegration(webWorkerIntegration);
*
* // 3. Register message listeners on the worker
* worker.addEventListener('message', event => {
* // ...
* });
* ```
*
* If you initialize multiple workers at the same time, you can also pass an array of workers
* to the integration:
*
* ```ts filename={main.js}
* const webWorkerIntegration = Sentry.webWorkerIntegration({ worker: [worker1, worker2] });
* Sentry.addIntegration(webWorkerIntegration);
* ```
*
* If you have any additional workers that you initialize at a later point,
* you can add them to the integration as follows:
*
* ```ts filename={main.js}
* const webWorkerIntegration = Sentry.webWorkerIntegration({ worker: worker1 });
* Sentry.addIntegration(webWorkerIntegration);
*
* // sometime later:
* webWorkerIntegration.addWorker(worker2);
* ```
*
* Of course, you can also directly add the integration in Sentry.init:
* ```ts filename={main.js}
* import * as Sentry from '@sentry/<your-sdk>';
*
* // 1. Initialize the worker
* const worker = new Worker(new URL('./worker.ts', import.meta.url));
*
* // 2. Initialize the SDK
* Sentry.init({
* integrations: [Sentry.webWorkerIntegration({ worker })]
* });
*
* // 3. Register message listeners on the worker
* worker.addEventListener('message', event => {
* // ...
* });
* ```
*
* @param options {WebWorkerIntegrationOptions} Integration options:
* - `worker`: The worker instance.
*/
export declare const webWorkerIntegration: IntegrationFn<WebWorkerIntegration>;
/**
* Minimal interface for DedicatedWorkerGlobalScope, only requiring the postMessage method.
* (which is the only thing we need from the worker's global object)
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope
*
* We can't use the actual type because it breaks everyone who doesn't have {"lib": ["WebWorker"]}
* but uses {"skipLibCheck": true} in their tsconfig.json.
*/
interface MinimalDedicatedWorkerGlobalScope {
postMessage: (message: unknown) => void;
addEventListener: (type: string, listener: (event: unknown) => void) => void;
location?: {
href?: string;
};
}
interface RegisterWebWorkerOptions {
self: MinimalDedicatedWorkerGlobalScope & {
_sentryDebugIds?: Record<string, string>;
_sentryModuleMetadata?: Record<string, any>;
};
}
/**
* Use this function to register the worker with the Sentry SDK.
*
* This function will:
* - Send debug IDs to the parent thread
* - Send module metadata to the parent thread (for thirdPartyErrorFilterIntegration)
* - Set up a handler for unhandled rejections in the worker
* - Forward unhandled rejections to the parent thread for capture
*
* Note: Synchronous errors in workers are already captured by globalHandlers.
* This only handles unhandled promise rejections which don't bubble to the parent.
*
* @example
* ```ts filename={worker.js}
* import * as Sentry from '@sentry/<your-sdk>';
*
* // Do this as early as possible in your worker.
* Sentry.registerWebWorker({ self });
*
* // continue setting up your worker
* self.postMessage(...)
* ```
* @param options {RegisterWebWorkerOptions} Integration options:
* - `self`: The worker instance you're calling this function from (self).
*/
export declare function registerWebWorker({ self }: RegisterWebWorkerOptions): void;
export {};
//# sourceMappingURL=webWorker.d.ts.map

View File

@@ -0,0 +1,39 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
const dateFormats = {
full: "EEEE 'den' d. MMMM y",
long: "d. MMMM y",
medium: "d. MMM y",
short: "dd/MM/y",
};
const timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm",
};
const dateTimeFormats = {
full: "{{date}} 'kl'. {{time}}",
long: "{{date}} 'kl'. {{time}}",
medium: "{{date}} {{time}}",
short: "{{date}} {{time}}",
};
export const formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full",
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full",
}),
};

View File

@@ -0,0 +1,23 @@
MIT License
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Copyright (c) 2014-present, Facebook, Inc. (ONLY ./src/helpers/regenerator* files)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1 @@
{"version":3,"file":"heading.js","sources":["../../../src/icons/heading.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Heading\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNiAxMmgxMiIgLz4KICA8cGF0aCBkPSJNNiAyMFY0IiAvPgogIDxwYXRoIGQ9Ik0xOCAyMFY0IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/heading\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Heading = createLucideIcon('Heading', [\n ['path', { d: 'M6 12h12', key: '8npq4p' }],\n ['path', { d: 'M6 20V4', key: '1w1bmo' }],\n ['path', { d: 'M18 20V4', key: 'o2hl4u' }],\n]);\n\nexport default Heading;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,iBAAiB,SAAW,CAAA,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC3C,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"app-window.js","sources":["../../../src/icons/app-window.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name AppWindow\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB4PSIyIiB5PSI0IiB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik0xMCA0djQiIC8+CiAgPHBhdGggZD0iTTIgOGgyMCIgLz4KICA8cGF0aCBkPSJNNiA0djQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/app-window\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst AppWindow = createLucideIcon('AppWindow', [\n ['rect', { x: '2', y: '4', width: '20', height: '16', rx: '2', key: 'izxlao' }],\n ['path', { d: 'M10 4v4', key: 'pp8u80' }],\n ['path', { d: 'M2 8h20', key: 'd11cs7' }],\n ['path', { d: 'M6 4v4', key: '1svtjw' }],\n]);\n\nexport default AppWindow;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,iBAAiB,WAAa,CAAA,CAAA,CAAA;AAAA,CAAA,CAC9C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAG,KAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,QAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACzC,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/readFile.ts"],"names":["fsReadFileAsync","pathname","encoding","Promise","resolve","reject","fs","readFile","error","contents","filepath","options","throwNotFound","content","code","readFileSync"],"mappings":";;;;;;;;AAAA;;;;AAEA,eAAeA,eAAf,CACEC,QADF,EAEEC,QAFF,EAGmB;AACjB,SAAO,IAAIC,OAAJ,CAAY,CAACC,OAAD,EAAUC,MAAV,KAA2B;AAC5CC,gBAAGC,QAAH,CAAYN,QAAZ,EAAsBC,QAAtB,EAAgC,CAACM,KAAD,EAAQC,QAAR,KAA2B;AACzD,UAAID,KAAJ,EAAW;AACTH,QAAAA,MAAM,CAACG,KAAD,CAAN;AACA;AACD;;AAEDJ,MAAAA,OAAO,CAACK,QAAD,CAAP;AACD,KAPD;AAQD,GATM,CAAP;AAUD;;AAMD,eAAeF,QAAf,CACEG,QADF,EAEEC,OAAgB,GAAG,EAFrB,EAG0B;AACxB,QAAMC,aAAa,GAAGD,OAAO,CAACC,aAAR,KAA0B,IAAhD;;AAEA,MAAI;AACF,UAAMC,OAAO,GAAG,MAAMb,eAAe,CAACU,QAAD,EAAW,MAAX,CAArC;AAEA,WAAOG,OAAP;AACD,GAJD,CAIE,OAAOL,KAAP,EAAc;AACd,QACEI,aAAa,KAAK,KAAlB,KACCJ,KAAK,CAACM,IAAN,KAAe,QAAf,IAA2BN,KAAK,CAACM,IAAN,KAAe,QAD3C,CADF,EAGE;AACA,aAAO,IAAP;AACD;;AAED,UAAMN,KAAN;AACD;AACF;;AAED,SAASO,YAAT,CAAsBL,QAAtB,EAAwCC,OAAgB,GAAG,EAA3D,EAA8E;AAC5E,QAAMC,aAAa,GAAGD,OAAO,CAACC,aAAR,KAA0B,IAAhD;;AAEA,MAAI;AACF,UAAMC,OAAO,GAAGP,YAAGS,YAAH,CAAgBL,QAAhB,EAA0B,MAA1B,CAAhB;;AAEA,WAAOG,OAAP;AACD,GAJD,CAIE,OAAOL,KAAP,EAAc;AACd,QACEI,aAAa,KAAK,KAAlB,KACCJ,KAAK,CAACM,IAAN,KAAe,QAAf,IAA2BN,KAAK,CAACM,IAAN,KAAe,QAD3C,CADF,EAGE;AACA,aAAO,IAAP;AACD;;AAED,UAAMN,KAAN;AACD;AACF","sourcesContent":["import fs from 'fs';\n\nasync function fsReadFileAsync(\n pathname: string,\n encoding: BufferEncoding,\n): Promise<string> {\n return new Promise((resolve, reject): void => {\n fs.readFile(pathname, encoding, (error, contents): void => {\n if (error) {\n reject(error);\n return;\n }\n\n resolve(contents);\n });\n });\n}\n\ninterface Options {\n throwNotFound?: boolean;\n}\n\nasync function readFile(\n filepath: string,\n options: Options = {},\n): Promise<string | null> {\n const throwNotFound = options.throwNotFound === true;\n\n try {\n const content = await fsReadFileAsync(filepath, 'utf8');\n\n return content;\n } catch (error) {\n if (\n throwNotFound === false &&\n (error.code === 'ENOENT' || error.code === 'EISDIR')\n ) {\n return null;\n }\n\n throw error;\n }\n}\n\nfunction readFileSync(filepath: string, options: Options = {}): string | null {\n const throwNotFound = options.throwNotFound === true;\n\n try {\n const content = fs.readFileSync(filepath, 'utf8');\n\n return content;\n } catch (error) {\n if (\n throwNotFound === false &&\n (error.code === 'ENOENT' || error.code === 'EISDIR')\n ) {\n return null;\n }\n\n throw error;\n }\n}\n\nexport { readFile, readFileSync };\n"],"file":"readFile.js"}

View File

@@ -0,0 +1,229 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
const eraValues = {
narrow: ["pr.n.e.", "AD"],
abbreviated: ["pr. Kr.", "po. Kr."],
wide: ["Prije Krista", "Poslije Krista"],
};
const quarterValues = {
narrow: ["1.", "2.", "3.", "4."],
abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."],
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"],
};
const monthValues = {
narrow: [
"1.",
"2.",
"3.",
"4.",
"5.",
"6.",
"7.",
"8.",
"9.",
"10.",
"11.",
"12.",
],
abbreviated: [
"sij",
"velj",
"ožu",
"tra",
"svi",
"lip",
"srp",
"kol",
"ruj",
"lis",
"stu",
"pro",
],
wide: [
"siječanj",
"veljača",
"ožujak",
"travanj",
"svibanj",
"lipanj",
"srpanj",
"kolovoz",
"rujan",
"listopad",
"studeni",
"prosinac",
],
};
const formattingMonthValues = {
narrow: [
"1.",
"2.",
"3.",
"4.",
"5.",
"6.",
"7.",
"8.",
"9.",
"10.",
"11.",
"12.",
],
abbreviated: [
"sij",
"velj",
"ožu",
"tra",
"svi",
"lip",
"srp",
"kol",
"ruj",
"lis",
"stu",
"pro",
],
wide: [
"siječnja",
"veljače",
"ožujka",
"travnja",
"svibnja",
"lipnja",
"srpnja",
"kolovoza",
"rujna",
"listopada",
"studenog",
"prosinca",
],
};
const dayValues = {
narrow: ["N", "P", "U", "S", "Č", "P", "S"],
short: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"],
abbreviated: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"],
wide: [
"nedjelja",
"ponedjeljak",
"utorak",
"srijeda",
"četvrtak",
"petak",
"subota",
],
};
const formattingDayPeriodValues = {
narrow: {
am: "AM",
pm: "PM",
midnight: "ponoć",
noon: "podne",
morning: "ujutro",
afternoon: "popodne",
evening: "navečer",
night: "noću",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "ponoć",
noon: "podne",
morning: "ujutro",
afternoon: "popodne",
evening: "navečer",
night: "noću",
},
wide: {
am: "AM",
pm: "PM",
midnight: "ponoć",
noon: "podne",
morning: "ujutro",
afternoon: "poslije podne",
evening: "navečer",
night: "noću",
},
};
const dayPeriodValues = {
narrow: {
am: "AM",
pm: "PM",
midnight: "ponoć",
noon: "podne",
morning: "ujutro",
afternoon: "popodne",
evening: "navečer",
night: "noću",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "ponoć",
noon: "podne",
morning: "ujutro",
afternoon: "popodne",
evening: "navečer",
night: "noću",
},
wide: {
am: "AM",
pm: "PM",
midnight: "ponoć",
noon: "podne",
morning: "ujutro",
afternoon: "poslije podne",
evening: "navečer",
night: "noću",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
return number + ".";
};
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",
formattingValues: formattingMonthValues,
defaultFormattingWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
});

View File

@@ -0,0 +1,89 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/**
* @typedef {object} MapOptions
* @property {boolean=} columns need columns?
* @property {boolean=} module is module
*/
/**
* @typedef {object} RawSourceMap
* @property {number} version version
* @property {string[]} sources sources
* @property {string[]} names names
* @property {string=} sourceRoot source root
* @property {string[]=} sourcesContent sources content
* @property {string} mappings mappings
* @property {string} file file
* @property {string=} debugId debug id
* @property {number[]=} ignoreList ignore list
*/
/** @typedef {string | Buffer} SourceValue */
/**
* @typedef {object} SourceAndMap
* @property {SourceValue} source source
* @property {RawSourceMap | null} map map
*/
/**
* @typedef {object} HashLike
* @property {(data: string | Buffer, inputEncoding?: string) => HashLike} update make hash update
* @property {(encoding?: string) => string | Buffer} digest get hash digest
*/
class Source {
/**
* @returns {SourceValue} source
*/
source() {
throw new Error("Abstract");
}
buffer() {
const source = this.source();
if (Buffer.isBuffer(source)) return source;
return Buffer.from(source, "utf8");
}
size() {
return this.buffer().length;
}
/**
* @param {MapOptions=} options map options
* @returns {RawSourceMap | null} map
*/
// eslint-disable-next-line no-unused-vars
map(options) {
return null;
}
/**
* @param {MapOptions=} options map options
* @returns {SourceAndMap} source and map
*/
sourceAndMap(options) {
return {
source: this.source(),
map: this.map(options),
};
}
/**
* @param {HashLike} hash hash
* @returns {void}
*/
// eslint-disable-next-line no-unused-vars
updateHash(hash) {
throw new Error("Abstract");
}
}
module.exports = Source;

View File

@@ -0,0 +1 @@
!function(n){var i="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+i+"|<"+i+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}(Prism);

View File

@@ -0,0 +1 @@
{"version":3,"file":"deleteWhere.d.ts","sourceRoot":"","sources":["../../src/postgres/deleteWhere.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,WAGzB,CAAA"}

View File

@@ -0,0 +1,10 @@
/**
* 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('./LexicalPlainText.dev.mjs') : import('./LexicalPlainText.prod.mjs'));
export const registerPlainText = mod.registerPlainText;

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Edit/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAEtD,CAAA"}

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 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 O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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 J bB K D E F A B C L M G N O 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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 bB K D E F A B C L M G","16":"N O P cB"},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","2":"J bB 6C bC 7C","16":"K"},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 QC","2":"F B JD KD LD MD PC xC ND","16":"C"},G:{"1":"E 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","2":"bC OD yC PD"},H:{"1":"mD"},I:{"1":"I rD sD","2":"VC J nD oD pD qD yC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"2":"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:"Reversed attribute of ordered lists",D:true};

View File

@@ -0,0 +1,231 @@
<p align="center">
<img width="160" src=".github/logo.webp">
</p>
<h1 align="center">
<sup>get-tsconfig</sup>
<br>
<a href="https://npm.im/get-tsconfig"><img src="https://badgen.net/npm/v/get-tsconfig"></a> <a href="https://npm.im/get-tsconfig"><img src="https://badgen.net/npm/dm/get-tsconfig"></a>
</h1>
Find and parse `tsconfig.json` files.
### Features
- Zero dependency (not even TypeScript)
- Tested against TypeScript for correctness
- Supports comments & dangling commas in `tsconfig.json`
- Resolves [`extends`](https://www.typescriptlang.org/tsconfig/#extends)
- Fully typed `tsconfig.json`
- Validates and throws parsing errors
- Tiny! `7 kB` Minified + Gzipped
<br>
<p align="center">
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a>
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=397608"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a>
</p>
<p align="center"><sup><i>Already a sponsor?</i> Join the discussion in the <a href="https://github.com/pvtnbr/get-tsconfig">Development repo</a>!</sup></p>
## Install
```bash
npm install get-tsconfig
```
## Why?
For TypeScript related tooling to correctly parse `tsconfig.json` file without depending on TypeScript.
## API
### getTsconfig(searchPath?, configName?, cache?)
Searches for a `tsconfig.json` file and parses it. Returns `null` if a config file cannot be found, or an object containing the path and parsed TSConfig object if found.
Returns:
```ts
type TsconfigResult = {
/**
* The path to the tsconfig.json file
*/
path: string
/**
* The resolved tsconfig.json file
*/
config: TsConfigJsonResolved
}
```
#### searchPath
Type: `string`
Default: `process.cwd()`
Accepts a path to a file or directory to search up for a `tsconfig.json` file.
#### configName
Type: `string`
Default: `tsconfig.json`
The file name of the TypeScript config file.
#### cache
Type: `Map<string, any>`
Default: `new Map()`
Optional cache for fs operations.
#### Example
```ts
import { getTsconfig } from 'get-tsconfig'
// Searches for tsconfig.json starting in the current directory
console.log(getTsconfig())
// Find tsconfig.json from a TypeScript file path
console.log(getTsconfig('./path/to/index.ts'))
// Find tsconfig.json from a directory file path
console.log(getTsconfig('./path/to/directory'))
// Explicitly pass in tsconfig.json path
console.log(getTsconfig('./path/to/tsconfig.json'))
// Search for jsconfig.json - https://code.visualstudio.com/docs/languages/jsconfig
console.log(getTsconfig('.', 'jsconfig.json'))
```
---
### parseTsconfig(tsconfigPath, cache?)
The `tsconfig.json` parser used internally by `getTsconfig`. Returns the parsed tsconfig as `TsConfigJsonResolved`.
#### tsconfigPath
Type: `string`
Required path to the tsconfig file.
#### cache
Type: `Map<string, any>`
Default: `new Map()`
Optional cache for fs operations.
#### Example
```ts
import { parseTsconfig } from 'get-tsconfig'
// Must pass in a path to an existing tsconfig.json file
console.log(parseTsconfig('./path/to/tsconfig.custom.json'))
```
### createFileMatcher(tsconfig: TsconfigResult, caseSensitivePaths?: boolean)
Given a `tsconfig.json` file, it returns a file-matcher function that determines whether it should apply to a file path.
```ts
type FileMatcher = (filePath: string) => TsconfigResult['config'] | undefined
```
#### tsconfig
Type: `TsconfigResult`
Pass in the return value from `getTsconfig`, or a `TsconfigResult` object.
#### caseSensitivePaths
Type: `boolean`
By default, it uses [`is-fs-case-sensitive`](https://github.com/privatenumber/is-fs-case-sensitive) to detect whether the file-system is case-sensitive.
Pass in `true` to make it case-sensitive.
#### Example
For example, if it's called with a `tsconfig.json` file that has `include`/`exclude`/`files` defined, the file-matcher will return the config for files that match `include`/`files`, and return `undefined` for files that don't match or match `exclude`.
```ts
const tsconfig = getTsconfig()
const fileMatcher = tsconfig && createFileMatcher(tsconfig)
/*
* Returns tsconfig.json if it matches the file,
* undefined if not
*/
const configForFile = fileMatcher?.('/path/to/file.ts')
const distCode = compileTypescript({
code: sourceCode,
tsconfig: configForFile
})
```
---
### createPathsMatcher(tsconfig: TsconfigResult)
Given a tsconfig with [`compilerOptions.paths`](https://www.typescriptlang.org/tsconfig#paths) defined, it returns a matcher function.
The matcher function accepts an [import specifier (the path to resolve)](https://nodejs.org/api/esm.html#terminology), checks it against `compilerOptions.paths`, and returns an array of possible paths to check:
```ts
function pathsMatcher(specifier: string): string[]
```
This function only returns possible paths and doesn't actually do any resolution. This helps increase compatibility wtih file/build systems which usually have their own resolvers.
#### Example
```ts
import { getTsconfig, createPathsMatcher } from 'get-tsconfig'
const tsconfig = getTsconfig()
const pathsMatcher = createPathsMatcher(tsconfig)
const exampleResolver = (request: string) => {
if (pathsMatcher) {
const tryPaths = pathsMatcher(request)
// Check if paths in `tryPaths` exist
}
}
```
## FAQ
### How can I use TypeScript to parse `tsconfig.json`?
This package is a re-implementation of TypeScript's `tsconfig.json` parser.
However, if you already have TypeScript as a dependency, you can simply use it's API:
```ts
import {
sys as tsSys,
findConfigFile,
readConfigFile,
parseJsonConfigFileContent
} from 'typescript'
// Find tsconfig.json file
const tsconfigPath = findConfigFile(process.cwd(), tsSys.fileExists, 'tsconfig.json')
// Read tsconfig.json file
const tsconfigFile = readConfigFile(tsconfigPath, tsSys.readFile)
// Resolve extends
const parsedTsconfig = parseJsonConfigFileContent(
tsconfigFile.config,
tsSys,
path.dirname(tsconfigPath)
)
```
## Sponsors
<p align="center">
<a href="https://github.com/sponsors/privatenumber">
<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
</a>
</p>

View File

@@ -0,0 +1,36 @@
import { toDate } from "./toDate.js";
/**
* The {@link setMinutes} function options.
*/
/**
* @name setMinutes
* @category Minute Helpers
* @summary Set the minutes to the given date.
*
* @description
* Set the minutes to the given date.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, returned from the context function, or inferred from the arguments.
*
* @param date - The date to be changed
* @param minutes - The minutes of the new date
* @param options - An object with options
*
* @returns The new date with the minutes set
*
* @example
* // Set 45 minutes to 1 September 2014 11:30:40:
* const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)
* //=> Mon Sep 01 2014 11:45:40
*/
export function setMinutes(date, minutes, options) {
const date_ = toDate(date, options?.in);
date_.setMinutes(minutes);
return date_;
}
// Fallback for modularized imports:
export default setMinutes;

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"O P","2":"C L M G N","257":"0 1 2 3 4 5 6 7 8 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:{"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 4C 5C","257":"0 1 2 3 4 5 6 7 8 rB tB uB vB wB xB yB 0B 1B 2B 3B 4B 5B WC 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","1281":"sB zB 6B"},D:{"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","257":"0 1 2 3 4 5 6 7 8 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","388":"rB sB tB uB vB wB"},E:{"2":"J bB K 6C bC 7C 8C","514":"D E F A B C L M G 9C AD cC PC QC BD CD DD dC eC RC ED SC","4609":"UC pC qC rC sC HD tC uC vC wC ID","6660":"fC gC hC iC jC FD TC kC lC mC nC oC GD"},F:{"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 JD KD LD MD PC xC ND QC","16":"kB lB mB nB oB","257":"0 1 2 3 4 5 6 7 8 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"},G:{"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 eC RC iD SC fC gC hC","8196":"iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC"},H:{"2":"mD"},I:{"2":"VC J I 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:{"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:{"2":"5D"},S:{"257":"6D 7D"}},B:5,C:"Push API",D:true};

View File

@@ -0,0 +1,602 @@
export const ltTranslations = {
authentication: {
account: 'Paskyra',
accountOfCurrentUser: 'Dabartinio vartotojo paskyra',
accountVerified: 'Sąskaita sėkmingai patvirtinta.',
alreadyActivated: 'Jau aktyvuota',
alreadyLoggedIn: 'Jau prisijungęs',
apiKey: 'API raktas',
authenticated: 'Autentifikuotas',
backToLogin: 'Grįžti į prisijungimą',
beginCreateFirstUser: 'Pradėkite, sukurdami savo pirmąjį vartotoją.',
changePassword: 'Keisti slaptažodį',
checkYourEmailForPasswordReset: 'Jei šis el. pašto adresas yra susijęs su paskyra, netrukus gausite instrukcijas, kaip atstatyti savo slaptažodį. Jei laiško nesimate savo gautiesiųjų dėžutėje, patikrinkite savo šlamšto ar nereikalingų laiškų aplanką.',
confirmGeneration: 'Patvirtinkite generavimą',
confirmPassword: 'Patvirtinkite slaptažodį',
createFirstUser: 'Sukurkite pirmąjį vartotoją',
emailNotValid: 'Pateiktas el. paštas negalioja',
emailOrUsername: 'El. paštas arba vartotojo vardas',
emailSent: 'El. paštas išsiųstas',
emailVerified: 'El. paštas sėkmingai patvirtintas.',
enableAPIKey: 'Įgalinti API raktą',
failedToUnlock: 'Nepavyko atrakinti',
forceUnlock: 'Priverstinis atrakinimas',
forgotPassword: 'Pamiršote slaptažodį',
forgotPasswordEmailInstructions: 'Prašome įvesti savo el. paštą žemiau. Gausite el. laišką su instrukcijomis, kaip atstatyti savo slaptažodį.',
forgotPasswordQuestion: 'Pamiršote slaptažodį?',
forgotPasswordUsernameInstructions: 'Prašome įvesti savo vartotojo vardą žemiau. Instrukcijos, kaip atstatyti slaptažodį, bus išsiųstos į el. pašto adresą, susietą su jūsų vartotojo vardu.',
generate: 'Generuoti',
generateNewAPIKey: 'Sukurkite naują API raktą',
generatingNewAPIKeyWillInvalidate: 'Sugeneruojant naują API raktą, bus <1>anuliuotas</1> ankstesnis raktas. Ar tikrai norite tęsti?',
lockUntil: 'Užrakinti iki',
logBackIn: 'Prisijunkite vėl',
loggedIn: 'Norėdami prisijungti kitu vartotoju, turėtumėte iš pradžių <0>atsijungti</0>.',
loggedInChangePassword: 'Norėdami pakeisti slaptažodį, eikite į savo <0>paskyrą</0> ir ten redaguokite savo slaptažodį.',
loggedOutInactivity: 'Jūs buvote atjungtas dėl neveiklumo.',
loggedOutSuccessfully: 'Sėkmingai atsijungėte.',
loggingOut: 'Atsijungimas...',
login: 'Prisijungti',
loginAttempts: 'Prisijungimo bandymai',
loginUser: 'Prisijungti vartotojui',
loginWithAnotherUser: 'Norėdami prisijungti su kitu vartotoju, turėtumėte iš pradžių <0>atsijungti</0>.',
logOut: 'Atsijungti',
logout: 'Atsijungti',
logoutSuccessful: 'Sėkmingai atsijungta.',
logoutUser: 'Atjungti vartotoją',
newAccountCreated: 'Jums ką tik buvo sukurta nauja paskyra, kad galėtumėte prisijungti prie <a href="{{serverURL}}">{{serverURL}}</a> Prašome paspausti ant šios nuorodos arba įklijuoti apačioje esantį URL į savo naršyklę, kad patvirtintumėte savo el. pašto adresą: <a href="{{verificationURL}}">{{verificationURL}}</a><br> Patvirtinę savo el. pašto adresą, sėkmingai galėsite prisijungti.',
newAPIKeyGenerated: 'Sugeneruotas naujas API raktas.',
newPassword: 'Naujas slaptažodis',
passed: 'Autentifikacija sėkminga',
passwordResetSuccessfully: 'Slaptažodis sėkmingai atnaujintas.',
resetPassword: 'Atstatyti slaptažodį',
resetPasswordExpiration: 'Atstatyti slaptažodžio galiojimo laiką',
resetPasswordToken: 'Slaptažodžio atkūrimo žetonas',
resetYourPassword: 'Atstatykite savo slaptažodį',
stayLoggedIn: 'Likite prisijungę',
successfullyRegisteredFirstUser: 'Sėkmingai užregistruotas pirmas vartotojas.',
successfullyUnlocked: 'Sėkmingai atrakinta',
tokenRefreshSuccessful: 'Žetonų atnaujinimas sėkmingas.',
unableToVerify: 'Negalima patikrinti',
username: 'Vartotojo vardas',
usernameNotValid: 'Pateiktas vartotojo vardas yra netinkamas',
verified: 'Patvirtinta',
verifiedSuccessfully: 'Sėkmingai patvirtinta',
verify: 'Patikrinkite',
verifyUser: 'Patvirtinti vartotoją',
verifyYourEmail: 'Patvirtinkite savo el. paštą',
youAreInactive: 'Jūs kurį laiką neveikėte ir netrukus būsite automatiškai atjungtas dėl jūsų pačių saugumo. Ar norėtumėte likti prisijungęs?',
youAreReceivingResetPassword: 'Gavote šį pranešimą, nes jūs (arba kažkas kitas) paprašėte atstatyti slaptažodį savo paskyrai. Norėdami užbaigti procesą, spustelėkite šią nuorodą arba įklijuokite ją į savo naršyklę:',
youDidNotRequestPassword: 'Jei to neprašėte, prašome ignoruoti šį el. laišką ir jūsų slaptažodis išliks nepakeistas.'
},
dashboard: {
addWidget: 'Pridėti valdiklį',
deleteWidget: 'Ištrinti valdiklį {{id}}',
searchWidgets: 'Ieškokite valdiklių...'
},
error: {
accountAlreadyActivated: 'Ši paskyra jau aktyvuota.',
autosaving: 'Šio dokumento automatinio išsaugojimo metu kilo problema.',
correctInvalidFields: 'Prašome ištaisyti neteisingus laukus.',
deletingFile: 'Įvyko klaida trinant failą.',
deletingTitle: 'Įvyko klaida bandant ištrinti {{title}}. Patikrinkite savo ryšį ir bandykite dar kartą.',
documentNotFound: 'Dokumentas su ID {{id}} nerastas. Gali būti, kad jis buvo ištrintas arba niekada neegzistavo, arba jūs neturite prieigos prie jo.',
emailOrPasswordIncorrect: 'Pateiktas el. pašto adresas arba slaptažodis yra neteisingi.',
followingFieldsInvalid_one: 'Šis laukas yra netinkamas:',
followingFieldsInvalid_other: 'Šie laukai yra neteisingi:',
incorrectCollection: 'Neteisinga kolekcija',
insufficientClipboardPermissions: 'Prieiga prie iškarpinės atmesta. Patikrinkite savo iškarpinės teises.',
invalidClipboardData: 'Neteisingi iškarpinės duomenys.',
invalidFileType: 'Netinkamas failo tipas',
invalidFileTypeValue: 'Neteisingas failo tipas: {{value}}',
invalidRequestArgs: 'Netinkami argumentai perduoti užklausoje: {{args}}',
loadingDocument: 'Įvyko klaida įkeliant dokumentą, kurio ID yra {{id}}.',
localesNotSaved_one: 'Negalima išsaugoti šios lokalės:',
localesNotSaved_other: 'Šios lokalės negalėjo būti išsaugotos:',
logoutFailed: 'Atsijungimas nepavyko.',
missingEmail: 'Trūksta el. pašto.',
missingIDOfDocument: 'Trūksta dokumento, kurį reikia atnaujinti, ID.',
missingIDOfVersion: 'Trūksta versijos ID.',
missingRequiredData: 'Trūksta reikalingų duomenų.',
noFilesUploaded: 'Neįkelta jokių failų.',
noMatchedField: 'Nerasta atitinkamo lauko „{{label}}“',
notAllowedToAccessPage: 'Jums neleidžiama prieiti prie šio puslapio.',
notAllowedToPerformAction: 'Jums neleidžiama atlikti šio veiksmo.',
notFound: 'Pageidaujamas išteklius nerasta.',
noUser: 'Nėra vartotojo',
previewing: 'Šiam dokumentui peržiūrėti kilo problema.',
problemUploadingFile: 'Failo įkelti nepavyko dėl problemos.',
restoringTitle: 'Įvyko klaida atkuriant {{title}}. Prašome patikrinti savo ryšį ir bandyti dar kartą.',
revertingDocument: 'Šio dokumento grąžinimo metu kilo problema.',
tokenInvalidOrExpired: 'Žetonas yra neteisingas arba jo galiojimas pasibaigė.',
tokenNotProvided: 'Žetonas nesuteiktas.',
unableToCopy: 'Nepavyko nukopijuoti.',
unableToDeleteCount: 'Negalima ištrinti {{count}} iš {{total}} {{label}}.',
unableToReindexCollection: 'Klaida perindeksuojant rinkinį {{collection}}. Operacija nutraukta.',
unableToUpdateCount: 'Nepavyko atnaujinti {{count}} iš {{total}} {{label}}.',
unauthorized: 'Neleistina, turite būti prisijungęs, kad galėtumėte teikti šį prašymą.',
unauthorizedAdmin: 'Neleidžiama, šis vartotojas neturi prieigos prie administratoriaus panelės.',
unknown: 'Įvyko nežinoma klaida.',
unPublishingDocument: 'Šio dokumento nepublikuojant kildavo problema.',
unspecific: 'Įvyko klaida.',
unverifiedEmail: 'Prieš prisijungdami patvirtinkite savo el. paštą.',
userEmailAlreadyRegistered: 'Vartotojas su nurodytu el. paštu jau yra užregistruotas.',
userLocked: 'Šis vartotojas užrakintas dėl per daug nepavykusių prisijungimo bandymų.',
usernameAlreadyRegistered: 'Vartotojas su nurodytu vartotojo vardu jau užregistruotas.',
usernameOrPasswordIncorrect: 'Pateiktas vartotojo vardas arba slaptažodis yra neteisingas.',
valueMustBeUnique: 'Vertė turi būti unikalu.',
verificationTokenInvalid: 'Patvirtinimo kodas yra negaliojantis.'
},
fields: {
addLabel: 'Pridėkite {{label}}',
addLink: 'Pridėti nuorodą',
addNew: 'Pridėti naują',
addNewLabel: 'Pridėti naują {{label}}',
addRelationship: 'Pridėti santykį',
addUpload: 'Pridėti Įkelti',
block: 'Blokas',
blocks: 'blokai',
blockType: 'Blokas Tipas',
chooseBetweenCustomTextOrDocument: 'Pasirinkite tarp pasirinkimo įvesti tinkintą tekstą URL arba nuorodos į kitą dokumentą.',
chooseDocumentToLink: 'Pasirinkite dokumentą, prie kurio norite prisegti.',
chooseFromExisting: 'Pasirinkite iš esamų',
chooseLabel: 'Pasirinkite {{label}}',
collapseAll: 'Sutraukti viską',
customURL: 'Pasirinktinis URL',
editLabelData: 'Redaguoti {{label}} duomenis',
editLink: 'Redaguoti nuorodą',
editRelationship: 'Redaguoti santykius',
enterURL: 'Įveskite URL',
internalLink: 'Vidinis nuorodos',
itemsAndMore: '{{items}} ir dar {{count}}',
labelRelationship: '{{label}} Santykiai',
latitude: 'Platuma',
linkedTo: 'Susijęs su <0>{{label}}</0>',
linkType: 'Nuorodos tipas',
longitude: 'Ilgumažė',
newLabel: 'Naujas {{label}}',
openInNewTab: 'Atidaryti naujame skirtuke',
passwordsDoNotMatch: 'Slaptažodžiai nesutampa.',
relatedDocument: 'Susijęs dokumentas',
relationTo: 'Santykis su',
removeRelationship: 'Pašalinti ryšį',
removeUpload: 'Pašalinti įkėlimą',
saveChanges: 'Išsaugoti pakeitimus',
searchForBlock: 'Ieškokite bloko',
searchForLanguage: 'Ieškoti kalbos',
selectExistingLabel: 'Pasirinkite esamą {{label}}',
selectFieldsToEdit: 'Pasirinkite laukus, kuriuos norite redaguoti',
showAll: 'Rodyti viską',
swapRelationship: 'Apkeičiamas santykis',
swapUpload: 'Keitimo įkėlimas',
textToDisplay: 'Rodyti tekstą',
toggleBlock: 'Perjungti bloką',
uploadNewLabel: 'Įkelti naują {{label}}'
},
folder: {
browseByFolder: 'Naršyti pagal aplanką',
byFolder: 'Pagal aplanką',
deleteFolder: 'Ištrinti aplanką',
folderName: 'Aplanko pavadinimas',
folders: 'Aplankai',
folderTypeDescription: 'Pasirinkite, kokio tipo rinkinio dokumentai turėtų būti leidžiami šiame aplanke.',
itemHasBeenMoved: '{{title}} buvo perkeltas į {{folderName}}',
itemHasBeenMovedToRoot: '{{title}} buvo perkeltas į pagrindinį katalogą',
itemsMovedToFolder: '{{title}} perkeltas į {{folderName}}',
itemsMovedToRoot: '{{title}} perkeltas į šakninį aplanką',
moveFolder: 'Perkelti aplanką',
moveItemsToFolderConfirmation: 'Jūs ketinate perkelti <1>{{count}} {{label}}</1> į <2>{{toFolder}}</2>. Ar esate tikri?',
moveItemsToRootConfirmation: 'Jūs ketinate perkelti <1>{{count}} {{label}}</1> į šakninį aplanką. Ar esate tikri?',
moveItemToFolderConfirmation: 'Jūs ketinate perkelti <1>{{title}}</1> į <2>{{toFolder}}</2>. Ar esate įsitikinęs?',
moveItemToRootConfirmation: 'Jūs ketinate perkelti <1>{{title}}</1> į pagrindinį aplanką. Ar esate tikras?',
movingFromFolder: 'Perkeliamas {{title}} iš {{fromFolder}}',
newFolder: 'Naujas aplankas',
noFolder: 'Nėra aplanko',
renameFolder: 'Pervadinti aplanką',
searchByNameInFolder: 'Ieškoti pagal vardą {{folderName}}',
selectFolderForItem: 'Pasirinkite aplanką skirtą {{title}}'
},
general: {
name: 'Vardas',
aboutToDelete: 'Jūs ketinate ištrinti {{label}} <1>{{title}}</1>. Ar esate tikri?',
aboutToDeleteCount_many: 'Jūs ketinate ištrinti {{count}} {{label}}',
aboutToDeleteCount_one: 'Jūs ketinate ištrinti {{count}} {{label}}',
aboutToDeleteCount_other: 'Jūs ketinate ištrinti {{count}} {{label}}',
aboutToPermanentlyDelete: 'Jūs ketinate visam laikui ištrinti {{label}} <1>{{title}}</1>. Ar esate įsitikinęs?',
aboutToPermanentlyDeleteTrash: 'Jūs ketinate visam laikui ištrinti <0>{{count}}</0> <1>{{label}}</1> iš šiukšliadėžės. Ar esate įsitikinęs?',
aboutToRestore: 'Jūs ketinate atkurti {{label}} <1>{{title}}</1>. Ar esate tikri?',
aboutToRestoreAsDraft: 'Jūs ketinate atkurti {{label}} <1>{{title}}</1> kaip juodraštį. Ar esate įsitikinęs?',
aboutToRestoreAsDraftCount: 'Jūs ketinate atkurti {{count}} {{label}} kaip juodraštį',
aboutToRestoreCount: 'Jūs ketinate atkurti {{count}} {{label}}',
aboutToTrash: 'Jūs ketinate perkelti {{label}} <1>{{title}}</1> į šiukšliadėžę. Ar esate tikras?',
aboutToTrashCount: 'Jūs ketinate perkelti {{count}} {{label}} į šiukšlinę',
addBelow: 'Pridėti žemiau',
addFilter: 'Pridėti filtrą',
adminTheme: 'Admin temos',
all: 'Visi',
allCollections: 'Visos kolekcijos',
allLocales: 'Visi lokalai',
and: 'Ir',
anotherUser: 'Kitas vartotojas',
anotherUserTakenOver: 'Kitas naudotojas perėmė šio dokumento redagavimą.',
applyChanges: 'Taikyti pakeitimus',
ascending: 'Kylantis',
automatic: 'Automatinis',
backToDashboard: 'Atgal į informacinę skydelį',
cancel: 'Atšaukti',
changesNotSaved: 'Jūsų pakeitimai nebuvo išsaugoti. Jei dabar išeisite, prarasite savo pakeitimus.',
clear: 'Aišku',
clearAll: 'Išvalyti viską',
close: 'Uždaryti',
collapse: 'Susikolimas',
collections: 'Kolekcijos',
columns: 'Stulpeliai',
columnToSort: 'Rūšiuoti stulpelį',
confirm: 'Patvirtinti',
confirmCopy: 'Patvirtinkite kopiją',
confirmDeletion: 'Patvirtinkite šalinimą',
confirmDuplication: 'Patvirtinkite dubliavimą',
confirmMove: 'Patvirtinkite perkėlimą',
confirmReindex: 'Perindeksuoti visas {{collections}}?',
confirmReindexAll: 'Perindeksuoti visas kolekcijas?',
confirmReindexDescription: 'Tai pašalins esamus indeksus ir iš naujo indeksuos dokumentus kolekcijose {{collections}}.',
confirmReindexDescriptionAll: 'Tai pašalins esamas indeksus ir perindeksuos dokumentus visose kolekcijose.',
confirmRestoration: 'Patvirtinkite atkūrimą',
copied: 'Nukopijuota',
copy: 'Kopijuoti',
copyField: 'Kopijuoti lauką',
copying: 'Kopijavimas',
copyRow: 'Kopijuoti eilutę',
copyWarning: 'Jūs ketinate perrašyti {{to}} į {{from}} šildymui {{label}} {{title}}. Ar esate tikri?',
create: 'Sukurti',
created: 'Sukurta',
createdAt: 'Sukurta',
createNew: 'Sukurti naują',
createNewLabel: 'Sukurti naują {{label}}',
creating: 'Kuriant',
creatingNewLabel: 'Kuriamas naujas {{label}}',
currentlyEditing: 'šiuo metu redaguoja šį dokumentą. Jei perimsite, jie bus užblokuoti ir negalės toliau redaguoti, o taip pat gali prarasti neišsaugotus pakeitimus.',
custom: 'Paprastas',
dark: 'Tamsus',
dashboard: 'Prietaisų skydelis',
delete: 'Ištrinti',
deleted: 'Ištrinta',
deletedAt: 'Ištrinta',
deletedCountSuccessfully: 'Sėkmingai ištrinta {{count}} {{label}}.',
deletedSuccessfully: 'Sėkmingai ištrinta.',
deleteLabel: 'Ištrinti {{label}}',
deletePermanently: 'Praleiskite šiukšliadėžę ir ištrinkite visam laikui',
deleting: 'Trinama...',
depth: 'Gylis',
descending: 'Mažėjantis',
deselectAllRows: 'Atžymėkite visas eilutes',
document: 'Dokumentas',
documentIsTrashed: 'Šis {{label}} yra ištrintas ir yra tik skaitymui.',
documentLocked: 'Dokumentas užrakintas',
documents: 'Dokumentai',
duplicate: 'Dublikatas',
duplicateWithoutSaving: 'Dubliuoti be įrašytų pakeitimų',
edit: 'Redaguoti',
editAll: 'Redaguoti viską',
editedSince: 'Redaguota nuo',
editing: 'Redagavimas',
editingLabel_many: 'Redaguojama {{count}} {{label}}',
editingLabel_one: 'Redaguojama {{count}} {{label}}',
editingLabel_other: 'Redaguojamas {{count}} {{label}}',
editingTakenOver: 'Redagavimas perimtas',
editLabel: 'Redaguoti {{label}}',
email: 'El. paštas',
emailAddress: 'El. pašto adresas',
emptyTrash: 'Ištuštinti šiukšliadėžę',
emptyTrashLabel: 'Ištuštuokite {{label}} šiukšliadėžę',
enterAValue: 'Įveskite reikšmę',
error: 'Klaida',
errors: 'Klaidos',
exitLivePreview: 'Išeiti iš tiesioginės peržiūros',
export: 'Eksportas',
fallbackToDefaultLocale: 'Grįžkite į numatytąją vietovę',
false: 'Netiesa',
filter: 'Filtruoti',
filters: 'Filtrai',
filterWhere: 'Filtruoti {{label}}, kur',
globals: 'Globalai',
goBack: 'Grįžkite',
groupByLabel: 'Grupuoti pagal {{label}}',
import: 'Importas',
isEditing: 'redaguoja',
item: 'Daiktas',
items: 'elementai',
language: 'Kalba',
lastModified: 'Paskutinį kartą modifikuota',
layout: 'Išdėstymas',
leaveAnyway: 'Vis tiek išeikite',
leaveWithoutSaving: 'Išeikite neišsaugoję',
light: 'Šviesa',
livePreview: 'Tiesioginė peržiūra',
loading: 'Kraunama',
locale: 'Lokalė',
locales: 'Lokalės',
lock: 'Užraktas',
menu: 'Meniu',
moreOptions: 'Daugiau parinkčių',
move: 'Judėti',
moveConfirm: 'Jūs ketinate perkelti {{count}} {{label}} į <1>{{destination}}</1>. Ar esate tikri?',
moveCount: 'Perkelti {{count}} {{label}}',
moveDown: 'Perkelti žemyn',
moveUp: 'Pakilti',
moving: 'Keliauja',
movingCount: 'Perkeliama {{count}} {{label}}',
newLabel: 'Naujas {{label}}',
newPassword: 'Naujas slaptažodis',
next: 'Toliau',
no: 'Ne',
noDateSelected: 'Pasirinktos datos nėra',
noFiltersSet: 'Nenustatyti jokie filtrai',
noLabel: '<Ne {{label}}>',
none: 'Jokios',
noOptions: 'Jokių variantų',
noResults: 'Nerasta jokių {{label}}. Arba dar nėra sukurtų {{label}}, arba jie neatitinka nurodytų filtrų aukščiau.',
noResultsDescription: 'Arba jų nėra, arba jie neatitinka viršuje nurodytų filtrų.',
noResultsFound: 'Nėra rezultatų.',
notFound: 'Nerasta',
nothingFound: 'Nieko nerasta',
noTrashResults: 'Nėra {{label}} šiukšliadėžėje.',
noUpcomingEventsScheduled: 'Nėra suplanuotų būsimų renginių.',
noValue: 'Nėra vertės',
of: 'apie',
only: 'Tik',
open: 'Atidaryti',
or: 'Arba',
order: 'Užsakyti',
overwriteExistingData: 'Perrašyti esamus lauko duomenis',
pageNotFound: 'Puslapis nerastas',
password: 'Slaptažodis',
pasteField: 'Įklijuoti lauką',
pasteRow: 'Įklijuoti eilutę',
payloadSettings: 'Payload nustatymai',
permanentlyDelete: 'Visam laikui pašalinti',
permanentlyDeletedCountSuccessfully: 'Sėkmingai visam laikui ištrinta {{count}} {{label}}.',
perPage: 'Puslapyje: {{limit}}',
previous: 'Ankstesnis',
reindex: 'Perindeksuoti',
reindexingAll: 'Perindeksuojamos visos {{collections}}.',
remove: 'Pašalinti',
rename: 'Pervadinti',
reset: 'Atstatyti',
resetPreferences: 'Atstatyti nuostatas',
resetPreferencesDescription: 'Tai atstatys visas jūsų nuostatas į numatytąsias reikšmes.',
resettingPreferences: 'Nustatymų atstatymas.',
restore: 'Atkurti',
restoreAsPublished: 'Atkurti kaip publikuotą versiją',
restoredCountSuccessfully: 'Sėkmingai atkurtas {{count}} {{label}}.',
restoring: 'Atkurimas...',
row: 'Eilutė',
rows: 'Eilutės',
save: 'Išsaugoti',
saveChanges: 'Išsaugoti pakeitimus',
saving: 'Išsaugoti...',
schedulePublishFor: 'Suplanuokite publikaciją „{{title}}“',
searchBy: 'Ieškokite pagal {{label}}',
select: 'Pasirinkite',
selectAll: 'Pasirinkite visus {{count}} {{label}}',
selectAllRows: 'Pasirinkite visas eilutes',
selectedCount: '{{count}} {{label}} pasirinkta',
selectLabel: 'Pasirinkite {{label}}',
selectValue: 'Pasirinkite reikšmę',
showAllLabel: 'Rodyti visus {{label}}',
sorryNotFound: 'Atsiprašau - nėra nieko, atitinkančio jūsų užklausą.',
sort: 'Rūšiuoti',
sortByLabelDirection: 'Rūšiuoti pagal {{label}} {{direction}}',
stayOnThisPage: 'Likite šiame puslapyje',
submissionSuccessful: 'Pateikimas sėkmingas.',
submit: 'Pateikti',
submitting: 'Pateikiama...',
success: 'Sėkmė',
successfullyCreated: '{{label}} sėkmingai sukurtas.',
successfullyDuplicated: '{{label}} sėkmingai dubliuotas.',
successfullyReindexed: 'Sėkmingai perindeksuota {{count}} iš {{total}} dokumentų iš {{collections}}, praleista {{skips}} juodraščių.',
takeOver: 'Perimti',
thisLanguage: 'Lietuvių',
time: 'Laikas',
timezone: 'Laiko juosta',
titleDeleted: '{{label}} "{{title}}" sėkmingai ištrinta.',
titleRestored: '{{label}} "{{title}}" sėkmingai atkurta.',
titleTrashed: '{{label}} "{{title}}" perkeltas į šiukšliadėžę.',
trash: 'Šiukšlės',
trashedCountSuccessfully: '{{count}} {{label}} perkeltas į šiukšlinę.',
true: 'Tiesa',
unauthorized: 'Neleistinas',
unlock: 'Atrakinti',
unsavedChanges: 'Turite neišsaugotų pakeitimų. Išsaugokite arba atmestkite prieš tęsdami.',
unsavedChangesDuplicate: 'Jūs turite neišsaugotų pakeitimų. Ar norėtumėte tęsti dubliavimą?',
untitled: 'Neužpavadinamas',
upcomingEvents: 'Artimieji renginiai',
updatedAt: 'Atnaujinta',
updatedCountSuccessfully: '{{count}} {{label}} sėkmingai atnaujinta.',
updatedLabelSuccessfully: 'Sėkmingai atnaujinta {{label}}.',
updatedSuccessfully: 'Sėkmingai atnaujinta.',
updateForEveryone: 'Atnaujinimas visiems',
updating: 'Atnaujinimas',
uploading: 'Įkeliama',
uploadingBulk: 'Įkeliamas {{current}} iš {{total}}',
user: 'Vartotojas',
username: 'Vartotojo vardas',
users: 'Vartotojai',
value: 'Vertė',
viewing: 'Peržiūrėti',
viewReadOnly: 'Peržiūrėti tik skaitymui',
welcome: 'Sveiki',
yes: 'Taip'
},
localization: {
cannotCopySameLocale: 'Negalima kopijuoti į tą pačią vietovę',
copyFrom: 'Kopijuoti iš',
copyFromTo: 'Kopijavimas iš {{from}} į {{to}}',
copyTo: 'Kopijuoti į',
copyToLocale: 'Kopijuoti į vietovę',
localeToPublish: 'Publikuoti lokacijoje',
selectedLocales: 'Pasirinktos lokalės',
selectLocaleToCopy: 'Pasirinkite lokalės kopijavimui',
selectLocaleToDuplicate: 'Pasirinkite vietoves, kurias norite dubliuoti'
},
operators: {
contains: 'yra',
equals: 'lygus',
exists: 'egzistuoja',
intersects: 'susikerta',
isGreaterThan: 'yra didesnis nei',
isGreaterThanOrEqualTo: 'yra didesnis arba lygus',
isIn: 'yra',
isLessThan: 'yra mažiau nei',
isLessThanOrEqualTo: 'yra mažiau arba lygu',
isLike: 'yra panašu',
isNotEqualTo: 'nelygu',
isNotIn: 'nėra',
isNotLike: 'nėra panašus',
near: 'šalia',
within: 'viduje'
},
upload: {
addFile: 'Pridėti failą',
addFiles: 'Pridėti failus',
bulkUpload: 'Masinis įkėlimas',
crop: 'Pasėlis',
cropToolDescription: 'Temkite pasirinktos srities kampus, nubrėžkite naują sritį arba koreguokite žemiau esančias reikšmes.',
download: 'Atsisiųsti',
dragAndDrop: 'Temkite ir numeskite failą',
dragAndDropHere: 'arba nuvilkite failą čia',
editImage: 'Redaguoti vaizdą',
fileName: 'Failo pavadinimas',
fileSize: 'Failo dydis',
filesToUpload: 'Įkelti failai',
fileToUpload: 'Įkelti failą',
focalPoint: 'Fokuso Taškas',
focalPointDescription: 'Temkite fokusavimo tašką tiesiogiai peržiūroje arba reguliuokite žemiau esančias reikšmes.',
height: 'Aukštis',
lessInfo: 'Mažiau informacijos',
moreInfo: 'Daugiau informacijos',
noFile: 'Nėra failo',
pasteURL: 'Įklijuokite URL',
previewSizes: 'Peržiūros dydžiai',
selectCollectionToBrowse: 'Pasirinkite kolekciją, kurią norėtumėte naršyti',
selectFile: 'Pasirinkite failą',
setCropArea: 'Nustatykite pjovimo plotą',
setFocalPoint: 'Nustatyti fokuso tašką',
sizes: 'Dydžiai',
sizesFor: 'Dydžiai skirti {{label}}',
width: 'Plotis'
},
validation: {
emailAddress: 'Įveskite galiojantį el. pašto adresą.',
enterNumber: 'Įveskite galiojantį skaičių.',
fieldHasNo: 'Šiame lauke nėra {{label}}',
greaterThanMax: '{{value}} yra didesnė nei leidžiama maksimali {{label}} reikšmė, kuri yra {{max}}.',
invalidBlock: 'Blokas "{{block}}" yra neleidžiamas.',
invalidBlocks: 'Šiame lauke yra blokų, kurie daugiau neleidžiami: {{blocks}}.',
invalidInput: 'Šis laukas turi netinkamą įvestį.',
invalidSelection: 'Šiame lauke yra netinkamas pasirinkimas.',
invalidSelections: 'Šiame lauke yra šios netinkamos parinktys:',
latitudeOutOfBounds: 'Platumas turi būti tarp -90 ir 90.',
lessThanMin: '{{value}} yra mažesnė nei leidžiama minimali {{label}} reikšmė, kuri yra {{min}}.',
limitReached: 'Pasiektas limitas, galima pridėti tik {{max}} daiktus.',
longerThanMin: 'Ši reikšmė turi būti ilgesnė nei minimalus simbolių skaičius, kuris yra {{minLength}} simboliai.',
longitudeOutOfBounds: 'Ilguma turi būti tarp -180 ir 180.',
notValidDate: '"{{value}}" nėra galiojanti data.',
required: 'Šis laukas yra privalomas.',
requiresAtLeast: 'Šis laukas reikalauja bent {{count}} {{label}}.',
requiresNoMoreThan: 'Šiame laukelyje gali būti ne daugiau kaip {{count}} {{label}}.',
requiresTwoNumbers: 'Šiame lauke reikia įvesti du skaičius.',
shorterThanMax: 'Ši reikšmė turi būti trumpesnė nei maksimalus {{maxLength}} simbolių ilgis.',
timezoneRequired: 'Reikia nustatyti laiko juostą.',
trueOrFalse: 'Šis laukas gali būti lygus tik „true“ ar „false“.',
username: 'Įveskite galiojantį vartotojo vardą. Galima naudoti raides, skaičius, brūkšnelius, taškus ir pabraukimus.',
validUploadID: 'Šis laukas nėra tinkamas įkėlimo ID.'
},
version: {
type: 'Įveskite',
aboutToPublishSelection: 'Jūs ketinate išleisti visus {{label}} išrinktame. Ar esate tikri?',
aboutToRestore: 'Jūs ketinate atkurti šį {{label}} dokumentą į būklę, kurioje jis buvo {{versionDate}}.',
aboutToRestoreGlobal: 'Jūs ketinate atkurti visuotinę {{label}} būklę, kokia ji buvo {{versionDate}}.',
aboutToRevertToPublished: 'Jūs ketinate atšaukti šio dokumento pakeitimus ir grįžti prie publikuotos versijos. Ar esate įsitikinęs?',
aboutToUnpublish: 'Jūs ketinate panaikinti šio dokumento publikavimą. Ar esate tikri?',
aboutToUnpublishIn: 'Jūs ketinate nepublikuoti šio dokumento {{locale}}. Ar esate tikras?',
aboutToUnpublishSelection: 'Jūs ketinate atšaukti visų {{label}} pasirinkime. Ar esate įsitikinęs?',
autosave: 'Automatinis išsaugojimas',
autosavedSuccessfully: 'Sėkmingai automatiškai išsaugota.',
autosavedVersion: 'Automatiškai išsaugota versija',
changed: 'Pakeistas',
changedFieldsCount_one: '{{count}} pakeistas laukas',
changedFieldsCount_other: '{{count}} pakeisti laukai',
compareVersion: 'Palyginkite versiją su:',
compareVersions: 'Palyginkite versijas',
comparingAgainst: 'Lyginant su',
confirmPublish: 'Patvirtinkite publikaciją',
confirmRevertToSaved: 'Patvirtinkite grįžimą į įrašytą',
confirmUnpublish: 'Patvirtinkite nepublikavimą',
confirmVersionRestoration: 'Patvirtinkite versijos atkūrimą',
currentDocumentStatus: 'Dabartinis {{docStatus}} dokumentas',
currentDraft: 'Dabartinis projektas',
currentlyPublished: 'Šiuo metu publikuojama',
currentlyViewing: 'Šiuo metu peržiūrima',
currentPublishedVersion: 'Dabartinė publikuota versija',
draft: 'Projektas',
draftHasPublishedVersion: 'Juodraštis (turi publikuotą versiją)',
draftSavedSuccessfully: 'Juosmuo sėkmingai išsaugotas.',
lastSavedAgo: 'Paskutinį kartą išsaugota prieš {{distance}}',
modifiedOnly: 'Tik modifikuotas',
moreVersions: 'Daugiau versijų...',
noFurtherVersionsFound: 'Nerasta daugiau versijų',
noLabelGroup: 'Nepavadintas grupė',
noRowsFound: 'Nerasta {{label}}',
noRowsSelected: 'Pasirinkta ne viena {{label}}',
preview: 'Peržiūra',
previouslyDraft: 'Ankstesnis juodraštis',
previouslyPublished: 'Ankstesnė publikacija',
previousVersion: 'Ankstesnė versija',
problemRestoringVersion: 'Buvo problema atkuriant šią versiją',
publish: 'Paskelbti',
publishAllLocales: 'Publikuokite visus lokalizacijas',
publishChanges: 'Paskelbti pakeitimus',
published: 'Paskelbta',
publishIn: 'Paskelbti {{locale}}',
publishing: 'Leidyba',
restoreAsDraft: 'Atkurti kaip juodraštį',
restoredSuccessfully: 'Sėkmingai atkurtas.',
restoreThisVersion: 'Atkurti šią versiją',
restoring: 'Atkuriamas...',
reverting: 'Grįžtama...',
revertToPublished: 'Grįžti prie publikuotojo',
revertUnsuccessful: 'Grįžtama nepavyko. Ankstesnės publikuotos versijos nerasta.',
saveDraft: 'Išsaugoti juodraštį',
scheduledSuccessfully: 'Sėkmingai suplanuota.',
schedulePublish: 'Suplanuokite publikaciją',
selectLocales: 'Pasirinkite lokales, kurias norėtumėte rodyti',
selectVersionToCompare: 'Pasirinkite versiją, kurią norite palyginti',
showingVersionsFor: 'Rodomos versijos:',
showLocales: 'Rodyti lokalizacijas:',
specificVersion: 'Specifinė versija',
status: 'Būsena',
unpublish: 'Nebepublikuoti',
unpublished: 'Nepublikuota',
unpublishedSuccessfully: 'Sėkmingai nepaskelbta.',
unpublishIn: 'Nepublikuoti {{locale}}',
unpublishing: 'Nebepublikuojama...',
version: 'Versija',
versionAgo: 'prieš {{distance}}',
versionCount_many: 'Rasta {{count}} versijų',
versionCount_none: 'Nerasta jokių versijų',
versionCount_one: 'Rasta {{count}} versija',
versionCount_other: 'Rasta {{count}} versijų',
versionID: 'Versijos ID',
versions: 'Versijos',
viewingVersion: 'Peržiūrėkite versiją {{entityLabel}} {{documentTitle}}',
viewingVersionGlobal: 'Peržiūrint visuotinę {{entityLabel}} versiją',
viewingVersions: 'Peržiūrint versijas {{entityLabel}} {{documentTitle}}',
viewingVersionsGlobal: 'Peržiūrėti globalaus {{entityLabel}} versijas'
}
};
export const lt = {
dateFNSKey: 'lt',
translations: ltTranslations
};
//# sourceMappingURL=lt.js.map

View File

@@ -0,0 +1,13 @@
@import '../../../../scss/styles.scss';
@layer payload-default {
.condition-value-relationship {
&__error-loading {
border: 1px solid var(--theme-error-600);
min-height: base(2);
padding: base(0.5) base(0.75);
background-color: var(--theme-error-100);
color: var(--theme-elevation-0);
}
}
}

View File

@@ -0,0 +1,45 @@
import { useCombineMotionValues } from './use-combine-values.mjs';
import { isMotionValue } from './utils/is-motion-value.mjs';
/**
* Combine multiple motion values into a new one using a string template literal.
*
* ```jsx
* import {
* motion,
* useSpring,
* useMotionValue,
* useMotionTemplate
* } from "framer-motion"
*
* function Component() {
* const shadowX = useSpring(0)
* const shadowY = useMotionValue(0)
* const shadow = useMotionTemplate`drop-shadow(${shadowX}px ${shadowY}px 20px rgba(0,0,0,0.3))`
*
* return <motion.div style={{ filter: shadow }} />
* }
* ```
*
* @public
*/
function useMotionTemplate(fragments, ...values) {
/**
* Create a function that will build a string from the latest motion values.
*/
const numFragments = fragments.length;
function buildValue() {
let output = ``;
for (let i = 0; i < numFragments; i++) {
output += fragments[i];
const value = values[i];
if (value) {
output += isMotionValue(value) ? value.get() : value;
}
}
return output;
}
return useCombineMotionValues(values.filter(isMotionValue), buildValue);
}
export { useMotionTemplate };

View File

@@ -0,0 +1,44 @@
# OpenTelemetry async_hooks-based Context Managers
[![NPM Published Version][npm-img]][npm-url]
[![Apache License][license-image]][license-image]
This package provides two [`ContextManager`](https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api.ContextManager.html) implementations built on APIs from Node.js's [`async_hooks`][async-hooks-doc] module. If you're looking for a `ContextManager` to use in browser environments, consider [opentelemetry-context-zone](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-context-zone) or [opentelemetry-context-zone-peer-dep](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-context-zone-peer-dep).
See [the definition of the `ContextManager` interface][def-context-manager] and the problem it solves.
## API
Two `ContextManager` implementations are exported:
- `AsyncLocalStorageContextManager`, based on [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage)
- `AsyncHooksContextManager`, based on [`AsyncHook`](https://nodejs.org/api/async_hooks.html#async_hooks_class_asynchook). This is **deprecated** and will be removed in v3 (planned for mid-2025. `AsyncLocalStorage` is simpler, faster, available in Node.js v14.8.0 and later, and avoids [this possible DoS vulnerability](https://nodejs.org/en/blog/vulnerability/january-2026-dos-mitigation-async-hooks).
## Prior art
Context propagation is a big subject when talking about tracing in Node.js. If you want more information about it here are some resources:
- <https://www.npmjs.com/package/continuation-local-storage> (which was the old way of doing context propagation)
- [Datadog's own implementation][dd-js-tracer-scope] for their JavaScript tracer
- [OpenTracing implementation][opentracing-scope]
- [Discussion about context propagation][diag-team-scope-discussion] by the Node.js Diagnostics Working Group
## Useful links
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
## License
Apache 2.0 - See [LICENSE][license-url] for more information.
[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE
[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
[def-context-manager]: https://opentelemetry.io/docs/instrumentation/js/api/context/#context-manager
[dd-js-tracer-scope]: https://github.com/DataDog/dd-trace-js/blob/master/packages/dd-trace/src/scope.js
[opentracing-scope]: https://github.com/opentracing/opentracing-javascript/pull/113
[diag-team-scope-discussion]: https://github.com/nodejs/diagnostics/issues/300
[npm-url]: https://www.npmjs.com/package/@opentelemetry/context-async-hooks
[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fcontext-async-hooks.svg

View File

@@ -0,0 +1,82 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const debugBuild = require('../debug-build.js');
const isBuild = require('./isBuild.js');
const isUseCacheFunction = require('./isUseCacheFunction.js');
function shouldNoopSpan(callback) {
const isBuildContext = isBuild.isBuild();
const isUseCacheFunctionContext = callback ? isUseCacheFunction.isUseCacheFunction(callback) : false;
if (isUseCacheFunctionContext) {
debugBuild.DEBUG_BUILD && core.debug.log('Skipping span creation in Cache Components context');
}
return isBuildContext || isUseCacheFunctionContext;
}
function createNonRecordingSpan() {
return new core.SentryNonRecordingSpan({
traceId: '00000000000000000000000000000000',
spanId: '0000000000000000',
});
}
/**
* Next.js-specific implementation of `startSpan` that skips span creation
* in Cache Components contexts (which render at build time).
*
* When in a Cache Components context, we execute the callback with a non-recording span
* and return early without creating an actual span, since spans don't make sense at build/cache time.
*
* @param options - Options for starting the span
* @param callback - Callback function that receives the span
* @returns The return value of the callback
*/
function startSpan(options, callback) {
if (shouldNoopSpan(callback)) {
return callback(createNonRecordingSpan());
}
return core.startSpan(options, callback);
}
/**
*
* When in a Cache Components context, we execute the callback with a non-recording span
* and return early without creating an actual span, since spans don't make sense at build/cache time.
*
* @param options - Options for starting the span
* @param callback - Callback function that receives the span and finish function
* @returns The return value of the callback
*/
function startSpanManual(options, callback) {
if (shouldNoopSpan(callback)) {
const nonRecordingSpan = createNonRecordingSpan();
return callback(nonRecordingSpan, () => nonRecordingSpan.end());
}
return core.startSpanManual(options, callback);
}
/**
*
* When in a Cache Components context, we return a non-recording span and return early
* without creating an actual span, since spans don't make sense at build/cache time.
*
* @param options - Options for starting the span
* @returns A non-recording span (in Cache Components context) or the created span
*/
function startInactiveSpan(options) {
if (shouldNoopSpan()) {
return createNonRecordingSpan();
}
return core.startInactiveSpan(options);
}
exports.startInactiveSpan = startInactiveSpan;
exports.startSpan = startSpan;
exports.startSpanManual = startSpanManual;
//# sourceMappingURL=nextSpan.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/prisma/pg/session.ts"],"sourcesContent":["import type { PrismaClient } from '@prisma/client/extension';\n\nimport { entityKind } from '~/entity.ts';\nimport { type Logger, NoopLogger } from '~/logger.ts';\nimport type {\n\tPgDialect,\n\tPgQueryResultHKT,\n\tPgTransaction,\n\tPgTransactionConfig,\n\tPreparedQueryConfig,\n} from '~/pg-core/index.ts';\nimport { PgPreparedQuery, PgSession } from '~/pg-core/index.ts';\nimport type { Query, SQL } from '~/sql/sql.ts';\nimport { fillPlaceholders } from '~/sql/sql.ts';\n\nexport class PrismaPgPreparedQuery<T> extends PgPreparedQuery<PreparedQueryConfig & { execute: T }> {\n\tstatic override readonly [entityKind]: string = 'PrismaPgPreparedQuery';\n\n\tconstructor(\n\t\tprivate readonly prisma: PrismaClient,\n\t\tquery: Query,\n\t\tprivate readonly logger: Logger,\n\t) {\n\t\tsuper(query, undefined, undefined, undefined);\n\t}\n\n\toverride execute(placeholderValues?: Record<string, unknown>): Promise<T> {\n\t\tconst params = fillPlaceholders(this.query.params, placeholderValues ?? {});\n\t\tthis.logger.logQuery(this.query.sql, params);\n\t\treturn this.prisma.$queryRawUnsafe(this.query.sql, ...params);\n\t}\n\n\toverride all(): Promise<unknown> {\n\t\tthrow new Error('Method not implemented.');\n\t}\n\n\toverride isResponseInArrayMode(): boolean {\n\t\treturn false;\n\t}\n}\n\nexport interface PrismaPgSessionOptions {\n\tlogger?: Logger;\n}\n\nexport class PrismaPgSession extends PgSession {\n\tstatic override readonly [entityKind]: string = 'PrismaPgSession';\n\n\tprivate readonly logger: Logger;\n\n\tconstructor(\n\t\tdialect: PgDialect,\n\t\tprivate readonly prisma: PrismaClient,\n\t\tprivate readonly options: PrismaPgSessionOptions,\n\t) {\n\t\tsuper(dialect);\n\t\tthis.logger = options.logger ?? new NoopLogger();\n\t}\n\n\toverride execute<T>(query: SQL): Promise<T> {\n\t\treturn this.prepareQuery<PreparedQueryConfig & { execute: T }>(this.dialect.sqlToQuery(query)).execute();\n\t}\n\n\toverride prepareQuery<T extends PreparedQueryConfig = PreparedQueryConfig>(query: Query): PgPreparedQuery<T> {\n\t\treturn new PrismaPgPreparedQuery(this.prisma, query, this.logger);\n\t}\n\n\toverride transaction<T>(\n\t\t_transaction: (tx: PgTransaction<PgQueryResultHKT, Record<string, never>, Record<string, never>>) => Promise<T>,\n\t\t_config?: PgTransactionConfig,\n\t): Promise<T> {\n\t\tthrow new Error('Method not implemented.');\n\t}\n}\n\nexport interface PrismaPgQueryResultHKT extends PgQueryResultHKT {\n\ttype: [];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAC3B,oBAAwC;AAQxC,qBAA2C;AAE3C,iBAAiC;AAE1B,MAAM,8BAAiC,+BAAsD;AAAA,EAGnG,YACkB,QACjB,OACiB,QAChB;AACD,UAAM,OAAO,QAAW,QAAW,MAAS;AAJ3B;AAEA;AAAA,EAGlB;AAAA,EARA,QAA0B,wBAAU,IAAY;AAAA,EAUvC,QAAQ,mBAAyD;AACzE,UAAM,aAAS,6BAAiB,KAAK,MAAM,QAAQ,qBAAqB,CAAC,CAAC;AAC1E,SAAK,OAAO,SAAS,KAAK,MAAM,KAAK,MAAM;AAC3C,WAAO,KAAK,OAAO,gBAAgB,KAAK,MAAM,KAAK,GAAG,MAAM;AAAA,EAC7D;AAAA,EAES,MAAwB;AAChC,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC1C;AAAA,EAES,wBAAiC;AACzC,WAAO;AAAA,EACR;AACD;AAMO,MAAM,wBAAwB,yBAAU;AAAA,EAK9C,YACC,SACiB,QACA,SAChB;AACD,UAAM,OAAO;AAHI;AACA;AAGjB,SAAK,SAAS,QAAQ,UAAU,IAAI,yBAAW;AAAA,EAChD;AAAA,EAXA,QAA0B,wBAAU,IAAY;AAAA,EAE/B;AAAA,EAWR,QAAW,OAAwB;AAC3C,WAAO,KAAK,aAAmD,KAAK,QAAQ,WAAW,KAAK,CAAC,EAAE,QAAQ;AAAA,EACxG;AAAA,EAES,aAAkE,OAAkC;AAC5G,WAAO,IAAI,sBAAsB,KAAK,QAAQ,OAAO,KAAK,MAAM;AAAA,EACjE;AAAA,EAES,YACR,cACA,SACa;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC1C;AACD;","names":[]}

View File

@@ -0,0 +1,336 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const debugBuild = require('../debug-build.js');
const routeManifest = require('./route-manifest.js');
// Global variables that these utilities depend on
let _matchRoutes;
let _stripBasename = false;
// Navigation context stack for nested/concurrent patchRoutesOnNavigation calls.
// Required because window.location hasn't updated yet when handlers are invoked.
const _navigationContextStack = [];
const MAX_CONTEXT_STACK_SIZE = 10;
/**
* Pushes a navigation context and returns a unique token for cleanup.
* The token uses object identity for uniqueness (no counter needed).
*/
function setNavigationContext(targetPath, span) {
const token = {};
// Prevent unbounded stack growth - oldest (likely stale) contexts are evicted first
if (_navigationContextStack.length >= MAX_CONTEXT_STACK_SIZE) {
debugBuild.DEBUG_BUILD && core.debug.warn('[React Router] Navigation context stack overflow - removing oldest context');
_navigationContextStack.shift();
}
_navigationContextStack.push({ token, targetPath, span });
return token;
}
/**
* Clears the navigation context if it's on top of the stack (LIFO).
* If our context is not on top (out-of-order completion), we leave it -
* it will be cleaned up by overflow protection when the stack fills up.
*/
function clearNavigationContext(token) {
const top = _navigationContextStack[_navigationContextStack.length - 1];
if (top?.token === token) {
_navigationContextStack.pop();
}
}
/** Gets the current (most recent) navigation context if inside a patchRoutesOnNavigation call. */
function getNavigationContext() {
const length = _navigationContextStack.length;
// The `?? null` converts undefined (from array access) to null to match return type
return length > 0 ? (_navigationContextStack[length - 1] ?? null) : null;
}
/**
* Initialize function to set dependencies that the router utilities need.
* Must be called before using any of the exported utility functions.
*/
function initializeRouterUtils(matchRoutes, stripBasename = false) {
_matchRoutes = matchRoutes;
_stripBasename = stripBasename;
}
// Helper functions
function pickPath(match) {
return trimWildcard(match.route.path || '');
}
function pickSplat(match) {
return match.params['*'] || '';
}
function trimWildcard(path) {
return path[path.length - 1] === '*' ? path.slice(0, -1) : path;
}
function trimSlash(path) {
return path[path.length - 1] === '/' ? path.slice(0, -1) : path;
}
/**
* Checks if a path ends with a wildcard character (*).
*/
function pathEndsWithWildcard(path) {
return path.endsWith('*');
}
/** Checks if transaction name has wildcard (/* or ends with *). */
function transactionNameHasWildcard(name) {
return name.includes('/*') || name.endsWith('*');
}
/**
* Checks if a path is a wildcard and has child routes.
*/
function pathIsWildcardAndHasChildren(path, branch) {
return (pathEndsWithWildcard(path) && !!branch.route.children?.length) || false;
}
/** Check if route is in descendant route (<Routes> within <Routes>) */
function routeIsDescendant(route) {
return !!(!route.children && route.element && route.path?.endsWith('/*'));
}
function sendIndexPath(pathBuilder, pathname, basename) {
const reconstructedPath =
pathBuilder && pathBuilder.length > 0
? pathBuilder
: _stripBasename
? routeManifest.stripBasenameFromPathname(pathname, basename)
: pathname;
let formattedPath =
// If the path ends with a wildcard suffix, remove both the slash and the asterisk
reconstructedPath.slice(-2) === '/*' ? reconstructedPath.slice(0, -2) : reconstructedPath;
// If the path ends with a slash, remove it (but keep single '/')
if (formattedPath.length > 1 && formattedPath[formattedPath.length - 1] === '/') {
formattedPath = formattedPath.slice(0, -1);
}
return [formattedPath, 'route'];
}
/**
* Returns the number of URL segments in the given URL string.
* Splits at '/' or '\/' to handle regex URLs correctly.
*
* @param url - The URL string to segment.
* @returns The number of segments in the URL.
*/
function getNumberOfUrlSegments(url) {
// split at '/' or at '\/' to split regex urls correctly
return url.split(/\\?\//).filter(s => s.length > 0 && s !== ',').length;
}
// Exported utility functions
/**
* Ensures a path string starts with a forward slash.
*/
function prefixWithSlash(path) {
return path[0] === '/' ? path : `/${path}`;
}
/**
* Rebuilds the route path from all available routes by matching against the current location.
*/
function rebuildRoutePathFromAllRoutes(allRoutes, location) {
const matchedRoutes = _matchRoutes(allRoutes, location) ;
if (!matchedRoutes || matchedRoutes.length === 0) {
return '';
}
for (const match of matchedRoutes) {
if (match.route.path && match.route.path !== '*') {
const path = pickPath(match);
const strippedPath = routeManifest.stripBasenameFromPathname(location.pathname, prefixWithSlash(match.pathnameBase));
if (location.pathname === strippedPath) {
return trimSlash(strippedPath);
}
return trimSlash(
trimSlash(path || '') +
prefixWithSlash(
rebuildRoutePathFromAllRoutes(
allRoutes.filter(route => route !== match.route),
{
pathname: strippedPath,
},
),
),
);
}
}
return '';
}
/**
* Checks if the current location is inside a descendant route (route with splat parameter).
*/
function locationIsInsideDescendantRoute(location, routes) {
const matchedRoutes = _matchRoutes(routes, location) ;
if (matchedRoutes) {
for (const match of matchedRoutes) {
if (routeIsDescendant(match.route) && pickSplat(match)) {
return true;
}
}
}
return false;
}
/**
* Returns a fallback transaction name from location pathname.
*/
function getFallbackTransactionName(location, basename) {
return _stripBasename ? routeManifest.stripBasenameFromPathname(location.pathname, basename) : location.pathname || '';
}
/**
* Gets a normalized route name and transaction source from the current routes and location.
*/
function getNormalizedName(
routes,
location,
branches,
basename = '',
) {
if (!routes || routes.length === 0) {
return [_stripBasename ? routeManifest.stripBasenameFromPathname(location.pathname, basename) : location.pathname, 'url'];
}
if (!branches) {
return [getFallbackTransactionName(location, basename), 'url'];
}
let pathBuilder = '';
for (const branch of branches) {
const route = branch.route;
if (!route) {
continue;
}
// Early return for index routes
if (route.index) {
return sendIndexPath(pathBuilder, branch.pathname, basename);
}
const path = route.path;
if (!path || pathIsWildcardAndHasChildren(path, branch)) {
continue;
}
// Build the route path
const newPath = path[0] === '/' || pathBuilder[pathBuilder.length - 1] === '/' ? path : `/${path}`;
pathBuilder = trimSlash(pathBuilder) + prefixWithSlash(newPath);
// Check if this path matches the current location
if (trimSlash(location.pathname) !== trimSlash(basename + branch.pathname)) {
continue;
}
// Check if this is a parameterized route like /stores/:storeId/products/:productId
if (
getNumberOfUrlSegments(pathBuilder) !== getNumberOfUrlSegments(branch.pathname) &&
!pathEndsWithWildcard(pathBuilder)
) {
return [(_stripBasename ? '' : basename) + newPath, 'route'];
}
// Handle wildcard routes with children - strip trailing wildcard
if (pathIsWildcardAndHasChildren(pathBuilder, branch)) {
pathBuilder = pathBuilder.slice(0, -1);
}
return [(_stripBasename ? '' : basename) + pathBuilder, 'route'];
}
// Fallback when no matching route found
return [getFallbackTransactionName(location, basename), 'url'];
}
/**
* Shared helper function to resolve route name and source
*/
function resolveRouteNameAndSource(
location,
routes,
allRoutes,
branches,
basename = '',
lazyRouteManifest,
enableAsyncRouteHandlers,
) {
// When lazy route manifest is provided, use it as the primary source for transaction names
if (enableAsyncRouteHandlers && lazyRouteManifest && lazyRouteManifest.length > 0) {
const manifestMatch = routeManifest.matchRouteManifest(location.pathname, lazyRouteManifest, basename);
if (manifestMatch) {
return [(_stripBasename ? '' : basename) + manifestMatch, 'route'];
}
}
// Fall back to React Router route matching
let name;
let source = 'url';
const isInDescendantRoute = locationIsInsideDescendantRoute(location, allRoutes);
if (isInDescendantRoute) {
name = prefixWithSlash(rebuildRoutePathFromAllRoutes(allRoutes, location));
source = 'route';
}
if (!isInDescendantRoute || !name) {
[name, source] = getNormalizedName(routes, location, branches, basename);
}
return [name || location.pathname, source];
}
/**
* Gets the active root span if it's a pageload or navigation span.
*/
function getActiveRootSpan() {
const span = core.getActiveSpan();
const rootSpan = span ? core.getRootSpan(span) : undefined;
if (!rootSpan) {
return undefined;
}
const op = core.spanToJSON(rootSpan).op;
// Only use this root span if it is a pageload or navigation span
return op === 'navigation' || op === 'pageload' ? rootSpan : undefined;
}
exports.clearNavigationContext = clearNavigationContext;
exports.getActiveRootSpan = getActiveRootSpan;
exports.getNavigationContext = getNavigationContext;
exports.getNormalizedName = getNormalizedName;
exports.getNumberOfUrlSegments = getNumberOfUrlSegments;
exports.initializeRouterUtils = initializeRouterUtils;
exports.locationIsInsideDescendantRoute = locationIsInsideDescendantRoute;
exports.pathEndsWithWildcard = pathEndsWithWildcard;
exports.pathIsWildcardAndHasChildren = pathIsWildcardAndHasChildren;
exports.prefixWithSlash = prefixWithSlash;
exports.rebuildRoutePathFromAllRoutes = rebuildRoutePathFromAllRoutes;
exports.resolveRouteNameAndSource = resolveRouteNameAndSource;
exports.routeIsDescendant = routeIsDescendant;
exports.setNavigationContext = setNavigationContext;
exports.transactionNameHasWildcard = transactionNameHasWildcard;
//# sourceMappingURL=utils.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAKpF,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE3E;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC;IAEhF;;;;;;OAMG;IACH,sCAAsC,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;IAEvE;;;;;;OAMG;IACH,yBAAyB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE9E;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;;;;;OAaG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAEpE;;;OAGG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,oBAAoB;;CAKhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,2EAgD1B,CAAC"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"align-vertical-distribute-start.js","sources":["../../../src/icons/align-vertical-distribute-start.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name AlignVerticalDistributeStart\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTQiIGhlaWdodD0iNiIgeD0iNSIgeT0iMTQiIHJ4PSIyIiAvPgogIDxyZWN0IHdpZHRoPSIxMCIgaGVpZ2h0PSI2IiB4PSI3IiB5PSI0IiByeD0iMiIgLz4KICA8cGF0aCBkPSJNMiAxNGgyMCIgLz4KICA8cGF0aCBkPSJNMiA0aDIwIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/align-vertical-distribute-start\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst AlignVerticalDistributeStart = createLucideIcon('AlignVerticalDistributeStart', [\n ['rect', { width: '14', height: '6', x: '5', y: '14', rx: '2', key: 'jmoj9s' }],\n ['rect', { width: '10', height: '6', x: '7', y: '4', rx: '2', key: 'aza5on' }],\n ['path', { d: 'M2 14h20', key: 'myj16y' }],\n ['path', { d: 'M2 4h20', key: 'mda7wb' }],\n]);\n\nexport default AlignVerticalDistributeStart;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA+B,iBAAiB,8BAAgC,CAAA,CAAA,CAAA;AAAA,CAAA,CACpF,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC7E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC1C,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,28 @@
export declare const numericPatterns: {
month: RegExp;
date: RegExp;
dayOfYear: RegExp;
week: RegExp;
hour23h: RegExp;
hour24h: RegExp;
hour11h: RegExp;
hour12h: RegExp;
minute: RegExp;
second: RegExp;
singleDigit: RegExp;
twoDigits: RegExp;
threeDigits: RegExp;
fourDigits: RegExp;
anyDigitsSigned: RegExp;
singleDigitSigned: RegExp;
twoDigitsSigned: RegExp;
threeDigitsSigned: RegExp;
fourDigitsSigned: RegExp;
};
export declare const timezonePatterns: {
basicOptionalMinutes: RegExp;
basic: RegExp;
basicOptionalSeconds: RegExp;
extended: RegExp;
extendedOptionalSeconds: RegExp;
};

View File

@@ -0,0 +1,74 @@
{
"name": "@react-email/components",
"version": "0.0.33",
"description": "A collection of all components React Email.",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/resend/react-email.git",
"directory": "packages/components"
},
"keywords": [
"react",
"email"
],
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@react-email/body": "0.0.11",
"@react-email/button": "0.0.19",
"@react-email/code-block": "0.0.11",
"@react-email/code-inline": "0.0.5",
"@react-email/column": "0.0.13",
"@react-email/container": "0.0.15",
"@react-email/font": "0.0.9",
"@react-email/head": "0.0.12",
"@react-email/heading": "0.0.15",
"@react-email/hr": "0.0.11",
"@react-email/html": "0.0.11",
"@react-email/img": "0.0.11",
"@react-email/link": "0.0.12",
"@react-email/markdown": "0.0.14",
"@react-email/preview": "0.0.12",
"@react-email/render": "1.0.5",
"@react-email/row": "0.0.12",
"@react-email/section": "0.0.16",
"@react-email/tailwind": "1.0.4",
"@react-email/text": "0.0.11"
},
"peerDependencies": {
"react": "^18.0 || ^19.0 || ^19.0.0-rc"
},
"devDependencies": {
"typescript": "5.1.6",
"tsconfig": "0.0.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --external react",
"clean": "rm -rf dist",
"dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch"
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"stringifyTruncated.d.ts","sourceRoot":"","sources":["../../src/utilities/stringifyTruncated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAU5E"}

View File

@@ -0,0 +1,5 @@
export declare const closestTo: import("./types.js").FPFn2<
Date | undefined,
import("../fp.js").DateArg<Date>[],
import("../fp.js").DateArg<Date>
>;

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"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 o p q r s t u v w","132":"0 1 2 3 4 5 6 7 8 x y z JB KB LB MB"},C:{"1":"4 5 6 7 8 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":"0 1 2 3 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 q r s t u v w x y z 4C 5C"},D:{"1":"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 k l m n o p q r s t u v w","132":"0 1 2 3 4 5 6 7 8 x y z JB KB LB MB"},E:{"1":"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 eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC"},F:{"1":"0 1 2 3 4 5 6 7 8 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 W X Y Z a b c d e f g h JD KD LD MD PC xC ND QC","132":"i j k l m n o p q r s t u v w x y"},G:{"1":"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 eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC"},H:{"2":"mD"},I:{"1":"I","2":"VC J nD oD pD qD yC rD sD"},J:{"2":"D A"},K:{"2":"A B C PC xC QC","132":"H"},L:{"1":"I"},M:{"1":"OC"},N:{"2":"A B"},O:{"2":"RC"},P:{"2":"9 J AB BB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D","132":"CB DB EB FB GB HB IB"},Q:{"2":"4D"},R:{"2":"5D"},S:{"2":"6D 7D"}},B:5,C:"CSS text-wrap: balance",D:true};

View File

@@ -0,0 +1,81 @@
import { commitTransaction } from '../../utilities/commitTransaction.js';
import { createLocalReq } from '../../utilities/createLocalReq.js';
import { initTransaction } from '../../utilities/initTransaction.js';
import { killTransaction } from '../../utilities/killTransaction.js';
import { getMigrations } from './getMigrations.js';
import { readMigrationFiles } from './readMigrationFiles.js';
export async function migrateReset() {
const { payload } = this;
const migrationFiles = await readMigrationFiles({
payload
});
const { existingMigrations } = await getMigrations({
payload
});
if (!existingMigrations?.length) {
payload.logger.info({
msg: 'No migrations to reset.'
});
return;
}
const req = await createLocalReq({}, payload);
migrationFiles.reverse();
// Rollback all migrations in order
for (const migration of migrationFiles){
// Create or update migration in database
const existingMigration = existingMigrations.find((existing)=>existing.name === migration.name);
if (existingMigration) {
payload.logger.info({
msg: `Migrating down: ${migration.name}`
});
try {
const start = Date.now();
await initTransaction(req);
const session = payload.db.sessions?.[await req.transactionID];
await migration.down({
payload,
req,
session
});
await payload.delete({
collection: 'payload-migrations',
req,
where: {
id: {
equals: existingMigration.id
}
}
});
await commitTransaction(req);
payload.logger.info({
msg: `Migrated down: ${migration.name} (${Date.now() - start}ms)`
});
} catch (err) {
await killTransaction(req);
payload.logger.error({
err,
msg: `Error running migration ${migration.name}`
});
throw err;
}
}
}
// Delete dev migration
try {
await payload.delete({
collection: 'payload-migrations',
where: {
batch: {
equals: -1
}
}
});
} catch (err) {
payload.logger.error({
err,
msg: 'Error deleting dev migration'
});
}
}
//# sourceMappingURL=migrateReset.js.map

View File

@@ -0,0 +1,9 @@
import get from "./get.js";
import getPrototypeOf from "./getPrototypeOf.js";
function _superPropGet(t, o, e, r) {
var p = get(getPrototypeOf(1 & r ? t.prototype : t), o, e);
return 2 & r && "function" == typeof p ? function (t) {
return p.apply(e, t);
} : p;
}
export { _superPropGet as default };

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,+BAAmD;AAA3C,oGAAA,YAAY,OAAA;AAAE,qGAAA,aAAa,OAAA;AACnC,yCAAwC;AAAhC,wGAAA,WAAW,OAAA"}

View File

@@ -0,0 +1,43 @@
var createAggregator = require('./_createAggregator');
/**
* Creates an array of elements split into two groups, the first of which
* contains elements `predicate` returns truthy for, the second of which
* contains elements `predicate` returns falsey for. The predicate is
* invoked with one argument: (value).
*
* @static
* @memberOf _
* @since 3.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the array of grouped elements.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36, 'active': false },
* { 'user': 'fred', 'age': 40, 'active': true },
* { 'user': 'pebbles', 'age': 1, 'active': false }
* ];
*
* _.partition(users, function(o) { return o.active; });
* // => objects for [['fred'], ['barney', 'pebbles']]
*
* // The `_.matches` iteratee shorthand.
* _.partition(users, { 'age': 1, 'active': false });
* // => objects for [['pebbles'], ['barney', 'fred']]
*
* // The `_.matchesProperty` iteratee shorthand.
* _.partition(users, ['active', false]);
* // => objects for [['barney', 'pebbles'], ['fred']]
*
* // The `_.property` iteratee shorthand.
* _.partition(users, 'active');
* // => objects for [['fred'], ['barney', 'pebbles']]
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, function() { return [[], []]; });
module.exports = partition;

View File

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

View File

@@ -0,0 +1,17 @@
import type { PathToQuery } from './queryValidation/types.js';
import { type FlattenedField } from '../fields/config/types.js';
import { type Payload } from '../index.js';
export declare function getLocalizedPaths({ collectionSlug, fields, globalSlug, incomingPath, locale, overrideAccess, parentIsLocalized, payload, }: {
collectionSlug?: string;
fields: FlattenedField[];
globalSlug?: string;
incomingPath: string;
locale?: string;
overrideAccess?: boolean;
/**
* @todo make required in v4.0. Usually, you'd wanna pass this through
*/
parentIsLocalized?: boolean;
payload: Payload;
}): PathToQuery[];
//# sourceMappingURL=getLocalizedPaths.d.ts.map

View File

@@ -0,0 +1,30 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/*
* Copyright 2022 Google LLC
*
* 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.
*/
const runOnce = (cb) => {
let called = false;
return () => {
if (!called) {
cb();
called = true;
}
};
};
exports.runOnce = runOnce;
//# sourceMappingURL=runOnce.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"heading-6.js","sources":["../../../src/icons/heading-6.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Heading6\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAxMmg4IiAvPgogIDxwYXRoIGQ9Ik00IDE4VjYiIC8+CiAgPHBhdGggZD0iTTEyIDE4VjYiIC8+CiAgPGNpcmNsZSBjeD0iMTkiIGN5PSIxNiIgcj0iMiIgLz4KICA8cGF0aCBkPSJNMjAgMTBjLTIgMi0zIDMuNS0zIDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/heading-6\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Heading6 = createLucideIcon('Heading6', [\n ['path', { d: 'M4 12h8', key: '17cfdx' }],\n ['path', { d: 'M4 18V6', key: '1rz3zl' }],\n ['path', { d: 'M12 18V6', key: 'zqpxq5' }],\n ['circle', { cx: '19', cy: '16', r: '2', key: '15mx69' }],\n ['path', { d: 'M20 10c-2 2-3 3.5-3 6', key: 'f35dl0' }],\n]);\n\nexport default Heading6;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,iBAAiB,UAAY,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACzC,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACxD,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"getVersions.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getVersions.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,SAAS,CAAA;AAGhB,KAAK,IAAI,GAAG;IACV,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,cAAc,EAAE,4BAA4B,CAAA;IAC5C,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,KAAK,MAAM,GAAG,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAA;IACxB,4BAA4B,EAAE,OAAO,CAAA;IACrC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,YAAY,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA;AAKF,eAAO,MAAM,WAAW,+FASrB,IAAI,KAAG,MA2QT,CAAA"}

View File

@@ -0,0 +1,130 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.cjs");
var _index2 = require("../../_lib/buildMatchPatternFn.cjs");
const matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,
abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,
wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i,
};
const parseEraPatterns = {
any: [/^ab/i, /^ap/i],
};
const matchQuarterPatterns = {
narrow: /^T[1234]/i,
abbreviated: /^[1234](èr|nd|en)? trim\.?/i,
wide: /^[1234](èr|nd|en)? trimèstre/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,
abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,
wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i,
};
const parseMonthPatterns = {
any: [
/^g/i,
/^f/i,
/^ma[r?]|MÇ/i,
/^ab/i,
/^ma[i?]/i,
/^ju[n?]|JN/i,
/^ju[l?]|JL/i,
/^ag/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^d[glmcjvs]\.?/i,
short: /^d[glmcjvs]\.?/i,
abbreviated: /^d[glmcjvs]\.?/i,
wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i,
};
const parseDayPatterns = {
narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i],
short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i],
abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i],
any: [
/^dg|dime/i,
/^dl|dil/i,
/^dm|dima/i,
/^dc|dimè/i,
/^dj|dij/i,
/^dv|div/i,
/^ds|dis/i,
],
};
const matchDayPeriodPatterns = {
any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /(^a)|ante meridiem/i,
pm: /(^p)|post meridiem/i,
midnight: /^mièj/i,
noon: /^mièg/i,
morning: /matin/i,
afternoon: /aprèp-miègjorn/i,
evening: /vèspre|ser/i,
night: /nuèch/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/upsertRow/types.ts"],"sourcesContent":["import type { SQL } from 'drizzle-orm'\nimport type { FlattenedField, JoinQuery, PayloadRequest, SelectType } from 'payload'\n\nimport type { DrizzleAdapter, DrizzleTransaction, GenericColumn } from '../types.js'\n\ntype BaseArgs = {\n adapter: DrizzleAdapter\n /**\n * Collection slug for error reporting\n */\n collectionSlug?: string\n data: Record<string, unknown>\n db: DrizzleAdapter['drizzle'] | DrizzleTransaction\n fields: FlattenedField[]\n /**\n * Collection slug for error reporting\n */\n globalSlug?: string\n /**\n * When true, skips reading the data back from the database and returns the input data\n * @default false\n */\n ignoreResult?: 'idOnly' | boolean\n joinQuery?: JoinQuery\n path?: string\n req?: Partial<PayloadRequest>\n tableName: string\n}\n\ntype CreateArgs = {\n customID?: number | string\n id?: never\n joinQuery?: never\n operation: 'create'\n select?: SelectType\n upsertTarget?: never\n where?: never\n} & BaseArgs\n\ntype UpdateArgs = {\n customID?: never\n id?: number | string\n joinQuery?: JoinQuery\n operation: 'update'\n select?: SelectType\n upsertTarget?: GenericColumn\n where?: SQL<unknown>\n} & BaseArgs\n\nexport type Args = CreateArgs | UpdateArgs\n"],"names":[],"mappings":"AAiDA,WAA0C"}

View File

@@ -0,0 +1,25 @@
Prism.languages.reason = Prism.languages.extend('clike', {
'string': {
pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
greedy: true
},
// 'class-name' must be matched *after* 'constructor' defined below
'class-name': /\b[A-Z]\w*/,
'keyword': /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,
'operator': /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/
});
Prism.languages.insertBefore('reason', 'class-name', {
'char': {
pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,
greedy: true
},
// Negative look-ahead prevents from matching things like String.capitalize
'constructor': /\b[A-Z]\w*\b(?!\s*\.)/,
'label': {
pattern: /\b[a-z]\w*(?=::)/,
alias: 'symbol'
}
});
// We can't match functions property, so let's not even try.
delete Prism.languages.reason.function;

View File

@@ -0,0 +1,18 @@
var baseGet = require('./_baseGet'),
baseSet = require('./_baseSet');
/**
* The base implementation of `_.update`.
*
* @private
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to update.
* @param {Function} updater The function to produce the updated value.
* @param {Function} [customizer] The function to customize path creation.
* @returns {Object} Returns `object`.
*/
function baseUpdate(object, path, updater, customizer) {
return baseSet(object, path, updater(baseGet(object, path)), customizer);
}
module.exports = baseUpdate;

View File

@@ -0,0 +1 @@
{"version":3,"file":"mergeQuery.d.ts","sourceRoot":"","sources":["../../../src/providers/ListQuery/mergeQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,UAAU,iBACP,SAAS,YACb,SAAS,YACT;IACR,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,KACA,SAwDF,CAAA"}

View File

@@ -0,0 +1 @@
{"version":3,"names":["_interopRequireDefault","obj","__esModule","default"],"sources":["../../src/helpers/interopRequireDefault.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nexport default function _interopRequireDefault(obj: any) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\n"],"mappings":";;;;;;AAEe,SAASA,sBAAsBA,CAACC,GAAQ,EAAE;EACvD,OAAOA,GAAG,IAAIA,GAAG,CAACC,UAAU,GAAGD,GAAG,GAAG;IAAEE,OAAO,EAAEF;EAAI,CAAC;AACvD","ignoreList":[]}

View File

@@ -0,0 +1,17 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var batch_exports = {};
module.exports = __toCommonJS(batch_exports);
//# sourceMappingURL=batch.cjs.map

View File

@@ -0,0 +1,35 @@
var apply = require('./_apply'),
baseRest = require('./_baseRest'),
isError = require('./isError');
/**
* Attempts to invoke `func`, returning either the result or the caught error
* object. Any additional arguments are provided to `func` when it's invoked.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Util
* @param {Function} func The function to attempt.
* @param {...*} [args] The arguments to invoke `func` with.
* @returns {*} Returns the `func` result or error object.
* @example
*
* // Avoid throwing errors for invalid selectors.
* var elements = _.attempt(function(selector) {
* return document.querySelectorAll(selector);
* }, '>_>');
*
* if (_.isError(elements)) {
* elements = [];
* }
*/
var attempt = baseRest(function(func, args) {
try {
return apply(func, undefined, args);
} catch (e) {
return isError(e) ? e : new Error(e);
}
});
module.exports = attempt;

View File

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

View File

@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('chunk', require('../chunk'));
func.placeholder = require('./placeholder');
module.exports = func;

View File

@@ -0,0 +1,116 @@
import * as util from "../core/util.js";
const error = () => {
const Sizable = {
string: { unit: "ký tự", verb: "có" },
file: { unit: "byte", verb: "có" },
array: { unit: "phần tử", verb: "có" },
set: { unit: "phần tử", verb: "có" },
};
function getSizing(origin) {
return Sizable[origin] ?? null;
}
const parsedType = (data) => {
const t = typeof data;
switch (t) {
case "number": {
return Number.isNaN(data) ? "NaN" : "số";
}
case "object": {
if (Array.isArray(data)) {
return "mảng";
}
if (data === null) {
return "null";
}
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
return data.constructor.name;
}
}
}
return t;
};
const Nouns = {
regex: "đầu vào",
email: "địa chỉ email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ngày giờ ISO",
date: "ngày ISO",
time: "giờ ISO",
duration: "khoảng thời gian ISO",
ipv4: "địa chỉ IPv4",
ipv6: "địa chỉ IPv6",
cidrv4: "dải IPv4",
cidrv6: "dải IPv6",
base64: "chuỗi mã hóa base64",
base64url: "chuỗi mã hóa base64url",
json_string: "chuỗi JSON",
e164: "số E.164",
jwt: "JWT",
template_literal: "đầu vào",
};
return (issue) => {
switch (issue.code) {
case "invalid_type":
return `Đầu vào không hợp lệ: mong đợi ${issue.expected}, nhận được ${parsedType(issue.input)}`;
case "invalid_value":
if (issue.values.length === 1)
return `Đầu vào không hợp lệ: mong đợi ${util.stringifyPrimitive(issue.values[0])}`;
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Quá lớn: mong đợi ${issue.origin ?? "giá trị"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "phần tử"}`;
return `Quá lớn: mong đợi ${issue.origin ?? "giá trị"} ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Quá nhỏ: mong đợi ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
}
return `Quá nhỏ: mong đợi ${issue.origin} ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue;
if (_issue.format === "starts_with")
return `Chuỗi không hợp lệ: phải bắt đầu bằng "${_issue.prefix}"`;
if (_issue.format === "ends_with")
return `Chuỗi không hợp lệ: phải kết thúc bằng "${_issue.suffix}"`;
if (_issue.format === "includes")
return `Chuỗi không hợp lệ: phải bao gồm "${_issue.includes}"`;
if (_issue.format === "regex")
return `Chuỗi không hợp lệ: phải khớp với mẫu ${_issue.pattern}`;
return `${Nouns[_issue.format] ?? issue.format} không hợp lệ`;
}
case "not_multiple_of":
return `Số không hợp lệ: phải là bội số của ${issue.divisor}`;
case "unrecognized_keys":
return `Khóa không được nhận dạng: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `Khóa không hợp lệ trong ${issue.origin}`;
case "invalid_union":
return "Đầu vào không hợp lệ";
case "invalid_element":
return `Giá trị không hợp lệ trong ${issue.origin}`;
default:
return `Đầu vào không hợp lệ`;
}
};
};
export default function () {
return {
localeError: error(),
};
}

View File

@@ -0,0 +1,9 @@
/**
* @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.
*/
export { default } from './grid-3x3.js';
//# sourceMappingURL=grid-3-x-3.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/gel-core/columns/date.common.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnDataType } from '~/column-builder.ts';\nimport { entityKind } from '~/entity.ts';\nimport { sql } from '~/sql/sql.ts';\nimport { GelColumnBuilder } from './common.ts';\n\nexport abstract class GelLocalDateColumnBaseBuilder<\n\tT extends ColumnBuilderBaseConfig<ColumnDataType, string>,\n\tTRuntimeConfig extends object = object,\n> extends GelColumnBuilder<T, TRuntimeConfig> {\n\tstatic override readonly [entityKind]: string = 'GelLocalDateColumnBaseBuilder';\n\n\tdefaultNow() {\n\t\treturn this.default(sql`now()`);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAA2B;AAC3B,iBAAoB;AACpB,oBAAiC;AAE1B,MAAe,sCAGZ,+BAAoC;AAAA,EAC7C,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAa;AACZ,WAAO,KAAK,QAAQ,qBAAU;AAAA,EAC/B;AACD;","names":[]}

View File

@@ -0,0 +1,5 @@
import { type NumberFormatDigitInternalSlots, type NumberFormatDigitOptions, type NumberFormatNotation } from "../types/number.js";
/**
* https://tc39.es/ecma402/#sec-setnfdigitoptions
*/
export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void;

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 UserPlus = createLucideIcon("UserPlus", [
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
]);
export { UserPlus as default };
//# sourceMappingURL=user-plus.js.map

View File

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

View File

@@ -0,0 +1,18 @@
export { FieldDiffContainer } from '../../elements/FieldDiffContainer/index.js';
export { FieldDiffLabel } from '../../elements/FieldDiffLabel/index.js';
export { FolderTableCell } from '../../elements/FolderView/Cell/index.server.js';
export { FolderField } from '../../elements/FolderView/FolderField/index.server.js';
export { getHTMLDiffComponents } from '../../elements/HTMLDiff/index.js';
export { _internal_renderFieldHandler } from '../../forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js';
export { File } from '../../graphics/File/index.js';
export { CheckIcon } from '../../icons/Check/index.js';
export { copyDataFromLocaleHandler } from '../../utilities/copyDataFromLocale.js';
export { getColumns } from '../../utilities/getColumns.js';
export { getFolderResultsComponentAndData } from '../../utilities/getFolderResultsComponentAndData.js';
export { handleLivePreview } from '../../utilities/handleLivePreview.js';
export { handlePreview } from '../../utilities/handlePreview.js';
export { renderFilters, renderTable } from '../../utilities/renderTable.js';
export { resolveFilterOptions } from '../../utilities/resolveFilterOptions.js';
export { upsertPreferences } from '../../utilities/upsertPreferences.js';
export { CollectionCards } from '../../widgets/CollectionCards/index.js';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,5 @@
'use strict'
const compare = require('./compare')
const compareLoose = (a, b) => compare(a, b, true)
module.exports = compareLoose

View File

@@ -0,0 +1,133 @@
import { devAssert } from '../jsutils/devAssert.mjs';
import { GraphQLError } from '../error/GraphQLError.mjs';
import { visit, visitInParallel } from '../language/visitor.mjs';
import { assertValidSchema } from '../type/validate.mjs';
import { TypeInfo, visitWithTypeInfo } from '../utilities/TypeInfo.mjs';
import { specifiedRules, specifiedSDLRules } from './specifiedRules.mjs';
import {
SDLValidationContext,
ValidationContext,
} from './ValidationContext.mjs';
/**
* Implements the "Validation" section of the spec.
*
* Validation runs synchronously, returning an array of encountered errors, or
* an empty array if no errors were encountered and the document is valid.
*
* A list of specific validation rules may be provided. If not provided, the
* default list of rules defined by the GraphQL specification will be used.
*
* Each validation rules is a function which returns a visitor
* (see the language/visitor API). Visitor methods are expected to return
* GraphQLErrors, or Arrays of GraphQLErrors when invalid.
*
* Validate will stop validation after a `maxErrors` limit has been reached.
* Attackers can send pathologically invalid queries to induce a DoS attack,
* so by default `maxErrors` set to 100 errors.
*
* Optionally a custom TypeInfo instance may be provided. If not provided, one
* will be created from the provided schema.
*/
export function validate(
schema,
documentAST,
rules = specifiedRules,
options,
/** @deprecated will be removed in 17.0.0 */
typeInfo = new TypeInfo(schema),
) {
var _options$maxErrors;
const maxErrors =
(_options$maxErrors =
options === null || options === void 0 ? void 0 : options.maxErrors) !==
null && _options$maxErrors !== void 0
? _options$maxErrors
: 100;
documentAST || devAssert(false, 'Must provide document.'); // If the schema used for validation is invalid, throw an error.
assertValidSchema(schema);
const abortObj = Object.freeze({});
const errors = [];
const context = new ValidationContext(
schema,
documentAST,
typeInfo,
(error) => {
if (errors.length >= maxErrors) {
errors.push(
new GraphQLError(
'Too many validation errors, error limit reached. Validation aborted.',
),
); // eslint-disable-next-line @typescript-eslint/no-throw-literal
throw abortObj;
}
errors.push(error);
},
); // This uses a specialized visitor which runs multiple visitors in parallel,
// while maintaining the visitor skip and break API.
const visitor = visitInParallel(rules.map((rule) => rule(context))); // Visit the whole document with each instance of all provided rules.
try {
visit(documentAST, visitWithTypeInfo(typeInfo, visitor));
} catch (e) {
if (e !== abortObj) {
throw e;
}
}
return errors;
}
/**
* @internal
*/
export function validateSDL(
documentAST,
schemaToExtend,
rules = specifiedSDLRules,
) {
const errors = [];
const context = new SDLValidationContext(
documentAST,
schemaToExtend,
(error) => {
errors.push(error);
},
);
const visitors = rules.map((rule) => rule(context));
visit(documentAST, visitInParallel(visitors));
return errors;
}
/**
* Utility function which asserts a SDL document is valid by throwing an error
* if it is invalid.
*
* @internal
*/
export function assertValidSDL(documentAST) {
const errors = validateSDL(documentAST);
if (errors.length !== 0) {
throw new Error(errors.map((error) => error.message).join('\n\n'));
}
}
/**
* Utility function which asserts a SDL document is valid by throwing an error
* if it is invalid.
*
* @internal
*/
export function assertValidSDLExtension(documentAST, schema) {
const errors = validateSDL(documentAST, schema);
if (errors.length !== 0) {
throw new Error(errors.map((error) => error.message).join('\n\n'));
}
}

View File

@@ -0,0 +1,46 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getModuleName;
const originalGetModuleName = getModuleName;
exports.default = getModuleName = function getModuleName(rootOpts, pluginOpts) {
var _pluginOpts$moduleId, _pluginOpts$moduleIds, _pluginOpts$getModule, _pluginOpts$moduleRoo;
return originalGetModuleName(rootOpts, {
moduleId: (_pluginOpts$moduleId = pluginOpts.moduleId) != null ? _pluginOpts$moduleId : rootOpts.moduleId,
moduleIds: (_pluginOpts$moduleIds = pluginOpts.moduleIds) != null ? _pluginOpts$moduleIds : rootOpts.moduleIds,
getModuleId: (_pluginOpts$getModule = pluginOpts.getModuleId) != null ? _pluginOpts$getModule : rootOpts.getModuleId,
moduleRoot: (_pluginOpts$moduleRoo = pluginOpts.moduleRoot) != null ? _pluginOpts$moduleRoo : rootOpts.moduleRoot
});
};
function getModuleName(rootOpts, pluginOpts) {
const {
filename,
filenameRelative = filename,
sourceRoot = pluginOpts.moduleRoot
} = rootOpts;
const {
moduleId,
moduleIds = !!moduleId,
getModuleId,
moduleRoot = sourceRoot
} = pluginOpts;
if (!moduleIds) return null;
if (moduleId != null && !getModuleId) {
return moduleId;
}
let moduleName = moduleRoot != null ? moduleRoot + "/" : "";
if (filenameRelative) {
const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : "";
moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.\w*$/, "");
}
moduleName = moduleName.replace(/\\/g, "/");
if (getModuleId) {
return getModuleId(moduleName) || moduleName;
} else {
return moduleName;
}
}
//# sourceMappingURL=get-module-name.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 CupSoda = createLucideIcon("CupSoda", [
["path", { d: "m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8", key: "8166m8" }],
["path", { d: "M5 8h14", key: "pcz4l3" }],
["path", { d: "M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0", key: "yjz344" }],
["path", { d: "m12 8 1-6h2", key: "3ybfa4" }]
]);
export { CupSoda as default };
//# sourceMappingURL=cup-soda.js.map

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