gate locale behind functional consent
This commit is contained in:
-3
@@ -1,3 +0,0 @@
|
||||
export { };
|
||||
|
||||
//# sourceMappingURL=buildSlugField.d.js.map
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["buildSlugField.d.ts"],"sourcesContent":["import type { Field, TextField } from 'payload';\n/**\n * Normalizes a string into a URL slug. slugify handles diacritics out of the\n * box (Polish included: \"Strona główna\" → \"strona-glowna\").\n */\nexport declare function toSlug(input: string): string;\ntype BuildSlugFieldOptions = {\n /** Source field to derive the slug from. Default: 'title'. */\n from?: string;\n /** Whether the slug is localized (per-locale). Default: true. */\n localized?: boolean;\n /** Field name for the slug. Default: 'slug'. */\n name?: string;\n /** Override or extend the generated field config. */\n overrides?: Partial<TextField>;\n /** Whether the slug is required. Default: true. */\n required?: boolean;\n};\n/**\n * Builds a slug field that auto-generates from a source field (default 'title')\n * only when left empty — an editor's manual slug is never overwritten (mode 4a).\n *\n * Localized-safe: on a localized field Payload runs the hook per locale, so\n * `value` is the slug for the active locale and `siblingData[from]` is the\n * source in that same locale. Editing the doc in 'pl' fills slug.pl from\n * title.pl; editing in 'en' fills slug.en from title.en — giving genuinely\n * per-locale slugs (strona-glowna / homepage) that the language switcher needs.\n */\nexport declare function buildSlugField(options?: BuildSlugFieldOptions): Field;\nexport {};\n"],"names":[],"mappings":"AA6BA,WAAU"}
|
||||
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
export { buildSlugField, toSlug } from './buildSlugField.js';
|
||||
|
||||
//# sourceMappingURL=index.d.js.map
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["index.d.ts"],"sourcesContent":["export { buildSlugField, toSlug } from './buildSlugField.js';\n"],"names":["buildSlugField","toSlug"],"mappings":"AAAA,SAASA,cAAc,EAAEC,MAAM,QAAQ,sBAAsB"}
|
||||
Reference in New Issue
Block a user