react-semaphor 0.1.327 → 0.1.328

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 (60) hide show
  1. package/dist/brand-studio/index.cjs +5 -5
  2. package/dist/brand-studio/index.js +23 -24
  3. package/dist/chunks/_commonjsHelpers-BVfed4GL.js +28 -0
  4. package/dist/chunks/_commonjsHelpers-DwTZ_eVU.js +1 -0
  5. package/dist/chunks/{braces-BGWZEnQJ.js → braces-CG8viaD2.js} +1 -1
  6. package/dist/chunks/{braces-B6qRDu1H.js → braces-DSaa_4Oc.js} +1 -1
  7. package/dist/chunks/{calendar-preferences-dialog-fkLUMJyR.js → calendar-preferences-dialog-DD_qAthL.js} +1 -1
  8. package/dist/chunks/{calendar-preferences-dialog-CjwbE_82.js → calendar-preferences-dialog-JRmNJptJ.js} +3 -3
  9. package/dist/chunks/{chevrons-up-down-xG-bVFD9.js → chevrons-up-down-CBa0uh0X.js} +1 -1
  10. package/dist/chunks/{chevrons-up-down-BpsogQvv.js → chevrons-up-down-ChDNqVP7.js} +1 -1
  11. package/dist/chunks/dashboard-briefing-launcher-BKdJFwH5.js +106 -0
  12. package/dist/chunks/{dashboard-briefing-launcher-Cy1nWZRW.js → dashboard-briefing-launcher-BfyNkd8i.js} +1141 -1137
  13. package/dist/chunks/{dashboard-controls-BWnVEFJq.js → dashboard-controls-0pZDLvFL.js} +218 -218
  14. package/dist/chunks/{dashboard-controls-C7rOGZO-.js → dashboard-controls-C0xm1QMR.js} +10 -10
  15. package/dist/chunks/dashboard-json-BW5OVZ6m.js +1 -0
  16. package/dist/chunks/{dashboard-json-BpRNSsF3.js → dashboard-json-DsruhRPD.js} +14 -13
  17. package/dist/chunks/{edit-dashboard-visual-B2vkIKEa.js → edit-dashboard-visual-DQyJ7SSv.js} +1 -1
  18. package/dist/chunks/{edit-dashboard-visual-CYf26co_.js → edit-dashboard-visual-g5SZZahJ.js} +9 -8
  19. package/dist/chunks/index-1JWDPCun.js +1935 -0
  20. package/dist/chunks/index-BdjXTQt4.js +1444 -0
  21. package/dist/chunks/{index-DTlbYpxd.js → index-BmKr-K7J.js} +116971 -113296
  22. package/dist/chunks/index-C1l78BIx.js +3247 -0
  23. package/dist/chunks/lib-Ce3zosXY.js +38 -0
  24. package/dist/chunks/lib-DFvr9fM4.js +5500 -0
  25. package/dist/chunks/{palette-CSF7IVJn.js → palette-D0YmAqBS.js} +1 -1
  26. package/dist/chunks/{palette-CWgEPBoG.js → palette-DQgq3edH.js} +1 -1
  27. package/dist/chunks/{resource-management-panel-D6nbfJY3.js → resource-management-panel-CIfBh46E.js} +1 -1
  28. package/dist/chunks/{resource-management-panel-D893Onv8.js → resource-management-panel-Cj19pw9M.js} +145 -145
  29. package/dist/chunks/{switch-DJJJD_g1.js → switch-BvTzw2AW.js} +39 -34
  30. package/dist/chunks/{switch-DKf6vHfP.js → switch-De31SR3q.js} +878 -885
  31. package/dist/chunks/typescript-Cmizj1hi.js +446 -0
  32. package/dist/chunks/typescript-H1EwZsOb.js +159820 -0
  33. package/dist/chunks/use-create-flow-overlay-state-BTQiKRD1.js +26 -0
  34. package/dist/chunks/{use-create-flow-overlay-state-p21zs2p6.js → use-create-flow-overlay-state-IcHP0l39.js} +150 -151
  35. package/dist/chunks/{use-visual-utils-BKBua6o4.js → use-visual-utils-DQ5zGYD2.js} +13 -13
  36. package/dist/chunks/{use-visual-utils-BqWm0QeW.js → use-visual-utils-XF-AqV8o.js} +1 -1
  37. package/dist/dashboard/index.cjs +1 -1
  38. package/dist/dashboard/index.js +1 -1
  39. package/dist/data-app-builder/index.cjs +1 -0
  40. package/dist/data-app-builder/index.js +4 -0
  41. package/dist/data-app-builder-browser-runtime/index.cjs +1 -0
  42. package/dist/data-app-builder-browser-runtime/index.js +10 -0
  43. package/dist/data-app-sdk/index.cjs +1 -1
  44. package/dist/data-app-sdk/index.js +208 -196
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.js +14 -14
  47. package/dist/style.css +1 -1
  48. package/dist/surfboard/index.cjs +1 -1
  49. package/dist/surfboard/index.js +2 -2
  50. package/dist/types/data-app-builder-browser-runtime.d.ts +185 -0
  51. package/dist/types/data-app-builder.d.ts +630 -0
  52. package/dist/types/data-app-sdk.d.ts +14 -1
  53. package/dist/types/main.d.ts +2 -0
  54. package/package.json +11 -1
  55. package/dist/chunks/dashboard-briefing-launcher-Co57xBfS.js +0 -106
  56. package/dist/chunks/dashboard-json-DBPMknGo.js +0 -1
  57. package/dist/chunks/index-BD90s-wf.js +0 -1309
  58. package/dist/chunks/save-CtQbSub2.js +0 -6
  59. package/dist/chunks/save-DRdFKF57.js +0 -21
  60. package/dist/chunks/use-create-flow-overlay-state-C4LgoK8q.js +0 -26
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-BD90s-wf.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-fkLUMJyR.js");exports.Surfboard=r.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=a.CalendarPreferencesDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-BdjXTQt4.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-DD_qAthL.js");exports.Surfboard=r.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=a.CalendarPreferencesDialog;
@@ -1,6 +1,6 @@
1
- import { a as e } from "../chunks/index-DTlbYpxd.js";
1
+ import { a as e } from "../chunks/index-BmKr-K7J.js";
2
2
  import { C, E } from "../chunks/common-types-4bjoIgvm.js";
3
- import { C as s } from "../chunks/calendar-preferences-dialog-CjwbE_82.js";
3
+ import { C as s } from "../chunks/calendar-preferences-dialog-JRmNJptJ.js";
4
4
  export {
5
5
  C as CONTROL_CARD_DEFAULT_VALUE,
6
6
  s as CalendarPreferencesDialog,
@@ -0,0 +1,185 @@
1
+ export declare type BrowserRuntimeLoader = <TModule = BrowserRuntimeModule>(specifier?: string) => Promise<TModule>;
2
+
3
+ export declare type BrowserRuntimeModule = BrowserSandboxRuntimeModule;
4
+
5
+ export declare type BrowserSandboxFile = {
6
+ path: string;
7
+ contents: string;
8
+ };
9
+
10
+ export declare type BrowserSandboxFilePlan = {
11
+ intent: string;
12
+ files: Array<{
13
+ path: string;
14
+ purpose: string;
15
+ action: 'create' | 'edit';
16
+ }>;
17
+ };
18
+
19
+ export declare type BrowserSandboxResult = {
20
+ ok: boolean;
21
+ projectRoot?: string;
22
+ provider?: string;
23
+ validation?: 'typecheck' | 'build' | 'write-policy-validation' | 'import-validation' | 'data-api-validation';
24
+ changedFiles?: string[];
25
+ summary?: string;
26
+ changes?: BrowserSandboxRevision['changes'];
27
+ files?: Array<{
28
+ path: string;
29
+ size: number;
30
+ }>;
31
+ generationMeta?: BrowserSandboxRevision['generationMeta'];
32
+ attempts?: Array<{
33
+ label: string;
34
+ ok: boolean;
35
+ command: {
36
+ command: string;
37
+ durationMs: number;
38
+ exitCode: number;
39
+ ok: boolean;
40
+ stdout: string;
41
+ stderr: string;
42
+ };
43
+ }>;
44
+ command?: {
45
+ command: string;
46
+ durationMs: number;
47
+ exitCode: number;
48
+ ok: boolean;
49
+ stdout: string;
50
+ stderr: string;
51
+ };
52
+ importValidation?: {
53
+ ok: boolean;
54
+ diagnostics: string[];
55
+ };
56
+ writePolicyValidation?: {
57
+ ok: boolean;
58
+ diagnostics: string[];
59
+ };
60
+ dataApiValidation?: {
61
+ ok: boolean;
62
+ diagnostics: string[];
63
+ };
64
+ telemetry?: {
65
+ contextFileCount?: number;
66
+ contextChars?: number;
67
+ generatedFileCount?: number;
68
+ generatedChars?: number;
69
+ repairAttempts?: number;
70
+ };
71
+ error?: string;
72
+ };
73
+
74
+ export declare type BrowserSandboxRevision = {
75
+ provider?: string;
76
+ summary?: string;
77
+ changes?: Array<{
78
+ kind: 'add' | 'edit' | 'remove';
79
+ label: string;
80
+ }>;
81
+ files: BrowserSandboxFile[];
82
+ plan?: BrowserSandboxFilePlan;
83
+ replaceExistingFiles?: boolean;
84
+ generationMeta?: {
85
+ model: string;
86
+ strategy: string;
87
+ reasoningEffort?: string;
88
+ durationMs: number;
89
+ outputChars?: number;
90
+ fallbackFrom?: {
91
+ strategy: string;
92
+ reason: string;
93
+ };
94
+ };
95
+ attemptLabel?: string;
96
+ };
97
+
98
+ export declare type BrowserSandboxRuntimeManifest = {
99
+ id: string;
100
+ name: string;
101
+ execution: 'browser-sandbox';
102
+ moduleSystem: string;
103
+ cssPipeline: {
104
+ mode: string;
105
+ status: string;
106
+ };
107
+ packages: Array<{
108
+ name: string;
109
+ source: 'host' | 'runtime' | 'shim' | 'fallback';
110
+ status: 'supported' | 'partial';
111
+ }>;
112
+ components: Array<{
113
+ name: string;
114
+ importPath: string;
115
+ sourceFile: string;
116
+ implementation: 'source' | 'shim';
117
+ dependencies: string[];
118
+ }>;
119
+ limits: {
120
+ writeScope: string[];
121
+ editableGlobs: string[];
122
+ unsupported: string[];
123
+ };
124
+ };
125
+
126
+ export declare type BrowserSandboxRuntimeModule = {
127
+ resetBrowserSandbox: (templateId?: string) => void;
128
+ readBrowserSandboxWorkspaceContext: () => BrowserSandboxWorkspaceContext;
129
+ readBrowserSandboxFiles: (paths: string[]) => BrowserSandboxFile[];
130
+ listBrowserSandboxFiles: () => Array<{
131
+ path: string;
132
+ size: number;
133
+ }>;
134
+ applyBrowserSandboxRevision: (revision: BrowserSandboxRevision) => BrowserSandboxResult;
135
+ compileBrowserSandboxPreviewHtml: () => Promise<{
136
+ html: string;
137
+ diagnostics: string[];
138
+ warnings?: string[];
139
+ cssMode?: 'tailwind' | 'fallback';
140
+ }>;
141
+ };
142
+
143
+ export declare type BrowserSandboxWorkspaceContext = {
144
+ projectRoot?: string;
145
+ framework?: string;
146
+ packageManager?: string;
147
+ runtimeManifest?: BrowserSandboxRuntimeManifest;
148
+ packageJson?: {
149
+ dependencies?: Record<string, string>;
150
+ devDependencies?: Record<string, string>;
151
+ scripts?: Record<string, string>;
152
+ };
153
+ componentsJson?: unknown;
154
+ tsconfig?: {
155
+ baseUrl?: string | null;
156
+ paths?: Record<string, string[]>;
157
+ jsx?: string | null;
158
+ strict?: boolean | null;
159
+ noUnusedLocals?: boolean | null;
160
+ noUnusedParameters?: boolean | null;
161
+ };
162
+ files?: {
163
+ source?: string[];
164
+ root?: string[];
165
+ editable?: string[];
166
+ editableGlobs?: string[];
167
+ approvalRequiredGlobs?: string[];
168
+ styleEntries?: string[];
169
+ localModules?: string[];
170
+ };
171
+ validation?: {
172
+ typecheck?: string | null;
173
+ build?: string | null;
174
+ };
175
+ capabilities?: unknown;
176
+ };
177
+
178
+ /**
179
+ * Lazily loads the browser execution runtime only when the user chooses
180
+ * in-browser app building. Keep this behind a dedicated subpath so ordinary
181
+ * dashboard and Analytics Hub consumers do not pay for runtime code.
182
+ */
183
+ export declare const loadSemaphorBrowserRuntime: BrowserRuntimeLoader;
184
+
185
+ export { }