@tomsher/cms-theme-kit 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +5 -5
- package/dist/{chunk-O6HJD7DS.js → chunk-C5SWGZ55.js} +2 -2
- package/dist/{chunk-NRS5OZJC.js → chunk-OJEPFH5L.js} +8 -11
- package/dist/chunk-OJEPFH5L.js.map +1 -0
- package/dist/{chunk-S4NCVJKH.js → chunk-QOSNX2RN.js} +4 -10
- package/dist/{chunk-S4NCVJKH.js.map → chunk-QOSNX2RN.js.map} +1 -1
- package/dist/{chunk-JNTSZZHB.js → chunk-UOEFVNM4.js} +18 -3
- package/dist/chunk-UOEFVNM4.js.map +1 -0
- package/dist/{chunk-VCSHHQGG.js → chunk-ZUBE6H6H.js} +3 -3
- package/dist/{data-source-DPKANGMF.js → data-source-XSFJYQNF.js} +4 -4
- package/dist/{server-4TLWATN6.js → server-EN4JAEFG.js} +6 -6
- package/dist/{static-server-SKZUHFNU.js → static-server-7OTKQJZM.js} +5 -5
- package/package.json +3 -3
- package/dist/chunk-JNTSZZHB.js.map +0 -1
- package/dist/chunk-NRS5OZJC.js.map +0 -1
- /package/dist/{chunk-O6HJD7DS.js.map → chunk-C5SWGZ55.js.map} +0 -0
- /package/dist/{chunk-VCSHHQGG.js.map → chunk-ZUBE6H6H.js.map} +0 -0
- /package/dist/{data-source-DPKANGMF.js.map → data-source-XSFJYQNF.js.map} +0 -0
- /package/dist/{server-4TLWATN6.js.map → server-EN4JAEFG.js.map} +0 -0
- /package/dist/{static-server-SKZUHFNU.js.map → static-server-7OTKQJZM.js.map} +0 -0
|
@@ -94,7 +94,7 @@ var extractConflictLines = (body) => {
|
|
|
94
94
|
return lines.join("");
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// ../cms-core/dist/chunk-
|
|
97
|
+
// ../cms-core/dist/chunk-DNDBQLRL.js
|
|
98
98
|
var customFieldTypeConstants = {
|
|
99
99
|
text: "text",
|
|
100
100
|
textarea: "textarea",
|
|
@@ -299,6 +299,16 @@ var liquidEntityQueryPattern = new RegExp(
|
|
|
299
299
|
"g"
|
|
300
300
|
);
|
|
301
301
|
var liquidEntityQueryOptionPattern = /([a-zA-Z][a-zA-Z0-9]*)\s*:\s*(?:"([^"]*)"|'([^']*)'|([^,\s]+))/g;
|
|
302
|
+
var liquidTemplateLimits = {
|
|
303
|
+
templateMaxBytes: 200 * 1024,
|
|
304
|
+
renderTimeoutMs: 500,
|
|
305
|
+
renderMemoryBytes: 20 * 1024 * 1024
|
|
306
|
+
};
|
|
307
|
+
var themeSettingTypeConstants = {
|
|
308
|
+
entity: "entity",
|
|
309
|
+
collection: "collection"
|
|
310
|
+
};
|
|
311
|
+
var themeEntityBindingSource = "entity";
|
|
302
312
|
var themeLinkTargetKinds = {
|
|
303
313
|
single: "single",
|
|
304
314
|
listing: "listing",
|
|
@@ -354,7 +364,9 @@ var queryKeys = {
|
|
|
354
364
|
status: "status",
|
|
355
365
|
provider: "provider",
|
|
356
366
|
tenant: "tenant",
|
|
357
|
-
tenantIds: "tenantIds"
|
|
367
|
+
tenantIds: "tenantIds",
|
|
368
|
+
versionId: "versionId",
|
|
369
|
+
facets: "facets"
|
|
358
370
|
};
|
|
359
371
|
var defaultLanguageCode = "en";
|
|
360
372
|
var languageStatusConstants = {
|
|
@@ -434,6 +446,9 @@ export {
|
|
|
434
446
|
liquidThemeTemplatePaths,
|
|
435
447
|
liquidEntityQueryPattern,
|
|
436
448
|
liquidEntityQueryOptionPattern,
|
|
449
|
+
liquidTemplateLimits,
|
|
450
|
+
themeSettingTypeConstants,
|
|
451
|
+
themeEntityBindingSource,
|
|
437
452
|
themeLinkTargetKinds,
|
|
438
453
|
entityKinds,
|
|
439
454
|
queryKeys,
|
|
@@ -444,4 +459,4 @@ export {
|
|
|
444
459
|
sha256Hex,
|
|
445
460
|
diffHashes
|
|
446
461
|
};
|
|
447
|
-
//# sourceMappingURL=chunk-
|
|
462
|
+
//# sourceMappingURL=chunk-UOEFVNM4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/errors.ts","../../cms-core/src/constants/content-model/custom-fields.constants.ts","../../cms-core/src/constants/theme/theme.constants.ts","../../cms-core/src/constants/theme/theme-template.constants.ts","../../cms-core/src/constants/theme/liquid-theme.constants.ts","../../cms-core/src/constants/theme/theme-link-target.constants.ts","../../cms-core/src/constants/content-model/entity.constants.ts","../../cms-core/src/constants/http/query-keys.constants.ts","../../cms-core/src/constants/locale/languages.constants.ts","../../cms-core/src/constants/theme/theme-page.constants.ts","../../cms-core/src/constants/theme/content-template-bindings.constants.ts","../../cms-core/src/constants/theme/static-theme.constants.ts","../../cms-core/src/constants/theme/theme-assets.constants.ts","../src/lib/hash.ts"],"sourcesContent":["export class CliError extends Error {\n readonly exitCode: number;\n\n constructor(message: string, exitCode = 1) {\n super(message);\n this.name = 'CliError';\n this.exitCode = exitCode;\n }\n}\n\nexport class ApiError extends CliError {\n readonly status: number;\n readonly body: unknown;\n\n constructor(message: string, status: number, body: unknown) {\n super(message);\n this.name = 'ApiError';\n this.status = status;\n this.body = body;\n }\n\n static async fromResponse(response: Response): Promise<ApiError> {\n const text = await response.text();\n const body = parseBody(text);\n const serverMessage = extractServerMessage(body) || response.statusText || 'Request failed';\n const hint = response.status === 401 ? ' Check your login or CMS_THEME_KIT_TOKEN.' : '';\n const conflicts = extractConflictLines(body);\n const message = `HTTP ${response.status}: ${serverMessage}.${hint}${conflicts}`;\n return new ApiError(message, response.status, body);\n }\n}\n\nconst parseBody = (text: string): unknown => {\n if (!text) {\n return null;\n }\n\n try {\n return JSON.parse(text) as unknown;\n } catch {\n return text;\n }\n};\n\nconst extractServerMessage = (body: unknown): string => {\n if (typeof body === 'string') {\n return body;\n }\n\n if (body && typeof body === 'object' && 'message' in body) {\n const message = (body as { message: unknown }).message;\n\n if (typeof message === 'string') {\n return message;\n }\n\n if (Array.isArray(message)) {\n return message.map(String).join('; ');\n }\n }\n\n return '';\n};\n\nconst extractConflictLines = (body: unknown): string => {\n if (!body || typeof body !== 'object' || !('conflicts' in body)) {\n return '';\n }\n\n const conflicts = (body as { conflicts: unknown }).conflicts;\n\n if (!Array.isArray(conflicts)) {\n return '';\n }\n\n const lines = conflicts.map((conflict) => {\n const item = conflict as { filename?: string; currentHash?: string | null };\n return `\\n - ${item.filename ?? 'unknown file'} (remote hash ${item.currentHash ?? 'missing'})`;\n });\n\n return lines.join('');\n};\n","export const customFieldTypeConstants = {\n text: 'text',\n textarea: 'textarea',\n richtext: 'richtext',\n color: 'color',\n number: 'number',\n boolean: 'boolean',\n date: 'date',\n datetime: 'datetime',\n select: 'select',\n file: 'file',\n object: 'object',\n array: 'array',\n relation: 'relation',\n component: 'component',\n linkSelector: 'linkSelector',\n} as const;\n\nexport type CustomFieldType = (typeof customFieldTypeConstants)[keyof typeof customFieldTypeConstants];\n\nexport interface CustomFieldTypeMetadata {\n type: CustomFieldType;\n label: string;\n description: string;\n}\n\nexport const customFieldTypeMetadataConstants: CustomFieldTypeMetadata[] = [\n {\n type: customFieldTypeConstants.text,\n label: 'Text',\n description: 'Single line text (title, name)',\n },\n {\n type: customFieldTypeConstants.textarea,\n label: 'Long Text',\n description: 'Multi-line text (description)',\n },\n {\n type: customFieldTypeConstants.richtext,\n label: 'Rich Text',\n description: 'WYSIWYG HTML article editor',\n },\n {\n type: customFieldTypeConstants.color,\n label: 'Color',\n description: 'Color value with visual picker and hex input',\n },\n {\n type: customFieldTypeConstants.number,\n label: 'Number',\n description: 'Integer, decimal, price, count',\n },\n {\n type: customFieldTypeConstants.boolean,\n label: 'Boolean',\n description: 'Yes or no switcher / toggle',\n },\n {\n type: customFieldTypeConstants.date,\n label: 'Date',\n description: 'Calendar date picker',\n },\n {\n type: customFieldTypeConstants.datetime,\n label: 'Date & Time',\n description: 'Calendar date with time picker',\n },\n {\n type: customFieldTypeConstants.select,\n label: 'Select / Choice',\n description: 'Dropdown options',\n },\n {\n type: customFieldTypeConstants.file,\n label: 'Media / File',\n description: 'Image or document attachment',\n },\n {\n type: customFieldTypeConstants.array,\n label: 'Array / List',\n description: 'Repeated list of text or values',\n },\n {\n type: customFieldTypeConstants.relation,\n label: 'Relation',\n description: 'Link to Content Type or Entity',\n },\n {\n type: customFieldTypeConstants.component,\n label: 'Component',\n description: 'Embed reusable component fields',\n },\n {\n type: customFieldTypeConstants.linkSelector,\n label: 'Link Selector',\n description: 'Select a routable CMS page or an external HTTPS URL',\n },\n];\n\nexport const customFieldTypeOptions = [\n { label: 'Short Text', value: customFieldTypeConstants.text },\n { label: 'Long Text (Textarea)', value: customFieldTypeConstants.textarea },\n { label: 'Rich Text / HTML', value: customFieldTypeConstants.richtext },\n { label: 'Color', value: customFieldTypeConstants.color },\n { label: 'Number', value: customFieldTypeConstants.number },\n { label: 'Boolean (Toggle)', value: customFieldTypeConstants.boolean },\n { label: 'Date', value: customFieldTypeConstants.date },\n { label: 'Date & Time', value: customFieldTypeConstants.datetime },\n { label: 'Dropdown / Select', value: customFieldTypeConstants.select },\n { label: 'Media / File Upload', value: customFieldTypeConstants.file },\n { label: 'Array / List', value: customFieldTypeConstants.array },\n { label: 'Relation (Content-Type / Entity)', value: customFieldTypeConstants.relation },\n { label: 'Component Reference', value: customFieldTypeConstants.component },\n { label: 'Link Selector', value: customFieldTypeConstants.linkSelector },\n];\n\nexport const customFieldWidthConstants = {\n full: 'full',\n half: '1/2',\n third: '1/3',\n} as const;\n\nexport type CustomFieldWidth = (typeof customFieldWidthConstants)[keyof typeof customFieldWidthConstants];\n","export const themeStatusConstants = {\n archived: 0,\n active: 1,\n draft: 2,\n} as const;\n\nexport type ThemeStatus = (typeof themeStatusConstants)[keyof typeof themeStatusConstants];\n\nexport const themeFileChangeTypes = {\n added: 'added',\n modified: 'modified',\n deleted: 'deleted',\n} as const;\n\nexport type ThemeFileChangeType = (typeof themeFileChangeTypes)[keyof typeof themeFileChangeTypes];\n\nexport const themeFileExtensions = {\n liquid: '.liquid',\n html: '.html',\n txt: '.txt',\n css: '.css',\n scss: '.scss',\n json: '.json',\n js: '.js',\n ts: '.ts',\n png: '.png',\n jpg: '.jpg',\n jpeg: '.jpeg',\n svg: '.svg',\n webp: '.webp',\n} as const;\n\nexport const themeRenderModes = {\n liquid: 'liquid',\n static: 'static',\n} as const;\n\nexport type ThemeRenderMode = (typeof themeRenderModes)[keyof typeof themeRenderModes];\n\nexport const themePageSlugConstants = { home: 'home' } as const;\n\nexport const themeUploadMaxArchiveMb = 200;\n","export const themeTemplatePrefix = {\n page: 'page.',\n collection: 'collection.',\n detail: 'detail.',\n system: null,\n} as const;\n\nexport const themeTemplateCategoryKeys = {\n pages: 'pages',\n collections: 'collections',\n details: 'details',\n system: 'system',\n} as const;\n\nexport const themeTemplateCategories = {\n pages: { label: 'Pages', prefix: themeTemplatePrefix.page },\n collections: { label: 'Collections', prefix: themeTemplatePrefix.collection },\n details: { label: 'Details', prefix: themeTemplatePrefix.detail },\n system: { label: 'System', prefix: themeTemplatePrefix.system },\n} as const;\n\nexport type ThemeTemplateCategory = Exclude<keyof typeof themeTemplateCategories, 'system'>;\n","import { themeFileExtensions } from './theme.constants';\nimport { themeTemplateCategoryKeys, type ThemeTemplateCategory } from './theme-template.constants';\nimport { customFieldTypeConstants } from '../content-model/custom-fields.constants';\n\nexport const themeCustomizerLocaleNamespace = 'themeCustomizer';\n\nexport const themeCustomizerLocalizedSettingTypes = {\n text: customFieldTypeConstants.text,\n textarea: customFieldTypeConstants.textarea,\n richtext: customFieldTypeConstants.richtext,\n inlineRichtext: 'inlineRichtext',\n} as const;\n\nexport const liquidThemeFolderNames = {\n layout: 'layout',\n templates: 'templates',\n sections: 'sections',\n snippets: 'snippets',\n assets: 'assets',\n config: 'config',\n locales: 'locales',\n constants: 'constants',\n} as const;\n\nexport const liquidThemeFolderStrictExtensions: Record<keyof typeof liquidThemeFolderNames, string[]> = {\n layout: [themeFileExtensions.liquid, themeFileExtensions.html],\n templates: ['.json'],\n sections: [themeFileExtensions.liquid, themeFileExtensions.html],\n snippets: [themeFileExtensions.liquid, themeFileExtensions.html],\n assets: ['.css', '.js', '.svg', '.png', '.jpg', '.jpeg', '.webp', '.gif', '.mp4', '.woff', '.woff2', '.ttf', '.txt'],\n config: ['.json'],\n locales: ['.json'],\n constants: ['.json'],\n};\n\nexport const liquidThemeAllowedDirectories = [\n liquidThemeFolderNames.layout,\n liquidThemeFolderNames.templates,\n liquidThemeFolderNames.sections,\n liquidThemeFolderNames.snippets,\n liquidThemeFolderNames.assets,\n liquidThemeFolderNames.config,\n liquidThemeFolderNames.locales,\n liquidThemeFolderNames.constants,\n] as const;\n\nexport const liquidThemeConfigFilePaths = {\n settingsData: 'config/settings_data.json',\n settingsSchema: 'config/settings_schema.json',\n routes: 'config/routes.json',\n} as const;\n\nexport const liquidThemeTemplatePaths = {\n index: 'templates/index.json',\n collection: 'templates/collection.json',\n entityDetails: 'templates/entity.json',\n notFound: 'templates/404.json',\n} as const;\n\nexport const liquidThemeRequiredTemplatePaths = [\n liquidThemeTemplatePaths.index,\n liquidThemeTemplatePaths.collection,\n liquidThemeTemplatePaths.entityDetails,\n liquidThemeTemplatePaths.notFound,\n] as const;\n\nexport const liquidThemeRequiredFilePaths = [liquidThemeConfigFilePaths.settingsData, liquidThemeConfigFilePaths.settingsSchema] as const;\n\nexport const liquidThemeTemplateCategoryDefaultPaths: Record<ThemeTemplateCategory, string> = {\n [themeTemplateCategoryKeys.pages]: liquidThemeTemplatePaths.index,\n [themeTemplateCategoryKeys.collections]: liquidThemeTemplatePaths.collection,\n [themeTemplateCategoryKeys.details]: liquidThemeTemplatePaths.entityDetails,\n};\n\nexport const themeEntityQueryTag = 'entityQuery' as const;\n\n// {% entityQuery \"type\", \"handle\", key: value %}: group 1 type, group 2 handle, group 3 the options\nexport const liquidEntityQueryPattern = new RegExp(\n `\\\\{%\\\\s*${themeEntityQueryTag}\\\\s+[\"']([a-zA-Z0-9_-]+)[\"']\\\\s*,\\\\s*[\"']([a-zA-Z0-9_-]+)[\"']\\\\s*((?:,\\\\s*[a-zA-Z][a-zA-Z0-9]*\\\\s*:\\\\s*(?:\"[^\"]*\"|'[^']*'|[^,\\\\s]+)\\\\s*)*)%\\\\}`,\n 'g',\n);\nexport const liquidEntityQueryOptionPattern = /([a-zA-Z][a-zA-Z0-9]*)\\s*:\\s*(?:\"([^\"]*)\"|'([^']*)'|([^,\\s]+))/g;\n\nexport const liquidTemplateLimits = {\n templateMaxBytes: 200 * 1024,\n renderTimeoutMs: 500,\n renderMemoryBytes: 20 * 1024 * 1024,\n} as const;\n\nexport const themeSettingTypeConstants = {\n entity: 'entity',\n collection: 'collection',\n} as const;\n\nexport const themeEntityBindingSource = 'entity' as const;\n","export const themeLinkTargetKinds = {\n single: 'single',\n listing: 'listing',\n entry: 'entry',\n external: 'external',\n} as const;\n\nexport type ThemeLinkTargetKind = (typeof themeLinkTargetKinds)[keyof typeof themeLinkTargetKinds];\n\nexport const themeLinkTargetKindOptions = [\n { value: themeLinkTargetKinds.single, label: 'Single page' },\n { value: themeLinkTargetKinds.listing, label: 'Collection listing' },\n { value: themeLinkTargetKinds.entry, label: 'Collection entry' },\n { value: themeLinkTargetKinds.external, label: 'External HTTPS URL' },\n] as const;\n","export const entityKinds = {\n collection: 'collection',\n single: 'single',\n} as const;\n","export const queryFlagConstants = {\n enabled: '1',\n} as const;\n\nexport const queryKeys = {\n page: 'page',\n limit: 'limit',\n sortBy: 'sortby',\n sortOrder: 'sortorder',\n themeSortBy: 'sortBy',\n themeSortOrder: 'sortOrder',\n keyword: 'keyword',\n type: 'type',\n handle: 'handle',\n fields: 'fields',\n populate: 'populate',\n queries: 'queries',\n entities: 'entities',\n filename: 'filename',\n lang: 'lang',\n countryId: 'countryId',\n preview: 'preview',\n block: 'block',\n blockReference: 'blockReference',\n slug: 'slug',\n path: 'path',\n templatePath: 'templatePath',\n listingHandle: 'listingHandle',\n entityType: 'entityType',\n filterQuery: 'filterQuery',\n relationField: 'relationField',\n relationTarget: 'relationTarget',\n excludeCurrent: 'excludeCurrent',\n period: 'period',\n startDate: 'startDate',\n endDate: 'endDate',\n severity: 'severity',\n check: 'check',\n status: 'status',\n provider: 'provider',\n tenant: 'tenant',\n tenantIds: 'tenantIds',\n versionId: 'versionId',\n facets: 'facets',\n} as const;\n","export const languageStorageConstants = {\n key: 'language-code',\n listKey: 'languages-list',\n} as const;\n\nexport const defaultLanguageCode = 'en';\n\nexport const languageDirectionConstants = {\n ltr: 'ltr',\n rtl: 'rtl',\n} as const;\n\nexport const rightToLeftLanguageCodes = ['ar', 'ckb', 'dv', 'fa', 'he', 'ku', 'nqo', 'ps', 'sd', 'syr', 'ug', 'ur', 'yi'] as const;\n\nexport type LanguageDirection = typeof languageDirectionConstants[keyof typeof languageDirectionConstants];\n\nexport const languageStatusConstants = {\n active: '1',\n inactive: '2',\n} as const;\n\nexport type LanguageStatus = typeof languageStatusConstants[keyof typeof languageStatusConstants];\n\nexport const languageStatusOptions = [\n { label: 'All Statuses', value: '' },\n { label: 'Active', value: languageStatusConstants.active },\n { label: 'Inactive', value: languageStatusConstants.inactive },\n];\n\nexport const languageFormStatusOptions = [\n { label: 'Active', value: languageStatusConstants.active },\n { label: 'Inactive', value: languageStatusConstants.inactive },\n];\n\n","export const themePageTypes = {\n singlePage: 'single-page',\n collectionDetail: 'collection-detail',\n collectionListing: 'collection-listing',\n} as const;\n","import type { ThemeTemplateCategory } from './theme-template.constants';\nimport { themePageTypes } from './theme-page.constants';\n\nexport const categoryRouteKinds: Record<ThemeTemplateCategory, string> = {\n pages: themePageTypes.singlePage,\n collections: themePageTypes.collectionListing,\n details: themePageTypes.collectionDetail,\n};\n\nexport const themeBindingEntityTypeConstants = {\n contentTypes: 'contentTypes',\n} as const;\n\nexport const categoryLabels: Record<ThemeTemplateCategory, string> = {\n pages: 'Page template',\n collections: 'Listing template',\n details: 'Detail template',\n};\n","import { themeFileExtensions } from './theme.constants';\n\nexport const staticThemeFolderNames = {\n root: 'static'\n} as const;\n\nexport const staticThemeHomeFileName = `index${themeFileExtensions.html}`;\nexport const staticThemeHomeFilePattern = new RegExp(`/index${themeFileExtensions.html.replace('.', '\\\\.')}?$`, 'i');\nexport const staticThemeHtmlExtensionPattern = new RegExp(`${themeFileExtensions.html.replace('.', '\\\\.')}?$`, 'i');\nexport const staticThemeHomePath = `${staticThemeFolderNames.root}/${staticThemeHomeFileName}`;\nexport const staticThemeAllowedDirectories = [staticThemeFolderNames.root] as const;\nexport const staticThemeRequiredTemplatePaths: readonly string[] = [staticThemeHomePath];\nexport const staticAssetPattern = /\\.(?:svg|png|jpe?g|gif|webp|mp4|avif|ico|css|js|map|woff2?|ttf|eot|otf|json)$/i;\n","export const themeAssetUrlPatterns = {\n safeExternalUrl: /^(?:https?:|blob:)/i,\n safeDataUrl: /^data:(?:image|video|audio|font)\\//i,\n} as const;\n","import { createHash } from 'node:crypto';\n\nexport const sha256Hex = (bytes: Uint8Array): string => {\n return createHash('sha256').update(bytes).digest('hex');\n};\n\nexport const diffHashes = (\n base: Record<string, string>,\n local: Record<string, string>,\n): ThemeDiff => {\n const added: string[] = [];\n const modified: string[] = [];\n const deleted: string[] = [];\n\n for (const path of Object.keys(local).sort()) {\n if (base[path] === undefined) {\n added.push(path);\n } else if (base[path] !== local[path]) {\n modified.push(path);\n }\n }\n\n for (const path of Object.keys(base).sort()) {\n if (local[path] === undefined) {\n deleted.push(path);\n }\n }\n\n return { added, modified, deleted };\n};\n\nexport interface ThemeDiff {\n added: string[];\n modified: string[];\n deleted: string[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,WAAN,cAAuB,MAAM;AAAA,EACvB;AAAA,EAET,YAAY,SAAiB,WAAW,GAAG;AACvC,UAAM,OAAO;AACb,SAAK,OAAO;AACZ,SAAK,WAAW;AAAA,EACpB;AACJ;AAEO,IAAM,WAAN,MAAM,kBAAiB,SAAS;AAAA,EAC1B;AAAA,EACA;AAAA,EAET,YAAY,SAAi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AO,UAAU,QAAQ;AACtC;","names":[]}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getLiquidThemeEntitySources,
|
|
6
6
|
getLiquidThemeReachableBuffers,
|
|
7
7
|
requiresCurrentEntry
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OJEPFH5L.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
liquidThemeFolderNames,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
sha256Hex,
|
|
14
14
|
themeTemplateCategories,
|
|
15
15
|
themeTemplateCategoryKeys
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UOEFVNM4.js";
|
|
17
17
|
|
|
18
18
|
// src/lib/dev/data-source.ts
|
|
19
19
|
import { readFile } from "fs/promises";
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
createFixturesDataSource,
|
|
126
126
|
createLiveDataSource
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-ZUBE6H6H.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
createFixturesDataSource,
|
|
5
5
|
createLiveDataSource,
|
|
6
6
|
normalizePreviewData
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ZUBE6H6H.js";
|
|
8
|
+
import "./chunk-OJEPFH5L.js";
|
|
9
|
+
import "./chunk-UOEFVNM4.js";
|
|
10
10
|
export {
|
|
11
11
|
buildPreviewRequest,
|
|
12
12
|
createFixturesDataSource,
|
|
13
13
|
createLiveDataSource,
|
|
14
14
|
normalizePreviewData
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=data-source-
|
|
16
|
+
//# sourceMappingURL=data-source-XSFJYQNF.js.map
|
|
@@ -13,25 +13,25 @@ import {
|
|
|
13
13
|
sendHtml,
|
|
14
14
|
sendResponse,
|
|
15
15
|
serveFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QOSNX2RN.js";
|
|
17
17
|
import {
|
|
18
18
|
isTextPath,
|
|
19
19
|
readLocalTheme
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-C5SWGZ55.js";
|
|
21
21
|
import {
|
|
22
22
|
buildPreviewRequest
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZUBE6H6H.js";
|
|
24
24
|
import {
|
|
25
25
|
applyThemeCustomizerLocaleOverrides,
|
|
26
26
|
ensureThemeStylesheetsBeforeContent,
|
|
27
27
|
getThemeAssetUrls,
|
|
28
28
|
resolveThemeMediaUrl,
|
|
29
29
|
rewriteLiquidThemeAssetBuffers
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OJEPFH5L.js";
|
|
31
31
|
import {
|
|
32
32
|
defaultLanguageCode,
|
|
33
33
|
liquidThemeFolderNames
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UOEFVNM4.js";
|
|
35
35
|
|
|
36
36
|
// src/lib/dev/server.ts
|
|
37
37
|
import { join, resolve } from "path";
|
|
@@ -174,4 +174,4 @@ var startDevServer = async (options) => {
|
|
|
174
174
|
export {
|
|
175
175
|
startDevServer
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=server-
|
|
177
|
+
//# sourceMappingURL=server-EN4JAEFG.js.map
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
sendHtml,
|
|
13
13
|
sendResponse,
|
|
14
14
|
serveFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QOSNX2RN.js";
|
|
16
16
|
import {
|
|
17
17
|
isTextPath
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-C5SWGZ55.js";
|
|
19
|
+
import "./chunk-OJEPFH5L.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError,
|
|
22
22
|
staticThemeFolderNames,
|
|
23
23
|
staticThemeHomePath,
|
|
24
24
|
themeFileExtensions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UOEFVNM4.js";
|
|
26
26
|
|
|
27
27
|
// src/lib/dev/static-server.ts
|
|
28
28
|
import { readdir, readFile } from "fs/promises";
|
|
@@ -129,4 +129,4 @@ var startStaticDevServer = async (options) => {
|
|
|
129
129
|
export {
|
|
130
130
|
startStaticDevServer
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=static-server-
|
|
132
|
+
//# sourceMappingURL=static-server-7OTKQJZM.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomsher/cms-theme-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Pull a theme from a Tomsher CMS, edit it locally and push it back as a draft.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"sanitize-html": "^2.18.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tomsher/cms-core": "0.1.
|
|
26
|
-
"@tomsher/cms-theme-engines": "0.1.
|
|
25
|
+
"@tomsher/cms-core": "0.1.3",
|
|
26
|
+
"@tomsher/cms-theme-engines": "0.1.3",
|
|
27
27
|
"@types/node": "^22.10.0",
|
|
28
28
|
"tsup": "^8.5.0",
|
|
29
29
|
"typescript": "^5.9.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/errors.ts","../../cms-core/src/constants/content-model/custom-fields.constants.ts","../../cms-core/src/constants/theme/theme.constants.ts","../../cms-core/src/constants/theme/theme-template.constants.ts","../../cms-core/src/constants/theme/liquid-theme.constants.ts","../../cms-core/src/constants/theme/theme-link-target.constants.ts","../../cms-core/src/constants/content-model/entity.constants.ts","../../cms-core/src/constants/http/query-keys.constants.ts","../../cms-core/src/constants/locale/languages.constants.ts","../../cms-core/src/constants/theme/theme-page.constants.ts","../../cms-core/src/constants/theme/content-template-bindings.constants.ts","../../cms-core/src/constants/theme/static-theme.constants.ts","../../cms-core/src/constants/theme/theme-assets.constants.ts","../src/lib/hash.ts"],"sourcesContent":["export class CliError extends Error {\n readonly exitCode: number;\n\n constructor(message: string, exitCode = 1) {\n super(message);\n this.name = 'CliError';\n this.exitCode = exitCode;\n }\n}\n\nexport class ApiError extends CliError {\n readonly status: number;\n readonly body: unknown;\n\n constructor(message: string, status: number, body: unknown) {\n super(message);\n this.name = 'ApiError';\n this.status = status;\n this.body = body;\n }\n\n static async fromResponse(response: Response): Promise<ApiError> {\n const text = await response.text();\n const body = parseBody(text);\n const serverMessage = extractServerMessage(body) || response.statusText || 'Request failed';\n const hint = response.status === 401 ? ' Check your login or CMS_THEME_KIT_TOKEN.' : '';\n const conflicts = extractConflictLines(body);\n const message = `HTTP ${response.status}: ${serverMessage}.${hint}${conflicts}`;\n return new ApiError(message, response.status, body);\n }\n}\n\nconst parseBody = (text: string): unknown => {\n if (!text) {\n return null;\n }\n\n try {\n return JSON.parse(text) as unknown;\n } catch {\n return text;\n }\n};\n\nconst extractServerMessage = (body: unknown): string => {\n if (typeof body === 'string') {\n return body;\n }\n\n if (body && typeof body === 'object' && 'message' in body) {\n const message = (body as { message: unknown }).message;\n\n if (typeof message === 'string') {\n return message;\n }\n\n if (Array.isArray(message)) {\n return message.map(String).join('; ');\n }\n }\n\n return '';\n};\n\nconst extractConflictLines = (body: unknown): string => {\n if (!body || typeof body !== 'object' || !('conflicts' in body)) {\n return '';\n }\n\n const conflicts = (body as { conflicts: unknown }).conflicts;\n\n if (!Array.isArray(conflicts)) {\n return '';\n }\n\n const lines = conflicts.map((conflict) => {\n const item = conflict as { filename?: string; currentHash?: string | null };\n return `\\n - ${item.filename ?? 'unknown file'} (remote hash ${item.currentHash ?? 'missing'})`;\n });\n\n return lines.join('');\n};\n","export const customFieldTypeConstants = {\n text: 'text',\n textarea: 'textarea',\n richtext: 'richtext',\n color: 'color',\n number: 'number',\n boolean: 'boolean',\n date: 'date',\n datetime: 'datetime',\n select: 'select',\n file: 'file',\n object: 'object',\n array: 'array',\n relation: 'relation',\n component: 'component',\n linkSelector: 'linkSelector',\n} as const;\n\nexport type CustomFieldType = (typeof customFieldTypeConstants)[keyof typeof customFieldTypeConstants];\n\nexport interface CustomFieldTypeMetadata {\n type: CustomFieldType;\n label: string;\n description: string;\n}\n\nexport const customFieldTypeMetadataConstants: CustomFieldTypeMetadata[] = [\n {\n type: customFieldTypeConstants.text,\n label: 'Text',\n description: 'Single line text (title, name)',\n },\n {\n type: customFieldTypeConstants.textarea,\n label: 'Long Text',\n description: 'Multi-line text (description)',\n },\n {\n type: customFieldTypeConstants.richtext,\n label: 'Rich Text',\n description: 'WYSIWYG HTML article editor',\n },\n {\n type: customFieldTypeConstants.color,\n label: 'Color',\n description: 'Color value with visual picker and hex input',\n },\n {\n type: customFieldTypeConstants.number,\n label: 'Number',\n description: 'Integer, decimal, price, count',\n },\n {\n type: customFieldTypeConstants.boolean,\n label: 'Boolean',\n description: 'Yes or no switcher / toggle',\n },\n {\n type: customFieldTypeConstants.date,\n label: 'Date',\n description: 'Calendar date picker',\n },\n {\n type: customFieldTypeConstants.datetime,\n label: 'Date & Time',\n description: 'Calendar date with time picker',\n },\n {\n type: customFieldTypeConstants.select,\n label: 'Select / Choice',\n description: 'Dropdown options',\n },\n {\n type: customFieldTypeConstants.file,\n label: 'Media / File',\n description: 'Image or document attachment',\n },\n {\n type: customFieldTypeConstants.array,\n label: 'Array / List',\n description: 'Repeated list of text or values',\n },\n {\n type: customFieldTypeConstants.relation,\n label: 'Relation',\n description: 'Link to Content Type or Entity',\n },\n {\n type: customFieldTypeConstants.component,\n label: 'Component',\n description: 'Embed reusable component fields',\n },\n {\n type: customFieldTypeConstants.linkSelector,\n label: 'Link Selector',\n description: 'Select a routable CMS page or an external HTTPS URL',\n },\n];\n\nexport const customFieldTypeOptions = [\n { label: 'Short Text', value: customFieldTypeConstants.text },\n { label: 'Long Text (Textarea)', value: customFieldTypeConstants.textarea },\n { label: 'Rich Text / HTML', value: customFieldTypeConstants.richtext },\n { label: 'Color', value: customFieldTypeConstants.color },\n { label: 'Number', value: customFieldTypeConstants.number },\n { label: 'Boolean (Toggle)', value: customFieldTypeConstants.boolean },\n { label: 'Date', value: customFieldTypeConstants.date },\n { label: 'Date & Time', value: customFieldTypeConstants.datetime },\n { label: 'Dropdown / Select', value: customFieldTypeConstants.select },\n { label: 'Media / File Upload', value: customFieldTypeConstants.file },\n { label: 'Array / List', value: customFieldTypeConstants.array },\n { label: 'Relation (Content-Type / Entity)', value: customFieldTypeConstants.relation },\n { label: 'Component Reference', value: customFieldTypeConstants.component },\n { label: 'Link Selector', value: customFieldTypeConstants.linkSelector },\n];\n\nexport const customFieldWidthConstants = {\n full: 'full',\n half: '1/2',\n third: '1/3',\n} as const;\n\nexport type CustomFieldWidth = (typeof customFieldWidthConstants)[keyof typeof customFieldWidthConstants];\n","export const themeStatusConstants = {\n archived: 0,\n active: 1,\n draft: 2,\n} as const;\n\nexport type ThemeStatus = (typeof themeStatusConstants)[keyof typeof themeStatusConstants];\n\nexport const themeFileChangeTypes = {\n added: 'added',\n modified: 'modified',\n deleted: 'deleted',\n} as const;\n\nexport type ThemeFileChangeType = (typeof themeFileChangeTypes)[keyof typeof themeFileChangeTypes];\n\nexport const themeFileExtensions = {\n liquid: '.liquid',\n html: '.html',\n txt: '.txt',\n css: '.css',\n scss: '.scss',\n json: '.json',\n js: '.js',\n ts: '.ts',\n png: '.png',\n jpg: '.jpg',\n jpeg: '.jpeg',\n svg: '.svg',\n webp: '.webp',\n} as const;\n\nexport const themeRenderModes = {\n liquid: 'liquid',\n static: 'static',\n} as const;\n\nexport type ThemeRenderMode = (typeof themeRenderModes)[keyof typeof themeRenderModes];\n\nexport const themePageSlugConstants = { home: 'home' } as const;\n\nexport const themeUploadMaxArchiveMb = 200;\n","export const themeTemplatePrefix = {\n page: 'page.',\n collection: 'collection.',\n detail: 'detail.',\n system: null,\n} as const;\n\nexport const themeTemplateCategoryKeys = {\n pages: 'pages',\n collections: 'collections',\n details: 'details',\n system: 'system',\n} as const;\n\nexport const themeTemplateCategories = {\n pages: { label: 'Pages', prefix: themeTemplatePrefix.page },\n collections: { label: 'Collections', prefix: themeTemplatePrefix.collection },\n details: { label: 'Details', prefix: themeTemplatePrefix.detail },\n system: { label: 'System', prefix: themeTemplatePrefix.system },\n} as const;\n\nexport type ThemeTemplateCategory = Exclude<keyof typeof themeTemplateCategories, 'system'>;\n","import { themeFileExtensions } from './theme.constants';\nimport { themeTemplateCategoryKeys, type ThemeTemplateCategory } from './theme-template.constants';\nimport { customFieldTypeConstants } from '../content-model/custom-fields.constants';\n\nexport const themeCustomizerLocaleNamespace = 'themeCustomizer';\n\nexport const themeCustomizerLocalizedSettingTypes = {\n text: customFieldTypeConstants.text,\n textarea: customFieldTypeConstants.textarea,\n richtext: customFieldTypeConstants.richtext,\n inlineRichtext: 'inlineRichtext',\n} as const;\n\nexport const liquidThemeFolderNames = {\n layout: 'layout',\n templates: 'templates',\n sections: 'sections',\n snippets: 'snippets',\n assets: 'assets',\n config: 'config',\n locales: 'locales',\n constants: 'constants',\n} as const;\n\nexport const liquidThemeFolderStrictExtensions: Record<keyof typeof liquidThemeFolderNames, string[]> = {\n layout: [themeFileExtensions.liquid, themeFileExtensions.html],\n templates: ['.json'],\n sections: [themeFileExtensions.liquid, themeFileExtensions.html],\n snippets: [themeFileExtensions.liquid, themeFileExtensions.html],\n assets: ['.css', '.js', '.svg', '.png', '.jpg', '.jpeg', '.webp', '.gif', '.mp4', '.woff', '.woff2', '.ttf', '.txt'],\n config: ['.json'],\n locales: ['.json'],\n constants: ['.json'],\n};\n\nexport const liquidThemeAllowedDirectories = [\n liquidThemeFolderNames.layout,\n liquidThemeFolderNames.templates,\n liquidThemeFolderNames.sections,\n liquidThemeFolderNames.snippets,\n liquidThemeFolderNames.assets,\n liquidThemeFolderNames.config,\n liquidThemeFolderNames.locales,\n liquidThemeFolderNames.constants,\n] as const;\n\nexport const liquidThemeConfigFilePaths = {\n settingsData: 'config/settings_data.json',\n settingsSchema: 'config/settings_schema.json',\n routes: 'config/routes.json',\n} as const;\n\nexport const liquidThemeTemplatePaths = {\n index: 'templates/index.json',\n collection: 'templates/collection.json',\n entityDetails: 'templates/entity.json',\n notFound: 'templates/404.json',\n} as const;\n\nexport const liquidThemeRequiredTemplatePaths = [\n liquidThemeTemplatePaths.index,\n liquidThemeTemplatePaths.collection,\n liquidThemeTemplatePaths.entityDetails,\n liquidThemeTemplatePaths.notFound,\n] as const;\n\nexport const liquidThemeRequiredFilePaths = [liquidThemeConfigFilePaths.settingsData, liquidThemeConfigFilePaths.settingsSchema] as const;\n\nexport const liquidThemeTemplateCategoryDefaultPaths: Record<ThemeTemplateCategory, string> = {\n [themeTemplateCategoryKeys.pages]: liquidThemeTemplatePaths.index,\n [themeTemplateCategoryKeys.collections]: liquidThemeTemplatePaths.collection,\n [themeTemplateCategoryKeys.details]: liquidThemeTemplatePaths.entityDetails,\n};\n\nexport const themeEntityQueryTag = 'entityQuery' as const;\n\n// {% entityQuery \"type\", \"handle\", key: value %}: group 1 type, group 2 handle, group 3 the options\nexport const liquidEntityQueryPattern = new RegExp(\n `\\\\{%\\\\s*${themeEntityQueryTag}\\\\s+[\"']([a-zA-Z0-9_-]+)[\"']\\\\s*,\\\\s*[\"']([a-zA-Z0-9_-]+)[\"']\\\\s*((?:,\\\\s*[a-zA-Z][a-zA-Z0-9]*\\\\s*:\\\\s*(?:\"[^\"]*\"|'[^']*'|[^,\\\\s]+)\\\\s*)*)%\\\\}`,\n 'g',\n);\nexport const liquidEntityQueryOptionPattern = /([a-zA-Z][a-zA-Z0-9]*)\\s*:\\s*(?:\"([^\"]*)\"|'([^']*)'|([^,\\s]+))/g;\n","export const themeLinkTargetKinds = {\n single: 'single',\n listing: 'listing',\n entry: 'entry',\n external: 'external',\n} as const;\n\nexport type ThemeLinkTargetKind = (typeof themeLinkTargetKinds)[keyof typeof themeLinkTargetKinds];\n\nexport const themeLinkTargetKindOptions = [\n { value: themeLinkTargetKinds.single, label: 'Single page' },\n { value: themeLinkTargetKinds.listing, label: 'Collection listing' },\n { value: themeLinkTargetKinds.entry, label: 'Collection entry' },\n { value: themeLinkTargetKinds.external, label: 'External HTTPS URL' },\n] as const;\n","export const entityKinds = {\n collection: 'collection',\n single: 'single',\n} as const;\n","export const queryFlagConstants = {\n enabled: '1',\n} as const;\n\nexport const queryKeys = {\n page: 'page',\n limit: 'limit',\n sortBy: 'sortby',\n sortOrder: 'sortorder',\n themeSortBy: 'sortBy',\n themeSortOrder: 'sortOrder',\n keyword: 'keyword',\n type: 'type',\n handle: 'handle',\n fields: 'fields',\n populate: 'populate',\n queries: 'queries',\n entities: 'entities',\n filename: 'filename',\n lang: 'lang',\n countryId: 'countryId',\n preview: 'preview',\n block: 'block',\n blockReference: 'blockReference',\n slug: 'slug',\n path: 'path',\n templatePath: 'templatePath',\n listingHandle: 'listingHandle',\n entityType: 'entityType',\n filterQuery: 'filterQuery',\n relationField: 'relationField',\n relationTarget: 'relationTarget',\n excludeCurrent: 'excludeCurrent',\n period: 'period',\n startDate: 'startDate',\n endDate: 'endDate',\n severity: 'severity',\n check: 'check',\n status: 'status',\n provider: 'provider',\n tenant: 'tenant',\n tenantIds: 'tenantIds',\n} as const;\n","export const languageStorageConstants = {\n key: 'language-code',\n listKey: 'languages-list',\n} as const;\n\nexport const defaultLanguageCode = 'en';\n\nexport const languageDirectionConstants = {\n ltr: 'ltr',\n rtl: 'rtl',\n} as const;\n\nexport const rightToLeftLanguageCodes = ['ar', 'ckb', 'dv', 'fa', 'he', 'ku', 'nqo', 'ps', 'sd', 'syr', 'ug', 'ur', 'yi'] as const;\n\nexport type LanguageDirection = typeof languageDirectionConstants[keyof typeof languageDirectionConstants];\n\nexport const languageStatusConstants = {\n active: '1',\n inactive: '2',\n} as const;\n\nexport type LanguageStatus = typeof languageStatusConstants[keyof typeof languageStatusConstants];\n\nexport const languageStatusOptions = [\n { label: 'All Statuses', value: '' },\n { label: 'Active', value: languageStatusConstants.active },\n { label: 'Inactive', value: languageStatusConstants.inactive },\n];\n\nexport const languageFormStatusOptions = [\n { label: 'Active', value: languageStatusConstants.active },\n { label: 'Inactive', value: languageStatusConstants.inactive },\n];\n\n","export const themePageTypes = {\n singlePage: 'single-page',\n collectionDetail: 'collection-detail',\n collectionListing: 'collection-listing',\n} as const;\n","import type { ThemeTemplateCategory } from './theme-template.constants';\nimport { themePageTypes } from './theme-page.constants';\n\nexport const categoryRouteKinds: Record<ThemeTemplateCategory, string> = {\n pages: themePageTypes.singlePage,\n collections: themePageTypes.collectionListing,\n details: themePageTypes.collectionDetail,\n};\n\nexport const themeBindingEntityTypeConstants = {\n contentTypes: 'contentTypes',\n} as const;\n\nexport const categoryLabels: Record<ThemeTemplateCategory, string> = {\n pages: 'Page template',\n collections: 'Listing template',\n details: 'Detail template',\n};\n","import { themeFileExtensions } from './theme.constants';\n\nexport const staticThemeFolderNames = {\n root: 'static'\n} as const;\n\nexport const staticThemeHomeFileName = `index${themeFileExtensions.html}`;\nexport const staticThemeHomeFilePattern = new RegExp(`/index${themeFileExtensions.html.replace('.', '\\\\.')}?$`, 'i');\nexport const staticThemeHtmlExtensionPattern = new RegExp(`${themeFileExtensions.html.replace('.', '\\\\.')}?$`, 'i');\nexport const staticThemeHomePath = `${staticThemeFolderNames.root}/${staticThemeHomeFileName}`;\nexport const staticThemeAllowedDirectories = [staticThemeFolderNames.root] as const;\nexport const staticThemeRequiredTemplatePaths: readonly string[] = [staticThemeHomePath];\nexport const staticAssetPattern = /\\.(?:svg|png|jpe?g|gif|webp|mp4|avif|ico|css|js|map|woff2?|ttf|eot|otf|json)$/i;\n","export const themeAssetUrlPatterns = {\n safeExternalUrl: /^(?:https?:|blob:)/i,\n safeDataUrl: /^data:(?:image|video|audio|font)\\//i,\n} as const;\n","import { createHash } from 'node:crypto';\n\nexport const sha256Hex = (bytes: Uint8Array): string => {\n return createHash('sha256').update(bytes).digest('hex');\n};\n\nexport const diffHashes = (\n base: Record<string, string>,\n local: Record<string, string>,\n): ThemeDiff => {\n const added: string[] = [];\n const modified: string[] = [];\n const deleted: string[] = [];\n\n for (const path of Object.keys(local).sort()) {\n if (base[path] === undefined) {\n added.push(path);\n } else if (base[path] !== local[path]) {\n modified.push(path);\n }\n }\n\n for (const path of Object.keys(base).sort()) {\n if (local[path] === undefined) {\n deleted.push(path);\n }\n }\n\n return { added, modified, deleted };\n};\n\nexport interface ThemeDiff {\n added: string[];\n modified: string[];\n deleted: string[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,WAAN,cAAuB,MAAM;AAAA,EACvB;AAAA,EAET,YAAY,SAAiB,WAAW,GAAG;AACvC,UAAM,OAAO;AACb,SAAK,OAAO;AACZ,SAAK,WAAW;AAAA,EACpB;AACJ;AAEO,IAAM,WAAN,MAAM,kBAAiB,SAAS;AAAA,EAC1B;AAAA,EACA;AAAA,EAET,YAAY,SAAiB,QAAgB,MAAe;AACxD,UAAM,OAAO;AACb,SAAK,OAAO;AACZ,SAAK,SAAS;AACd,SAAK,OAAO;AAAA,EAChB;AAAA,EAEA,aAAa,aAAa,UAAuC;AAC7D,UAAM,OAAO,MAAM,SAAS,KAAK;AACjC,UAAM,OAAO,UAAU,IAAI;AAC3B,UAAM,gBAAgB,qBAAqB,IAAI,KAAK,SAAS,cAAc;AAC3E,UAAM,OAAO,SAAS,WAAW,MAAM,8CAA8C;AACrF,UAAM,YAAY,qBAAqB,IAAI;AAC3C,UAAM,UAAU,QAAQ,SAAS,MAAM,KAAK,aAAa,IAAI,IAAI,GAAG,SAAS;AAC7E,WAAO,IAAI,UAAS,SAAS,SAAS,QAAQ,IAAI;AAAA,EACtD;AACJ;AAEA,IAAM,YAAY,CAAC,SAA0B;AACzC,MAAI,CAAC,MAAM;AACP,WAAO;AAAA,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