react-semaphor 0.1.330 → 0.1.333
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/chunks/{braces-DSaa_4Oc.js → braces-4vZnfI1o.js} +1 -1
- package/dist/chunks/{braces-CG8viaD2.js → braces-BxHNQOYk.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-JRmNJptJ.js → calendar-preferences-dialog-Cxj1zuet.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-DD_qAthL.js → calendar-preferences-dialog-mY0L4X0S.js} +1 -1
- package/dist/chunks/{chevrons-up-down-CBa0uh0X.js → chevrons-up-down-CIlNtntj.js} +1 -1
- package/dist/chunks/{chevrons-up-down-ChDNqVP7.js → chevrons-up-down-oh0-U32g.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BfyNkd8i.js → dashboard-briefing-launcher-BQXscUvQ.js} +4 -4
- package/dist/chunks/{dashboard-briefing-launcher-BKdJFwH5.js → dashboard-briefing-launcher-ih3HDp3Q.js} +1 -1
- package/dist/chunks/{dashboard-controls-C0xm1QMR.js → dashboard-controls-Dje4oqXJ.js} +1 -1
- package/dist/chunks/{dashboard-controls-0pZDLvFL.js → dashboard-controls-UN6XyI0w.js} +6 -6
- package/dist/chunks/{dashboard-json-DsruhRPD.js → dashboard-json-BB2frqlS.js} +2 -2
- package/dist/chunks/{dashboard-json-BW5OVZ6m.js → dashboard-json-CahEbpAw.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-g5SZZahJ.js → edit-dashboard-visual-2xDuubCd.js} +4307 -4310
- package/dist/chunks/edit-dashboard-visual-B9QNMn1k.js +178 -0
- package/dist/chunks/index-DMilTFOG.js +1425 -0
- package/dist/chunks/{index-BmKr-K7J.js → index-zqZLz4DH.js} +71942 -69846
- package/dist/chunks/{palette-D0YmAqBS.js → palette-B78b9bL_.js} +1 -1
- package/dist/chunks/{palette-DQgq3edH.js → palette-BzcTKXSo.js} +1 -1
- package/dist/chunks/{resource-management-panel-CIfBh46E.js → resource-management-panel-BiDjNUl9.js} +1 -1
- package/dist/chunks/{resource-management-panel-Cj19pw9M.js → resource-management-panel-CR87UhdL.js} +3 -3
- package/dist/chunks/{switch-De31SR3q.js → switch-DionLwdI.js} +2846 -2616
- package/dist/chunks/switch-aSDkK5PS.js +173 -0
- package/dist/chunks/{use-create-flow-overlay-state-IcHP0l39.js → use-create-flow-overlay-state-BYZywwZQ.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-BTQiKRD1.js → use-create-flow-overlay-state-UWfoDonf.js} +1 -1
- package/dist/chunks/{use-visual-utils-XF-AqV8o.js → use-visual-utils-Ce_aCega.js} +1 -1
- package/dist/chunks/{use-visual-utils-DQ5zGYD2.js → use-visual-utils-rqBoCLlu.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/data-app-builder-browser-runtime/index.cjs +1 -1
- package/dist/data-app-builder-browser-runtime/index.js +4 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard-authoring.d.ts +59 -0
- package/dist/types/dashboard.d.ts +59 -0
- package/dist/types/main.d.ts +59 -0
- package/dist/types/shared.d.ts +59 -0
- package/dist/types/surfboard.d.ts +59 -0
- package/dist/types/types.d.ts +59 -0
- package/package.json +3 -1
- package/dist/chunks/_commonjsHelpers-BVfed4GL.js +0 -28
- package/dist/chunks/_commonjsHelpers-DwTZ_eVU.js +0 -1
- package/dist/chunks/edit-dashboard-visual-DQyJ7SSv.js +0 -178
- package/dist/chunks/index-1JWDPCun.js +0 -1935
- package/dist/chunks/index-BdjXTQt4.js +0 -1444
- package/dist/chunks/index-C1l78BIx.js +0 -3247
- package/dist/chunks/lib-Ce3zosXY.js +0 -38
- package/dist/chunks/lib-DFvr9fM4.js +0 -5500
- package/dist/chunks/switch-BvTzw2AW.js +0 -173
- package/dist/chunks/typescript-Cmizj1hi.js +0 -446
- package/dist/chunks/typescript-H1EwZsOb.js +0 -159820
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-DMilTFOG.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-mY0L4X0S.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;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e } from "../chunks/index-
|
|
1
|
+
import { a as e } from "../chunks/index-zqZLz4DH.js";
|
|
2
2
|
import { C, E } from "../chunks/common-types-4bjoIgvm.js";
|
|
3
|
-
import { C as s } from "../chunks/calendar-preferences-dialog-
|
|
3
|
+
import { C as s } from "../chunks/calendar-preferences-dialog-Cxj1zuet.js";
|
|
4
4
|
export {
|
|
5
5
|
C as CONTROL_CARD_DEFAULT_VALUE,
|
|
6
6
|
s as CalendarPreferencesDialog,
|
|
@@ -2375,7 +2375,21 @@ declare type TCardPreferences = {
|
|
|
2375
2375
|
customVisualCode?: string;
|
|
2376
2376
|
textVisualOptions?: {
|
|
2377
2377
|
isDynamicText?: boolean;
|
|
2378
|
+
/**
|
|
2379
|
+
* Legacy structured content with dashboard-input variable refs.
|
|
2380
|
+
* Authored via the plain-text ContentEditableText editor. New cards
|
|
2381
|
+
* use `richContent` instead; this stays for backward compatibility
|
|
2382
|
+
* and is never set on a card that has `richContent`.
|
|
2383
|
+
*/
|
|
2378
2384
|
content?: DashboardInputTextContent;
|
|
2385
|
+
/**
|
|
2386
|
+
* Editor-agnostic rich content authored via the Lexical-based
|
|
2387
|
+
* editor. When this is present, the card renders via the rich-
|
|
2388
|
+
* content path on both the dashboard surface and inside the visual
|
|
2389
|
+
* editor. When absent (and `description` is set), the card falls
|
|
2390
|
+
* back to the legacy HTML-string render path.
|
|
2391
|
+
*/
|
|
2392
|
+
richContent?: TextCardRichContent;
|
|
2379
2393
|
};
|
|
2380
2394
|
mapVisualOptions?: {
|
|
2381
2395
|
topoJsonUrl?: string;
|
|
@@ -2635,6 +2649,51 @@ declare type TDynamicVisualIntent = {
|
|
|
2635
2649
|
includesKpis: boolean;
|
|
2636
2650
|
};
|
|
2637
2651
|
|
|
2652
|
+
declare type TextCardInlineFormat = {
|
|
2653
|
+
bold?: boolean;
|
|
2654
|
+
italic?: boolean;
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
declare type TextCardRichBlock = {
|
|
2658
|
+
type: 'paragraph';
|
|
2659
|
+
children: TextCardRichInline[];
|
|
2660
|
+
} | {
|
|
2661
|
+
type: 'heading';
|
|
2662
|
+
level: 1 | 2;
|
|
2663
|
+
children: TextCardRichInline[];
|
|
2664
|
+
} | {
|
|
2665
|
+
type: 'list';
|
|
2666
|
+
style: 'bulleted' | 'numbered';
|
|
2667
|
+
items: TextCardRichInline[][];
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
declare type TextCardRichContent = {
|
|
2671
|
+
version: 1;
|
|
2672
|
+
blocks: TextCardRichBlock[];
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
declare type TextCardRichInline = {
|
|
2676
|
+
type: 'text';
|
|
2677
|
+
value: string;
|
|
2678
|
+
format?: TextCardInlineFormat;
|
|
2679
|
+
} | {
|
|
2680
|
+
type: 'variable';
|
|
2681
|
+
ref: DashboardInputVariableRef;
|
|
2682
|
+
format?: TextCardInlineFormat;
|
|
2683
|
+
} | {
|
|
2684
|
+
type: 'link';
|
|
2685
|
+
url: string;
|
|
2686
|
+
children: Array<{
|
|
2687
|
+
type: 'text';
|
|
2688
|
+
value: string;
|
|
2689
|
+
format?: TextCardInlineFormat;
|
|
2690
|
+
} | {
|
|
2691
|
+
type: 'variable';
|
|
2692
|
+
ref: DashboardInputVariableRef;
|
|
2693
|
+
format?: TextCardInlineFormat;
|
|
2694
|
+
}>;
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2638
2697
|
declare type TFilter = {
|
|
2639
2698
|
kind?: FilterKind;
|
|
2640
2699
|
type?: 'single' | 'multiple';
|
|
@@ -2334,7 +2334,21 @@ export declare type TCardPreferences = {
|
|
|
2334
2334
|
customVisualCode?: string;
|
|
2335
2335
|
textVisualOptions?: {
|
|
2336
2336
|
isDynamicText?: boolean;
|
|
2337
|
+
/**
|
|
2338
|
+
* Legacy structured content with dashboard-input variable refs.
|
|
2339
|
+
* Authored via the plain-text ContentEditableText editor. New cards
|
|
2340
|
+
* use `richContent` instead; this stays for backward compatibility
|
|
2341
|
+
* and is never set on a card that has `richContent`.
|
|
2342
|
+
*/
|
|
2337
2343
|
content?: DashboardInputTextContent;
|
|
2344
|
+
/**
|
|
2345
|
+
* Editor-agnostic rich content authored via the Lexical-based
|
|
2346
|
+
* editor. When this is present, the card renders via the rich-
|
|
2347
|
+
* content path on both the dashboard surface and inside the visual
|
|
2348
|
+
* editor. When absent (and `description` is set), the card falls
|
|
2349
|
+
* back to the legacy HTML-string render path.
|
|
2350
|
+
*/
|
|
2351
|
+
richContent?: TextCardRichContent;
|
|
2338
2352
|
};
|
|
2339
2353
|
mapVisualOptions?: {
|
|
2340
2354
|
topoJsonUrl?: string;
|
|
@@ -2625,6 +2639,51 @@ export declare type TEvent = {
|
|
|
2625
2639
|
message: any;
|
|
2626
2640
|
};
|
|
2627
2641
|
|
|
2642
|
+
export declare type TextCardInlineFormat = {
|
|
2643
|
+
bold?: boolean;
|
|
2644
|
+
italic?: boolean;
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
export declare type TextCardRichBlock = {
|
|
2648
|
+
type: 'paragraph';
|
|
2649
|
+
children: TextCardRichInline[];
|
|
2650
|
+
} | {
|
|
2651
|
+
type: 'heading';
|
|
2652
|
+
level: 1 | 2;
|
|
2653
|
+
children: TextCardRichInline[];
|
|
2654
|
+
} | {
|
|
2655
|
+
type: 'list';
|
|
2656
|
+
style: 'bulleted' | 'numbered';
|
|
2657
|
+
items: TextCardRichInline[][];
|
|
2658
|
+
};
|
|
2659
|
+
|
|
2660
|
+
export declare type TextCardRichContent = {
|
|
2661
|
+
version: 1;
|
|
2662
|
+
blocks: TextCardRichBlock[];
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
export declare type TextCardRichInline = {
|
|
2666
|
+
type: 'text';
|
|
2667
|
+
value: string;
|
|
2668
|
+
format?: TextCardInlineFormat;
|
|
2669
|
+
} | {
|
|
2670
|
+
type: 'variable';
|
|
2671
|
+
ref: DashboardInputVariableRef;
|
|
2672
|
+
format?: TextCardInlineFormat;
|
|
2673
|
+
} | {
|
|
2674
|
+
type: 'link';
|
|
2675
|
+
url: string;
|
|
2676
|
+
children: Array<{
|
|
2677
|
+
type: 'text';
|
|
2678
|
+
value: string;
|
|
2679
|
+
format?: TextCardInlineFormat;
|
|
2680
|
+
} | {
|
|
2681
|
+
type: 'variable';
|
|
2682
|
+
ref: DashboardInputVariableRef;
|
|
2683
|
+
format?: TextCardInlineFormat;
|
|
2684
|
+
}>;
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2628
2687
|
declare type TFilter = {
|
|
2629
2688
|
kind?: FilterKind;
|
|
2630
2689
|
type?: 'single' | 'multiple';
|
package/dist/types/main.d.ts
CHANGED
|
@@ -5126,7 +5126,21 @@ export declare type TCardPreferences = {
|
|
|
5126
5126
|
customVisualCode?: string;
|
|
5127
5127
|
textVisualOptions?: {
|
|
5128
5128
|
isDynamicText?: boolean;
|
|
5129
|
+
/**
|
|
5130
|
+
* Legacy structured content with dashboard-input variable refs.
|
|
5131
|
+
* Authored via the plain-text ContentEditableText editor. New cards
|
|
5132
|
+
* use `richContent` instead; this stays for backward compatibility
|
|
5133
|
+
* and is never set on a card that has `richContent`.
|
|
5134
|
+
*/
|
|
5129
5135
|
content?: DashboardInputTextContent;
|
|
5136
|
+
/**
|
|
5137
|
+
* Editor-agnostic rich content authored via the Lexical-based
|
|
5138
|
+
* editor. When this is present, the card renders via the rich-
|
|
5139
|
+
* content path on both the dashboard surface and inside the visual
|
|
5140
|
+
* editor. When absent (and `description` is set), the card falls
|
|
5141
|
+
* back to the legacy HTML-string render path.
|
|
5142
|
+
*/
|
|
5143
|
+
richContent?: TextCardRichContent;
|
|
5130
5144
|
};
|
|
5131
5145
|
mapVisualOptions?: {
|
|
5132
5146
|
topoJsonUrl?: string;
|
|
@@ -5419,6 +5433,51 @@ export declare type TEvent = {
|
|
|
5419
5433
|
message: any;
|
|
5420
5434
|
};
|
|
5421
5435
|
|
|
5436
|
+
export declare type TextCardInlineFormat = {
|
|
5437
|
+
bold?: boolean;
|
|
5438
|
+
italic?: boolean;
|
|
5439
|
+
};
|
|
5440
|
+
|
|
5441
|
+
export declare type TextCardRichBlock = {
|
|
5442
|
+
type: 'paragraph';
|
|
5443
|
+
children: TextCardRichInline[];
|
|
5444
|
+
} | {
|
|
5445
|
+
type: 'heading';
|
|
5446
|
+
level: 1 | 2;
|
|
5447
|
+
children: TextCardRichInline[];
|
|
5448
|
+
} | {
|
|
5449
|
+
type: 'list';
|
|
5450
|
+
style: 'bulleted' | 'numbered';
|
|
5451
|
+
items: TextCardRichInline[][];
|
|
5452
|
+
};
|
|
5453
|
+
|
|
5454
|
+
export declare type TextCardRichContent = {
|
|
5455
|
+
version: 1;
|
|
5456
|
+
blocks: TextCardRichBlock[];
|
|
5457
|
+
};
|
|
5458
|
+
|
|
5459
|
+
export declare type TextCardRichInline = {
|
|
5460
|
+
type: 'text';
|
|
5461
|
+
value: string;
|
|
5462
|
+
format?: TextCardInlineFormat;
|
|
5463
|
+
} | {
|
|
5464
|
+
type: 'variable';
|
|
5465
|
+
ref: DashboardInputVariableRef;
|
|
5466
|
+
format?: TextCardInlineFormat;
|
|
5467
|
+
} | {
|
|
5468
|
+
type: 'link';
|
|
5469
|
+
url: string;
|
|
5470
|
+
children: Array<{
|
|
5471
|
+
type: 'text';
|
|
5472
|
+
value: string;
|
|
5473
|
+
format?: TextCardInlineFormat;
|
|
5474
|
+
} | {
|
|
5475
|
+
type: 'variable';
|
|
5476
|
+
ref: DashboardInputVariableRef;
|
|
5477
|
+
format?: TextCardInlineFormat;
|
|
5478
|
+
}>;
|
|
5479
|
+
};
|
|
5480
|
+
|
|
5422
5481
|
export declare type TFilter = {
|
|
5423
5482
|
kind?: FilterKind;
|
|
5424
5483
|
type?: 'single' | 'multiple';
|
package/dist/types/shared.d.ts
CHANGED
|
@@ -1930,7 +1930,21 @@ declare type TCardPreferences = {
|
|
|
1930
1930
|
customVisualCode?: string;
|
|
1931
1931
|
textVisualOptions?: {
|
|
1932
1932
|
isDynamicText?: boolean;
|
|
1933
|
+
/**
|
|
1934
|
+
* Legacy structured content with dashboard-input variable refs.
|
|
1935
|
+
* Authored via the plain-text ContentEditableText editor. New cards
|
|
1936
|
+
* use `richContent` instead; this stays for backward compatibility
|
|
1937
|
+
* and is never set on a card that has `richContent`.
|
|
1938
|
+
*/
|
|
1933
1939
|
content?: DashboardInputTextContent;
|
|
1940
|
+
/**
|
|
1941
|
+
* Editor-agnostic rich content authored via the Lexical-based
|
|
1942
|
+
* editor. When this is present, the card renders via the rich-
|
|
1943
|
+
* content path on both the dashboard surface and inside the visual
|
|
1944
|
+
* editor. When absent (and `description` is set), the card falls
|
|
1945
|
+
* back to the legacy HTML-string render path.
|
|
1946
|
+
*/
|
|
1947
|
+
richContent?: TextCardRichContent;
|
|
1934
1948
|
};
|
|
1935
1949
|
mapVisualOptions?: {
|
|
1936
1950
|
topoJsonUrl?: string;
|
|
@@ -2190,6 +2204,51 @@ declare type TDynamicVisualIntent = {
|
|
|
2190
2204
|
includesKpis: boolean;
|
|
2191
2205
|
};
|
|
2192
2206
|
|
|
2207
|
+
declare type TextCardInlineFormat = {
|
|
2208
|
+
bold?: boolean;
|
|
2209
|
+
italic?: boolean;
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
declare type TextCardRichBlock = {
|
|
2213
|
+
type: 'paragraph';
|
|
2214
|
+
children: TextCardRichInline[];
|
|
2215
|
+
} | {
|
|
2216
|
+
type: 'heading';
|
|
2217
|
+
level: 1 | 2;
|
|
2218
|
+
children: TextCardRichInline[];
|
|
2219
|
+
} | {
|
|
2220
|
+
type: 'list';
|
|
2221
|
+
style: 'bulleted' | 'numbered';
|
|
2222
|
+
items: TextCardRichInline[][];
|
|
2223
|
+
};
|
|
2224
|
+
|
|
2225
|
+
declare type TextCardRichContent = {
|
|
2226
|
+
version: 1;
|
|
2227
|
+
blocks: TextCardRichBlock[];
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
declare type TextCardRichInline = {
|
|
2231
|
+
type: 'text';
|
|
2232
|
+
value: string;
|
|
2233
|
+
format?: TextCardInlineFormat;
|
|
2234
|
+
} | {
|
|
2235
|
+
type: 'variable';
|
|
2236
|
+
ref: DashboardInputVariableRef;
|
|
2237
|
+
format?: TextCardInlineFormat;
|
|
2238
|
+
} | {
|
|
2239
|
+
type: 'link';
|
|
2240
|
+
url: string;
|
|
2241
|
+
children: Array<{
|
|
2242
|
+
type: 'text';
|
|
2243
|
+
value: string;
|
|
2244
|
+
format?: TextCardInlineFormat;
|
|
2245
|
+
} | {
|
|
2246
|
+
type: 'variable';
|
|
2247
|
+
ref: DashboardInputVariableRef;
|
|
2248
|
+
format?: TextCardInlineFormat;
|
|
2249
|
+
}>;
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2193
2252
|
declare type TFilter = {
|
|
2194
2253
|
kind?: FilterKind;
|
|
2195
2254
|
type?: 'single' | 'multiple';
|
|
@@ -2346,7 +2346,21 @@ export declare type TCardPreferences = {
|
|
|
2346
2346
|
customVisualCode?: string;
|
|
2347
2347
|
textVisualOptions?: {
|
|
2348
2348
|
isDynamicText?: boolean;
|
|
2349
|
+
/**
|
|
2350
|
+
* Legacy structured content with dashboard-input variable refs.
|
|
2351
|
+
* Authored via the plain-text ContentEditableText editor. New cards
|
|
2352
|
+
* use `richContent` instead; this stays for backward compatibility
|
|
2353
|
+
* and is never set on a card that has `richContent`.
|
|
2354
|
+
*/
|
|
2349
2355
|
content?: DashboardInputTextContent;
|
|
2356
|
+
/**
|
|
2357
|
+
* Editor-agnostic rich content authored via the Lexical-based
|
|
2358
|
+
* editor. When this is present, the card renders via the rich-
|
|
2359
|
+
* content path on both the dashboard surface and inside the visual
|
|
2360
|
+
* editor. When absent (and `description` is set), the card falls
|
|
2361
|
+
* back to the legacy HTML-string render path.
|
|
2362
|
+
*/
|
|
2363
|
+
richContent?: TextCardRichContent;
|
|
2350
2364
|
};
|
|
2351
2365
|
mapVisualOptions?: {
|
|
2352
2366
|
topoJsonUrl?: string;
|
|
@@ -2637,6 +2651,51 @@ export declare type TEvent = {
|
|
|
2637
2651
|
message: any;
|
|
2638
2652
|
};
|
|
2639
2653
|
|
|
2654
|
+
export declare type TextCardInlineFormat = {
|
|
2655
|
+
bold?: boolean;
|
|
2656
|
+
italic?: boolean;
|
|
2657
|
+
};
|
|
2658
|
+
|
|
2659
|
+
export declare type TextCardRichBlock = {
|
|
2660
|
+
type: 'paragraph';
|
|
2661
|
+
children: TextCardRichInline[];
|
|
2662
|
+
} | {
|
|
2663
|
+
type: 'heading';
|
|
2664
|
+
level: 1 | 2;
|
|
2665
|
+
children: TextCardRichInline[];
|
|
2666
|
+
} | {
|
|
2667
|
+
type: 'list';
|
|
2668
|
+
style: 'bulleted' | 'numbered';
|
|
2669
|
+
items: TextCardRichInline[][];
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
export declare type TextCardRichContent = {
|
|
2673
|
+
version: 1;
|
|
2674
|
+
blocks: TextCardRichBlock[];
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2677
|
+
export declare type TextCardRichInline = {
|
|
2678
|
+
type: 'text';
|
|
2679
|
+
value: string;
|
|
2680
|
+
format?: TextCardInlineFormat;
|
|
2681
|
+
} | {
|
|
2682
|
+
type: 'variable';
|
|
2683
|
+
ref: DashboardInputVariableRef;
|
|
2684
|
+
format?: TextCardInlineFormat;
|
|
2685
|
+
} | {
|
|
2686
|
+
type: 'link';
|
|
2687
|
+
url: string;
|
|
2688
|
+
children: Array<{
|
|
2689
|
+
type: 'text';
|
|
2690
|
+
value: string;
|
|
2691
|
+
format?: TextCardInlineFormat;
|
|
2692
|
+
} | {
|
|
2693
|
+
type: 'variable';
|
|
2694
|
+
ref: DashboardInputVariableRef;
|
|
2695
|
+
format?: TextCardInlineFormat;
|
|
2696
|
+
}>;
|
|
2697
|
+
};
|
|
2698
|
+
|
|
2640
2699
|
declare type TFilter = {
|
|
2641
2700
|
kind?: FilterKind;
|
|
2642
2701
|
type?: 'single' | 'multiple';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3130,7 +3130,21 @@ export declare type TCardPreferences = {
|
|
|
3130
3130
|
customVisualCode?: string;
|
|
3131
3131
|
textVisualOptions?: {
|
|
3132
3132
|
isDynamicText?: boolean;
|
|
3133
|
+
/**
|
|
3134
|
+
* Legacy structured content with dashboard-input variable refs.
|
|
3135
|
+
* Authored via the plain-text ContentEditableText editor. New cards
|
|
3136
|
+
* use `richContent` instead; this stays for backward compatibility
|
|
3137
|
+
* and is never set on a card that has `richContent`.
|
|
3138
|
+
*/
|
|
3133
3139
|
content?: DashboardInputTextContent;
|
|
3140
|
+
/**
|
|
3141
|
+
* Editor-agnostic rich content authored via the Lexical-based
|
|
3142
|
+
* editor. When this is present, the card renders via the rich-
|
|
3143
|
+
* content path on both the dashboard surface and inside the visual
|
|
3144
|
+
* editor. When absent (and `description` is set), the card falls
|
|
3145
|
+
* back to the legacy HTML-string render path.
|
|
3146
|
+
*/
|
|
3147
|
+
richContent?: TextCardRichContent;
|
|
3134
3148
|
};
|
|
3135
3149
|
mapVisualOptions?: {
|
|
3136
3150
|
topoJsonUrl?: string;
|
|
@@ -3421,6 +3435,51 @@ export declare type TEvent = {
|
|
|
3421
3435
|
message: any;
|
|
3422
3436
|
};
|
|
3423
3437
|
|
|
3438
|
+
export declare type TextCardInlineFormat = {
|
|
3439
|
+
bold?: boolean;
|
|
3440
|
+
italic?: boolean;
|
|
3441
|
+
};
|
|
3442
|
+
|
|
3443
|
+
export declare type TextCardRichBlock = {
|
|
3444
|
+
type: 'paragraph';
|
|
3445
|
+
children: TextCardRichInline[];
|
|
3446
|
+
} | {
|
|
3447
|
+
type: 'heading';
|
|
3448
|
+
level: 1 | 2;
|
|
3449
|
+
children: TextCardRichInline[];
|
|
3450
|
+
} | {
|
|
3451
|
+
type: 'list';
|
|
3452
|
+
style: 'bulleted' | 'numbered';
|
|
3453
|
+
items: TextCardRichInline[][];
|
|
3454
|
+
};
|
|
3455
|
+
|
|
3456
|
+
export declare type TextCardRichContent = {
|
|
3457
|
+
version: 1;
|
|
3458
|
+
blocks: TextCardRichBlock[];
|
|
3459
|
+
};
|
|
3460
|
+
|
|
3461
|
+
export declare type TextCardRichInline = {
|
|
3462
|
+
type: 'text';
|
|
3463
|
+
value: string;
|
|
3464
|
+
format?: TextCardInlineFormat;
|
|
3465
|
+
} | {
|
|
3466
|
+
type: 'variable';
|
|
3467
|
+
ref: DashboardInputVariableRef;
|
|
3468
|
+
format?: TextCardInlineFormat;
|
|
3469
|
+
} | {
|
|
3470
|
+
type: 'link';
|
|
3471
|
+
url: string;
|
|
3472
|
+
children: Array<{
|
|
3473
|
+
type: 'text';
|
|
3474
|
+
value: string;
|
|
3475
|
+
format?: TextCardInlineFormat;
|
|
3476
|
+
} | {
|
|
3477
|
+
type: 'variable';
|
|
3478
|
+
ref: DashboardInputVariableRef;
|
|
3479
|
+
format?: TextCardInlineFormat;
|
|
3480
|
+
}>;
|
|
3481
|
+
};
|
|
3482
|
+
|
|
3424
3483
|
export declare type TFilter = {
|
|
3425
3484
|
kind?: FilterKind;
|
|
3426
3485
|
type?: 'single' | 'multiple';
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"email": "support@semaphor.cloud"
|
|
6
6
|
},
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.333",
|
|
9
9
|
"description": "Fully interactive and customizable dashboards for your apps.",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"react",
|
|
@@ -130,6 +130,8 @@
|
|
|
130
130
|
"@dnd-kit/utilities": "^3.2.2",
|
|
131
131
|
"@headlessui/react": "^2.2.0",
|
|
132
132
|
"@lexical/history": "^0.43.0",
|
|
133
|
+
"@lexical/link": "^0.43.0",
|
|
134
|
+
"@lexical/list": "^0.43.0",
|
|
133
135
|
"@lexical/react": "^0.43.0",
|
|
134
136
|
"@lexical/rich-text": "^0.43.0",
|
|
135
137
|
"@lexical/selection": "^0.43.0",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function f(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
function l(e) {
|
|
6
|
-
if (e.__esModule) return e;
|
|
7
|
-
var r = e.default;
|
|
8
|
-
if (typeof r == "function") {
|
|
9
|
-
var t = function o() {
|
|
10
|
-
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
t.prototype = r.prototype;
|
|
13
|
-
} else t = {};
|
|
14
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
15
|
-
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
16
|
-
Object.defineProperty(t, o, n.get ? n : {
|
|
17
|
-
enumerable: !0,
|
|
18
|
-
get: function() {
|
|
19
|
-
return e[o];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}), t;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
f as a,
|
|
26
|
-
u as c,
|
|
27
|
-
l as g
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}exports.commonjsGlobal=u;exports.getAugmentedNamespace=l;exports.getDefaultExportFromCjs=f;
|