@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,37 @@
1
+ import { C as ComponentFactory } from '../../component-BVzvepw9.cjs';
2
+ import '../../types-C4RXXKfk.cjs';
3
+ import '../../tracing-DGdvMCEl.cjs';
4
+ import 'node:fs';
5
+ import '../../router-YnpW_sIK.cjs';
6
+ import '../../browser-signals-07qodpYT.cjs';
7
+ import '../../lib/theme.cjs';
8
+
9
+ interface VueInterop {
10
+ h: (...args: unknown[]) => unknown;
11
+ ref: <T>(value: T | null) => { value: T | null };
12
+ onMounted: (callback: () => void) => void;
13
+ onBeforeUnmount: (callback: () => void) => void;
14
+ watch: (
15
+ source: () => unknown,
16
+ callback: (value: unknown) => void,
17
+ options?: { deep?: boolean },
18
+ ) => void;
19
+ }
20
+
21
+ interface VueAdapterOptions {
22
+ hostElement?: string;
23
+ displayName?: string;
24
+ }
25
+
26
+ type VueAdapterComponent<Props extends Record<string, unknown>> = {
27
+ name?: string;
28
+ setup: (props: Props, ctx: { slots?: { default?: () => unknown } }) => () => unknown;
29
+ };
30
+
31
+ declare function createVueAdapter<Props extends Record<string, unknown>>(
32
+ factory: ComponentFactory<Props>,
33
+ vue: VueInterop,
34
+ options?: VueAdapterOptions,
35
+ ): VueAdapterComponent<Props>;
36
+
37
+ export { type VueAdapterComponent, type VueAdapterOptions, type VueInterop, createVueAdapter };
@@ -0,0 +1,37 @@
1
+ import { C as ComponentFactory } from '../../component-wTxZ2BPD.js';
2
+ import '../../types-C4RXXKfk.js';
3
+ import '../../tracing-DGdvMCEl.js';
4
+ import 'node:fs';
5
+ import '../../router-B9kms5XQ.js';
6
+ import '../../browser-signals-07qodpYT.js';
7
+ import '../../lib/theme.js';
8
+
9
+ interface VueInterop {
10
+ h: (...args: unknown[]) => unknown;
11
+ ref: <T>(value: T | null) => { value: T | null };
12
+ onMounted: (callback: () => void) => void;
13
+ onBeforeUnmount: (callback: () => void) => void;
14
+ watch: (
15
+ source: () => unknown,
16
+ callback: (value: unknown) => void,
17
+ options?: { deep?: boolean },
18
+ ) => void;
19
+ }
20
+
21
+ interface VueAdapterOptions {
22
+ hostElement?: string;
23
+ displayName?: string;
24
+ }
25
+
26
+ type VueAdapterComponent<Props extends Record<string, unknown>> = {
27
+ name?: string;
28
+ setup: (props: Props, ctx: { slots?: { default?: () => unknown } }) => () => unknown;
29
+ };
30
+
31
+ declare function createVueAdapter<Props extends Record<string, unknown>>(
32
+ factory: ComponentFactory<Props>,
33
+ vue: VueInterop,
34
+ options?: VueAdapterOptions,
35
+ ): VueAdapterComponent<Props>;
36
+
37
+ export { type VueAdapterComponent, type VueAdapterOptions, type VueInterop, createVueAdapter };
@@ -0,0 +1,42 @@
1
+ // src/runtime/adapters/vue.ts
2
+ function createVueAdapter(factory, vue, options = {}) {
3
+ const hostTag = options.hostElement ?? "div";
4
+ const component = {
5
+ name: options.displayName,
6
+ setup(props, ctx) {
7
+ const hostRef = vue.ref(null);
8
+ let instance = null;
9
+ vue.onMounted(() => {
10
+ if (!hostRef.value) {
11
+ return;
12
+ }
13
+ instance = factory.mount({
14
+ target: hostRef.value,
15
+ props
16
+ });
17
+ });
18
+ vue.watch(
19
+ () => props,
20
+ (next) => {
21
+ if (instance) {
22
+ instance.updateProps(next);
23
+ }
24
+ },
25
+ { deep: true }
26
+ );
27
+ vue.onBeforeUnmount(() => {
28
+ instance?.destroy();
29
+ instance = null;
30
+ });
31
+ return () => {
32
+ const slot = ctx.slots?.default;
33
+ return vue.h(hostTag, { ref: hostRef }, slot ? slot() : null);
34
+ };
35
+ }
36
+ };
37
+ return component;
38
+ }
39
+
40
+ export { createVueAdapter };
41
+ //# sourceMappingURL=vue.js.map
42
+ //# sourceMappingURL=vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/runtime/adapters/vue.ts"],"names":[],"mappings":";AAwBO,SAAS,gBAAA,CACd,OAAA,EACA,GAAA,EACA,OAAA,GAA6B,EAAC,EACF;AAC5B,EAAA,MAAM,OAAA,GAAU,QAAQ,WAAA,IAAe,KAAA;AAEvC,EAAA,MAAM,SAAA,GAAwC;AAAA,IAC5C,MAAM,OAAA,CAAQ,WAAA;AAAA,IACd,KAAA,CAAM,OAAO,GAAA,EAAK;AAChB,MAAA,MAAM,OAAA,GAAU,GAAA,CAAI,GAAA,CAAoB,IAAI,CAAA;AAC5C,MAAA,IAAI,QAAA,GAA4C,IAAA;AAEhD,MAAA,GAAA,CAAI,UAAU,MAAM;AAClB,QAAA,IAAI,CAAC,QAAQ,KAAA,EAAO;AAClB,UAAA;AAAA,QACF;AACA,QAAA,QAAA,GAAW,QAAQ,KAAA,CAAM;AAAA,UACvB,QAAQ,OAAA,CAAQ,KAAA;AAAA,UAChB;AAAA,SACD,CAAA;AAAA,MACH,CAAC,CAAA;AAED,MAAA,GAAA,CAAI,KAAA;AAAA,QACF,MAAM,KAAA;AAAA,QACN,CAAA,IAAA,KAAQ;AACN,UAAA,IAAI,QAAA,EAAU;AACZ,YAAA,QAAA,CAAS,YAAY,IAAa,CAAA;AAAA,UACpC;AAAA,QACF,CAAA;AAAA,QACA,EAAE,MAAM,IAAA;AAAK,OACf;AAEA,MAAA,GAAA,CAAI,gBAAgB,MAAM;AACxB,QAAA,QAAA,EAAU,OAAA,EAAQ;AAClB,QAAA,QAAA,GAAW,IAAA;AAAA,MACb,CAAC,CAAA;AAED,MAAA,OAAO,MAAM;AACX,QAAA,MAAM,IAAA,GAAO,IAAI,KAAA,EAAO,OAAA;AACxB,QAAA,OAAO,GAAA,CAAI,CAAA,CAAE,OAAA,EAAS,EAAE,GAAA,EAAK,SAAQ,EAAG,IAAA,GAAO,IAAA,EAAK,GAAI,IAAI,CAAA;AAAA,MAC9D,CAAA;AAAA,IACF;AAAA,GACF;AAEA,EAAA,OAAO,SAAA;AACT","file":"vue.js","sourcesContent":["import type { ComponentFactory, ComponentInstance } from '../component.js';\n\nexport interface VueInterop {\n h: (...args: unknown[]) => unknown;\n ref: <T>(value: T | null) => { value: T | null };\n onMounted: (callback: () => void) => void;\n onBeforeUnmount: (callback: () => void) => void;\n watch: (\n source: () => unknown,\n callback: (value: unknown) => void,\n options?: { deep?: boolean },\n ) => void;\n}\n\nexport interface VueAdapterOptions {\n hostElement?: string;\n displayName?: string;\n}\n\nexport interface VueAdapterComponent<Props extends Record<string, unknown>> {\n name?: string;\n setup: (props: Props, ctx: { slots?: { default?: () => unknown } }) => () => unknown;\n}\n\nexport function createVueAdapter<Props extends Record<string, unknown>>(\n factory: ComponentFactory<Props>,\n vue: VueInterop,\n options: VueAdapterOptions = {},\n): VueAdapterComponent<Props> {\n const hostTag = options.hostElement ?? 'div';\n\n const component: VueAdapterComponent<Props> = {\n name: options.displayName,\n setup(props, ctx) {\n const hostRef = vue.ref<Element | null>(null);\n let instance: ComponentInstance<Props> | null = null;\n\n vue.onMounted(() => {\n if (!hostRef.value) {\n return;\n }\n instance = factory.mount({\n target: hostRef.value,\n props,\n });\n });\n\n vue.watch(\n () => props,\n next => {\n if (instance) {\n instance.updateProps(next as Props);\n }\n },\n { deep: true },\n );\n\n vue.onBeforeUnmount(() => {\n instance?.destroy();\n instance = null;\n });\n\n return () => {\n const slot = ctx.slots?.default;\n return vue.h(hostTag, { ref: hostRef }, slot ? slot() : null);\n };\n },\n };\n\n return component;\n}\n"]}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var chunk6BYWFGQY_cjs = require('../../chunk-6BYWFGQY.cjs');
4
+ require('../../chunk-W3LNNY3U.cjs');
5
+ require('../../chunk-PVZVFICK.cjs');
6
+ require('../../chunk-IRBUKIRF.cjs');
7
+ require('../../chunk-FFCZSYC7.cjs');
8
+ require('../../chunk-EFOOXCY7.cjs');
9
+ require('../../chunk-VHUXNDW2.cjs');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "AiAssistantPanel", {
14
+ enumerable: true,
15
+ get: function () { return chunk6BYWFGQY_cjs.AiAssistantPanel; }
16
+ });
17
+ //# sourceMappingURL=ai-assistant.cjs.map
18
+ //# sourceMappingURL=ai-assistant.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ai-assistant.cjs"}
@@ -0,0 +1,8 @@
1
+ import '../../component-BVzvepw9.cjs';
2
+ export { A as AiAssistantPanel, a as AiAssistantPanelProps } from '../../ai-assistant-EobSUV70.cjs';
3
+ import '../../types-C4RXXKfk.cjs';
4
+ import '../../tracing-DGdvMCEl.cjs';
5
+ import 'node:fs';
6
+ import '../../router-YnpW_sIK.cjs';
7
+ import '../../browser-signals-07qodpYT.cjs';
8
+ import '../../lib/theme.cjs';
@@ -0,0 +1,8 @@
1
+ import '../../component-wTxZ2BPD.js';
2
+ export { A as AiAssistantPanel, a as AiAssistantPanelProps } from '../../ai-assistant-Db002XYC.js';
3
+ import '../../types-C4RXXKfk.js';
4
+ import '../../tracing-DGdvMCEl.js';
5
+ import 'node:fs';
6
+ import '../../router-B9kms5XQ.js';
7
+ import '../../browser-signals-07qodpYT.js';
8
+ import '../../lib/theme.js';
@@ -0,0 +1,9 @@
1
+ export { AiAssistantPanel } from '../../chunk-T6T7QE4J.js';
2
+ import '../../chunk-CHLDE4JQ.js';
3
+ import '../../chunk-Q3KH6HMU.js';
4
+ import '../../chunk-IHAMVLRY.js';
5
+ import '../../chunk-BBAUALNU.js';
6
+ import '../../chunk-D3H5CGVD.js';
7
+ import '../../chunk-PFBEIFVS.js';
8
+ //# sourceMappingURL=ai-assistant.js.map
9
+ //# sourceMappingURL=ai-assistant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ai-assistant.js"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var chunkCXTAUXLG_cjs = require('../../chunk-CXTAUXLG.cjs');
4
+ require('../../chunk-W3LNNY3U.cjs');
5
+ require('../../chunk-PVZVFICK.cjs');
6
+ require('../../chunk-IRBUKIRF.cjs');
7
+ require('../../chunk-FFCZSYC7.cjs');
8
+ require('../../chunk-EFOOXCY7.cjs');
9
+ require('../../chunk-VHUXNDW2.cjs');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "AiSummaryCard", {
14
+ enumerable: true,
15
+ get: function () { return chunkCXTAUXLG_cjs.AiSummaryCard; }
16
+ });
17
+ //# sourceMappingURL=ai-summary-card.cjs.map
18
+ //# sourceMappingURL=ai-summary-card.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ai-summary-card.cjs"}
@@ -0,0 +1,19 @@
1
+ import { C as ComponentFactory } from '../../component-BVzvepw9.cjs';
2
+ import '../../types-C4RXXKfk.cjs';
3
+ import '../../tracing-DGdvMCEl.cjs';
4
+ import 'node:fs';
5
+ import '../../router-YnpW_sIK.cjs';
6
+ import '../../browser-signals-07qodpYT.cjs';
7
+ import '../../lib/theme.cjs';
8
+
9
+ interface AiSummaryCardProps extends Record<string, unknown> {
10
+ eyebrow?: string;
11
+ title: string;
12
+ summary: string;
13
+ highlights?: string[];
14
+ sentiment?: 'positive' | 'warning' | 'critical';
15
+ updatedAt?: string;
16
+ }
17
+ declare const AiSummaryCard: ComponentFactory<AiSummaryCardProps>;
18
+
19
+ export { AiSummaryCard, type AiSummaryCardProps };
@@ -0,0 +1,19 @@
1
+ import { C as ComponentFactory } from '../../component-wTxZ2BPD.js';
2
+ import '../../types-C4RXXKfk.js';
3
+ import '../../tracing-DGdvMCEl.js';
4
+ import 'node:fs';
5
+ import '../../router-B9kms5XQ.js';
6
+ import '../../browser-signals-07qodpYT.js';
7
+ import '../../lib/theme.js';
8
+
9
+ interface AiSummaryCardProps extends Record<string, unknown> {
10
+ eyebrow?: string;
11
+ title: string;
12
+ summary: string;
13
+ highlights?: string[];
14
+ sentiment?: 'positive' | 'warning' | 'critical';
15
+ updatedAt?: string;
16
+ }
17
+ declare const AiSummaryCard: ComponentFactory<AiSummaryCardProps>;
18
+
19
+ export { AiSummaryCard, type AiSummaryCardProps };
@@ -0,0 +1,9 @@
1
+ export { AiSummaryCard } from '../../chunk-V6JCOBGY.js';
2
+ import '../../chunk-CHLDE4JQ.js';
3
+ import '../../chunk-Q3KH6HMU.js';
4
+ import '../../chunk-IHAMVLRY.js';
5
+ import '../../chunk-BBAUALNU.js';
6
+ import '../../chunk-D3H5CGVD.js';
7
+ import '../../chunk-PFBEIFVS.js';
8
+ //# sourceMappingURL=ai-summary-card.js.map
9
+ //# sourceMappingURL=ai-summary-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ai-summary-card.js"}
@@ -0,0 +1,429 @@
1
+ 'use strict';
2
+
3
+ var chunkKPG5HAHK_cjs = require('../chunk-KPG5HAHK.cjs');
4
+ var chunkZWUA2LPB_cjs = require('../chunk-ZWUA2LPB.cjs');
5
+ var chunkEFOOXCY7_cjs = require('../chunk-EFOOXCY7.cjs');
6
+ var chunkVHUXNDW2_cjs = require('../chunk-VHUXNDW2.cjs');
7
+
8
+ // src/runtime/router.ts
9
+ var CONTINUE_NAVIGATION = { type: "continue" };
10
+ var MAX_GUARD_REDIRECTS = 8;
11
+ function allowNavigation() {
12
+ return CONTINUE_NAVIGATION;
13
+ }
14
+ function redirectNavigation(to, options) {
15
+ return { type: "redirect", to, options };
16
+ }
17
+ function errorNavigation(error, info) {
18
+ return { type: "error", error, info: info ?? null };
19
+ }
20
+ function createRouter(input) {
21
+ const options = normalizeRouterOptions(input);
22
+ const flattened = chunkZWUA2LPB_cjs.flattenRoutes(options.routes);
23
+ const notFoundRoute = normalizeFallbackRoute(options.notFoundRoute, "not-found", "*");
24
+ const errorRoute = normalizeFallbackRoute(options.errorRoute, "error", "/__error");
25
+ const initialPath = typeof window !== "undefined" ? window.location.pathname : "/";
26
+ const currentPath = chunkVHUXNDW2_cjs.signal(initialPath);
27
+ const currentMatchSignal = chunkVHUXNDW2_cjs.signal(resolveMatch(initialPath));
28
+ function resolveMatch(path) {
29
+ for (const node of flattened) {
30
+ const params = chunkZWUA2LPB_cjs.matchRoute(path, node.fullPath);
31
+ if (params) {
32
+ return instantiateMatch(node, params);
33
+ }
34
+ }
35
+ if (notFoundRoute) {
36
+ return createFallbackMatch(notFoundRoute, path, "not-found");
37
+ }
38
+ return null;
39
+ }
40
+ function instantiateMatch(node, params) {
41
+ const layouts = collectLayouts(node.branch, node.fullPath, params);
42
+ const routeBoundary = createRouterBoundaryState(
43
+ "route",
44
+ normalizeBoundaryConfig("route", node.route.boundary, {
45
+ routeId: chunkZWUA2LPB_cjs.getRouteId(node.route),
46
+ path: node.fullPath,
47
+ params
48
+ })
49
+ );
50
+ return {
51
+ route: node.route,
52
+ params,
53
+ fullPath: node.fullPath,
54
+ layouts,
55
+ boundary: routeBoundary
56
+ };
57
+ }
58
+ function collectLayouts(branch, fullPath, params) {
59
+ const states = [];
60
+ branch.forEach((route) => {
61
+ (route.layouts ?? []).forEach((layout, index) => {
62
+ states.push(
63
+ createRouterBoundaryState(
64
+ "layout",
65
+ normalizeBoundaryConfig("layout", layout, {
66
+ routeId: chunkZWUA2LPB_cjs.getRouteId(route),
67
+ path: fullPath,
68
+ layoutIndex: index,
69
+ params
70
+ })
71
+ )
72
+ );
73
+ });
74
+ });
75
+ return states;
76
+ }
77
+ function createFallbackMatch(route, requestedPath, reason, error, errorMessage) {
78
+ const normalizedPath = chunkZWUA2LPB_cjs.normalizePathname(requestedPath);
79
+ const params = chunkZWUA2LPB_cjs.matchRoute(normalizedPath, route.path) ?? {};
80
+ const statusCode = reason === "not-found" ? 404 : 500;
81
+ const boundaryConfig = {
82
+ ...route.boundary ?? {},
83
+ attributes: {
84
+ ...route.boundary?.attributes ?? {},
85
+ requestedPath: normalizedPath,
86
+ statusCode,
87
+ reason,
88
+ errorMessage: errorMessage ?? error?.message
89
+ }
90
+ };
91
+ const layouts = collectLayouts([route], normalizedPath, params);
92
+ const routeBoundary = createRouterBoundaryState(
93
+ "route",
94
+ normalizeBoundaryConfig("route", boundaryConfig, {
95
+ routeId: chunkZWUA2LPB_cjs.getRouteId(route),
96
+ path: normalizedPath,
97
+ params
98
+ })
99
+ );
100
+ return {
101
+ route,
102
+ params,
103
+ fullPath: normalizedPath,
104
+ layouts,
105
+ boundary: routeBoundary
106
+ };
107
+ }
108
+ function match(path) {
109
+ const resolved = resolveMatch(path ?? currentPath());
110
+ if (path === void 0) {
111
+ currentMatchSignal.set(resolved);
112
+ }
113
+ return resolved;
114
+ }
115
+ function navigate(path, options2) {
116
+ return runNavigation(path, options2, 0);
117
+ }
118
+ function onPopState() {
119
+ if (typeof window === "undefined") {
120
+ return;
121
+ }
122
+ const nextPath = window.location.pathname;
123
+ runNavigation(nextPath, { replace: true }, 0);
124
+ }
125
+ const start = () => {
126
+ if (typeof window === "undefined") {
127
+ return;
128
+ }
129
+ window.addEventListener("popstate", onPopState);
130
+ };
131
+ const dispose = () => {
132
+ if (typeof window === "undefined") {
133
+ return;
134
+ }
135
+ window.removeEventListener("popstate", onPopState);
136
+ };
137
+ function runNavigation(path, options2, depth) {
138
+ const resolved = resolveMatch(path);
139
+ if (!resolved) {
140
+ applyHistory(path, options2);
141
+ currentPath.set(path);
142
+ currentMatchSignal.set(null);
143
+ return null;
144
+ }
145
+ const guardResult = runRouteGuards(resolved);
146
+ if (guardResult.type === "redirect") {
147
+ if (depth >= MAX_GUARD_REDIRECTS) {
148
+ throw new Error("Router redirect loop detected.");
149
+ }
150
+ const nextOptions = { ...options2, ...guardResult.options, replace: true };
151
+ return runNavigation(guardResult.to, nextOptions, depth + 1);
152
+ }
153
+ if (guardResult.type === "error") {
154
+ const info = guardResult.info ?? createGuardErrorInfo(resolved);
155
+ const rawMessage = guardResult.error.message;
156
+ if (errorRoute) {
157
+ try {
158
+ chunkKPG5HAHK_cjs.captureRuntimeError(guardResult.error, info);
159
+ } catch {
160
+ }
161
+ const errorMatch = createFallbackMatch(errorRoute, path, "error", guardResult.error, rawMessage);
162
+ applyHistory(path, options2);
163
+ currentPath.set(path);
164
+ currentMatchSignal.set(errorMatch);
165
+ return errorMatch;
166
+ }
167
+ chunkKPG5HAHK_cjs.captureRuntimeError(guardResult.error, info);
168
+ return currentMatchSignal();
169
+ }
170
+ applyHistory(path, options2);
171
+ currentPath.set(path);
172
+ currentMatchSignal.set(resolved);
173
+ return resolved;
174
+ }
175
+ function applyHistory(path, options2) {
176
+ if (typeof window === "undefined") {
177
+ return;
178
+ }
179
+ const historyState = options2?.state ?? {};
180
+ if (options2?.replace) {
181
+ window.history.replaceState(historyState, "", path);
182
+ } else {
183
+ window.history.pushState(historyState, "", path);
184
+ }
185
+ }
186
+ function runRouteGuards(match2) {
187
+ const guards = match2.route.guards ?? [];
188
+ for (const guard of guards) {
189
+ const result = guard({ match: match2, params: match2.params }) ?? CONTINUE_NAVIGATION;
190
+ if (result.type !== "continue") {
191
+ return result;
192
+ }
193
+ }
194
+ return CONTINUE_NAVIGATION;
195
+ }
196
+ function createGuardErrorInfo(match2) {
197
+ return {
198
+ phase: "navigation",
199
+ componentName: match2.boundary.definition.componentName,
200
+ componentInstanceId: match2.boundary.id,
201
+ templateId: match2.boundary.definition.templateId,
202
+ attributes: {
203
+ routeId: match2.route.id ?? match2.fullPath,
204
+ fullPath: match2.fullPath
205
+ }
206
+ };
207
+ }
208
+ return {
209
+ currentPath,
210
+ currentMatch: currentMatchSignal,
211
+ navigate,
212
+ match,
213
+ start,
214
+ dispose
215
+ };
216
+ }
217
+ function normalizeRouterOptions(input) {
218
+ if (Array.isArray(input)) {
219
+ return { routes: input };
220
+ }
221
+ return input;
222
+ }
223
+ function normalizeFallbackRoute(route, fallbackId, fallbackPath) {
224
+ if (!route) {
225
+ return void 0;
226
+ }
227
+ return {
228
+ ...route,
229
+ id: route.id ?? fallbackId,
230
+ path: route.path || fallbackPath
231
+ };
232
+ }
233
+ async function runRouteLoader(match, args) {
234
+ const result = await executeRouteHandler("loader", match.route.loader, match, args);
235
+ updateRouteDataCache(match, result);
236
+ return result;
237
+ }
238
+ async function runRouteAction(match, args) {
239
+ const result = await executeRouteHandler("action", match.route.action, match, args);
240
+ updateRouteDataCache(match, result);
241
+ return result;
242
+ }
243
+ async function prefetchRoute(match, options) {
244
+ await Promise.resolve(match.route.component());
245
+ if (options?.loadData) {
246
+ await runRouteLoader(match, options.loaderArgs);
247
+ }
248
+ }
249
+ function normalizeBoundaryConfig(kind, config, context) {
250
+ const layoutSuffix = typeof context.layoutIndex === "number" ? `:${String(context.layoutIndex)}` : "";
251
+ const fallbackId = `${kind}:${context.routeId}${layoutSuffix}`;
252
+ const componentName = config?.componentName ?? config?.name ?? context.routeId;
253
+ const attributes = {
254
+ ...config?.attributes ?? {},
255
+ routeId: context.routeId,
256
+ path: context.path,
257
+ layoutIndex: context.layoutIndex,
258
+ params: context.params ? { ...context.params } : void 0
259
+ };
260
+ return {
261
+ ...config,
262
+ id: config?.id ?? fallbackId,
263
+ name: config?.name ?? componentName,
264
+ componentName,
265
+ attributes
266
+ };
267
+ }
268
+ function createRouterBoundaryState(kind, definition) {
269
+ const state = {
270
+ id: definition.id,
271
+ kind,
272
+ definition,
273
+ boundary: {
274
+ id: definition.id,
275
+ handle(error, info) {
276
+ state.error = error;
277
+ state.info = info;
278
+ if (definition.onError) {
279
+ try {
280
+ const handled = definition.onError(error, info);
281
+ if (handled === false) {
282
+ return false;
283
+ }
284
+ } catch (hookError) {
285
+ state.error = hookError instanceof Error ? hookError : new Error(String(hookError));
286
+ state.info = info;
287
+ }
288
+ }
289
+ return true;
290
+ }
291
+ },
292
+ error: null,
293
+ info: null,
294
+ reset() {
295
+ state.error = null;
296
+ state.info = null;
297
+ }
298
+ };
299
+ return state;
300
+ }
301
+ async function executeRouteHandler(kind, handler, match, args) {
302
+ const startedAt = Date.now();
303
+ if (!handler) {
304
+ return {
305
+ handled: true,
306
+ startedAt,
307
+ endedAt: startedAt,
308
+ durationMs: 0
309
+ };
310
+ }
311
+ const normalizedArgs = normalizeHandlerArgs(match, args);
312
+ const boundaries = [...match.layouts, match.boundary];
313
+ boundaries.forEach((boundary) => {
314
+ boundary.reset();
315
+ });
316
+ try {
317
+ const data = await runWithBoundaries(boundaries, () => invokeRouteHandler(handler, kind, match, normalizedArgs));
318
+ const boundaryError = firstErroredBoundary(boundaries);
319
+ const endedAt = Date.now();
320
+ if (boundaryError) {
321
+ return {
322
+ handled: true,
323
+ error: boundaryError.error ?? void 0,
324
+ info: boundaryError.info ?? null,
325
+ startedAt,
326
+ endedAt,
327
+ durationMs: endedAt - startedAt
328
+ };
329
+ }
330
+ return {
331
+ handled: true,
332
+ data,
333
+ info: null,
334
+ startedAt,
335
+ endedAt,
336
+ durationMs: endedAt - startedAt
337
+ };
338
+ } catch (error) {
339
+ const normalized = error instanceof Error ? error : new Error(String(error));
340
+ const endedAt = Date.now();
341
+ return {
342
+ handled: false,
343
+ error: normalized,
344
+ info: null,
345
+ startedAt,
346
+ endedAt,
347
+ durationMs: endedAt - startedAt
348
+ };
349
+ }
350
+ }
351
+ function normalizeHandlerArgs(match, args) {
352
+ return {
353
+ params: args?.params ?? match.params,
354
+ request: args?.request,
355
+ signal: args?.signal,
356
+ context: args?.context
357
+ };
358
+ }
359
+ function runWithBoundaries(boundaries, run) {
360
+ return boundaries.reduceRight((next, boundary) => {
361
+ return () => chunkKPG5HAHK_cjs.withRuntimeErrorBoundary(boundary.boundary, next);
362
+ }, run)();
363
+ }
364
+ function invokeRouteHandler(handler, kind, match, args) {
365
+ const phase = kind === "loader" ? "loader" : "action";
366
+ const info = createHandlerErrorInfo(phase, match, args);
367
+ try {
368
+ const result = handler(args);
369
+ if (isPromiseLike(result)) {
370
+ return result.catch((error) => {
371
+ const handled = chunkKPG5HAHK_cjs.captureRuntimeError(error, info);
372
+ if (!handled) {
373
+ throw error;
374
+ }
375
+ return void 0;
376
+ });
377
+ }
378
+ return result;
379
+ } catch (error) {
380
+ const handled = chunkKPG5HAHK_cjs.captureRuntimeError(error, info);
381
+ if (!handled) {
382
+ throw error;
383
+ }
384
+ return void 0;
385
+ }
386
+ }
387
+ function createHandlerErrorInfo(phase, match, args) {
388
+ const attributes = {
389
+ ...match.boundary.definition.attributes,
390
+ params: args.params,
391
+ requestMethod: args.request?.method,
392
+ layoutStack: match.layouts.map((layout) => layout.definition.id)
393
+ };
394
+ return {
395
+ phase,
396
+ componentName: match.boundary.definition.componentName,
397
+ componentInstanceId: match.boundary.id,
398
+ templateId: match.boundary.definition.templateId,
399
+ attributes
400
+ };
401
+ }
402
+ function updateRouteDataCache(match, result) {
403
+ if (result.handled) {
404
+ chunkEFOOXCY7_cjs.cacheRouteDataResult(match, result);
405
+ return;
406
+ }
407
+ chunkEFOOXCY7_cjs.clearRouteDataResult(match);
408
+ }
409
+ function firstErroredBoundary(boundaries) {
410
+ for (let i = boundaries.length - 1; i >= 0; i -= 1) {
411
+ if (boundaries[i].error) {
412
+ return boundaries[i];
413
+ }
414
+ }
415
+ return void 0;
416
+ }
417
+ function isPromiseLike(value) {
418
+ return Boolean(value) && typeof value === "object" && "then" in value;
419
+ }
420
+
421
+ exports.allowNavigation = allowNavigation;
422
+ exports.createRouter = createRouter;
423
+ exports.errorNavigation = errorNavigation;
424
+ exports.prefetchRoute = prefetchRoute;
425
+ exports.redirectNavigation = redirectNavigation;
426
+ exports.runRouteAction = runRouteAction;
427
+ exports.runRouteLoader = runRouteLoader;
428
+ //# sourceMappingURL=router.cjs.map
429
+ //# sourceMappingURL=router.cjs.map