@mdwrk/extension-theme-studio 1.0.1

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.
Files changed (58) hide show
  1. package/README.md +21 -0
  2. package/dist/components/ThemeStudioView.d.ts +9 -0
  3. package/dist/components/ThemeStudioView.d.ts.map +1 -0
  4. package/dist/components/ThemeStudioView.js +75 -0
  5. package/dist/components/ThemeStudioView.js.map +1 -0
  6. package/dist/constants.d.ts +16 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/constants.js +29 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/createThemeStudioBundledEntry.d.ts +3 -0
  11. package/dist/createThemeStudioBundledEntry.d.ts.map +1 -0
  12. package/dist/createThemeStudioBundledEntry.js +72 -0
  13. package/dist/createThemeStudioBundledEntry.js.map +1 -0
  14. package/dist/export.d.ts +12 -0
  15. package/dist/export.d.ts.map +1 -0
  16. package/dist/export.js +96 -0
  17. package/dist/export.js.map +1 -0
  18. package/dist/i18n.d.ts +82 -0
  19. package/dist/i18n.d.ts.map +1 -0
  20. package/dist/i18n.js +93 -0
  21. package/dist/i18n.js.map +1 -0
  22. package/dist/index.d.ts +11 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +11 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/locales/en.d.ts +7 -0
  27. package/dist/locales/en.d.ts.map +1 -0
  28. package/dist/locales/en.js +27 -0
  29. package/dist/locales/en.js.map +1 -0
  30. package/dist/locales/es.d.ts +7 -0
  31. package/dist/locales/es.d.ts.map +1 -0
  32. package/dist/locales/es.js +27 -0
  33. package/dist/locales/es.js.map +1 -0
  34. package/dist/manifest.d.ts +4 -0
  35. package/dist/manifest.d.ts.map +1 -0
  36. package/dist/manifest.js +155 -0
  37. package/dist/manifest.js.map +1 -0
  38. package/dist/relationship.d.ts +4 -0
  39. package/dist/relationship.d.ts.map +1 -0
  40. package/dist/relationship.js +18 -0
  41. package/dist/relationship.js.map +1 -0
  42. package/dist/service.d.ts +3 -0
  43. package/dist/service.d.ts.map +1 -0
  44. package/dist/service.js +216 -0
  45. package/dist/service.js.map +1 -0
  46. package/dist/settings.d.ts +4 -0
  47. package/dist/settings.d.ts.map +1 -0
  48. package/dist/settings.js +19 -0
  49. package/dist/settings.js.map +1 -0
  50. package/dist/types.d.ts +79 -0
  51. package/dist/types.d.ts.map +1 -0
  52. package/dist/types.js +2 -0
  53. package/dist/types.js.map +1 -0
  54. package/dist/version.d.ts +2 -0
  55. package/dist/version.d.ts.map +1 -0
  56. package/dist/version.js +2 -0
  57. package/dist/version.js.map +1 -0
  58. package/package.json +93 -0
package/dist/i18n.js ADDED
@@ -0,0 +1,93 @@
1
+ import { THEME_STUDIO_EXTENSION_ID } from "./constants.js";
2
+ const key = (suffix) => `${THEME_STUDIO_EXTENSION_ID}.${suffix}`;
3
+ export const themeStudioLabel = (suffix, defaultMessage, description) => ({
4
+ key: key(suffix),
5
+ defaultMessage,
6
+ description,
7
+ });
8
+ export const themeStudioLabels = {
9
+ manifestDisplayName: themeStudioLabel("manifest.displayName", "Theme Studio"),
10
+ manifestDescription: themeStudioLabel("manifest.description", "Bundled theme authoring extension for inspecting tokens, previewing renderer/editor bridges, and exporting portable theme artifacts."),
11
+ commandOpenTitle: themeStudioLabel("commands.open.title", "Open Theme Studio"),
12
+ commandOpenDescription: themeStudioLabel("commands.open.description", "Open the bundled theme authoring workspace."),
13
+ viewTitle: themeStudioLabel("view.title", "Theme Studio"),
14
+ viewDescription: themeStudioLabel("view.description", "Inspect, preview, apply, revert, and export themes against the formal token/class contract."),
15
+ railTitle: themeStudioLabel("rail.title", "Theme Studio"),
16
+ settingsTitle: themeStudioLabel("settings.title", "Theme Studio settings"),
17
+ settingsDescription: themeStudioLabel("settings.description", "Configure default preview and export behavior for Theme Studio."),
18
+ settingsPreviewTitle: themeStudioLabel("settings.sections.preview.title", "Preview"),
19
+ settingsPreviewDescription: themeStudioLabel("settings.sections.preview.description", "Controls draft preview behavior."),
20
+ settingsExportTitle: themeStudioLabel("settings.sections.export.title", "Export"),
21
+ settingsExportDescription: themeStudioLabel("settings.sections.export.description", "Controls default export formatting and package scaffolding."),
22
+ autoPreviewLabel: themeStudioLabel("settings.fields.autoPreview.label", "Preview draft edits automatically"),
23
+ autoPreviewDescription: themeStudioLabel("settings.fields.autoPreview.description", "Preview token edits immediately through the host theme preview APIs."),
24
+ defaultExportTargetLabel: themeStudioLabel("settings.fields.defaultExportTarget.label", "Default CSS export target"),
25
+ defaultExportTargetDescription: themeStudioLabel("settings.fields.defaultExportTarget.description", "Choose whether CSS exports should target host variables or renderer/editor bridge variables by default."),
26
+ compactCssLabel: themeStudioLabel("settings.fields.compactCss.label", "Export compact CSS"),
27
+ compactCssDescription: themeStudioLabel("settings.fields.compactCss.description", "Render CSS exports on a single compact line."),
28
+ packagePrefixLabel: themeStudioLabel("settings.fields.packagePrefix.label", "Package name prefix"),
29
+ packagePrefixDescription: themeStudioLabel("settings.fields.packagePrefix.description", "Prefix used when scaffolding theme package artifacts."),
30
+ defaultAuthorLabel: themeStudioLabel("settings.fields.defaultAuthor.label", "Default export author"),
31
+ defaultAuthorDescription: themeStudioLabel("settings.fields.defaultAuthor.description", "Default author metadata inserted into exported presets and package scaffolds."),
32
+ headerTitle: themeStudioLabel("panel.header.title", "Theme Studio"),
33
+ headerSubtitle: themeStudioLabel("panel.header.subtitle", "Token inspector, class relationship inspector, live renderer/editor previews, and portable theme exports."),
34
+ actionClose: themeStudioLabel("panel.actions.close", "Close"),
35
+ actionRefresh: themeStudioLabel("panel.actions.refresh", "Refresh"),
36
+ actionPreview: themeStudioLabel("panel.actions.preview", "Preview draft"),
37
+ actionApply: themeStudioLabel("panel.actions.apply", "Apply draft"),
38
+ actionRevert: themeStudioLabel("panel.actions.revert", "Revert draft"),
39
+ actionExport: themeStudioLabel("panel.actions.export", "Generate exports"),
40
+ tokenInspectorTitle: themeStudioLabel("panel.tokens.title", "Token inspector"),
41
+ tokenInspectorDescription: themeStudioLabel("panel.tokens.description", "Edit token values against the formal theme contract. Draft edits can be previewed, applied, or reverted."),
42
+ classInspectorTitle: themeStudioLabel("panel.classes.title", "Class/token relationships"),
43
+ classInspectorDescription: themeStudioLabel("panel.classes.description", "Shows which renderer/editor bridge token groups are relevant to each stable class contract entry."),
44
+ previewTitle: themeStudioLabel("panel.preview.title", "Live preview surface"),
45
+ previewDescription: themeStudioLabel("panel.preview.description", "Renderer and editor previews use the same shared package bridges consumed by the workspace."),
46
+ exportTitle: themeStudioLabel("panel.export.title", "Exports"),
47
+ exportDescription: themeStudioLabel("panel.export.description", "Generate JSON, CSS, and portable package scaffold artifacts from the current effective token map."),
48
+ metadataTitle: themeStudioLabel("panel.metadata.title", "Export metadata"),
49
+ metadataThemeName: themeStudioLabel("panel.metadata.themeName", "Theme name"),
50
+ metadataThemeId: themeStudioLabel("panel.metadata.themeId", "Theme id"),
51
+ metadataPackageName: themeStudioLabel("panel.metadata.packageName", "Package name"),
52
+ metadataAuthor: themeStudioLabel("panel.metadata.author", "Author"),
53
+ metadataDescription: themeStudioLabel("panel.metadata.description", "Description"),
54
+ labelCategory: themeStudioLabel("panel.labels.category", "Category"),
55
+ labelDefault: themeStudioLabel("panel.labels.default", "Default"),
56
+ labelCurrent: themeStudioLabel("panel.labels.current", "Current"),
57
+ labelDraft: themeStudioLabel("panel.labels.draft", "Draft"),
58
+ labelScope: themeStudioLabel("panel.labels.scope", "Scope"),
59
+ labelBridgeTarget: themeStudioLabel("panel.labels.bridgeTarget", "Bridge target"),
60
+ labelTokens: themeStudioLabel("panel.labels.tokens", "Source tokens"),
61
+ labelNoRelationships: themeStudioLabel("panel.labels.noRelationships", "No class relationships available."),
62
+ labelJsonExport: themeStudioLabel("panel.export.json", "Theme preset JSON"),
63
+ labelCssExport: themeStudioLabel("panel.export.css", "CSS export"),
64
+ labelRendererCssExport: themeStudioLabel("panel.export.rendererCss", "Renderer bridge CSS"),
65
+ labelEditorCssExport: themeStudioLabel("panel.export.editorCss", "Editor bridge CSS"),
66
+ labelPackageArtifact: themeStudioLabel("panel.export.packageArtifact", "Theme package artifact"),
67
+ actionDownloadJson: themeStudioLabel("panel.export.downloadJson", "Download JSON"),
68
+ actionDownloadCss: themeStudioLabel("panel.export.downloadCss", "Download CSS"),
69
+ actionDownloadPackage: themeStudioLabel("panel.export.downloadPackage", "Download package artifact"),
70
+ statusReady: themeStudioLabel("status.ready", "Ready"),
71
+ statusBusy: themeStudioLabel("status.busy", "Working…"),
72
+ statusApplied: themeStudioLabel("status.applied", "Draft applied"),
73
+ statusReverted: themeStudioLabel("status.reverted", "Draft reverted"),
74
+ statusExported: themeStudioLabel("status.exported", "Exports generated"),
75
+ diagnosticsReady: themeStudioLabel("diagnostics.ready", "Theme Studio activated successfully."),
76
+ diagnosticsPreviewed: themeStudioLabel("diagnostics.previewed", "Theme Studio previewed the current draft successfully."),
77
+ diagnosticsApplied: themeStudioLabel("diagnostics.applied", "Theme Studio applied the current draft successfully."),
78
+ diagnosticsReverted: themeStudioLabel("diagnostics.reverted", "Theme Studio reverted the current draft successfully."),
79
+ diagnosticsExported: themeStudioLabel("diagnostics.exported", "Theme Studio generated theme exports successfully."),
80
+ diagnosticsFailed: themeStudioLabel("diagnostics.failed", "Theme Studio encountered an error while processing the draft."),
81
+ notificationApplied: themeStudioLabel("notifications.applied", "Theme draft applied."),
82
+ notificationReverted: themeStudioLabel("notifications.reverted", "Theme draft reverted."),
83
+ notificationExported: themeStudioLabel("notifications.exported", "Theme exports generated."),
84
+ };
85
+ export const themeStudioLocaleLoader = {
86
+ defaultLocale: "en",
87
+ fallbackLocale: "en",
88
+ loaders: {
89
+ en: async () => (await import("./locales/en.js")).themeStudioEnCatalog,
90
+ es: async () => (await import("./locales/es.js")).themeStudioEsCatalog,
91
+ },
92
+ };
93
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAE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,CAAC,wBAAwB,EAAE,uBAAuB,CAAC;IACzF,oBAAoB,EAAE,gBAAgB,CAAC,wBAAwB,EAAE,0BAA0B,CAAC;CACpF,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAiC;IACnE,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,oBAAoB;QACtE,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,oBAAoB;KACvE;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ export * from "./version.js";
2
+ export * from "./constants.js";
3
+ export * from "./types.js";
4
+ export * from "./settings.js";
5
+ export * from "./manifest.js";
6
+ export * from "./i18n.js";
7
+ export * from "./relationship.js";
8
+ export * from "./export.js";
9
+ export * from "./service.js";
10
+ export * from "./createThemeStudioBundledEntry.js";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ export * from "./version.js";
2
+ export * from "./constants.js";
3
+ export * from "./types.js";
4
+ export * from "./settings.js";
5
+ export * from "./manifest.js";
6
+ export * from "./i18n.js";
7
+ export * from "./relationship.js";
8
+ export * from "./export.js";
9
+ export * from "./service.js";
10
+ export * from "./createThemeStudioBundledEntry.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const themeStudioEnCatalog: {
2
+ readonly locale: "en";
3
+ readonly messages: {
4
+ readonly [x: string]: "Theme Studio" | "Bundled theme authoring extension for inspecting tokens, previewing renderer/editor bridges, and exporting portable theme artifacts." | "Open Theme Studio" | "Open the bundled theme authoring workspace." | "Inspect, preview, apply, revert, and export themes against the formal token/class contract." | "Token inspector, class relationship inspector, live renderer/editor previews, and portable theme exports." | "Close" | "Refresh" | "Preview draft" | "Apply draft" | "Revert draft" | "Generate exports" | "Ready" | "Working…" | "Draft applied" | "Draft reverted" | "Exports generated";
5
+ };
6
+ };
7
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;CAwBvB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { THEME_STUDIO_EXTENSION_ID } from "../constants.js";
2
+ export const themeStudioEnCatalog = {
3
+ locale: "en",
4
+ messages: {
5
+ [`${THEME_STUDIO_EXTENSION_ID}.manifest.displayName`]: "Theme Studio",
6
+ [`${THEME_STUDIO_EXTENSION_ID}.manifest.description`]: "Bundled theme authoring extension for inspecting tokens, previewing renderer/editor bridges, and exporting portable theme artifacts.",
7
+ [`${THEME_STUDIO_EXTENSION_ID}.commands.open.title`]: "Open Theme Studio",
8
+ [`${THEME_STUDIO_EXTENSION_ID}.commands.open.description`]: "Open the bundled theme authoring workspace.",
9
+ [`${THEME_STUDIO_EXTENSION_ID}.view.title`]: "Theme Studio",
10
+ [`${THEME_STUDIO_EXTENSION_ID}.view.description`]: "Inspect, preview, apply, revert, and export themes against the formal token/class contract.",
11
+ [`${THEME_STUDIO_EXTENSION_ID}.rail.title`]: "Theme Studio",
12
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.header.title`]: "Theme Studio",
13
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.header.subtitle`]: "Token inspector, class relationship inspector, live renderer/editor previews, and portable theme exports.",
14
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.close`]: "Close",
15
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.refresh`]: "Refresh",
16
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.preview`]: "Preview draft",
17
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.apply`]: "Apply draft",
18
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.revert`]: "Revert draft",
19
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.export`]: "Generate exports",
20
+ [`${THEME_STUDIO_EXTENSION_ID}.status.ready`]: "Ready",
21
+ [`${THEME_STUDIO_EXTENSION_ID}.status.busy`]: "Working…",
22
+ [`${THEME_STUDIO_EXTENSION_ID}.status.applied`]: "Draft applied",
23
+ [`${THEME_STUDIO_EXTENSION_ID}.status.reverted`]: "Draft reverted",
24
+ [`${THEME_STUDIO_EXTENSION_ID}.status.exported`]: "Exports generated"
25
+ }
26
+ };
27
+ //# sourceMappingURL=en.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,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extensión integrada para crear temas, inspeccionar tokens, previsualizar puentes de render/editor y exportar artefactos portátiles." | "Abrir Estudio de Temas" | "Abre el espacio integrado de edición de temas." | "Inspecciona, previsualiza, aplica, revierte y exporta temas según el contrato formal de tokens y clases." | "Temas" | "Inspector de tokens, inspector de relaciones clase/token, vistas previas de render/editor y exportaciones portátiles." | "Cerrar" | "Actualizar" | "Previsualizar borrador" | "Aplicar borrador" | "Revertir borrador" | "Generar exportaciones" | "Listo" | "Procesando…" | "Borrador aplicado" | "Borrador revertido" | "Exportaciones generadas";
5
+ };
6
+ };
7
+ //# sourceMappingURL=es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/locales/es.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;CAwBvB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { THEME_STUDIO_EXTENSION_ID } from "../constants.js";
2
+ export const themeStudioEsCatalog = {
3
+ locale: "es",
4
+ messages: {
5
+ [`${THEME_STUDIO_EXTENSION_ID}.manifest.displayName`]: "Estudio de Temas",
6
+ [`${THEME_STUDIO_EXTENSION_ID}.manifest.description`]: "Extensión integrada para crear temas, inspeccionar tokens, previsualizar puentes de render/editor y exportar artefactos portátiles.",
7
+ [`${THEME_STUDIO_EXTENSION_ID}.commands.open.title`]: "Abrir Estudio de Temas",
8
+ [`${THEME_STUDIO_EXTENSION_ID}.commands.open.description`]: "Abre el espacio integrado de edición de temas.",
9
+ [`${THEME_STUDIO_EXTENSION_ID}.view.title`]: "Estudio de Temas",
10
+ [`${THEME_STUDIO_EXTENSION_ID}.view.description`]: "Inspecciona, previsualiza, aplica, revierte y exporta temas según el contrato formal de tokens y clases.",
11
+ [`${THEME_STUDIO_EXTENSION_ID}.rail.title`]: "Temas",
12
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.header.title`]: "Estudio de Temas",
13
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.header.subtitle`]: "Inspector de tokens, inspector de relaciones clase/token, vistas previas de render/editor y exportaciones portátiles.",
14
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.close`]: "Cerrar",
15
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.refresh`]: "Actualizar",
16
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.preview`]: "Previsualizar borrador",
17
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.apply`]: "Aplicar borrador",
18
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.revert`]: "Revertir borrador",
19
+ [`${THEME_STUDIO_EXTENSION_ID}.panel.actions.export`]: "Generar exportaciones",
20
+ [`${THEME_STUDIO_EXTENSION_ID}.status.ready`]: "Listo",
21
+ [`${THEME_STUDIO_EXTENSION_ID}.status.busy`]: "Procesando…",
22
+ [`${THEME_STUDIO_EXTENSION_ID}.status.applied`]: "Borrador aplicado",
23
+ [`${THEME_STUDIO_EXTENSION_ID}.status.reverted`]: "Borrador revertido",
24
+ [`${THEME_STUDIO_EXTENSION_ID}.status.exported`]: "Exportaciones generadas"
25
+ }
26
+ };
27
+ //# sourceMappingURL=es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.js","sourceRoot":"","sources":["../../src/locales/es.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE;QACR,CAAC,GAAG,yBAAyB,uBAAuB,CAAC,EAAE,kBAAkB;QACzE,CAAC,GAAG,yBAAyB,uBAAuB,CAAC,EAAE,qIAAqI;QAC5L,CAAC,GAAG,yBAAyB,sBAAsB,CAAC,EAAE,wBAAwB;QAC9E,CAAC,GAAG,yBAAyB,4BAA4B,CAAC,EAAE,gDAAgD;QAC5G,CAAC,GAAG,yBAAyB,aAAa,CAAC,EAAE,kBAAkB;QAC/D,CAAC,GAAG,yBAAyB,mBAAmB,CAAC,EAAE,0GAA0G;QAC7J,CAAC,GAAG,yBAAyB,aAAa,CAAC,EAAE,OAAO;QACpD,CAAC,GAAG,yBAAyB,qBAAqB,CAAC,EAAE,kBAAkB;QACvE,CAAC,GAAG,yBAAyB,wBAAwB,CAAC,EAAE,uHAAuH;QAC/K,CAAC,GAAG,yBAAyB,sBAAsB,CAAC,EAAE,QAAQ;QAC9D,CAAC,GAAG,yBAAyB,wBAAwB,CAAC,EAAE,YAAY;QACpE,CAAC,GAAG,yBAAyB,wBAAwB,CAAC,EAAE,wBAAwB;QAChF,CAAC,GAAG,yBAAyB,sBAAsB,CAAC,EAAE,kBAAkB;QACxE,CAAC,GAAG,yBAAyB,uBAAuB,CAAC,EAAE,mBAAmB;QAC1E,CAAC,GAAG,yBAAyB,uBAAuB,CAAC,EAAE,uBAAuB;QAC9E,CAAC,GAAG,yBAAyB,eAAe,CAAC,EAAE,OAAO;QACtD,CAAC,GAAG,yBAAyB,cAAc,CAAC,EAAE,aAAa;QAC3D,CAAC,GAAG,yBAAyB,iBAAiB,CAAC,EAAE,mBAAmB;QACpE,CAAC,GAAG,yBAAyB,kBAAkB,CAAC,EAAE,oBAAoB;QACtE,CAAC,GAAG,yBAAyB,kBAAkB,CAAC,EAAE,yBAAyB;KAC5E;CACO,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ExtensionManifest } from "@mdwrk/extension-manifest";
2
+ export declare const themeStudioManifest: ExtensionManifest;
3
+ export { THEME_STUDIO_COMMAND_OPEN_ID, THEME_STUDIO_EXTENSION_ID, THEME_STUDIO_RAIL_ID, THEME_STUDIO_VIEW_ID, } from "./constants.js";
4
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAkBnE,eAAO,MAAM,mBAAmB,EAAE,iBAqJjC,CAAC;AAEF,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,155 @@
1
+ import { THEME_STUDIO_COMMAND_OPEN_ID, THEME_STUDIO_DEFAULT_SETTINGS, THEME_STUDIO_EXTENSION_ID, THEME_STUDIO_RAIL_ID, THEME_STUDIO_SETTINGS_SECTION_EXPORT, THEME_STUDIO_SETTINGS_SECTION_PREVIEW, THEME_STUDIO_SETTING_AUTO_PREVIEW, THEME_STUDIO_SETTING_COMPACT_CSS, THEME_STUDIO_SETTING_DEFAULT_AUTHOR, THEME_STUDIO_SETTING_DEFAULT_EXPORT_TARGET, THEME_STUDIO_SETTING_PACKAGE_NAME_PREFIX, THEME_STUDIO_VIEW_ID, } from "./constants.js";
2
+ import { themeStudioLabels } from "./i18n.js";
3
+ import { THEME_STUDIO_VERSION } from "./version.js";
4
+ export const themeStudioManifest = {
5
+ manifestVersion: 1,
6
+ id: THEME_STUDIO_EXTENSION_ID,
7
+ packageName: "@mdwrk/extension-theme-studio",
8
+ version: THEME_STUDIO_VERSION,
9
+ displayName: themeStudioLabels.manifestDisplayName,
10
+ description: themeStudioLabels.manifestDescription,
11
+ kind: "bundled",
12
+ icon: { kind: "lucide", name: "Palette" },
13
+ enabledByDefault: true,
14
+ capabilities: [
15
+ "theme.read",
16
+ "theme.write",
17
+ "settings.read",
18
+ "settings.write",
19
+ "notification.publish",
20
+ "view.register",
21
+ "actionRail.register",
22
+ ],
23
+ compatibility: {
24
+ manifestVersion: 1,
25
+ hostApi: "^1.0.0",
26
+ runtime: "^1.0.0",
27
+ app: ">=1.3.49",
28
+ themeContract: "^1.0.0",
29
+ renderer: "^1.0.0",
30
+ editor: "^1.0.0",
31
+ },
32
+ entry: {
33
+ module: "./index.js",
34
+ export: "createThemeStudioBundledEntry",
35
+ },
36
+ i18n: {
37
+ defaultLocale: "en",
38
+ supportedLocales: ["en", "es"],
39
+ catalogs: [
40
+ { locale: "en", path: "./locales/en.js" },
41
+ { locale: "es", path: "./locales/es.js" },
42
+ ],
43
+ },
44
+ contributions: {
45
+ commands: [
46
+ {
47
+ id: THEME_STUDIO_COMMAND_OPEN_ID,
48
+ title: themeStudioLabels.commandOpenTitle,
49
+ description: themeStudioLabels.commandOpenDescription,
50
+ icon: { kind: "lucide", name: "Palette" },
51
+ keywords: ["theme", "studio", "tokens", "preview", "export"],
52
+ },
53
+ ],
54
+ views: [
55
+ {
56
+ id: THEME_STUDIO_VIEW_ID,
57
+ title: themeStudioLabels.viewTitle,
58
+ description: themeStudioLabels.viewDescription,
59
+ icon: { kind: "lucide", name: "Palette" },
60
+ location: "modal",
61
+ allowMultiple: false,
62
+ canBePinned: false,
63
+ },
64
+ ],
65
+ components: [],
66
+ actionRail: [
67
+ {
68
+ id: THEME_STUDIO_RAIL_ID,
69
+ title: themeStudioLabels.railTitle,
70
+ icon: { kind: "lucide", name: "Palette" },
71
+ group: "appearance",
72
+ order: 10,
73
+ target: {
74
+ kind: "view",
75
+ viewId: THEME_STUDIO_VIEW_ID,
76
+ },
77
+ },
78
+ ],
79
+ settingsSections: [
80
+ {
81
+ id: `${THEME_STUDIO_EXTENSION_ID}.settings`,
82
+ title: themeStudioLabels.settingsTitle,
83
+ description: themeStudioLabels.settingsDescription,
84
+ order: 20,
85
+ schemaPath: "manifest.settingsSchema",
86
+ },
87
+ ],
88
+ },
89
+ settingsSchema: {
90
+ version: 1,
91
+ title: themeStudioLabels.settingsTitle,
92
+ description: themeStudioLabels.settingsDescription,
93
+ sections: [
94
+ {
95
+ id: THEME_STUDIO_SETTINGS_SECTION_PREVIEW,
96
+ title: themeStudioLabels.settingsPreviewTitle,
97
+ description: themeStudioLabels.settingsPreviewDescription,
98
+ },
99
+ {
100
+ id: THEME_STUDIO_SETTINGS_SECTION_EXPORT,
101
+ title: themeStudioLabels.settingsExportTitle,
102
+ description: themeStudioLabels.settingsExportDescription,
103
+ },
104
+ ],
105
+ fields: [
106
+ {
107
+ key: THEME_STUDIO_SETTING_AUTO_PREVIEW,
108
+ kind: "boolean",
109
+ sectionId: THEME_STUDIO_SETTINGS_SECTION_PREVIEW,
110
+ label: themeStudioLabels.autoPreviewLabel,
111
+ description: themeStudioLabels.autoPreviewDescription,
112
+ defaultValue: THEME_STUDIO_DEFAULT_SETTINGS.autoPreviewOnEdit,
113
+ },
114
+ {
115
+ key: THEME_STUDIO_SETTING_DEFAULT_EXPORT_TARGET,
116
+ kind: "select",
117
+ sectionId: THEME_STUDIO_SETTINGS_SECTION_EXPORT,
118
+ label: themeStudioLabels.defaultExportTargetLabel,
119
+ description: themeStudioLabels.defaultExportTargetDescription,
120
+ defaultValue: THEME_STUDIO_DEFAULT_SETTINGS.defaultExportTarget,
121
+ options: [
122
+ { value: "host", label: { defaultMessage: "Host" } },
123
+ { value: "renderer", label: { defaultMessage: "Renderer" } },
124
+ { value: "editor", label: { defaultMessage: "Editor" } },
125
+ ],
126
+ },
127
+ {
128
+ key: THEME_STUDIO_SETTING_COMPACT_CSS,
129
+ kind: "boolean",
130
+ sectionId: THEME_STUDIO_SETTINGS_SECTION_EXPORT,
131
+ label: themeStudioLabels.compactCssLabel,
132
+ description: themeStudioLabels.compactCssDescription,
133
+ defaultValue: THEME_STUDIO_DEFAULT_SETTINGS.compactCss,
134
+ },
135
+ {
136
+ key: THEME_STUDIO_SETTING_PACKAGE_NAME_PREFIX,
137
+ kind: "string",
138
+ sectionId: THEME_STUDIO_SETTINGS_SECTION_EXPORT,
139
+ label: themeStudioLabels.packagePrefixLabel,
140
+ description: themeStudioLabels.packagePrefixDescription,
141
+ defaultValue: THEME_STUDIO_DEFAULT_SETTINGS.packageNamePrefix,
142
+ },
143
+ {
144
+ key: THEME_STUDIO_SETTING_DEFAULT_AUTHOR,
145
+ kind: "string",
146
+ sectionId: THEME_STUDIO_SETTINGS_SECTION_EXPORT,
147
+ label: themeStudioLabels.defaultAuthorLabel,
148
+ description: themeStudioLabels.defaultAuthorDescription,
149
+ defaultValue: THEME_STUDIO_DEFAULT_SETTINGS.defaultAuthor,
150
+ },
151
+ ],
152
+ },
153
+ };
154
+ export { THEME_STUDIO_COMMAND_OPEN_ID, THEME_STUDIO_EXTENSION_ID, THEME_STUDIO_RAIL_ID, THEME_STUDIO_VIEW_ID, } from "./constants.js";
155
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,oBAAoB,EACpB,oCAAoC,EACpC,qCAAqC,EACrC,iCAAiC,EACjC,gCAAgC,EAChC,mCAAmC,EACnC,0CAA0C,EAC1C,wCAAwC,EACxC,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,eAAe,EAAE,CAAC;IAClB,EAAE,EAAE,yBAAyB;IAC7B,WAAW,EAAE,+BAA+B;IAC5C,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,iBAAiB,CAAC,mBAAmB;IAClD,WAAW,EAAE,iBAAiB,CAAC,mBAAmB;IAClD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IACzC,gBAAgB,EAAE,IAAI;IACtB,YAAY,EAAE;QACZ,YAAY;QACZ,aAAa;QACb,eAAe;QACf,gBAAgB;QAChB,sBAAsB;QACtB,eAAe;QACf,qBAAqB;KACtB;IACD,aAAa,EAAE;QACb,eAAe,EAAE,CAAC;QAClB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,QAAQ;QACjB,GAAG,EAAE,UAAU;QACf,aAAa,EAAE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,MAAM,EAAE,EAAE;oBACpD,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,EAAE;oBAC5D,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE;iBACzD;aACF;YACD;gBACE,GAAG,EAAE,gCAAgC;gBACrC,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,oCAAoC;gBAC/C,KAAK,EAAE,iBAAiB,CAAC,eAAe;gBACxC,WAAW,EAAE,iBAAiB,CAAC,qBAAqB;gBACpD,YAAY,EAAE,6BAA6B,CAAC,UAAU;aACvD;YACD;gBACE,GAAG,EAAE,wCAAwC;gBAC7C,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,oCAAoC;gBAC/C,KAAK,EAAE,iBAAiB,CAAC,kBAAkB;gBAC3C,WAAW,EAAE,iBAAiB,CAAC,wBAAwB;gBACvD,YAAY,EAAE,6BAA6B,CAAC,iBAAiB;aAC9D;YACD;gBACE,GAAG,EAAE,mCAAmC;gBACxC,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,oCAAoC;gBAC/C,KAAK,EAAE,iBAAiB,CAAC,kBAAkB;gBAC3C,WAAW,EAAE,iBAAiB,CAAC,wBAAwB;gBACvD,YAAY,EAAE,6BAA6B,CAAC,aAAa;aAC1D;SACF;KACF;CACF,CAAC;AAEF,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ThemeBridgeVariableDefinition, ThemeClassDefinition } from "@mdwrk/theme-contract";
2
+ import type { ThemeStudioClassRelationship } from "./types.js";
3
+ export declare function buildThemeStudioClassRelationships(classes: readonly ThemeClassDefinition[], rendererBridge: readonly ThemeBridgeVariableDefinition[], editorBridge: readonly ThemeBridgeVariableDefinition[]): readonly ThemeStudioClassRelationship[];
4
+ //# sourceMappingURL=relationship.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relationship.d.ts","sourceRoot":"","sources":["../src/relationship.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAI/D,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACxC,cAAc,EAAE,SAAS,6BAA6B,EAAE,EACxD,YAAY,EAAE,SAAS,6BAA6B,EAAE,GACrD,SAAS,4BAA4B,EAAE,CAgBzC"}
@@ -0,0 +1,18 @@
1
+ const unique = (values) => Array.from(new Set(values));
2
+ export function buildThemeStudioClassRelationships(classes, rendererBridge, editorBridge) {
3
+ const rendererTokens = unique(rendererBridge.map((definition) => definition.sourceToken));
4
+ const editorTokens = unique(editorBridge.map((definition) => definition.sourceToken));
5
+ return classes.map((definition) => ({
6
+ className: definition.name,
7
+ selector: definition.selector,
8
+ scope: definition.scope,
9
+ stability: definition.stability,
10
+ bridgeTarget: definition.scope === "renderer" ? "renderer" : definition.scope === "editor" ? "editor" : "host",
11
+ sourceTokens: definition.scope === "renderer"
12
+ ? rendererTokens
13
+ : definition.scope === "editor"
14
+ ? editorTokens
15
+ : unique([...rendererTokens, ...editorTokens]),
16
+ }));
17
+ }
18
+ //# sourceMappingURL=relationship.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relationship.js","sourceRoot":"","sources":["../src/relationship.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,GAAG,CAAC,MAAkD,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnG,MAAM,UAAU,kCAAkC,CAChD,OAAwC,EACxC,cAAwD,EACxD,YAAsD;IAEtD,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1F,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAEtF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QAClC,SAAS,EAAE,UAAU,CAAC,IAAI;QAC1B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,YAAY,EAAE,UAAU,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;QAC9G,YAAY,EAAE,UAAU,CAAC,KAAK,KAAK,UAAU;YAC3C,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,UAAU,CAAC,KAAK,KAAK,QAAQ;gBAC7B,CAAC,CAAC,YAAY;gBACd,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,cAAc,EAAE,GAAG,YAAY,CAAC,CAAC;KACnD,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ThemeStudioService, ThemeStudioServiceDependencies } from "./types.js";
2
+ export declare function createThemeStudioService(deps: ThemeStudioServiceDependencies): ThemeStudioService;
3
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAGV,kBAAkB,EAClB,8BAA8B,EAE/B,MAAM,YAAY,CAAC;AA8BpB,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,8BAA8B,GAAG,kBAAkB,CA8LjG"}