@superblocksteam/library 2.0.3 → 2.0.4
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/{allPaths-CROgh4Wr.js → allPaths-B2t0JFsE.js} +2 -2
- package/dist/{allPaths-CROgh4Wr.js.map → allPaths-B2t0JFsE.js.map} +1 -1
- package/dist/{allPaths-Va1k8Bn4.js → allPaths-Ds8PViwH.js} +2 -2
- package/dist/{allPaths-Va1k8Bn4.js.map → allPaths-Ds8PViwH.js.map} +1 -1
- package/dist/{allPathsLoader-BJthmVkF.js → allPathsLoader-BwDYmyS1.js} +3 -3
- package/dist/{allPathsLoader-BJthmVkF.js.map → allPathsLoader-BwDYmyS1.js.map} +1 -1
- package/dist/{allPathsLoader-BdHvMdcd.js → allPathsLoader-l2CC2ZRN.js} +3 -3
- package/dist/{allPathsLoader-BdHvMdcd.js.map → allPathsLoader-l2CC2ZRN.js.map} +1 -1
- package/dist/{index-CJuRwhWz.js → index-DV7VPZc1.js} +471 -1115
- package/dist/{index-CJuRwhWz.js.map → index-DV7VPZc1.js.map} +1 -1
- package/dist/index.css +1 -172
- package/dist/index.js +149 -149
- package/dist/{splitPathsBySizeLoader-BFbna0L2.js → splitPathsBySizeLoader-BsO5Qoxp.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BFbna0L2.js.map → splitPathsBySizeLoader-BsO5Qoxp.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-3mcg6Jfx.js → splitPathsBySizeLoader-CTv2UfGL.js} +2 -2
- package/dist/{splitPathsBySizeLoader-3mcg6Jfx.js.map → splitPathsBySizeLoader-CTv2UfGL.js.map} +1 -1
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +23 -23
- package/dist-types/edit-mode/properties.d.ts +1 -1
- package/dist-types/internal-testing/components/modal.d.ts +1 -3
- package/dist-types/lib/internal-details/lib/devtools.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +1 -2
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +0 -1
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +0 -1
- package/dist-types/lib/internal-details/scope/global.d.ts +1 -2
- package/dist-types/lib/sb-trigger.d.ts +4 -0
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +3 -4
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +8 -4
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +8 -4
- package/dist-types/lib/triggers/registry.d.ts +14 -6
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/page/index.d.ts +0 -3
- package/dist-types/lib/user-facing/components/page/props.d.ts +0 -3
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +9 -12
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +9 -12
- package/dist-types/lib/user-facing/components/table/props.d.ts +9 -12
- package/dist-types/lib/user-facing/components/text/utils.d.ts +1 -2
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +2 -4
- package/dist-types/lib/user-facing/themes/constants.d.ts +2 -7
- package/package.json +4 -3
- package/dist/devtools-consolidated-Ck9KuyGf.js +0 -590
- package/dist/devtools-consolidated-Ck9KuyGf.js.map +0 -1
- package/dist-types/edit-mode/extended-clickable-area.d.ts +0 -8
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +0 -5
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +0 -4
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +0 -1
- package/dist-types/lib/internal-details/scope/types.d.ts +0 -57
- package/dist-types/lib/utils/children.d.ts +0 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Global as GlobalType } from "./types.js";
|
|
2
1
|
import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/library-shared/types";
|
|
3
2
|
export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
|
|
4
3
|
children: React.ReactNode;
|
|
@@ -6,6 +5,6 @@ export declare const GlobalScope: import("react").FC<import("react").JSX.Intrins
|
|
|
6
5
|
export declare const updateGlobalScope: (global: Record<string, unknown>) => void;
|
|
7
6
|
export type AppTheme = BaseTheme;
|
|
8
7
|
export declare const Theme: UserAccessibleTheme;
|
|
9
|
-
export declare const Global:
|
|
8
|
+
export declare const Global: any;
|
|
10
9
|
export declare const Embed: any;
|
|
11
10
|
export declare const Env: any;
|
|
@@ -2,6 +2,10 @@ import type { ValidStepDef } from "./triggers/registry.js";
|
|
|
2
2
|
import type { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
3
3
|
type ApplicationScope = "APP" | "PAGE";
|
|
4
4
|
type WidgetTypes = string;
|
|
5
|
+
export type SelectedStateVarProps = {
|
|
6
|
+
name: string;
|
|
7
|
+
scope?: ApplicationScope;
|
|
8
|
+
};
|
|
5
9
|
export type SelectedEventProps = {
|
|
6
10
|
id: string;
|
|
7
11
|
name: string;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
3
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
-
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
4
|
export interface ControlModalStep extends BaseStepDef {
|
|
6
5
|
type: typeof TriggerStepType.CONTROL_MODAL;
|
|
7
|
-
name
|
|
6
|
+
name: string;
|
|
8
7
|
direction: "open" | "close";
|
|
9
8
|
}
|
|
10
9
|
export declare const ControlModalTrigger: {
|
|
11
10
|
type: "controlModal";
|
|
12
11
|
execute(context: ExecutionContext, step: ControlModalStep): Promise<void>;
|
|
13
|
-
create(
|
|
12
|
+
create(name: string, direction: "open" | "close"): {
|
|
14
13
|
type: "controlModal";
|
|
15
|
-
name: string
|
|
14
|
+
name: string;
|
|
16
15
|
direction: "close" | "open";
|
|
17
16
|
};
|
|
18
17
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
2
|
+
import type { BaseStepDef, SelectedStateVarProps } from "../../../sb-trigger.js";
|
|
3
3
|
import type { ExecutionContext } from "../../base.js";
|
|
4
4
|
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
5
|
export interface ResetStateVarStep extends BaseStepDef {
|
|
6
6
|
type: typeof TriggerStepType.RESET_STATE_VAR;
|
|
7
|
-
state?:
|
|
7
|
+
state?: SelectedStateVarProps;
|
|
8
8
|
}
|
|
9
9
|
export declare const ResetStateVarTrigger: {
|
|
10
10
|
type: "resetStateVar";
|
|
11
|
-
execute(context: ExecutionContext,
|
|
11
|
+
execute(context: ExecutionContext, _step: ResetStateVarStep): Promise<void>;
|
|
12
12
|
create(stateVar?: WithBindingIdentifier): {
|
|
13
13
|
type: "resetStateVar";
|
|
14
|
-
state:
|
|
14
|
+
state: {
|
|
15
|
+
name: string;
|
|
16
|
+
scopeId: any;
|
|
17
|
+
scope: any;
|
|
18
|
+
} | undefined;
|
|
15
19
|
};
|
|
16
20
|
};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
|
+
import type { BaseStepDef, SelectedStateVarProps } from "../../../sb-trigger.js";
|
|
4
4
|
import type { ExecutionContext } from "../../base.js";
|
|
5
5
|
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
6
6
|
export interface SetStateVarStep extends BaseStepDef {
|
|
7
7
|
type: typeof TriggerStepType.SET_STATE_VAR;
|
|
8
|
-
state?:
|
|
8
|
+
state?: SelectedStateVarProps;
|
|
9
9
|
value?: ValueInputProp;
|
|
10
10
|
}
|
|
11
11
|
export declare const SetStateVarTrigger: {
|
|
12
12
|
type: "setStateVar";
|
|
13
|
-
execute(context: ExecutionContext,
|
|
13
|
+
execute(context: ExecutionContext, _step: SetStateVarStep): Promise<void>;
|
|
14
14
|
create(stateVar?: WithBindingIdentifier, value?: ValueInputProp): {
|
|
15
15
|
type: "setStateVar";
|
|
16
|
-
state:
|
|
16
|
+
state: {
|
|
17
|
+
name: string;
|
|
18
|
+
scopeId: any;
|
|
19
|
+
scope: any;
|
|
20
|
+
} | undefined;
|
|
17
21
|
value: ValueInputProp;
|
|
18
22
|
};
|
|
19
23
|
};
|
|
@@ -78,9 +78,9 @@ declare const EventRegistry: {
|
|
|
78
78
|
readonly controlModal: {
|
|
79
79
|
type: "controlModal";
|
|
80
80
|
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/control-modal.js").ControlModalStep): Promise<void>;
|
|
81
|
-
create(
|
|
81
|
+
create(name: string, direction: "open" | "close"): {
|
|
82
82
|
type: "controlModal";
|
|
83
|
-
name: string
|
|
83
|
+
name: string;
|
|
84
84
|
direction: "close" | "open";
|
|
85
85
|
};
|
|
86
86
|
};
|
|
@@ -115,10 +115,14 @@ declare const EventRegistry: {
|
|
|
115
115
|
};
|
|
116
116
|
readonly setStateVar: {
|
|
117
117
|
type: "setStateVar";
|
|
118
|
-
execute(context: import("./base.js").ExecutionContext,
|
|
118
|
+
execute(context: import("./base.js").ExecutionContext, _step: import("./implementations/state/set-state-var.js").SetStateVarStep): Promise<void>;
|
|
119
119
|
create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier, value?: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
|
|
120
120
|
type: "setStateVar";
|
|
121
|
-
state:
|
|
121
|
+
state: {
|
|
122
|
+
name: string;
|
|
123
|
+
scopeId: any;
|
|
124
|
+
scope: any;
|
|
125
|
+
} | undefined;
|
|
122
126
|
value: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
|
|
123
127
|
};
|
|
124
128
|
};
|
|
@@ -134,10 +138,14 @@ declare const EventRegistry: {
|
|
|
134
138
|
};
|
|
135
139
|
readonly resetStateVar: {
|
|
136
140
|
type: "resetStateVar";
|
|
137
|
-
execute(context: import("./base.js").ExecutionContext,
|
|
141
|
+
execute(context: import("./base.js").ExecutionContext, _step: import("./implementations/state/reset-state-var.js").ResetStateVarStep): Promise<void>;
|
|
138
142
|
create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier): {
|
|
139
143
|
type: "resetStateVar";
|
|
140
|
-
state:
|
|
144
|
+
state: {
|
|
145
|
+
name: string;
|
|
146
|
+
scopeId: any;
|
|
147
|
+
scope: any;
|
|
148
|
+
} | undefined;
|
|
141
149
|
};
|
|
142
150
|
};
|
|
143
151
|
readonly controlTimer: {
|
|
@@ -16,7 +16,7 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
16
16
|
valueTimezone?: undefined;
|
|
17
17
|
displayTimezone?: undefined;
|
|
18
18
|
})))) & {
|
|
19
|
-
|
|
19
|
+
twentyFourHourTime: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
20
20
|
}>;
|
|
21
21
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
22
22
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -18,7 +18,7 @@ export declare const propertiesDefinition: {
|
|
|
18
18
|
valueTimezone?: undefined;
|
|
19
19
|
displayTimezone?: undefined;
|
|
20
20
|
})))) & {
|
|
21
|
-
|
|
21
|
+
twentyFourHourTime: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
24
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -3,14 +3,13 @@ import React from "react";
|
|
|
3
3
|
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
4
4
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
5
5
|
import type { DimModes } from "@superblocksteam/library-shared";
|
|
6
|
-
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
7
6
|
export type GridChild = React.ReactElement<{
|
|
7
|
+
name: string;
|
|
8
8
|
marginTop?: Dim<"rows">;
|
|
9
9
|
marginLeft?: Dim<"columns">;
|
|
10
10
|
width?: Dim<"columns">;
|
|
11
11
|
height?: Dim<"rows" | "fit">;
|
|
12
12
|
constraintTop?: string | [string];
|
|
13
|
-
bind?: WithBindingIdentifier;
|
|
14
13
|
}>;
|
|
15
14
|
declare const _propertiesDefinition: {
|
|
16
15
|
general: Section<Record<string, Prop<any, any>> & {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export declare const SbPage: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
|
-
contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
|
-
columns: import("../../properties-panel/props-builder.js").Prop<string[], false>;
|
|
4
|
-
}>;
|
|
5
2
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
6
3
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
7
4
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
3
3
|
export declare const propertiesDefinition: {
|
|
4
|
-
contents: Section<Record<string, Prop<any, any>> & {
|
|
5
|
-
columns: Prop<string[], false>;
|
|
6
|
-
}>;
|
|
7
4
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
8
5
|
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
9
6
|
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -9,42 +9,36 @@ export declare const columnPanelConfig: {
|
|
|
9
9
|
columnType: Prop<ColumnType, true>;
|
|
10
10
|
}, "columnType"> & ({
|
|
11
11
|
displayedValue: Prop<string, false>;
|
|
12
|
-
isDerived: Prop<boolean, true>;
|
|
13
12
|
columnType: Prop<undefined, false>;
|
|
14
13
|
} | {
|
|
15
14
|
displayedValue: Prop<string, false>;
|
|
16
|
-
isDerived: Prop<boolean, true>;
|
|
17
15
|
columnType: Prop<"text", true>;
|
|
18
16
|
} | {
|
|
19
17
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
20
18
|
minimumFractionDigits: Prop<number, false>;
|
|
21
19
|
maximumFractionDigits: Prop<number, false>;
|
|
22
|
-
isDerived: Prop<boolean, true>;
|
|
23
20
|
columnType: Prop<"number", true>;
|
|
24
21
|
} | {
|
|
25
22
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
26
23
|
minimumFractionDigits: Prop<number, false>;
|
|
27
24
|
maximumFractionDigits: Prop<number, false>;
|
|
28
25
|
currency: Prop<string, true>;
|
|
29
|
-
isDerived: Prop<boolean, true>;
|
|
30
26
|
columnType: Prop<"currency", true>;
|
|
31
27
|
} | {
|
|
32
28
|
minimumFractionDigits: Prop<number, false>;
|
|
33
29
|
maximumFractionDigits: Prop<number, false>;
|
|
34
|
-
isDerived: Prop<boolean, true>;
|
|
35
30
|
columnType: Prop<"percentage", true>;
|
|
36
31
|
} | {
|
|
37
32
|
openImageUrl: Prop<boolean, true>;
|
|
38
|
-
isDerived: Prop<boolean, true>;
|
|
39
33
|
columnType: Prop<"image", true>;
|
|
40
34
|
} | {
|
|
41
|
-
isDerived: Prop<boolean, true>;
|
|
42
35
|
columnType: Prop<"video", true>;
|
|
43
36
|
} | {
|
|
44
|
-
manageTimezone: Prop<boolean, true>;
|
|
45
37
|
inputFormat: Prop<string, false>;
|
|
46
38
|
outputFormat: Prop<string, false>;
|
|
47
|
-
|
|
39
|
+
manageTimezone: Prop<boolean, false>;
|
|
40
|
+
valueTimezone: Prop<string, false>;
|
|
41
|
+
displayTimezone: Prop<string, false>;
|
|
48
42
|
columnType: Prop<"date", true>;
|
|
49
43
|
} | {
|
|
50
44
|
buttonLabel: Prop<string, true>;
|
|
@@ -54,14 +48,11 @@ export declare const columnPanelConfig: {
|
|
|
54
48
|
linkLabel: Prop<string, false>;
|
|
55
49
|
columnType: Prop<"link", true>;
|
|
56
50
|
} | {
|
|
57
|
-
isDerived: Prop<boolean, true>;
|
|
58
51
|
columnType: Prop<"boolean", true>;
|
|
59
52
|
} | {
|
|
60
|
-
isDerived: Prop<boolean, true>;
|
|
61
53
|
columnType: Prop<"tags", true>;
|
|
62
54
|
} | {
|
|
63
55
|
displayedValue: Prop<string, false>;
|
|
64
|
-
isDerived: Prop<boolean, true>;
|
|
65
56
|
columnType: Prop<"email", true>;
|
|
66
57
|
})))) & {
|
|
67
58
|
isVisible: Prop<boolean, true>;
|
|
@@ -77,6 +68,8 @@ export declare const columnPanelConfig: {
|
|
|
77
68
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
78
69
|
cellBackground: Prop<string, true>;
|
|
79
70
|
textWrap: Prop<boolean, false>;
|
|
71
|
+
cellIcon: Prop<string, false>;
|
|
72
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
80
73
|
columnType: Prop<undefined, false>;
|
|
81
74
|
} | {
|
|
82
75
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -84,6 +77,8 @@ export declare const columnPanelConfig: {
|
|
|
84
77
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
85
78
|
cellBackground: Prop<string, true>;
|
|
86
79
|
textWrap: Prop<boolean, false>;
|
|
80
|
+
cellIcon: Prop<string, false>;
|
|
81
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
87
82
|
columnType: Prop<"text", true>;
|
|
88
83
|
} | {
|
|
89
84
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -164,6 +159,8 @@ export declare const columnPanelConfig: {
|
|
|
164
159
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
165
160
|
cellBackground: Prop<string, true>;
|
|
166
161
|
textWrap: Prop<boolean, false>;
|
|
162
|
+
cellIcon: Prop<string, false>;
|
|
163
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
167
164
|
columnType: Prop<"email", true>;
|
|
168
165
|
})))) & {
|
|
169
166
|
isFrozen: Prop<boolean, false>;
|
|
@@ -10,7 +10,6 @@ export declare function getEditedRows(props: any): {
|
|
|
10
10
|
originalRows: any[];
|
|
11
11
|
};
|
|
12
12
|
export declare function getAllEdits(props: any): any;
|
|
13
|
-
export declare const isDerivedColumn: (tableData: any[], columnId: string) => boolean;
|
|
14
13
|
export declare function getFilteredTableData(props: any): any[];
|
|
15
14
|
export declare function getEditedRowIndices(props: any): {
|
|
16
15
|
deletedRows: {
|
|
@@ -9,42 +9,36 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
9
9
|
columnType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ColumnType, true>;
|
|
10
10
|
}, "columnType"> & ({
|
|
11
11
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
12
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
13
12
|
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
14
13
|
} | {
|
|
15
14
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
16
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
17
15
|
columnType: import("../../properties-panel/props-builder.js").Prop<"text", true>;
|
|
18
16
|
} | {
|
|
19
17
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
20
18
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
21
19
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
22
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
23
20
|
columnType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
24
21
|
} | {
|
|
25
22
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
26
23
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
27
24
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
28
25
|
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
29
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
30
26
|
columnType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
31
27
|
} | {
|
|
32
28
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
33
29
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
34
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
35
30
|
columnType: import("../../properties-panel/props-builder.js").Prop<"percentage", true>;
|
|
36
31
|
} | {
|
|
37
32
|
openImageUrl: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
38
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
39
33
|
columnType: import("../../properties-panel/props-builder.js").Prop<"image", true>;
|
|
40
34
|
} | {
|
|
41
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
42
35
|
columnType: import("../../properties-panel/props-builder.js").Prop<"video", true>;
|
|
43
36
|
} | {
|
|
44
|
-
manageTimezone: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
37
|
inputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
46
38
|
outputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
47
|
-
|
|
39
|
+
manageTimezone: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
40
|
+
valueTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
41
|
+
displayTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
48
42
|
columnType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
|
|
49
43
|
} | {
|
|
50
44
|
buttonLabel: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -54,14 +48,11 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
54
48
|
linkLabel: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
55
49
|
columnType: import("../../properties-panel/props-builder.js").Prop<"link", true>;
|
|
56
50
|
} | {
|
|
57
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
58
51
|
columnType: import("../../properties-panel/props-builder.js").Prop<"boolean", true>;
|
|
59
52
|
} | {
|
|
60
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
61
53
|
columnType: import("../../properties-panel/props-builder.js").Prop<"tags", true>;
|
|
62
54
|
} | {
|
|
63
55
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
64
|
-
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
65
56
|
columnType: import("../../properties-panel/props-builder.js").Prop<"email", true>;
|
|
66
57
|
})))) & {
|
|
67
58
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -77,6 +68,8 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
77
68
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
78
69
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
79
70
|
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
71
|
+
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
72
|
+
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
80
73
|
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
81
74
|
} | {
|
|
82
75
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
@@ -84,6 +77,8 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
84
77
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
85
78
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
86
79
|
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
80
|
+
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
81
|
+
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
87
82
|
columnType: import("../../properties-panel/props-builder.js").Prop<"text", true>;
|
|
88
83
|
} | {
|
|
89
84
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
@@ -164,6 +159,8 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
164
159
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
165
160
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
166
161
|
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
162
|
+
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
163
|
+
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
167
164
|
columnType: import("../../properties-panel/props-builder.js").Prop<"email", true>;
|
|
168
165
|
})))) & {
|
|
169
166
|
isFrozen: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
@@ -12,42 +12,36 @@ export declare const propertiesDefinition: {
|
|
|
12
12
|
columnType: Prop<import("./types.js").ColumnType, true>;
|
|
13
13
|
}, "columnType"> & ({
|
|
14
14
|
displayedValue: Prop<string, false>;
|
|
15
|
-
isDerived: Prop<boolean, true>;
|
|
16
15
|
columnType: Prop<undefined, false>;
|
|
17
16
|
} | {
|
|
18
17
|
displayedValue: Prop<string, false>;
|
|
19
|
-
isDerived: Prop<boolean, true>;
|
|
20
18
|
columnType: Prop<"text", true>;
|
|
21
19
|
} | {
|
|
22
20
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
23
21
|
minimumFractionDigits: Prop<number, false>;
|
|
24
22
|
maximumFractionDigits: Prop<number, false>;
|
|
25
|
-
isDerived: Prop<boolean, true>;
|
|
26
23
|
columnType: Prop<"number", true>;
|
|
27
24
|
} | {
|
|
28
25
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
29
26
|
minimumFractionDigits: Prop<number, false>;
|
|
30
27
|
maximumFractionDigits: Prop<number, false>;
|
|
31
28
|
currency: Prop<string, true>;
|
|
32
|
-
isDerived: Prop<boolean, true>;
|
|
33
29
|
columnType: Prop<"currency", true>;
|
|
34
30
|
} | {
|
|
35
31
|
minimumFractionDigits: Prop<number, false>;
|
|
36
32
|
maximumFractionDigits: Prop<number, false>;
|
|
37
|
-
isDerived: Prop<boolean, true>;
|
|
38
33
|
columnType: Prop<"percentage", true>;
|
|
39
34
|
} | {
|
|
40
35
|
openImageUrl: Prop<boolean, true>;
|
|
41
|
-
isDerived: Prop<boolean, true>;
|
|
42
36
|
columnType: Prop<"image", true>;
|
|
43
37
|
} | {
|
|
44
|
-
isDerived: Prop<boolean, true>;
|
|
45
38
|
columnType: Prop<"video", true>;
|
|
46
39
|
} | {
|
|
47
|
-
manageTimezone: Prop<boolean, true>;
|
|
48
40
|
inputFormat: Prop<string, false>;
|
|
49
41
|
outputFormat: Prop<string, false>;
|
|
50
|
-
|
|
42
|
+
manageTimezone: Prop<boolean, false>;
|
|
43
|
+
valueTimezone: Prop<string, false>;
|
|
44
|
+
displayTimezone: Prop<string, false>;
|
|
51
45
|
columnType: Prop<"date", true>;
|
|
52
46
|
} | {
|
|
53
47
|
buttonLabel: Prop<string, true>;
|
|
@@ -57,14 +51,11 @@ export declare const propertiesDefinition: {
|
|
|
57
51
|
linkLabel: Prop<string, false>;
|
|
58
52
|
columnType: Prop<"link", true>;
|
|
59
53
|
} | {
|
|
60
|
-
isDerived: Prop<boolean, true>;
|
|
61
54
|
columnType: Prop<"boolean", true>;
|
|
62
55
|
} | {
|
|
63
|
-
isDerived: Prop<boolean, true>;
|
|
64
56
|
columnType: Prop<"tags", true>;
|
|
65
57
|
} | {
|
|
66
58
|
displayedValue: Prop<string, false>;
|
|
67
|
-
isDerived: Prop<boolean, true>;
|
|
68
59
|
columnType: Prop<"email", true>;
|
|
69
60
|
})))) & {
|
|
70
61
|
isVisible: Prop<boolean, true>;
|
|
@@ -80,6 +71,8 @@ export declare const propertiesDefinition: {
|
|
|
80
71
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
81
72
|
cellBackground: Prop<string, true>;
|
|
82
73
|
textWrap: Prop<boolean, false>;
|
|
74
|
+
cellIcon: Prop<string, false>;
|
|
75
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
83
76
|
columnType: Prop<undefined, false>;
|
|
84
77
|
} | {
|
|
85
78
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -87,6 +80,8 @@ export declare const propertiesDefinition: {
|
|
|
87
80
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
88
81
|
cellBackground: Prop<string, true>;
|
|
89
82
|
textWrap: Prop<boolean, false>;
|
|
83
|
+
cellIcon: Prop<string, false>;
|
|
84
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
90
85
|
columnType: Prop<"text", true>;
|
|
91
86
|
} | {
|
|
92
87
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -167,6 +162,8 @@ export declare const propertiesDefinition: {
|
|
|
167
162
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
168
163
|
cellBackground: Prop<string, true>;
|
|
169
164
|
textWrap: Prop<boolean, false>;
|
|
165
|
+
cellIcon: Prop<string, false>;
|
|
166
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
170
167
|
columnType: Prop<"email", true>;
|
|
171
168
|
})))) & {
|
|
172
169
|
isFrozen: Prop<boolean, false>;
|
|
@@ -2,7 +2,6 @@ import type { propertiesDefinition } from "./props.js";
|
|
|
2
2
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
3
3
|
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
4
4
|
import type { TextStyleWithVariant, Typographies, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
-
import type { CSSProperties } from "react";
|
|
6
5
|
type TextWidgetProps = InternalProps<typeof propertiesDefinition>;
|
|
7
6
|
export declare const useText: ({ text, numberFormat, minDecimals, maxDecimals, textType, currency, dateInputFormat, dateOutputFormat, }: Pick<TextWidgetProps, "text" | "numberFormat" | "minDecimals" | "maxDecimals" | "textType" | "currency" | "dateInputFormat" | "dateOutputFormat">) => string | undefined;
|
|
8
7
|
export declare const useTextClassName: ({ textStyleVariant, isLoading, }: {
|
|
@@ -18,7 +17,7 @@ export declare const useIcon: ({ textStyle }: {
|
|
|
18
17
|
};
|
|
19
18
|
iconSize: number;
|
|
20
19
|
};
|
|
21
|
-
export declare const useStyle: (props: TextWidgetProps) =>
|
|
20
|
+
export declare const useStyle: (props: TextWidgetProps) => any;
|
|
22
21
|
export declare const useIconContainerStyles: ({ iconGap, horizontalAlign, }: {
|
|
23
22
|
iconGap: any;
|
|
24
23
|
horizontalAlign: HorizontalAlign;
|
|
@@ -25,8 +25,8 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
|
|
|
25
25
|
setQueryParams(params: Record<string, ValueInputProp<string>>, keepQueryParams?: boolean): this;
|
|
26
26
|
static controlSlideout(slideoutId: string, action: "open" | "close"): SbEventFlow;
|
|
27
27
|
controlSlideout(slideoutId: string, action: "open" | "close"): this;
|
|
28
|
-
static controlModal(
|
|
29
|
-
controlModal(
|
|
28
|
+
static controlModal(modalId: string, action: "open" | "close"): SbEventFlow;
|
|
29
|
+
controlModal(modalId: string, action: "open" | "close"): this;
|
|
30
30
|
static controlTimer(timerId: string, action: "start" | "stop" | "toggle"): SbEventFlow;
|
|
31
31
|
controlTimer(timerId: string, action: "start" | "stop" | "toggle"): this;
|
|
32
32
|
static runApis(apis: any[], onSuccess?: SbEventFlow, onError?: SbEventFlow): SbEventFlow;
|
|
@@ -47,8 +47,6 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
|
|
|
47
47
|
setProfile(profileId: string, profileAction: "set" | "unset"): this;
|
|
48
48
|
static triggerEvent(eventName: string, eventData: Record<string, string>): SbEventFlow;
|
|
49
49
|
triggerEvent(eventName: string, eventData: Record<string, string>): this;
|
|
50
|
-
static sequence(eventFlows: SbEventFlow[]): SbEventFlow;
|
|
51
|
-
sequence(eventFlows: SbEventFlow[]): this;
|
|
52
50
|
build(): StepDef[];
|
|
53
51
|
}
|
|
54
52
|
export { SbEventFlow };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { Border, PerCornerBorderRadius, PerSideBorder, Typographies, UserAccessibleTheme, UserDefinedPalette, UserDefinedTheme } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { Border, Padding, PerCornerBorderRadius, PerSideBorder, Typographies, UserAccessibleTheme, UserDefinedPalette, UserDefinedTheme } from "@superblocksteam/library-shared/types";
|
|
3
3
|
export declare const CURRENT_THEME_VERSION = 5;
|
|
4
4
|
export declare const LIGHT_APP_BG: "#F9FAFB";
|
|
5
5
|
export declare const DARK_APP_BG = "#131516";
|
|
@@ -58,6 +58,7 @@ export declare const BOX_SHADOWS: {
|
|
|
58
58
|
dark: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
export declare const BUTTON_PADDING: Padding;
|
|
61
62
|
export declare const INPUT_PADDING: {
|
|
62
63
|
left: Dim<"px">;
|
|
63
64
|
right: Dim<"px">;
|
|
@@ -70,12 +71,6 @@ export declare const DROPDOWN_PADDING: {
|
|
|
70
71
|
top: Dim<"px">;
|
|
71
72
|
bottom: Dim<"px">;
|
|
72
73
|
};
|
|
73
|
-
export declare const BUTTON_PADDING: {
|
|
74
|
-
left: Dim<"px">;
|
|
75
|
-
right: Dim<"px">;
|
|
76
|
-
top: Dim<"px">;
|
|
77
|
-
bottom: Dim<"px">;
|
|
78
|
-
};
|
|
79
74
|
export declare const KEY_VALUE_PADDING: {
|
|
80
75
|
left: Dim<"px">;
|
|
81
76
|
right: Dim<"px">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@blueprintjs/select": "5.3.11",
|
|
25
25
|
"@dnd-kit/core": "^6.3.1",
|
|
26
26
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
27
|
+
"@mobx-devtools/tools": "^0.0.4",
|
|
27
28
|
"@oddbird/css-anchor-positioning": "^0.4.0",
|
|
28
29
|
"@opentelemetry/api": "^1.9.0",
|
|
29
30
|
"@popperjs/core": "^2.11.7",
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
33
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
34
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
35
|
-
"@superblocksteam/library-shared": "2.0.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.4",
|
|
36
37
|
"@superblocksteam/shared": "0.9160.0",
|
|
37
38
|
"antd": "4.24.15",
|
|
38
39
|
"apca-w3": "^0.1.9",
|
|
@@ -58,7 +59,6 @@
|
|
|
58
59
|
"normalize.css": "8.0.1",
|
|
59
60
|
"react-dnd": "^16.0.1",
|
|
60
61
|
"react-hotkeys-hook": "3.3.1",
|
|
61
|
-
"react-json-view-lite": "^2.4.1",
|
|
62
62
|
"react-player": "2.3.1",
|
|
63
63
|
"react-router": "^7.0.2",
|
|
64
64
|
"react-svg": "^16.1.29",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@eslint/js": "^9.16.0",
|
|
77
|
+
"@mobx-devtools/tools": "^0.0.4",
|
|
77
78
|
"@testing-library/dom": "^10.4.0",
|
|
78
79
|
"@testing-library/react": "^16.0.1",
|
|
79
80
|
"@types/apca-w3": "^0.1.3",
|