react-semaphor 0.1.172 → 0.1.174
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/dist/chunks/{dashboard-controls-BuKUWOU1.js → dashboard-controls-BdFhbpoS.js} +6 -6
- package/dist/chunks/{dashboard-controls-DA-lJWSK.js → dashboard-controls-Bxjvkywu.js} +354 -352
- package/dist/chunks/{dashboard-json-CUTAJhWz.js → dashboard-json-BCH4SQkg.js} +1 -1
- package/dist/chunks/{dashboard-json-BTWzsbui.js → dashboard-json-ClK3yCs7.js} +1 -1
- package/dist/chunks/edit-dashboard-visual-BEAKONcQ.js +189 -0
- package/dist/chunks/{edit-dashboard-visual-BEWMIe7g.js → edit-dashboard-visual-CSI-cZoT.js} +4835 -4809
- package/dist/chunks/{editor-action-buttons-WGWavDMB.js → editor-action-buttons-BaHzz3CT.js} +1 -1
- package/dist/chunks/{editor-action-buttons-C5Ejuo4M.js → editor-action-buttons-DIFwpB2w.js} +2 -2
- package/dist/chunks/{index-DMR0K1Nf.js → index-BAb30JIE.js} +75 -75
- package/dist/chunks/{index-C8T45uat.js → index-CtuIHKSY.js} +4370 -4304
- package/dist/chunks/{resource-management-panel-DFC27hgo.js → resource-management-panel-Cs7tkTxZ.js} +1 -1
- package/dist/chunks/{resource-management-panel-BKAs9Em0.js → resource-management-panel-DRMNQIkI.js} +3 -3
- package/dist/chunks/{schedule-dashboard-r_XMtRaW.js → schedule-dashboard-Bj4mXU5g.js} +38 -38
- package/dist/chunks/{schedule-dashboard-DC7XeEaW.js → schedule-dashboard-CInkuI61.js} +2 -2
- package/dist/chunks/{use-role-aware-display-preferences-CAbBsXoz.js → use-role-aware-display-preferences-BGTLQ_rf.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-BOpxNd8x.js → use-role-aware-display-preferences-DgSkQ7I0.js} +1 -1
- package/dist/chunks/use-visual-utils-BmwT7aG_.js +338 -0
- package/dist/chunks/use-visual-utils-CeBDoiB8.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +36 -0
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-_uEu62dm.js +0 -189
- package/dist/chunks/use-visual-utils-BJxotk2m.js +0 -331
- package/dist/chunks/use-visual-utils-DG7j82aL.js +0 -1
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-BAb30JIE.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED
package/dist/types/main.d.ts
CHANGED
|
@@ -154,6 +154,24 @@ declare type Actions_3 = TableActions & ExplorerActions & DrillActions & {
|
|
|
154
154
|
setCardId: (cardId: string) => void;
|
|
155
155
|
setCountryLogo: (countryLogoId: string | null) => void;
|
|
156
156
|
setIsDevMode: (isDevMode: boolean) => void;
|
|
157
|
+
/**
|
|
158
|
+
* Switches between dev mode and standard mode with draft preservation.
|
|
159
|
+
* This is the unified mode switching action - all entry points should use this.
|
|
160
|
+
* @param targetMode - The mode to switch to
|
|
161
|
+
* @param options - Optional parameters for the switch
|
|
162
|
+
*/
|
|
163
|
+
switchEditorMode: (targetMode: 'dev' | 'standard', options?: {
|
|
164
|
+
/** SQL to set when switching to dev mode (e.g., from "View in SQL Editor") */
|
|
165
|
+
sqlToLoad?: string;
|
|
166
|
+
/** Whether to skip saving draft (for initial setup) */
|
|
167
|
+
skipDraftSave?: boolean;
|
|
168
|
+
}) => void;
|
|
169
|
+
/** Initialize mode drafts when opening editor (call from use-editor-setup) */
|
|
170
|
+
initializeModeDrafts: (card: TCard) => void;
|
|
171
|
+
/** Merge drafts back into card (call before switching cards to preserve inactive mode's data) */
|
|
172
|
+
mergeDraftsIntoCard: () => void;
|
|
173
|
+
/** Clear mode drafts (call when switching cards or closing editor) */
|
|
174
|
+
clearModeDrafts: () => void;
|
|
157
175
|
setOrderByColumns: (orderByColumns: OrderBy[]) => void;
|
|
158
176
|
addOrderByColumn: (orderByColumn: OrderBy) => void;
|
|
159
177
|
removeOrderByColumn: (orderByColumn: OrderBy) => void;
|
|
@@ -1204,6 +1222,8 @@ export declare type EditorStore = {
|
|
|
1204
1222
|
onSchemaChange?: (schemaName: string) => void;
|
|
1205
1223
|
onSave?: (card: TFrame) => void;
|
|
1206
1224
|
onClose?: () => void;
|
|
1225
|
+
/** Draft slots for mode switching - preserves work when toggling between dev/standard */
|
|
1226
|
+
modeDrafts: ModeDrafts;
|
|
1207
1227
|
};
|
|
1208
1228
|
|
|
1209
1229
|
export declare type EmailSettings = {
|
|
@@ -1782,6 +1802,22 @@ declare interface MinimalResourceForSharing {
|
|
|
1782
1802
|
title: string;
|
|
1783
1803
|
}
|
|
1784
1804
|
|
|
1805
|
+
/**
|
|
1806
|
+
* Draft slots for preserving work when switching between dev and standard modes.
|
|
1807
|
+
* When user switches FROM a mode, the current work is saved to that mode's draft slot.
|
|
1808
|
+
* When user switches TO a mode, the draft slot is restored (if available).
|
|
1809
|
+
*/
|
|
1810
|
+
export declare type ModeDrafts = {
|
|
1811
|
+
/** SQL draft - preserved when switching from dev mode to standard mode */
|
|
1812
|
+
sqlDraft: string | null;
|
|
1813
|
+
/** Python draft - preserved when switching from dev mode to standard mode (Python is tied to dev mode) */
|
|
1814
|
+
pythonDraft: string | null;
|
|
1815
|
+
/** Config draft - preserved when switching from standard mode to dev mode */
|
|
1816
|
+
configDraft: CardConfig | null;
|
|
1817
|
+
/** Tracks which mode the card was originally in when editor opened */
|
|
1818
|
+
originalMode: 'dev' | 'standard' | 'both' | 'none';
|
|
1819
|
+
};
|
|
1820
|
+
|
|
1785
1821
|
export declare type ModelItem = DropdownItem;
|
|
1786
1822
|
|
|
1787
1823
|
declare type NoneOptions = {};
|