@clusterenvision/ui-framework 1.0.0

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 (193) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +295 -0
  3. package/dist/ai-assistant-Db002XYC.d.ts +92 -0
  4. package/dist/ai-assistant-EobSUV70.d.cts +92 -0
  5. package/dist/browser-DnHpnWwE.d.cts +354 -0
  6. package/dist/browser-Dx4oKf5e.d.ts +354 -0
  7. package/dist/browser-signals-07qodpYT.d.cts +66 -0
  8. package/dist/browser-signals-07qodpYT.d.ts +66 -0
  9. package/dist/browser-signals.cjs +32 -0
  10. package/dist/browser-signals.cjs.map +1 -0
  11. package/dist/browser-signals.d.cts +1 -0
  12. package/dist/browser-signals.d.ts +1 -0
  13. package/dist/browser-signals.js +3 -0
  14. package/dist/browser-signals.js.map +1 -0
  15. package/dist/browser.cjs +197 -0
  16. package/dist/browser.cjs.map +1 -0
  17. package/dist/browser.d.cts +13 -0
  18. package/dist/browser.d.ts +13 -0
  19. package/dist/browser.js +12 -0
  20. package/dist/browser.js.map +1 -0
  21. package/dist/chunk-22HQL2Y4.js +568 -0
  22. package/dist/chunk-22HQL2Y4.js.map +1 -0
  23. package/dist/chunk-3ZBRNFEE.js +1525 -0
  24. package/dist/chunk-3ZBRNFEE.js.map +1 -0
  25. package/dist/chunk-4HRORR2Q.js +1953 -0
  26. package/dist/chunk-4HRORR2Q.js.map +1 -0
  27. package/dist/chunk-4L3UXVL5.cjs +68 -0
  28. package/dist/chunk-4L3UXVL5.cjs.map +1 -0
  29. package/dist/chunk-6BYWFGQY.cjs +226 -0
  30. package/dist/chunk-6BYWFGQY.cjs.map +1 -0
  31. package/dist/chunk-7SCIB5HP.js +57 -0
  32. package/dist/chunk-7SCIB5HP.js.map +1 -0
  33. package/dist/chunk-BBAUALNU.js +888 -0
  34. package/dist/chunk-BBAUALNU.js.map +1 -0
  35. package/dist/chunk-CHLDE4JQ.js +715 -0
  36. package/dist/chunk-CHLDE4JQ.js.map +1 -0
  37. package/dist/chunk-CXTAUXLG.cjs +71 -0
  38. package/dist/chunk-CXTAUXLG.cjs.map +1 -0
  39. package/dist/chunk-D2USIT6V.js +121 -0
  40. package/dist/chunk-D2USIT6V.js.map +1 -0
  41. package/dist/chunk-D3H5CGVD.js +36 -0
  42. package/dist/chunk-D3H5CGVD.js.map +1 -0
  43. package/dist/chunk-DQBX75NJ.js +92 -0
  44. package/dist/chunk-DQBX75NJ.js.map +1 -0
  45. package/dist/chunk-DRPG2DFX.js +208 -0
  46. package/dist/chunk-DRPG2DFX.js.map +1 -0
  47. package/dist/chunk-EFOOXCY7.cjs +41 -0
  48. package/dist/chunk-EFOOXCY7.cjs.map +1 -0
  49. package/dist/chunk-FFCZSYC7.cjs +906 -0
  50. package/dist/chunk-FFCZSYC7.cjs.map +1 -0
  51. package/dist/chunk-FNXIYAET.cjs +1593 -0
  52. package/dist/chunk-FNXIYAET.cjs.map +1 -0
  53. package/dist/chunk-I6GNUM3P.cjs +63 -0
  54. package/dist/chunk-I6GNUM3P.cjs.map +1 -0
  55. package/dist/chunk-IHAMVLRY.js +129 -0
  56. package/dist/chunk-IHAMVLRY.js.map +1 -0
  57. package/dist/chunk-IRBUKIRF.cjs +133 -0
  58. package/dist/chunk-IRBUKIRF.cjs.map +1 -0
  59. package/dist/chunk-KPG5HAHK.cjs +97 -0
  60. package/dist/chunk-KPG5HAHK.cjs.map +1 -0
  61. package/dist/chunk-N7Q2ESLG.cjs +130 -0
  62. package/dist/chunk-N7Q2ESLG.cjs.map +1 -0
  63. package/dist/chunk-PFBEIFVS.js +180 -0
  64. package/dist/chunk-PFBEIFVS.js.map +1 -0
  65. package/dist/chunk-PVZVFICK.cjs +318 -0
  66. package/dist/chunk-PVZVFICK.cjs.map +1 -0
  67. package/dist/chunk-Q3KH6HMU.js +305 -0
  68. package/dist/chunk-Q3KH6HMU.js.map +1 -0
  69. package/dist/chunk-QPAAV32J.cjs +1985 -0
  70. package/dist/chunk-QPAAV32J.cjs.map +1 -0
  71. package/dist/chunk-R6XQUMWT.cjs +61 -0
  72. package/dist/chunk-R6XQUMWT.cjs.map +1 -0
  73. package/dist/chunk-SA5UD5B6.js +92 -0
  74. package/dist/chunk-SA5UD5B6.js.map +1 -0
  75. package/dist/chunk-SM35JOYD.cjs +211 -0
  76. package/dist/chunk-SM35JOYD.cjs.map +1 -0
  77. package/dist/chunk-SZQNIMYI.cjs +592 -0
  78. package/dist/chunk-SZQNIMYI.cjs.map +1 -0
  79. package/dist/chunk-T6T7QE4J.js +224 -0
  80. package/dist/chunk-T6T7QE4J.js.map +1 -0
  81. package/dist/chunk-TIF372DZ.js +65 -0
  82. package/dist/chunk-TIF372DZ.js.map +1 -0
  83. package/dist/chunk-V6JCOBGY.js +69 -0
  84. package/dist/chunk-V6JCOBGY.js.map +1 -0
  85. package/dist/chunk-VHUXNDW2.cjs +189 -0
  86. package/dist/chunk-VHUXNDW2.cjs.map +1 -0
  87. package/dist/chunk-W3LNNY3U.cjs +729 -0
  88. package/dist/chunk-W3LNNY3U.cjs.map +1 -0
  89. package/dist/chunk-ZUWSU4OA.js +61 -0
  90. package/dist/chunk-ZUWSU4OA.js.map +1 -0
  91. package/dist/chunk-ZWUA2LPB.cjs +103 -0
  92. package/dist/chunk-ZWUA2LPB.cjs.map +1 -0
  93. package/dist/cli/index.cjs +566 -0
  94. package/dist/cli/index.cjs.map +1 -0
  95. package/dist/cli/index.d.cts +1 -0
  96. package/dist/cli/index.d.ts +1 -0
  97. package/dist/cli/index.js +558 -0
  98. package/dist/cli/index.js.map +1 -0
  99. package/dist/compiler/index.cjs +80 -0
  100. package/dist/compiler/index.cjs.map +1 -0
  101. package/dist/compiler/index.d.cts +130 -0
  102. package/dist/compiler/index.d.ts +130 -0
  103. package/dist/compiler/index.js +3 -0
  104. package/dist/compiler/index.js.map +1 -0
  105. package/dist/component-BVzvepw9.d.cts +90 -0
  106. package/dist/component-wTxZ2BPD.d.ts +90 -0
  107. package/dist/index-CpxDa60m.d.cts +644 -0
  108. package/dist/index-CpxDa60m.d.ts +644 -0
  109. package/dist/index.cjs +1356 -0
  110. package/dist/index.cjs.map +1 -0
  111. package/dist/index.d.cts +165 -0
  112. package/dist/index.d.ts +165 -0
  113. package/dist/index.js +772 -0
  114. package/dist/index.js.map +1 -0
  115. package/dist/lib/dom.cjs +102 -0
  116. package/dist/lib/dom.cjs.map +1 -0
  117. package/dist/lib/dom.d.cts +373 -0
  118. package/dist/lib/dom.d.ts +373 -0
  119. package/dist/lib/dom.js +3 -0
  120. package/dist/lib/dom.js.map +1 -0
  121. package/dist/lib/icons.cjs +20 -0
  122. package/dist/lib/icons.cjs.map +1 -0
  123. package/dist/lib/icons.d.cts +64 -0
  124. package/dist/lib/icons.d.ts +64 -0
  125. package/dist/lib/icons.js +3 -0
  126. package/dist/lib/icons.js.map +1 -0
  127. package/dist/lib/index.cjs +247 -0
  128. package/dist/lib/index.cjs.map +1 -0
  129. package/dist/lib/index.d.cts +30 -0
  130. package/dist/lib/index.d.ts +30 -0
  131. package/dist/lib/index.js +92 -0
  132. package/dist/lib/index.js.map +1 -0
  133. package/dist/lib/theme.cjs +56 -0
  134. package/dist/lib/theme.cjs.map +1 -0
  135. package/dist/lib/theme.d.cts +27 -0
  136. package/dist/lib/theme.d.ts +27 -0
  137. package/dist/lib/theme.js +3 -0
  138. package/dist/lib/theme.js.map +1 -0
  139. package/dist/router-B9kms5XQ.d.ts +124 -0
  140. package/dist/router-YnpW_sIK.d.cts +124 -0
  141. package/dist/runtime/adapters/angular.cjs +48 -0
  142. package/dist/runtime/adapters/angular.cjs.map +1 -0
  143. package/dist/runtime/adapters/angular.d.cts +38 -0
  144. package/dist/runtime/adapters/angular.d.ts +38 -0
  145. package/dist/runtime/adapters/angular.js +46 -0
  146. package/dist/runtime/adapters/angular.js.map +1 -0
  147. package/dist/runtime/adapters/react.cjs +41 -0
  148. package/dist/runtime/adapters/react.cjs.map +1 -0
  149. package/dist/runtime/adapters/react.d.cts +26 -0
  150. package/dist/runtime/adapters/react.d.ts +26 -0
  151. package/dist/runtime/adapters/react.js +39 -0
  152. package/dist/runtime/adapters/react.js.map +1 -0
  153. package/dist/runtime/adapters/vue.cjs +44 -0
  154. package/dist/runtime/adapters/vue.cjs.map +1 -0
  155. package/dist/runtime/adapters/vue.d.cts +37 -0
  156. package/dist/runtime/adapters/vue.d.ts +37 -0
  157. package/dist/runtime/adapters/vue.js +42 -0
  158. package/dist/runtime/adapters/vue.js.map +1 -0
  159. package/dist/runtime/components/ai-assistant.cjs +18 -0
  160. package/dist/runtime/components/ai-assistant.cjs.map +1 -0
  161. package/dist/runtime/components/ai-assistant.d.cts +8 -0
  162. package/dist/runtime/components/ai-assistant.d.ts +8 -0
  163. package/dist/runtime/components/ai-assistant.js +9 -0
  164. package/dist/runtime/components/ai-assistant.js.map +1 -0
  165. package/dist/runtime/components/ai-summary-card.cjs +18 -0
  166. package/dist/runtime/components/ai-summary-card.cjs.map +1 -0
  167. package/dist/runtime/components/ai-summary-card.d.cts +19 -0
  168. package/dist/runtime/components/ai-summary-card.d.ts +19 -0
  169. package/dist/runtime/components/ai-summary-card.js +9 -0
  170. package/dist/runtime/components/ai-summary-card.js.map +1 -0
  171. package/dist/runtime/router.cjs +429 -0
  172. package/dist/runtime/router.cjs.map +1 -0
  173. package/dist/runtime/router.d.cts +2 -0
  174. package/dist/runtime/router.d.ts +2 -0
  175. package/dist/runtime/router.js +421 -0
  176. package/dist/runtime/router.js.map +1 -0
  177. package/dist/runtime/server.cjs +125 -0
  178. package/dist/runtime/server.cjs.map +1 -0
  179. package/dist/runtime/server.d.cts +27 -0
  180. package/dist/runtime/server.d.ts +27 -0
  181. package/dist/runtime/server.js +117 -0
  182. package/dist/runtime/server.js.map +1 -0
  183. package/dist/runtime/workflow/index.cjs +282 -0
  184. package/dist/runtime/workflow/index.cjs.map +1 -0
  185. package/dist/runtime/workflow/index.d.cts +1 -0
  186. package/dist/runtime/workflow/index.d.ts +1 -0
  187. package/dist/runtime/workflow/index.js +5 -0
  188. package/dist/runtime/workflow/index.js.map +1 -0
  189. package/dist/tracing-DGdvMCEl.d.cts +109 -0
  190. package/dist/tracing-DGdvMCEl.d.ts +109 -0
  191. package/dist/types-C4RXXKfk.d.cts +76 -0
  192. package/dist/types-C4RXXKfk.d.ts +76 -0
  193. package/package.json +166 -0
@@ -0,0 +1,109 @@
1
+ import { promises } from 'node:fs';
2
+
3
+ interface TraceEventPayload {
4
+ type: string;
5
+ timestamp: Date;
6
+ attributes?: Record<string, unknown>;
7
+ context?: Record<string, unknown>;
8
+ severity?: 'debug' | 'info' | 'warn' | 'error';
9
+ }
10
+ type TraceRedactor = (event: TraceEventPayload) => TraceEventPayload;
11
+ interface TraceExporter {
12
+ export(event: TraceEventPayload): Promise<void> | void;
13
+ flush?(): Promise<void> | void;
14
+ shutdown?(): Promise<void> | void;
15
+ }
16
+ interface TraceExportOptions {
17
+ redactor?: TraceRedactor;
18
+ }
19
+ interface JsonlTraceExporterOptions extends TraceExportOptions {
20
+ filePath: string;
21
+ writer?: typeof promises;
22
+ }
23
+ declare class JsonlTraceExporter implements TraceExporter {
24
+ private readonly options;
25
+ private readonly writer;
26
+ constructor(options: JsonlTraceExporterOptions);
27
+ export(event: TraceEventPayload): Promise<void>;
28
+ flush(): Promise<void>;
29
+ }
30
+ interface OtlpHttpTraceExporterOptions extends TraceExportOptions {
31
+ url: string;
32
+ headers?: Record<string, string>;
33
+ resource?: Record<string, string>;
34
+ serviceName?: string;
35
+ scopeName?: string;
36
+ batchSize?: number;
37
+ flushIntervalMs?: number;
38
+ httpClient?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
39
+ }
40
+ declare class OtlpHttpTraceExporter implements TraceExporter {
41
+ private readonly options;
42
+ private readonly batchSize;
43
+ private readonly flushIntervalMs;
44
+ private readonly httpClient;
45
+ private queue;
46
+ private timer;
47
+ constructor(options: OtlpHttpTraceExporterOptions);
48
+ export(event: TraceEventPayload): void;
49
+ flush(): Promise<void>;
50
+ shutdown(): Promise<void>;
51
+ private post;
52
+ private buildRequest;
53
+ private toSpan;
54
+ }
55
+
56
+ type RuntimeTraceEventType =
57
+ | 'component.mount.started'
58
+ | 'component.mount.completed'
59
+ | 'component.destroyed'
60
+ | 'component.props.updated'
61
+ | 'template.render.started'
62
+ | 'template.render.completed'
63
+ | 'signals.effect.created'
64
+ | 'signals.effect.run'
65
+ | 'signals.effect.completed'
66
+ | 'signals.effect.scheduled'
67
+ | 'signals.effect.disposed'
68
+ | 'signals.signal.read'
69
+ | 'signals.signal.written'
70
+ | 'signals.batch.started'
71
+ | 'signals.batch.completed'
72
+ | 'ssr.render.started'
73
+ | 'ssr.render.completed'
74
+ | 'server.request.started'
75
+ | 'server.request.completed'
76
+ | 'server.middleware.started'
77
+ | 'server.middleware.completed';
78
+ interface RuntimeTraceEvent {
79
+ type: RuntimeTraceEventType;
80
+ timestamp?: Date;
81
+ componentName?: string;
82
+ componentInstanceId?: string;
83
+ templateId?: string;
84
+ effectId?: string;
85
+ signalId?: string;
86
+ middlewareName?: string;
87
+ middlewareIndex?: number;
88
+ requestId?: string;
89
+ attributes?: Record<string, unknown>;
90
+ }
91
+ interface RuntimeTraceSink {
92
+ record(event: RuntimeTraceEvent): void | Promise<void>;
93
+ }
94
+ declare class NoopRuntimeTraceSink implements RuntimeTraceSink {
95
+ record(_event: RuntimeTraceEvent): void;
96
+ }
97
+ declare class RuntimeTraceExporterSink implements RuntimeTraceSink {
98
+ private readonly exporter;
99
+ constructor(exporter: TraceExporter);
100
+ record(event: RuntimeTraceEvent): void;
101
+ }
102
+ declare function setRuntimeTraceSink(sink: RuntimeTraceSink | undefined): void;
103
+ declare function withRuntimeTraceSink<T>(sink: RuntimeTraceSink | undefined, run: () => T): T;
104
+ declare function getCurrentRuntimeTraceSink(): RuntimeTraceSink | undefined;
105
+ declare function hasRuntimeTraceSink(): boolean;
106
+ declare function recordRuntimeTrace(event: Omit<RuntimeTraceEvent, 'timestamp'> & { timestamp?: Date }): void;
107
+ declare function nextRuntimeTraceId(prefix: string): string;
108
+
109
+ export { JsonlTraceExporter as J, NoopRuntimeTraceSink as N, OtlpHttpTraceExporter as O, type RuntimeTraceSink as R, type TraceExporter as T, type RuntimeTraceEvent as a, type JsonlTraceExporterOptions as b, type OtlpHttpTraceExporterOptions as c, type RuntimeTraceEventType as d, RuntimeTraceExporterSink as e, type TraceEventPayload as f, type TraceExportOptions as g, type TraceRedactor as h, getCurrentRuntimeTraceSink as i, hasRuntimeTraceSink as j, nextRuntimeTraceId as n, recordRuntimeTrace as r, setRuntimeTraceSink as s, withRuntimeTraceSink as w };
@@ -0,0 +1,109 @@
1
+ import { promises } from 'node:fs';
2
+
3
+ interface TraceEventPayload {
4
+ type: string;
5
+ timestamp: Date;
6
+ attributes?: Record<string, unknown>;
7
+ context?: Record<string, unknown>;
8
+ severity?: 'debug' | 'info' | 'warn' | 'error';
9
+ }
10
+ type TraceRedactor = (event: TraceEventPayload) => TraceEventPayload;
11
+ interface TraceExporter {
12
+ export(event: TraceEventPayload): Promise<void> | void;
13
+ flush?(): Promise<void> | void;
14
+ shutdown?(): Promise<void> | void;
15
+ }
16
+ interface TraceExportOptions {
17
+ redactor?: TraceRedactor;
18
+ }
19
+ interface JsonlTraceExporterOptions extends TraceExportOptions {
20
+ filePath: string;
21
+ writer?: typeof promises;
22
+ }
23
+ declare class JsonlTraceExporter implements TraceExporter {
24
+ private readonly options;
25
+ private readonly writer;
26
+ constructor(options: JsonlTraceExporterOptions);
27
+ export(event: TraceEventPayload): Promise<void>;
28
+ flush(): Promise<void>;
29
+ }
30
+ interface OtlpHttpTraceExporterOptions extends TraceExportOptions {
31
+ url: string;
32
+ headers?: Record<string, string>;
33
+ resource?: Record<string, string>;
34
+ serviceName?: string;
35
+ scopeName?: string;
36
+ batchSize?: number;
37
+ flushIntervalMs?: number;
38
+ httpClient?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
39
+ }
40
+ declare class OtlpHttpTraceExporter implements TraceExporter {
41
+ private readonly options;
42
+ private readonly batchSize;
43
+ private readonly flushIntervalMs;
44
+ private readonly httpClient;
45
+ private queue;
46
+ private timer;
47
+ constructor(options: OtlpHttpTraceExporterOptions);
48
+ export(event: TraceEventPayload): void;
49
+ flush(): Promise<void>;
50
+ shutdown(): Promise<void>;
51
+ private post;
52
+ private buildRequest;
53
+ private toSpan;
54
+ }
55
+
56
+ type RuntimeTraceEventType =
57
+ | 'component.mount.started'
58
+ | 'component.mount.completed'
59
+ | 'component.destroyed'
60
+ | 'component.props.updated'
61
+ | 'template.render.started'
62
+ | 'template.render.completed'
63
+ | 'signals.effect.created'
64
+ | 'signals.effect.run'
65
+ | 'signals.effect.completed'
66
+ | 'signals.effect.scheduled'
67
+ | 'signals.effect.disposed'
68
+ | 'signals.signal.read'
69
+ | 'signals.signal.written'
70
+ | 'signals.batch.started'
71
+ | 'signals.batch.completed'
72
+ | 'ssr.render.started'
73
+ | 'ssr.render.completed'
74
+ | 'server.request.started'
75
+ | 'server.request.completed'
76
+ | 'server.middleware.started'
77
+ | 'server.middleware.completed';
78
+ interface RuntimeTraceEvent {
79
+ type: RuntimeTraceEventType;
80
+ timestamp?: Date;
81
+ componentName?: string;
82
+ componentInstanceId?: string;
83
+ templateId?: string;
84
+ effectId?: string;
85
+ signalId?: string;
86
+ middlewareName?: string;
87
+ middlewareIndex?: number;
88
+ requestId?: string;
89
+ attributes?: Record<string, unknown>;
90
+ }
91
+ interface RuntimeTraceSink {
92
+ record(event: RuntimeTraceEvent): void | Promise<void>;
93
+ }
94
+ declare class NoopRuntimeTraceSink implements RuntimeTraceSink {
95
+ record(_event: RuntimeTraceEvent): void;
96
+ }
97
+ declare class RuntimeTraceExporterSink implements RuntimeTraceSink {
98
+ private readonly exporter;
99
+ constructor(exporter: TraceExporter);
100
+ record(event: RuntimeTraceEvent): void;
101
+ }
102
+ declare function setRuntimeTraceSink(sink: RuntimeTraceSink | undefined): void;
103
+ declare function withRuntimeTraceSink<T>(sink: RuntimeTraceSink | undefined, run: () => T): T;
104
+ declare function getCurrentRuntimeTraceSink(): RuntimeTraceSink | undefined;
105
+ declare function hasRuntimeTraceSink(): boolean;
106
+ declare function recordRuntimeTrace(event: Omit<RuntimeTraceEvent, 'timestamp'> & { timestamp?: Date }): void;
107
+ declare function nextRuntimeTraceId(prefix: string): string;
108
+
109
+ export { JsonlTraceExporter as J, NoopRuntimeTraceSink as N, OtlpHttpTraceExporter as O, type RuntimeTraceSink as R, type TraceExporter as T, type RuntimeTraceEvent as a, type JsonlTraceExporterOptions as b, type OtlpHttpTraceExporterOptions as c, type RuntimeTraceEventType as d, RuntimeTraceExporterSink as e, type TraceEventPayload as f, type TraceExportOptions as g, type TraceRedactor as h, getCurrentRuntimeTraceSink as i, hasRuntimeTraceSink as j, nextRuntimeTraceId as n, recordRuntimeTrace as r, setRuntimeTraceSink as s, withRuntimeTraceSink as w };
@@ -0,0 +1,76 @@
1
+ type TemplateInstruction = ElementInstruction | TextInstruction | ExpressionInstruction | ConditionalInstruction | LoopInstruction | SlotInstruction | AwaitInstruction;
2
+ interface CompiledTemplate {
3
+ name?: string;
4
+ instructions: TemplateInstruction[];
5
+ styles?: string[];
6
+ scopeId?: string;
7
+ }
8
+ interface ElementInstruction {
9
+ type: 'element';
10
+ tag: string;
11
+ attributes: TemplateAttribute[];
12
+ children: TemplateInstruction[];
13
+ }
14
+ interface TextInstruction {
15
+ type: 'text';
16
+ value: string;
17
+ }
18
+ interface ExpressionInstruction {
19
+ type: 'expression';
20
+ expression: string;
21
+ }
22
+ interface ConditionalInstruction {
23
+ type: 'if';
24
+ condition: string;
25
+ truthy: TemplateInstruction[];
26
+ falsy?: TemplateInstruction[];
27
+ }
28
+ interface LoopInstruction {
29
+ type: 'for';
30
+ item: string;
31
+ iterator: string;
32
+ index?: string;
33
+ trackBy?: string;
34
+ children: TemplateInstruction[];
35
+ }
36
+ interface SlotInstruction {
37
+ type: 'slot';
38
+ name?: string;
39
+ children: TemplateInstruction[];
40
+ }
41
+ interface AwaitInstruction {
42
+ type: 'await';
43
+ expression: string;
44
+ pending: TemplateInstruction[];
45
+ resolved: TemplateInstruction[];
46
+ rejected: TemplateInstruction[];
47
+ valueName?: string;
48
+ errorName?: string;
49
+ }
50
+ type TemplateAttribute = StaticAttribute | PropertyAttribute | EventAttribute | ClassListAttribute;
51
+ interface StaticAttribute {
52
+ kind: 'static';
53
+ name: string;
54
+ value: string;
55
+ }
56
+ interface PropertyAttribute {
57
+ kind: 'property';
58
+ name: string;
59
+ expression: string;
60
+ }
61
+ interface EventAttribute {
62
+ kind: 'event';
63
+ name: string;
64
+ handler: string;
65
+ }
66
+ interface ClassListAttribute {
67
+ kind: 'class-list';
68
+ expression: string;
69
+ }
70
+ interface TemplateCompileOptions {
71
+ name?: string;
72
+ preserveWhitespace?: boolean;
73
+ scopeId?: string;
74
+ }
75
+
76
+ export type { AwaitInstruction as A, CompiledTemplate as C, ElementInstruction as E, LoopInstruction as L, PropertyAttribute as P, SlotInstruction as S, TemplateCompileOptions as T, ClassListAttribute as a, ConditionalInstruction as b, EventAttribute as c, ExpressionInstruction as d, StaticAttribute as e, TemplateAttribute as f, TemplateInstruction as g, TextInstruction as h };
@@ -0,0 +1,76 @@
1
+ type TemplateInstruction = ElementInstruction | TextInstruction | ExpressionInstruction | ConditionalInstruction | LoopInstruction | SlotInstruction | AwaitInstruction;
2
+ interface CompiledTemplate {
3
+ name?: string;
4
+ instructions: TemplateInstruction[];
5
+ styles?: string[];
6
+ scopeId?: string;
7
+ }
8
+ interface ElementInstruction {
9
+ type: 'element';
10
+ tag: string;
11
+ attributes: TemplateAttribute[];
12
+ children: TemplateInstruction[];
13
+ }
14
+ interface TextInstruction {
15
+ type: 'text';
16
+ value: string;
17
+ }
18
+ interface ExpressionInstruction {
19
+ type: 'expression';
20
+ expression: string;
21
+ }
22
+ interface ConditionalInstruction {
23
+ type: 'if';
24
+ condition: string;
25
+ truthy: TemplateInstruction[];
26
+ falsy?: TemplateInstruction[];
27
+ }
28
+ interface LoopInstruction {
29
+ type: 'for';
30
+ item: string;
31
+ iterator: string;
32
+ index?: string;
33
+ trackBy?: string;
34
+ children: TemplateInstruction[];
35
+ }
36
+ interface SlotInstruction {
37
+ type: 'slot';
38
+ name?: string;
39
+ children: TemplateInstruction[];
40
+ }
41
+ interface AwaitInstruction {
42
+ type: 'await';
43
+ expression: string;
44
+ pending: TemplateInstruction[];
45
+ resolved: TemplateInstruction[];
46
+ rejected: TemplateInstruction[];
47
+ valueName?: string;
48
+ errorName?: string;
49
+ }
50
+ type TemplateAttribute = StaticAttribute | PropertyAttribute | EventAttribute | ClassListAttribute;
51
+ interface StaticAttribute {
52
+ kind: 'static';
53
+ name: string;
54
+ value: string;
55
+ }
56
+ interface PropertyAttribute {
57
+ kind: 'property';
58
+ name: string;
59
+ expression: string;
60
+ }
61
+ interface EventAttribute {
62
+ kind: 'event';
63
+ name: string;
64
+ handler: string;
65
+ }
66
+ interface ClassListAttribute {
67
+ kind: 'class-list';
68
+ expression: string;
69
+ }
70
+ interface TemplateCompileOptions {
71
+ name?: string;
72
+ preserveWhitespace?: boolean;
73
+ scopeId?: string;
74
+ }
75
+
76
+ export type { AwaitInstruction as A, CompiledTemplate as C, ElementInstruction as E, LoopInstruction as L, PropertyAttribute as P, SlotInstruction as S, TemplateCompileOptions as T, ClassListAttribute as a, ConditionalInstruction as b, EventAttribute as c, ExpressionInstruction as d, StaticAttribute as e, TemplateAttribute as f, TemplateInstruction as g, TextInstruction as h };
package/package.json ADDED
@@ -0,0 +1,166 @@
1
+ {
2
+ "name": "@clusterenvision/ui-framework",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "Compile-time first UI framework with CE ecosystem integrations.",
7
+ "license": "MIT",
8
+ "main": "dist/index.cjs",
9
+ "module": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "files": [
12
+ "dist",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "engines": {
17
+ "node": ">=20 <25"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "browser": "./dist/browser.js",
23
+ "import": "./dist/index.js",
24
+ "require": "./dist/index.cjs"
25
+ },
26
+ "./compiler": {
27
+ "types": "./dist/compiler/index.d.ts",
28
+ "import": "./dist/compiler/index.js",
29
+ "require": "./dist/compiler/index.cjs"
30
+ },
31
+ "./router": {
32
+ "types": "./dist/runtime/router.d.ts",
33
+ "import": "./dist/runtime/router.js",
34
+ "require": "./dist/runtime/router.cjs"
35
+ },
36
+ "./server": {
37
+ "types": "./dist/runtime/server.d.ts",
38
+ "import": "./dist/runtime/server.js",
39
+ "require": "./dist/runtime/server.cjs"
40
+ },
41
+ "./adapters/angular": {
42
+ "types": "./dist/runtime/adapters/angular.d.ts",
43
+ "import": "./dist/runtime/adapters/angular.js",
44
+ "require": "./dist/runtime/adapters/angular.cjs"
45
+ },
46
+ "./adapters/react": {
47
+ "types": "./dist/runtime/adapters/react.d.ts",
48
+ "import": "./dist/runtime/adapters/react.js",
49
+ "require": "./dist/runtime/adapters/react.cjs"
50
+ },
51
+ "./adapters/vue": {
52
+ "types": "./dist/runtime/adapters/vue.d.ts",
53
+ "import": "./dist/runtime/adapters/vue.js",
54
+ "require": "./dist/runtime/adapters/vue.cjs"
55
+ },
56
+ "./browser": {
57
+ "types": "./dist/browser.d.ts",
58
+ "import": "./dist/browser.js",
59
+ "require": "./dist/browser.cjs"
60
+ },
61
+ "./workflow": {
62
+ "types": "./dist/runtime/workflow/index.d.ts",
63
+ "import": "./dist/runtime/workflow/index.js",
64
+ "require": "./dist/runtime/workflow/index.cjs"
65
+ },
66
+ "./components/ai-assistant": {
67
+ "types": "./dist/runtime/components/ai-assistant.d.ts",
68
+ "import": "./dist/runtime/components/ai-assistant.js",
69
+ "require": "./dist/runtime/components/ai-assistant.cjs"
70
+ },
71
+ "./components/ai-summary-card": {
72
+ "types": "./dist/runtime/components/ai-summary-card.d.ts",
73
+ "import": "./dist/runtime/components/ai-summary-card.js",
74
+ "require": "./dist/runtime/components/ai-summary-card.cjs"
75
+ },
76
+ "./signals": {
77
+ "types": "./dist/browser-signals.d.ts",
78
+ "import": "./dist/browser-signals.js",
79
+ "require": "./dist/browser-signals.cjs"
80
+ },
81
+ "./lib": {
82
+ "types": "./dist/lib/index.d.ts",
83
+ "import": "./dist/lib/index.js",
84
+ "require": "./dist/lib/index.cjs"
85
+ },
86
+ "./lib/dom": {
87
+ "types": "./dist/lib/dom.d.ts",
88
+ "import": "./dist/lib/dom.js",
89
+ "require": "./dist/lib/dom.cjs"
90
+ },
91
+ "./lib/icons": {
92
+ "types": "./dist/lib/icons.d.ts",
93
+ "import": "./dist/lib/icons.js",
94
+ "require": "./dist/lib/icons.cjs"
95
+ },
96
+ "./lib/theme": {
97
+ "types": "./dist/lib/theme.d.ts",
98
+ "import": "./dist/lib/theme.js",
99
+ "require": "./dist/lib/theme.cjs"
100
+ },
101
+ "./package.json": "./package.json"
102
+ },
103
+ "bin": {
104
+ "ceui": "./dist/cli/index.js"
105
+ },
106
+ "scripts": {
107
+ "build": "cross-env TSUP_WORKERS=1 NODE_OPTIONS=--max-old-space-size=4096 tsup --config tsup.config.ts",
108
+ "dev": "tsup --config tsup.config.ts --watch",
109
+ "docs:api": "typedoc --options typedoc.json",
110
+ "docs:api:publish": "npm run build && npm run docs:api",
111
+ "lint": "eslint \"src/**/*.{ts,tsx}\" --max-warnings=0",
112
+ "test": "node ./scripts/run-vitest.mjs",
113
+ "test:compiler": "npm run test -- \"tests/compiler.spec.ts\" \"tests/html-parser.spec.ts\" \"tests/compiler/**/*.spec.ts\" \"tests/html-parser/**/*.spec.ts\" --passWithNoTests",
114
+ "test:runtime": "npm run test -- \"tests/runtime/**/*.spec.ts\" \"tests/signals.spec.ts\" --passWithNoTests",
115
+ "test:workflow": "npm run test -- \"tests/workflow/**/*.spec.ts\" --passWithNoTests",
116
+ "test:ci": "npm run test:compiler && npm run test:runtime && npm run test:workflow",
117
+ "test:types": "npm run build && tsd",
118
+ "tokens:matrix": "node ./scripts/generate-token-compat-matrix.mjs",
119
+ "bench": "node ./scripts/run-benchmarks.mjs",
120
+ "typecheck": "tsc --noEmit",
121
+ "compile:examples": "node dist/cli/index.js compile examples/basic-counter",
122
+ "prerelease": "npm run lint && npm run test && npm run build"
123
+ },
124
+ "dependencies": {
125
+ "@jridgewell/gen-mapping": "^0.3.5",
126
+ "chokidar": "^5.0.0",
127
+ "commander": "^15.0.0",
128
+ "fast-glob": "^3.3.2",
129
+ "picocolors": "^1.1.0"
130
+ },
131
+ "peerDependencies": {
132
+ "@clusterenvision/ce-ui-scss": "^1.94.2",
133
+ "@clusterenvision/ui-webcomponents": "^1.2.0"
134
+ },
135
+ "peerDependenciesMeta": {
136
+ "@clusterenvision/ce-ui-scss": {
137
+ "optional": true
138
+ },
139
+ "@clusterenvision/ui-webcomponents": {
140
+ "optional": true
141
+ }
142
+ },
143
+ "devDependencies": {
144
+ "@clusterenvision/ce-ui-scss": "file:../ce-ui-scss",
145
+ "@clusterenvision/ui-webcomponents": "file:../ce-ui-webcomponents",
146
+ "@types/node": "^25.9.3",
147
+ "@typescript-eslint/eslint-plugin": "^8.61.0",
148
+ "@typescript-eslint/parser": "^8.61.0",
149
+ "cross-env": "^10.1.0",
150
+ "eslint": "^10.5.0",
151
+ "eslint-config-prettier": "^10.1.8",
152
+ "jsdom": "^29.1.1",
153
+ "prettier": "^3.8.4",
154
+ "tsd": "^0.33.0",
155
+ "tsup": "^8.5.1",
156
+ "typedoc": "^0.28.19",
157
+ "typedoc-plugin-markdown": "^4.12.0",
158
+ "typescript": "^6.0.3",
159
+ "typescript-eslint": "^8.61.0",
160
+ "vitest": "^4.1.8"
161
+ },
162
+ "overrides": {
163
+ "vite": "8.0.16",
164
+ "esbuild": "0.28.1"
165
+ }
166
+ }