@pure-ds/core 0.6.10 → 0.6.11

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 (75) hide show
  1. package/custom-elements.json +803 -16
  2. package/dist/types/pds.d.ts +1 -0
  3. package/dist/types/public/assets/js/pds-manager.d.ts +98 -1
  4. package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
  5. package/dist/types/public/assets/js/pds.d.ts.map +1 -1
  6. package/dist/types/public/assets/pds/components/pds-live-converter.d.ts +8 -0
  7. package/dist/types/public/assets/pds/components/pds-live-converter.d.ts.map +1 -0
  8. package/dist/types/public/assets/pds/components/pds-live-importer.d.ts +2 -0
  9. package/dist/types/public/assets/pds/components/pds-live-importer.d.ts.map +1 -0
  10. package/dist/types/public/assets/pds/components/pds-live-template-canvas.d.ts +2 -0
  11. package/dist/types/public/assets/pds/components/pds-live-template-canvas.d.ts.map +1 -0
  12. package/dist/types/public/assets/pds/components/pds-omnibox.d.ts.map +1 -1
  13. package/dist/types/public/assets/pds/components/pds-scrollrow.d.ts +20 -0
  14. package/dist/types/public/assets/pds/components/pds-scrollrow.d.ts.map +1 -1
  15. package/dist/types/public/assets/pds/components/pds-toaster.d.ts +1 -1
  16. package/dist/types/public/assets/pds/components/pds-toaster.d.ts.map +1 -1
  17. package/dist/types/public/assets/pds/components/pds-treeview.d.ts +37 -0
  18. package/dist/types/public/assets/pds/components/pds-treeview.d.ts.map +1 -0
  19. package/dist/types/src/js/common/toast.d.ts +8 -0
  20. package/dist/types/src/js/common/toast.d.ts.map +1 -1
  21. package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
  22. package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
  23. package/dist/types/src/js/pds-core/pds-live.d.ts +2 -1
  24. package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
  25. package/dist/types/src/js/pds-live-manager/conversion-service.d.ts +66 -0
  26. package/dist/types/src/js/pds-live-manager/conversion-service.d.ts.map +1 -0
  27. package/dist/types/src/js/pds-live-manager/import-contract.d.ts +15 -0
  28. package/dist/types/src/js/pds-live-manager/import-contract.d.ts.map +1 -0
  29. package/dist/types/src/js/pds-live-manager/import-history-service.d.ts +32 -0
  30. package/dist/types/src/js/pds-live-manager/import-history-service.d.ts.map +1 -0
  31. package/dist/types/src/js/pds-live-manager/import-service.d.ts +21 -0
  32. package/dist/types/src/js/pds-live-manager/import-service.d.ts.map +1 -0
  33. package/dist/types/src/js/pds-live-manager/template-service.d.ts +17 -0
  34. package/dist/types/src/js/pds-live-manager/template-service.d.ts.map +1 -0
  35. package/dist/types/src/js/pds-manager.d.ts +4 -0
  36. package/dist/types/src/js/pds.d.ts.map +1 -1
  37. package/package.json +6 -2
  38. package/packages/pds-cli/README.md +51 -0
  39. package/packages/pds-cli/bin/pds-import.js +176 -0
  40. package/packages/pds-cli/bin/pds-static.js +15 -0
  41. package/packages/pds-cli/bin/postinstall.mjs +17 -8
  42. package/public/assets/js/app.js +15 -139
  43. package/public/assets/js/pds-manager.js +358 -255
  44. package/public/assets/js/pds.js +7 -7
  45. package/public/assets/pds/components/pds-live-converter.js +47 -0
  46. package/public/assets/pds/components/pds-live-edit.js +760 -43
  47. package/public/assets/pds/components/pds-live-importer.js +772 -0
  48. package/public/assets/pds/components/pds-live-template-canvas.js +171 -0
  49. package/public/assets/pds/components/pds-omnibox.js +136 -2
  50. package/public/assets/pds/components/pds-scrollrow.js +56 -1
  51. package/public/assets/pds/components/pds-toaster.js +50 -5
  52. package/public/assets/pds/components/pds-treeview.js +972 -0
  53. package/public/assets/pds/custom-elements.json +803 -16
  54. package/public/assets/pds/pds-css-complete.json +7 -2
  55. package/public/assets/pds/templates/commerce-scroll-explorer.html +115 -0
  56. package/public/assets/pds/templates/content-brand-showcase.html +110 -0
  57. package/public/assets/pds/templates/feedback-ops-dashboard.html +91 -0
  58. package/public/assets/pds/templates/release-readiness-radar.html +69 -0
  59. package/public/assets/pds/templates/support-command-center.html +92 -0
  60. package/public/assets/pds/templates/templates.json +53 -0
  61. package/public/assets/pds/templates/workspace-settings-lab.html +131 -0
  62. package/public/assets/pds/vscode-custom-data.json +54 -4
  63. package/readme.md +34 -0
  64. package/src/js/pds-core/pds-config.js +9 -9
  65. package/src/js/pds-core/pds-enhancers.js +146 -0
  66. package/src/js/pds-core/pds-generator.js +170 -29
  67. package/src/js/pds-core/pds-live.js +453 -13
  68. package/src/js/pds-live-manager/conversion-service.js +3136 -0
  69. package/src/js/pds-live-manager/import-contract.js +57 -0
  70. package/src/js/pds-live-manager/import-history-service.js +145 -0
  71. package/src/js/pds-live-manager/import-service.js +255 -0
  72. package/src/js/pds-live-manager/tailwind-conversion-rules.json +383 -0
  73. package/src/js/pds-live-manager/template-service.js +170 -0
  74. package/src/js/pds.d.ts +1 -0
  75. package/src/js/pds.js +35 -0
@@ -152,6 +152,7 @@ export interface PDSEventMap {
152
152
  'pds:ready': CustomEvent<{ mode: 'live' | 'static'; generator?: Generator; config: any; theme: string; autoDefiner?: any }>;
153
153
  'pds:error': CustomEvent<{ error: any }>;
154
154
  'pds:theme:changed': CustomEvent<{ theme: string; requested?: string; source: 'system' | 'programmatic' }>;
155
+ 'pds:config-changed': CustomEvent<{ at: number; mode?: 'live' | 'static'; source?: string; preset?: string }>;
155
156
  'pds:design:updated': CustomEvent<{ config: any; designer?: any }>;
156
157
  'pds:design:field:changed': CustomEvent<{ field: string; config: any }>;
157
158
  'pds:inspector:mode:changed': CustomEvent<{ active: boolean }>;
@@ -1,6 +1,103 @@
1
+ export function clearLiveImportHistory(): Promise<void>;
2
+ export function convertBrandGuidelinesToPatch(input?: {}): {
3
+ source: string;
4
+ type: string;
5
+ confidence: number;
6
+ issues: {
7
+ severity: string;
8
+ message: string;
9
+ path: string;
10
+ }[];
11
+ designPatch: any;
12
+ template: any;
13
+ meta: any;
14
+ };
15
+ export function convertTailwindHtmlToPds(input?: {}): {
16
+ source: string;
17
+ type: string;
18
+ confidence: number;
19
+ issues: {
20
+ severity: string;
21
+ message: string;
22
+ path: string;
23
+ }[];
24
+ designPatch: any;
25
+ template: any;
26
+ meta: any;
27
+ };
28
+ export function createImportResult(input?: {}): {
29
+ source: string;
30
+ type: string;
31
+ confidence: number;
32
+ issues: {
33
+ severity: string;
34
+ message: string;
35
+ path: string;
36
+ }[];
37
+ designPatch: any;
38
+ template: any;
39
+ meta: any;
40
+ };
41
+ export function describeTailwindConversionRules(): {
42
+ directMappings: any;
43
+ ignoredPatterns: any;
44
+ nonPdsClassPatterns: any;
45
+ rulesJsonPath: string;
46
+ };
47
+ export function getLiveImportHistoryEntry(id: any): Promise<any>;
48
+ export function getLiveImportSources(): {
49
+ id: string;
50
+ name: string;
51
+ }[];
52
+ export function isImportResult(value: any): boolean;
53
+ export function listLiveImportHistory(options?: {}): Promise<any>;
54
+ export function listLiveTemplates(options?: {}): Promise<any>;
1
55
  export function loadGoogleFont(fontFamily: any, options?: {}): Promise<any>;
2
- export function startLive(PDS2: any, config: any, { emitReady, applyResolvedTheme, setupSystemListenerIfNeeded }: {
56
+ export function loadLiveTemplateCatalog(options?: {}): Promise<any>;
57
+ export function runLiveImport(request?: {}): Promise<{
58
+ source: string;
59
+ type: string;
60
+ confidence: number;
61
+ issues: {
62
+ severity: string;
63
+ message: string;
64
+ path: string;
65
+ }[];
66
+ designPatch: any;
67
+ template: any;
68
+ meta: any;
69
+ }>;
70
+ export function saveLiveImportHistory(input?: {}): Promise<{
71
+ createdAt: number;
72
+ createdAtIso: string;
73
+ sourceType: string;
74
+ importMode: string;
75
+ source: string;
76
+ type: string;
77
+ fileName: string;
78
+ fileSize: number;
79
+ mimeType: string;
80
+ fileContents: string;
81
+ convertedHtml: string;
82
+ confidence: number;
83
+ notes: string[];
84
+ issues: {
85
+ severity: string;
86
+ message: string;
87
+ }[];
88
+ coverage: any;
89
+ unknownTailwindTokens: string[];
90
+ appliedRules: string[];
91
+ importStyleSheetInjected: boolean;
92
+ templateName: string;
93
+ designPatch: any;
94
+ meta: any;
95
+ resultSnapshot: any;
96
+ id: any;
97
+ }>;
98
+ export function startLive(PDS3: any, config: any, { emitReady, emitConfigChanged, applyResolvedTheme, setupSystemListenerIfNeeded }: {
3
99
  emitReady: any;
100
+ emitConfigChanged: any;
4
101
  applyResolvedTheme: any;
5
102
  setupSystemListenerIfNeeded: any;
6
103
  }): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":"AAywUA,4EA8CC;AAutBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA59ME;;;WAGG;;;QAgCH;;;;;;WAMG;;;;;QA8EH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1
+ {"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"AAw3EA;;;;EAAwB;AAiIxB,mDAiBC;AACD,4DAqCC"}
@@ -0,0 +1,8 @@
1
+ declare const COMPONENT_TAG: "pds-live-converter";
2
+ declare class PdsLiveConverter extends HTMLElement {
3
+ result: any;
4
+ connectedCallback(): void;
5
+ setResult(result: any): void;
6
+ _render(): void;
7
+ }
8
+ //# sourceMappingURL=pds-live-converter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-live-converter.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-converter.js"],"names":[],"mappings":"AAAA,6BAAsB,oBAAoB,CAAC;AAE3C;IAGI,YAAkB;IAGpB,0BAEC;IAED,6BAGC;IAED,gBA0BC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pds-live-importer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-live-importer.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-importer.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pds-live-template-canvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-live-template-canvas.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-template-canvas.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"pds-omnibox.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-omnibox.js"],"names":[],"mappings":"AAmBA;IACE,+BAA6B;IAE7B,0CAUC;IAuBD,0BAaC;IAED,6BAgBC;IAED,wEAGC;IAMD,yBAEC;IAND,oBAEC;IAUD,wBAGC;IAPD,mBAEC;IAWD,+BAGC;IAPD,0BAEC;IAWD,sBAIC;IARD,iBAEC;IAYD,6BAGC;IAPD,wBAEC;IAWD,6BAGC;IAPD,wBAEC;IAWD,gCAGC;IAPD,2BAEC;IAWD,wBAGC;IAPD,mBAEC;IAOD,+BAA2B;IAE3B,0CAGC;IAED,0BAEC;IAED,2CAEC;IAED,qBAEC;IAED,sBAEC;;CA8lBF"}
1
+ {"version":3,"file":"pds-omnibox.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-omnibox.js"],"names":[],"mappings":"AAmBA;IACE,+BAA6B;IAE7B,0CAUC;IAuBD,0BAaC;IAED,6BAgBC;IAED,wEAGC;IAMD,yBAEC;IAND,oBAEC;IAUD,wBAGC;IAPD,mBAEC;IAWD,+BAGC;IAPD,0BAEC;IAWD,sBAIC;IARD,iBAEC;IAYD,6BAGC;IAPD,wBAEC;IAWD,6BAGC;IAPD,wBAEC;IAWD,gCAGC;IAPD,2BAEC;IAWD,wBAGC;IAPD,mBAEC;IAOD,+BAA2B;IAE3B,0CAGC;IAED,0BAEC;IAED,2CAEC;IAED,qBAEC;IAED,sBAEC;;CAouBF"}
@@ -11,6 +11,8 @@
11
11
  *
12
12
  * @attr {string} label - Accessible label for the scroll region; also used as fallback heading copy
13
13
  * @attr {"start"|"center"} snap - Snap alignment for tiles when scrolling (default: start)
14
+ * @attr {string} tile-min - Minimum tile width (CSS length, e.g. "250px")
15
+ * @attr {string} tile-max - Maximum tile width (CSS length, e.g. "360px")
14
16
  */
15
17
  declare class PdsScrollrow extends HTMLElement {
16
18
  static get observedAttributes(): string[];
@@ -35,6 +37,24 @@ declare class PdsScrollrow extends HTMLElement {
35
37
  * @returns {"start"|"center"}
36
38
  */
37
39
  get snap(): "start" | "center";
40
+ /**
41
+ * @param {string|null} val
42
+ */
43
+ set tileMin(val: string | null);
44
+ /**
45
+ * Minimum tile size applied to slotted content.
46
+ * @returns {string|null}
47
+ */
48
+ get tileMin(): string | null;
49
+ /**
50
+ * @param {string|null} val
51
+ */
52
+ set tileMax(val: string | null);
53
+ /**
54
+ * Maximum tile size applied to slotted content.
55
+ * @returns {string|null}
56
+ */
57
+ get tileMax(): string | null;
38
58
  /**
39
59
  * Lifecycle hook called when the element is inserted into the document.
40
60
  */
@@ -1 +1 @@
1
- {"version":3,"file":"pds-scrollrow.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-scrollrow.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH;IAME,0CAEC;IAOD,2CA8CE;IA+BF;;;OAGG;IACH,eAFW,MAAM,GAAC,IAAI,EAKrB;IAfD;;;OAGG;IACH,aAFa,MAAM,GAAC,IAAI,CAKvB;IAgBD;;;OAGG;IACH,cAFW,MAAM,GAAC,IAAI,EAKrB;IAdD;;;OAGG;IACH,YAFa,OAAO,GAAC,QAAQ,CAI5B;IAUD;;OAEG;IACH,0BAQC;IAED;;OAEG;IACH,6BAEC;IAED;;;;;OAKG;IACH,+BAJW,MAAM,YACN,MAAM,GAAC,IAAI,YACX,MAAM,GAAC,IAAI,QAsCrB;IAED;;OAEG;IACH,eAmCC;IA4CD;;;OAGG;IACH,UAFW,KAAK,QAMf;;CA4CF"}
1
+ {"version":3,"file":"pds-scrollrow.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-scrollrow.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH;IAME,0CAEC;IAOD,2CA8CE;IA+BF;;;OAGG;IACH,eAFW,MAAM,GAAC,IAAI,EAKrB;IAfD;;;OAGG;IACH,aAFa,MAAM,GAAC,IAAI,CAKvB;IAgBD;;;OAGG;IACH,cAFW,MAAM,GAAC,IAAI,EAKrB;IAdD;;;OAGG;IACH,YAFa,OAAO,GAAC,QAAQ,CAI5B;IAiBD;;OAEG;IACH,iBAFW,MAAM,GAAC,IAAI,EAKrB;IAbD;;;OAGG;IACH,eAFa,MAAM,GAAC,IAAI,CAIvB;IAgBD;;OAEG;IACH,iBAFW,MAAM,GAAC,IAAI,EAKrB;IAbD;;;OAGG;IACH,eAFa,MAAM,GAAC,IAAI,CAIvB;IASD;;OAEG;IACH,0BAQC;IAED;;OAEG;IACH,6BAEC;IAED;;;;;OAKG;IACH,+BAJW,MAAM,YACN,MAAM,GAAC,IAAI,YACX,MAAM,GAAC,IAAI,QA2CrB;IAED;;OAEG;IACH,eAmCC;IA8DD;;;OAGG;IACH,UAFW,KAAK,QAMf;;CA4CF"}
@@ -58,7 +58,7 @@ export class AppToaster extends HTMLElement {
58
58
  * @param {boolean} persistent
59
59
  * @returns {HTMLElement}
60
60
  */
61
- createToastElement(id: string, message: string, type: "information" | "success" | "warning" | "error", closable: boolean, duration: number, persistent: boolean): HTMLElement;
61
+ createToastElement(id: string, message: string, type: "information" | "success" | "warning" | "error", closable: boolean, duration: number, persistent: boolean, html?: boolean, action?: any): HTMLElement;
62
62
  /**
63
63
  * Dismiss a toast by ID
64
64
  * @method dismissToast
@@ -1 +1 @@
1
- {"version":3,"file":"pds-toaster.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-toaster.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAGI,cAAgB;IAGlB;;;OAGG;IACH,qBAFa,OAAO,CAAC,IAAI,CAAC,CA6HzB;IAtHC,oCAGC;IAqHH;;OAEG;IACH,6BAMC;IAED;;;;;;;;;;;OAWG;IACH,sBARW,MAAM,YAEd;QAA4D,IAAI,GAAxD,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO;QACxB,QAAQ,GAAzB,MAAM;QACY,QAAQ,GAA1B,OAAO;QACW,UAAU,GAA5B,OAAO;KACf,GAAU,MAAM,CAqBlB;IA0CD;;;;;;;;;OASG;IACH,uBARW,MAAM,WACN,MAAM,QACN,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO,YACzC,OAAO,YACP,MAAM,cACN,OAAO,GACL,WAAW,CAgDvB;IAED;;;;;OAKG;IACH,6BAFW,MAAM,QAkBhB;IAED;;OAEG;IACH,mBAaC;IA2DD;;;;;;;OAOG;IACH,6BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,2BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,0BAJW,MAAM,kBAEJ,MAAM,CAIlB;;CACF"}
1
+ {"version":3,"file":"pds-toaster.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-toaster.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAGI,cAAgB;IAGlB;;;OAGG;IACH,qBAFa,OAAO,CAAC,IAAI,CAAC,CAqIzB;IA9HC,oCAGC;IA6HH;;OAEG;IACH,6BAMC;IAED;;;;;;;;;;;OAWG;IACH,sBARW,MAAM,YAEd;QAA4D,IAAI,GAAxD,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO;QACxB,QAAQ,GAAzB,MAAM;QACY,QAAQ,GAA1B,OAAO;QACW,UAAU,GAA5B,OAAO;KACf,GAAU,MAAM,CAyBlB;IA4CD;;;;;;;;;OASG;IACH,uBARW,MAAM,WACN,MAAM,QACN,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO,YACzC,OAAO,YACP,MAAM,cACN,OAAO,iCACL,WAAW,CA+EvB;IAED;;;;;OAKG;IACH,6BAFW,MAAM,QAkBhB;IAED;;OAEG;IACH,mBAaC;IA2DD;;;;;;;OAOG;IACH,6BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,2BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,0BAJW,MAAM,kBAEJ,MAAM,CAIlB;;CACF"}
@@ -0,0 +1,37 @@
1
+ export class PdsTreeview extends HTMLElement {
2
+ static formAssociated: boolean;
3
+ static get observedAttributes(): string[];
4
+ connectedCallback(): void;
5
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
6
+ formAssociatedCallback(): void;
7
+ formDisabledCallback(disabled: any): void;
8
+ formResetCallback(): void;
9
+ set value(value: string);
10
+ get value(): string;
11
+ formStateRestoreCallback(state: any): void;
12
+ set settings(value: {});
13
+ get settings(): {};
14
+ set options(value: {});
15
+ get options(): {};
16
+ set name(value: string);
17
+ get name(): string;
18
+ set disabled(value: boolean);
19
+ get disabled(): boolean;
20
+ set required(value: boolean);
21
+ get required(): boolean;
22
+ set displayOnly(value: boolean);
23
+ get displayOnly(): boolean;
24
+ set expandedAll(value: boolean);
25
+ get expandedAll(): boolean;
26
+ get selectedNode(): any;
27
+ getSelectedNode(): any;
28
+ refresh(): Promise<void>;
29
+ expandAll(): void;
30
+ collapseAll(): void;
31
+ selectById(id: any): boolean;
32
+ selectByValue(value: any): boolean;
33
+ checkValidity(): boolean;
34
+ reportValidity(): boolean;
35
+ #private;
36
+ }
37
+ //# sourceMappingURL=pds-treeview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-treeview.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-treeview.js"],"names":[],"mappings":"AA6BA;IACC,+BAA6B;IAE7B,0CAEC;IAuBD,0BAIC;IAED,wEAUC;IAED,+BAA2B;IAE3B,0CAGC;IAED,0BAGC;IAqCD,yBAIC;IARD,oBAEC;IAjCD,2CAGC;IAMD,wBAGC;IAPD,mBAEC;IAWD,uBAEC;IAND,kBAEC;IAUD,wBAGC;IAPD,mBAEC;IAqBD,6BAGC;IAPD,wBAEC;IAWD,6BAGC;IAPD,wBAEC;IAWD,gCAGC;IAPD,2BAEC;IAWD,gCAGC;IAPD,2BAEC;IAOD,wBAEC;IAED,uBAEC;IAED,yBAsCC;IAED,kBAKC;IAED,oBAGC;IAED,6BAIC;IAED,mCAgBC;IAED,yBAGC;IAED,0BAGC;;CAusBD"}
@@ -11,6 +11,8 @@
11
11
  * @param {number} [options.duration] - Duration in milliseconds (auto-calculated if not provided based on message length)
12
12
  * @param {boolean} [options.closable=true] - Whether the toast can be manually closed
13
13
  * @param {boolean} [options.persistent=false] - If true, toast won't auto-dismiss (requires manual close)
14
+ * @param {boolean} [options.html=false] - Render `message` as HTML (trusted content only)
15
+ * @param {{label: string, onClick?: Function, dismissOnClick?: boolean}} [options.action] - Optional action button config
14
16
  * @returns {Promise<string>} Toast ID (can be used to dismiss programmatically)
15
17
  *
16
18
  * @example
@@ -43,6 +45,12 @@ export function toast(message: string, options?: {
43
45
  duration?: number;
44
46
  closable?: boolean;
45
47
  persistent?: boolean;
48
+ html?: boolean;
49
+ action?: {
50
+ label: string;
51
+ onClick?: Function;
52
+ dismissOnClick?: boolean;
53
+ };
46
54
  }): Promise<string>;
47
55
  export namespace toast {
48
56
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../src/js/common/toast.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,+BAjCW,MAAM,YAEd;IAA4D,IAAI,GAAxD,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO;IACxB,QAAQ,GAAzB,MAAM;IACY,QAAQ,GAA1B,OAAO;IACW,UAAU,GAA5B,OAAO;CACf,GAAU,OAAO,CAAC,MAAM,CAAC,CA8B3B;;IAED;;;;;;;;;OASG;IACH,0BAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;;OASG;IACH,wBAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;;OASG;IACH,0BAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;;OASG;IACH,uBAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B"}
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../src/js/common/toast.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,+BAnCW,MAAM,YAEd;IAA4D,IAAI,GAAxD,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO;IACxB,QAAQ,GAAzB,MAAM;IACY,QAAQ,GAA1B,OAAO;IACW,UAAU,GAA5B,OAAO;IACW,IAAI,GAAtB,OAAO;IACiE,MAAM,GAA9E;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,WAAW;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAC;CACrE,GAAU,OAAO,CAAC,MAAM,CAAC,CA8B3B;;IAED;;;;;;;;;OASG;IACH,0BAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;;OASG;IACH,wBAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;;OASG;IACH,0BAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;;OASG;IACH,uBAPW,MAAM,kBAEJ,OAAO,CAAC,MAAM,CAAC,CAO3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"AA2pBA;;;;;GAKG;AACH;;;IAGI;AAvoBJ,mDAmBC"}
1
+ {"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"AA6yBA;;;;;GAKG;AACH;;;IAGI;AAzxBJ,mDAmBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"AAo2KA;;;;;;;;;GASG;AACH,8CALW,MAAM,YAEd;IAAyB,WAAW,GAA5B,MAAM;CACd,GAAU;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,K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BAMC;IAED;;;;;;OAMG;IACH,oBA6JC;IAGD,4BAEC;IACD,gCAEC;IACD,gCAEC;IACD,+BAEC;IAmBD;;;OAGG;IACH;;;;;;MAoBC;;CAkBF"}
@@ -1,5 +1,6 @@
1
- export function startLive(PDS: any, config: any, { emitReady, applyResolvedTheme, setupSystemListenerIfNeeded }: {
1
+ export function startLive(PDS: any, config: any, { emitReady, emitConfigChanged, applyResolvedTheme, setupSystemListenerIfNeeded }: {
2
2
  emitReady: any;
3
+ emitConfigChanged: any;
3
4
  applyResolvedTheme: any;
4
5
  setupSystemListenerIfNeeded: any;
5
6
  }): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"AA2cA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoQC;0BA3sByB,oBAAoB"}
1
+ {"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"AA43BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2QC;0BAnoCyB,oBAAoB"}
@@ -0,0 +1,66 @@
1
+ export function describeTailwindConversionRules(): {
2
+ directMappings: any;
3
+ ignoredPatterns: any;
4
+ nonPdsClassPatterns: any;
5
+ rulesJsonPath: string;
6
+ };
7
+ export function inferPdsDesignFromHtml(input?: {}): {
8
+ source: string;
9
+ type: string;
10
+ confidence: number;
11
+ issues: {
12
+ severity: string;
13
+ message: string;
14
+ path: string;
15
+ }[];
16
+ designPatch: any;
17
+ template: any;
18
+ meta: any;
19
+ };
20
+ export function convertHtmlLikeInputToPdsTemplate(input?: {}): {
21
+ source: string;
22
+ type: string;
23
+ confidence: number;
24
+ issues: {
25
+ severity: string;
26
+ message: string;
27
+ path: string;
28
+ }[];
29
+ designPatch: any;
30
+ template: any;
31
+ meta: any;
32
+ };
33
+ export function convertTailwindHtmlToPds(input?: {}): {
34
+ source: string;
35
+ type: string;
36
+ confidence: number;
37
+ issues: {
38
+ severity: string;
39
+ message: string;
40
+ path: string;
41
+ }[];
42
+ designPatch: any;
43
+ template: any;
44
+ meta: any;
45
+ };
46
+ export function convertBrandGuidelinesToPatch(input?: {}): {
47
+ source: string;
48
+ type: string;
49
+ confidence: number;
50
+ issues: {
51
+ severity: string;
52
+ message: string;
53
+ path: string;
54
+ }[];
55
+ designPatch: any;
56
+ template: any;
57
+ meta: any;
58
+ };
59
+ export namespace TAILWIND_TO_PDS_RULES {
60
+ export { ignoredPatterns };
61
+ export { nonPdsClassPatterns };
62
+ }
63
+ declare const ignoredPatterns: any;
64
+ declare const nonPdsClassPatterns: any;
65
+ export {};
66
+ //# sourceMappingURL=conversion-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion-service.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-live-manager/conversion-service.js"],"names":[],"mappings":"AA8vEA;;;;;EAgBC;AAuhBD;;;;;;;;;;;;EAiKC;AAED;;;;;;;;;;;;EA6CC;AAED;;;;;;;;;;;;EAyBC;AAED;;;;;;;;;;;;EA6CC;;;;;AAtjGC,mCAKO;AAEP,uCAIO"}
@@ -0,0 +1,15 @@
1
+ export function createImportResult(input?: {}): {
2
+ source: string;
3
+ type: string;
4
+ confidence: number;
5
+ issues: {
6
+ severity: string;
7
+ message: string;
8
+ path: string;
9
+ }[];
10
+ designPatch: any;
11
+ template: any;
12
+ meta: any;
13
+ };
14
+ export function isImportResult(value: any): boolean;
15
+ //# sourceMappingURL=import-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-contract.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-live-manager/import-contract.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;EAqBC;AAED,oDAUC"}
@@ -0,0 +1,32 @@
1
+ export function saveLiveImportHistory(input?: {}): Promise<{
2
+ createdAt: number;
3
+ createdAtIso: string;
4
+ sourceType: string;
5
+ importMode: string;
6
+ source: string;
7
+ type: string;
8
+ fileName: string;
9
+ fileSize: number;
10
+ mimeType: string;
11
+ fileContents: string;
12
+ convertedHtml: string;
13
+ confidence: number;
14
+ notes: string[];
15
+ issues: {
16
+ severity: string;
17
+ message: string;
18
+ }[];
19
+ coverage: any;
20
+ unknownTailwindTokens: string[];
21
+ appliedRules: string[];
22
+ importStyleSheetInjected: boolean;
23
+ templateName: string;
24
+ designPatch: any;
25
+ meta: any;
26
+ resultSnapshot: any;
27
+ id: any;
28
+ }>;
29
+ export function listLiveImportHistory(options?: {}): Promise<any>;
30
+ export function getLiveImportHistoryEntry(id: any): Promise<any>;
31
+ export function clearLiveImportHistory(): Promise<void>;
32
+ //# sourceMappingURL=import-history-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-history-service.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-live-manager/import-history-service.js"],"names":[],"mappings":"AAkGA;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUC;AAED,kEAYC;AAED,iEAWC;AAED,wDAOC"}
@@ -0,0 +1,21 @@
1
+ export function getLiveImportSources(): {
2
+ id: string;
3
+ name: string;
4
+ }[];
5
+ export function runLiveImport(request?: {}): Promise<{
6
+ source: string;
7
+ type: string;
8
+ confidence: number;
9
+ issues: {
10
+ severity: string;
11
+ message: string;
12
+ path: string;
13
+ }[];
14
+ designPatch: any;
15
+ template: any;
16
+ meta: any;
17
+ }>;
18
+ import { listLiveTemplates } from "./template-service.js";
19
+ import { loadLiveTemplateCatalog } from "./template-service.js";
20
+ export { listLiveTemplates, loadLiveTemplateCatalog };
21
+ //# sourceMappingURL=import-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-service.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-live-manager/import-service.js"],"names":[],"mappings":"AAmHA;;;IASC;AAED;;;;;;;;;;;;GA6HC;kCAtPM,uBAAuB;wCAAvB,uBAAuB"}
@@ -0,0 +1,17 @@
1
+ export function loadLiveTemplateCatalog(options?: {}): Promise<any>;
2
+ export function listLiveTemplates(options?: {}): Promise<any>;
3
+ export function getLiveTemplateById(templateId: any, options?: {}): Promise<any>;
4
+ export function buildTemplateImportResult(templateId: any, options?: {}): Promise<{
5
+ source: string;
6
+ type: string;
7
+ confidence: number;
8
+ issues: {
9
+ severity: string;
10
+ message: string;
11
+ path: string;
12
+ }[];
13
+ designPatch: any;
14
+ template: any;
15
+ meta: any;
16
+ }>;
17
+ //# sourceMappingURL=template-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-service.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-live-manager/template-service.js"],"names":[],"mappings":"AAmHA,oEAQC;AAED,8DAUC;AAED,iFAOC;AAED;;;;;;;;;;;;GAuBC"}
@@ -1,3 +1,7 @@
1
1
  export { startLive } from "./pds-core/pds-live.js";
2
2
  export { loadGoogleFont } from "./common/font-loader.js";
3
+ export { getLiveImportSources, loadLiveTemplateCatalog, listLiveTemplates, runLiveImport } from "./pds-live-manager/import-service.js";
4
+ export { saveLiveImportHistory, listLiveImportHistory, getLiveImportHistoryEntry, clearLiveImportHistory } from "./pds-live-manager/import-history-service.js";
5
+ export { convertTailwindHtmlToPds, convertBrandGuidelinesToPatch, describeTailwindConversionRules } from "./pds-live-manager/conversion-service.js";
6
+ export { createImportResult, isImportResult } from "./pds-live-manager/import-contract.js";
3
7
  //# sourceMappingURL=pds-manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../src/js/pds.js"],"names":[],"mappings":"AAyMA,mDAsBC;AAGD,4DAuCC;;;;;;;;;;;;;;;;;;;;;;;;;cAhPa,OAAO,4BAA4B,EAAE,WAAW;;;;iBAChD,CAAC,SAAS,CAAC,EAAE,OAAO,6BAA6B,EAAE,SAAS,KAAK,IAAI;;;;iBACrE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;qBAChG,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;sBAC7E,CAAC,GAAG,EAAC,MAAM,KAAK,aAAa;;AAW3C,+BAA+B;AAC/B,kBADW,MAAM,GAAG,OAAO,CACD;AArC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH;CAAoC"}
1
+ {"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../src/js/pds.js"],"names":[],"mappings":"AAuOA,mDAsBC;AAGD,4DAuCC;;;;;;;;;;;;;;;;;;;;;;;;;cA9Qa,OAAO,4BAA4B,EAAE,WAAW;;;;iBAChD,CAAC,SAAS,CAAC,EAAE,OAAO,6BAA6B,EAAE,SAAS,KAAK,IAAI;;;;iBACrE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;qBAChG,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;sBAC7E,CAAC,GAAG,EAAC,MAAM,KAAK,aAAa;;AAW3C,+BAA+B;AAC/B,kBADW,MAAM,GAAG,OAAO,CACD;AArC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH;CAAoC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@pure-ds/core",
3
3
  "shortname": "pds",
4
- "version": "0.6.10",
5
- "description": "Pure Design System - Why develop a Design System when you can generate one?",
4
+ "version": "0.6.11",
5
+ "description": "Why develop a Design System when you can generate one?",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/Pure-Web-Foundation/pure-ds.git"
@@ -29,6 +29,7 @@
29
29
  "pds-build": "packages/pds-cli/bin/pds-static.js",
30
30
  "pds-sync-assets": "packages/pds-cli/bin/sync-assets.js",
31
31
  "pds-build-icons": "packages/pds-cli/bin/pds-build-icons.js",
32
+ "pds-import": "packages/pds-cli/bin/pds-import.js",
32
33
  "pds-setup-copilot": "packages/pds-cli/bin/pds-setup-copilot.js",
33
34
  "pds-init-config": "packages/pds-cli/bin/pds-init-config.js",
34
35
  "pds-bootstrap": "packages/pds-cli/bin/pds-bootstrap.js"
@@ -47,6 +48,7 @@
47
48
  "dist/types/",
48
49
  "public/assets/js/",
49
50
  "public/assets/pds/components/",
51
+ "public/assets/pds/templates/",
50
52
  "public/assets/pds/external/",
51
53
  "public/assets/pds/vscode-custom-data.json",
52
54
  "public/assets/pds/pds.css-data.json",
@@ -58,6 +60,7 @@
58
60
  "packages/pds-cli/lib/",
59
61
  "src/js/pds.d.ts",
60
62
  "src/js/pds.js",
63
+ "src/js/pds-live-manager/",
61
64
  "src/js/pds-core/",
62
65
  "custom-elements.json",
63
66
  "custom-elements-manifest.config.js",
@@ -81,6 +84,7 @@
81
84
  "pds:bootstrap": "node packages/pds-cli/bin/pds-bootstrap.js",
82
85
  "pds:manifest": "node packages/pds-cli/bin/generate-manifest.js",
83
86
  "pds:css-data": "node packages/pds-cli/bin/generate-css-data.js",
87
+ "pds:import": "node packages/pds-cli/bin/pds-import.js",
84
88
  "pds:dx": "node packages/pds-cli/bin/pds-dx.js",
85
89
  "storybook:generate": "cd packages/pds-storybook && npm run generate-stories",
86
90
  "storybook:dev": "cd packages/pds-storybook && npm run storybook:dev",
@@ -13,3 +13,54 @@ Notes:
13
13
  - Output includes constructable stylesheet modules (pds-*.css.js) and plain CSS files.
14
14
 
15
15
  This CLI is intentionally tiny and uses the repository's `pds-api` and `fs-writer` utilities.
16
+
17
+ ## pds-import
18
+
19
+ `pds-import` runs the same import pipeline used by live edit and writes a JSON result file.
20
+
21
+ ### Modes
22
+
23
+ - `convert-only`: converts source input to PDS-friendly HTML only
24
+ - `adopt-design-and-convert`: converts HTML and also infers a design patch (`designPatch`)
25
+
26
+ ### Usage
27
+
28
+ ```bash
29
+ # HTML conversion only
30
+ pds-import \
31
+ --type tailwind-html \
32
+ --mode convert-only \
33
+ --source ./input.html \
34
+ --out ./out/import-result.json
35
+
36
+ # Convert HTML + infer/adopt styles
37
+ pds-import \
38
+ --type tailwind-html \
39
+ --mode adopt-design-and-convert \
40
+ --source ./input.html \
41
+ --out ./out/import-result.json
42
+
43
+ # Brand guideline text + style adoption
44
+ pds-import \
45
+ --type brand-guidelines \
46
+ --mode adopt-design-and-convert \
47
+ --source ./brand.txt \
48
+ --out ./out/brand-import.json
49
+ ```
50
+
51
+ ### Output locations
52
+
53
+ - `--out <path>` (required): writes the full import result JSON to the provided path
54
+ - `--html-out <path>` (optional): writes `result.template.html` to that file (if template exists)
55
+ - `--design-out <path>` (optional): writes `result.designPatch` JSON to that file
56
+
57
+ All output paths are resolved relative to your current working directory and parent directories are created automatically.
58
+
59
+ ### Result shape
60
+
61
+ The full JSON (`--out`) includes:
62
+
63
+ - `template.html` for converted markup (when available)
64
+ - `designPatch` for inferred style config updates (mode-dependent)
65
+ - `issues[]` and `confidence`
66
+ - `meta.validationBlocked` when style adoption is rejected by accessibility checks