react-semaphor 0.1.526 → 0.1.528
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.
- package/DATA_APP_SDK.md +5 -1
- package/dist/analytics-protocol/index.js +1190 -296
- package/dist/brand-studio/index.js +15 -15
- package/dist/briefings/index.js +50 -49
- package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DUu-tCQw.js} +66 -65
- package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BdPceiw8.js} +68 -65
- package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
- package/dist/chunks/dashboard-BkskKMck.js +14 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-Bb0RhGRC.js} +372 -359
- package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-loWTHPMi.js} +739 -686
- package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DUci_SOR.js} +10 -10
- package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-z9WN26w7.js} +6603 -6572
- package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-CGSFK9S-.js} +266 -267
- package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-CdXSo1pb.js} +19 -19
- package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
- package/dist/chunks/{index-CbjuruKe.js → index-CTYnXU85.js} +781 -780
- package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
- package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DhykwdZs.js} +7 -6
- package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BV9ywFtJ.js} +11 -11
- package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
- package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-1Mm8x8w7.js} +655 -511
- package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
- package/dist/chunks/matrix-operation-contract-Dp7kFpVk.js +1383 -0
- package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
- package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
- package/dist/chunks/pivot-header-presentation-CZa3556D.js +618 -0
- package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-Bqdtknud.js} +259 -204
- package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
- package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
- package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
- package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-VV0-Ro6F.js} +131 -132
- package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
- package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-IZjBSU6Z.js} +47 -26
- package/dist/chunks/semantic-format-BBLvfwua.js +192 -0
- package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-DbA4mVQL.js} +49909 -46207
- package/dist/chunks/{slider-BYIH4icg.js → slider-DpiJG8lv.js} +81 -82
- package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
- package/dist/chunks/switch-C4YH-W1X.js +24003 -0
- package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
- package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
- package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
- package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
- package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +138 -137
- package/dist/data-app-sdk/index.js +12 -12
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +27 -26
- package/dist/format-utils/index.js +247 -329
- package/dist/index.js +165 -168
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/index.d.ts +3 -0
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +8 -29
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
- package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
- package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/api/exports-api.d.ts +3 -0
- package/dist/types/lib/csv-download.d.ts +9 -0
- package/dist/types/lib/csv-encoding-options.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
- package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
- package/dist/types/lib/export-utils.d.ts +17 -15
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
- package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
- package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
- package/dist/types/lib/types/common-types.d.ts +5 -0
- package/dist/types/lib/types/explorer-types.d.ts +14 -0
- package/dist/types/lib/types/semantic-types.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
- package/dist/types/lib/utils/card-definition.d.ts +1 -1
- package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
- package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +48 -7
- package/dist/types/shared/analytics-protocol/index.d.ts +15 -1
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +61 -6
- package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
- package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
- package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
- package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
- package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
- package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
- package/dist/types/shared/temporal/index.d.ts +5 -0
- package/dist/types/shared/temporal/relative-date.d.ts +21 -0
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
- package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
- package/package.json +1 -17
- package/src/data-app-sdk/README.md +6 -3
- package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
- package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
- package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
- package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
- package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
- package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
- package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
- package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
- package/dist/chunks/search-CJz-QQ0Q.js +0 -24
- package/dist/chunks/switch-XaAACBrJ.js +0 -2234
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
- package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
- package/dist/data-app-builder/index.js +0 -3666
- package/dist/data-app-builder-browser-runtime/index.js +0 -8
- package/dist/data-app-codegen/index.js +0 -22
- package/dist/data-app-codegen-node/index.js +0 -1807
- package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
- package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
- package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
- package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
- package/dist/types/data-app-builder/constants.d.ts +0 -14
- package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
- package/dist/types/data-app-builder/index.d.ts +0 -1
- package/dist/types/data-app-builder/lib/api.d.ts +0 -36
- package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
- package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
- package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
- package/dist/types/data-app-builder/types.d.ts +0 -558
- package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
- package/dist/types/data-app-builder.d.ts +0 -2
- package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
- package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
- package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
- package/dist/types/data-app-codegen/index.d.ts +0 -6
- package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
- package/dist/types/data-app-codegen/node.d.ts +0 -2
- package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
- package/dist/types/data-app-codegen/validation.d.ts +0 -8
- package/dist/types/data-app-codegen-node.d.ts +0 -2
- package/dist/types/data-app-codegen.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
- package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
- package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResourceListItem } from '../sharing-and-management/hooks/use-resource-management.js';
|
|
2
|
-
type PublishedDataAppRuntimeProps = {
|
|
3
|
-
dataApp: ResourceListItem;
|
|
4
|
-
onBack: () => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function PublishedDataAppRuntime({ dataApp, onBack, }: PublishedDataAppRuntimeProps): import("react").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TCard } from '../../../../lib/types/common-types.js';
|
|
2
|
-
import { ColumnSettingsMap } from '../types/data-table.js';
|
|
3
|
-
import { CardNumericPresentationContext } from '../../../../lib/formatters/numeric-presentation.js';
|
|
4
|
-
/**
|
|
5
|
-
* Convert data to CSV format
|
|
6
|
-
*/
|
|
7
|
-
export declare function convertToCSV(data: Record<string, any>[], includeHeaders?: boolean): string;
|
|
8
|
-
/**
|
|
9
|
-
* Convert data to CSV format with formatting preserved
|
|
10
|
-
*/
|
|
11
|
-
export declare function convertToCSVWithFormatting(data: Record<string, any>[], columnSettings: ColumnSettingsMap, visibleColumns: string[], includeHeaders?: boolean, contextTimezone?: string, browserTimezone?: string, isSqlCard?: boolean, card?: TCard, numericPresentation?: CardNumericPresentationContext): string;
|
|
12
|
-
/**
|
|
13
|
-
* Convert data to JSON format
|
|
14
|
-
*/
|
|
15
|
-
export declare function convertToJSON(data: Record<string, any>[]): string;
|
|
16
|
-
/**
|
|
17
|
-
* Download data as a file
|
|
18
|
-
*/
|
|
19
|
-
export declare function downloadFile(content: string, fileName: string, contentType: string): void;
|
|
20
|
-
/**
|
|
21
|
-
* Export data as CSV
|
|
22
|
-
*/
|
|
23
|
-
export declare function exportAsCSV(data: Record<string, any>[], fileName?: string): void;
|
|
24
|
-
/**
|
|
25
|
-
* Export data as CSV with formatting
|
|
26
|
-
*/
|
|
27
|
-
export declare function exportAsCSVWithFormatting(data: Record<string, any>[], columnSettings: ColumnSettingsMap, visibleColumns: string[], fileName?: string, contextTimezone?: string, browserTimezone?: string, isSqlCard?: boolean, card?: TCard, numericPresentation?: CardNumericPresentationContext): void;
|
|
28
|
-
/**
|
|
29
|
-
* Export data as JSON
|
|
30
|
-
*/
|
|
31
|
-
export declare function exportAsJSON(data: Record<string, any>[], fileName?: string): void;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
export type BrowserSandboxFile = {
|
|
2
|
-
path: string;
|
|
3
|
-
contents: string;
|
|
4
|
-
};
|
|
5
|
-
export type BrowserSandboxWorkspaceContext = {
|
|
6
|
-
projectRoot?: string;
|
|
7
|
-
framework?: string;
|
|
8
|
-
packageManager?: string;
|
|
9
|
-
runtimeManifest?: BrowserSandboxRuntimeManifest;
|
|
10
|
-
packageJson?: {
|
|
11
|
-
dependencies?: Record<string, string>;
|
|
12
|
-
devDependencies?: Record<string, string>;
|
|
13
|
-
scripts?: Record<string, string>;
|
|
14
|
-
};
|
|
15
|
-
componentsJson?: unknown;
|
|
16
|
-
tsconfig?: {
|
|
17
|
-
baseUrl?: string | null;
|
|
18
|
-
paths?: Record<string, string[]>;
|
|
19
|
-
jsx?: string | null;
|
|
20
|
-
strict?: boolean | null;
|
|
21
|
-
noUnusedLocals?: boolean | null;
|
|
22
|
-
noUnusedParameters?: boolean | null;
|
|
23
|
-
};
|
|
24
|
-
files?: {
|
|
25
|
-
source?: string[];
|
|
26
|
-
root?: string[];
|
|
27
|
-
editable?: string[];
|
|
28
|
-
editableGlobs?: string[];
|
|
29
|
-
approvalRequiredGlobs?: string[];
|
|
30
|
-
styleEntries?: string[];
|
|
31
|
-
localModules?: string[];
|
|
32
|
-
};
|
|
33
|
-
validation?: {
|
|
34
|
-
typecheck?: string | null;
|
|
35
|
-
build?: string | null;
|
|
36
|
-
};
|
|
37
|
-
capabilities?: unknown;
|
|
38
|
-
};
|
|
39
|
-
export type BrowserSandboxRuntimeManifest = {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
execution: 'browser-sandbox';
|
|
43
|
-
moduleSystem: string;
|
|
44
|
-
cssPipeline: {
|
|
45
|
-
mode: string;
|
|
46
|
-
status: string;
|
|
47
|
-
};
|
|
48
|
-
packages: Array<{
|
|
49
|
-
name: string;
|
|
50
|
-
source: 'host' | 'runtime' | 'shim' | 'fallback';
|
|
51
|
-
status: 'supported' | 'partial';
|
|
52
|
-
}>;
|
|
53
|
-
components: Array<{
|
|
54
|
-
name: string;
|
|
55
|
-
importPath: string;
|
|
56
|
-
sourceFile: string;
|
|
57
|
-
implementation: 'source' | 'shim';
|
|
58
|
-
dependencies: string[];
|
|
59
|
-
}>;
|
|
60
|
-
limits: {
|
|
61
|
-
writeScope: string[];
|
|
62
|
-
editableGlobs: string[];
|
|
63
|
-
unsupported: string[];
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export type BrowserSandboxFilePlan = {
|
|
67
|
-
intent: string;
|
|
68
|
-
files: Array<{
|
|
69
|
-
path: string;
|
|
70
|
-
purpose: string;
|
|
71
|
-
action: 'create' | 'edit';
|
|
72
|
-
}>;
|
|
73
|
-
};
|
|
74
|
-
export 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
|
-
export type BrowserSandboxResult = {
|
|
98
|
-
ok: boolean;
|
|
99
|
-
projectRoot?: string;
|
|
100
|
-
provider?: string;
|
|
101
|
-
validation?: 'typecheck' | 'build' | 'write-policy-validation' | 'import-validation' | 'data-api-validation';
|
|
102
|
-
changedFiles?: string[];
|
|
103
|
-
summary?: string;
|
|
104
|
-
changes?: BrowserSandboxRevision['changes'];
|
|
105
|
-
files?: Array<{
|
|
106
|
-
path: string;
|
|
107
|
-
size: number;
|
|
108
|
-
}>;
|
|
109
|
-
generationMeta?: BrowserSandboxRevision['generationMeta'];
|
|
110
|
-
attempts?: Array<{
|
|
111
|
-
label: string;
|
|
112
|
-
ok: boolean;
|
|
113
|
-
command: {
|
|
114
|
-
command: string;
|
|
115
|
-
durationMs: number;
|
|
116
|
-
exitCode: number;
|
|
117
|
-
ok: boolean;
|
|
118
|
-
stdout: string;
|
|
119
|
-
stderr: string;
|
|
120
|
-
};
|
|
121
|
-
}>;
|
|
122
|
-
command?: {
|
|
123
|
-
command: string;
|
|
124
|
-
durationMs: number;
|
|
125
|
-
exitCode: number;
|
|
126
|
-
ok: boolean;
|
|
127
|
-
stdout: string;
|
|
128
|
-
stderr: string;
|
|
129
|
-
};
|
|
130
|
-
importValidation?: {
|
|
131
|
-
ok: boolean;
|
|
132
|
-
diagnostics: string[];
|
|
133
|
-
};
|
|
134
|
-
writePolicyValidation?: {
|
|
135
|
-
ok: boolean;
|
|
136
|
-
diagnostics: string[];
|
|
137
|
-
};
|
|
138
|
-
dataApiValidation?: {
|
|
139
|
-
ok: boolean;
|
|
140
|
-
diagnostics: string[];
|
|
141
|
-
};
|
|
142
|
-
telemetry?: {
|
|
143
|
-
contextFileCount?: number;
|
|
144
|
-
contextChars?: number;
|
|
145
|
-
generatedFileCount?: number;
|
|
146
|
-
generatedChars?: number;
|
|
147
|
-
repairAttempts?: number;
|
|
148
|
-
};
|
|
149
|
-
error?: string;
|
|
150
|
-
};
|
|
151
|
-
export type BrowserSandboxRuntimeModule = {
|
|
152
|
-
resetBrowserSandbox: (templateId?: string) => void;
|
|
153
|
-
readBrowserSandboxWorkspaceContext: () => BrowserSandboxWorkspaceContext;
|
|
154
|
-
readBrowserSandboxFiles: (paths: string[]) => BrowserSandboxFile[];
|
|
155
|
-
listBrowserSandboxFiles: () => Array<{
|
|
156
|
-
path: string;
|
|
157
|
-
size: number;
|
|
158
|
-
}>;
|
|
159
|
-
applyBrowserSandboxRevision: (revision: BrowserSandboxRevision) => BrowserSandboxResult;
|
|
160
|
-
compileBrowserSandboxPreviewHtml: () => Promise<{
|
|
161
|
-
html: string;
|
|
162
|
-
diagnostics: string[];
|
|
163
|
-
warnings?: string[];
|
|
164
|
-
cssMode?: 'tailwind' | 'fallback';
|
|
165
|
-
}>;
|
|
166
|
-
};
|
|
167
|
-
export type BrowserRuntimeModule = BrowserSandboxRuntimeModule;
|
|
168
|
-
export type BrowserRuntimeLoader = <TModule = BrowserRuntimeModule>(specifier?: string) => Promise<TModule>;
|
|
169
|
-
/**
|
|
170
|
-
* Lazily loads the browser execution runtime only when the user chooses
|
|
171
|
-
* in-browser app building. Keep this behind a dedicated subpath so ordinary
|
|
172
|
-
* dashboard and Analytics Hub consumers do not pay for runtime code.
|
|
173
|
-
*/
|
|
174
|
-
export declare const loadSemaphorBrowserRuntime: BrowserRuntimeLoader;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AgentStep, AppSuggestion, ModelPreset } from './types.js';
|
|
2
|
-
export declare const suggestions: AppSuggestion[];
|
|
3
|
-
export declare const initialSteps: AgentStep[];
|
|
4
|
-
export declare const generationModelPresets: ModelPreset[];
|
|
5
|
-
export declare const transcriptStoragePrefix = "semaphor-data-app-builder-transcript";
|
|
6
|
-
export declare const previewUrlStoragePrefix = "semaphor-data-app-builder-preview-url";
|
|
7
|
-
export declare const bridgeUrlStoragePrefix = "semaphor-data-app-builder-bridge-url";
|
|
8
|
-
export declare const projectDirStoragePrefix = "semaphor-data-app-builder-project-dir";
|
|
9
|
-
export declare const defaultPreviewUrl = "http://semaphor-data-app.localhost:8088";
|
|
10
|
-
export declare const defaultBridgeUrl = "http://localhost:8787";
|
|
11
|
-
export declare const defaultProjectDir = "/Users/rohit/code/sandbox/semaphor-data-apps/data-app";
|
|
12
|
-
export declare const maxValidationRepairAttempts = 3;
|
|
13
|
-
export declare const maxContextFiles = 18;
|
|
14
|
-
export declare const maxBrowserContextFiles = 12;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DataAppBuilderProps } from './types.js';
|
|
2
|
-
import * as ReactRuntime from 'react';
|
|
3
|
-
import * as ReactDOMClient from 'react-dom/client';
|
|
4
|
-
declare global {
|
|
5
|
-
interface Window {
|
|
6
|
-
__SEMAPHOR_BROWSER_SANDBOX_VENDOR__?: {
|
|
7
|
-
React: typeof ReactRuntime;
|
|
8
|
-
ReactDOMClient: typeof ReactDOMClient;
|
|
9
|
-
Recharts?: unknown;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export type { ApiStatus, BridgeCommandResult, BridgeReadFilesResult, BridgeResult, BridgeWorkspaceContextResult, BuilderTurn, BuilderTurnMode, BuilderTurnResult, DataAppBuilderAdapters, DataAppBuilderArtifact, DataAppBuilderDatasetInspectorArtifact, DataAppBuilderLoadedApp, DataAppBuilderLoadedVersion, DataAppBuilderPublishBuildResult, DataAppBuilderPublishProgress, DataAppBuilderPublishRequest, DataAppBuilderPublishResult, DataAppBuilderProps, DataAppBuilderSaveDraftRequest, DataAppBuilderSaveDraftResult, DataAppBuilderTurnProgress, DataAppBuilderTurnRequest, DataAppIntentInput, DataAppIntentInteraction, DataAppIntentLayout, DataAppIntentManifest, DataAppIntentSource, DataAppIntentView, DataAppIntentViewKind, DataAppManifest, DataAppOperationPlan, DataAppOperationTarget, DataAppOperationType, DataAppSourceRevision, DataAppSourceSnapshot, GeneratedRevision, ReasoningEffort, WorkspaceContext, } from './types.js';
|
|
14
|
-
export declare function DataAppBuilder({ projectId, projectName, dataAppId, apiServiceUrl, adapters, }: DataAppBuilderProps): ReactRuntime.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DataAppBuilder, type ApiStatus, type BridgeCommandResult, type BridgeReadFilesResult, type BridgeResult, type BridgeWorkspaceContextResult, type DataAppBuilderAdapters, type DataAppBuilderArtifact, type DataAppBuilderDatasetInspectorArtifact, type DataAppBuilderLoadedApp, type DataAppBuilderLoadedVersion, type DataAppBuilderPublishBuildResult, type DataAppBuilderPublishProgress, type DataAppBuilderPublishRequest, type DataAppBuilderPublishResult, type DataAppBuilderSaveDraftRequest, type DataAppBuilderSaveDraftResult, type DataAppBuilderTurnProgress, type DataAppBuilderTurnRequest, type DataAppBuilderProps, type DataAppIntentInput, type DataAppIntentInteraction, type DataAppIntentLayout, type DataAppIntentManifest, type DataAppIntentSource, type DataAppIntentView, type DataAppIntentViewKind, type DataAppManifest, type DataAppOperationPlan, type DataAppOperationTarget, type DataAppOperationType, type DataAppSourceRevision, type DataAppSourceSnapshot, type BuilderTurn, type BuilderTurnMode, type BuilderTurnResult, type GeneratedRevision, type ReasoningEffort, type WorkspaceContext, } from './data-app-builder.js';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ApiStatus, DataAppBuilderPublishProgress, DataAppBuilderPublishRequest, DataAppBuilderPublishResult, DataAppBuilderLoadedApp, DataAppBuilderSaveDraftRequest, DataAppBuilderSaveDraftResult, DataAppBuilderTurnProgress, DataAppBuilderTurnRequest } from '../types.js';
|
|
2
|
-
export declare function storageKey(prefix: string, projectId: string): string;
|
|
3
|
-
export declare function createId(prefix: string): string;
|
|
4
|
-
export declare function findPreset(presetId: string): import('../types.js').ModelPreset;
|
|
5
|
-
export declare function readJsonResponse<T>(response: Response, fallbackLabel: string): Promise<T>;
|
|
6
|
-
export declare function dataAppBuilderApiUrl(apiServiceUrl: string | undefined, path: string): string;
|
|
7
|
-
export declare function dataAppsApiUrl(apiServiceUrl: string | undefined, path: string): string;
|
|
8
|
-
export declare function defaultReadAppBuilderStatus({ apiServiceUrl, accessToken, signal, }: {
|
|
9
|
-
apiServiceUrl?: string;
|
|
10
|
-
accessToken?: string;
|
|
11
|
-
signal: AbortSignal;
|
|
12
|
-
}): Promise<ApiStatus>;
|
|
13
|
-
export declare function defaultRunBuilderTurn(request: DataAppBuilderTurnRequest, { apiServiceUrl, accessToken, signal, onProgress, }: {
|
|
14
|
-
apiServiceUrl?: string;
|
|
15
|
-
accessToken?: string;
|
|
16
|
-
signal: AbortSignal;
|
|
17
|
-
onProgress?: (progress: DataAppBuilderTurnProgress) => void;
|
|
18
|
-
}): Promise<import('...js').BuilderTurn>;
|
|
19
|
-
export declare function defaultSaveDataAppDraft(request: DataAppBuilderSaveDraftRequest, { apiServiceUrl, accessToken, signal, }: {
|
|
20
|
-
apiServiceUrl?: string;
|
|
21
|
-
accessToken?: string;
|
|
22
|
-
signal: AbortSignal;
|
|
23
|
-
}): Promise<DataAppBuilderSaveDraftResult>;
|
|
24
|
-
export declare function defaultLoadDataApp(request: {
|
|
25
|
-
dataAppId: string;
|
|
26
|
-
}, { apiServiceUrl, accessToken, signal, }: {
|
|
27
|
-
apiServiceUrl?: string;
|
|
28
|
-
accessToken?: string;
|
|
29
|
-
signal: AbortSignal;
|
|
30
|
-
}): Promise<DataAppBuilderLoadedApp>;
|
|
31
|
-
export declare function defaultPublishDataApp(request: DataAppBuilderPublishRequest, { apiServiceUrl, accessToken, signal, onProgress, }: {
|
|
32
|
-
apiServiceUrl?: string;
|
|
33
|
-
accessToken?: string;
|
|
34
|
-
signal: AbortSignal;
|
|
35
|
-
onProgress?: (progress: DataAppBuilderPublishProgress) => void;
|
|
36
|
-
}): Promise<DataAppBuilderPublishResult>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function selectContextPaths(paths: string[]): string[];
|
|
2
|
-
export declare function selectBrowserContextPaths(paths: string[], preferredPath?: string | null, prompt?: string): string[];
|
|
3
|
-
export declare function requestedBrowserUiContextFiles(prompt: string, paths: string[]): string[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BridgeResult } from '../types.js';
|
|
2
|
-
export declare function cloneInitialSteps(): {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
detail: string;
|
|
6
|
-
state: import('../types.js').StepState;
|
|
7
|
-
startedAt?: number;
|
|
8
|
-
durationMs?: number;
|
|
9
|
-
}[];
|
|
10
|
-
export declare function buildDiagnosticFromBridgeResult(result: BridgeResult): string;
|
|
11
|
-
export declare function isTypeScriptRepairPrompt(prompt: string): boolean;
|
|
12
|
-
export declare function formatDuration(ms: number): string;
|