@superblocksteam/library 2.0.4 → 2.0.6-next.0
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-B2t0JFsE.js → allPaths-BtaGk7Hl.js} +2 -2
- package/dist/{allPaths-B2t0JFsE.js.map → allPaths-BtaGk7Hl.js.map} +1 -1
- package/dist/{allPaths-Ds8PViwH.js → allPaths-COzTzraD.js} +2 -2
- package/dist/{allPaths-Ds8PViwH.js.map → allPaths-COzTzraD.js.map} +1 -1
- package/dist/{allPathsLoader-BwDYmyS1.js → allPathsLoader-CkqgEhyC.js} +3 -3
- package/dist/{allPathsLoader-BwDYmyS1.js.map → allPathsLoader-CkqgEhyC.js.map} +1 -1
- package/dist/{allPathsLoader-l2CC2ZRN.js → allPathsLoader-CoNAJZeJ.js} +3 -3
- package/dist/{allPathsLoader-l2CC2ZRN.js.map → allPathsLoader-CoNAJZeJ.js.map} +1 -1
- package/dist/devtools-consolidated-CziXG7En.js +590 -0
- package/dist/devtools-consolidated-CziXG7En.js.map +1 -0
- package/dist/{index-DV7VPZc1.js → index-C4PHemM8.js} +1169 -473
- package/dist/{index-DV7VPZc1.js.map → index-C4PHemM8.js.map} +1 -1
- package/dist/index.css +172 -1
- package/dist/index.js +149 -149
- package/dist/{splitPathsBySizeLoader-BsO5Qoxp.js → splitPathsBySizeLoader-BkYpVgsW.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BsO5Qoxp.js.map → splitPathsBySizeLoader-BkYpVgsW.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-CTv2UfGL.js → splitPathsBySizeLoader-DzWbuSYz.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CTv2UfGL.js.map → splitPathsBySizeLoader-DzWbuSYz.js.map} +1 -1
- package/dist-types/edit-mode/extended-clickable-area.d.ts +8 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +12 -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/edit-mode/vite.d.ts +5 -0
- package/dist-types/internal-testing/components/modal.d.ts +3 -1
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +3 -1
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +1 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +2 -1
- package/dist-types/lib/internal-details/scope/types.d.ts +57 -0
- package/dist-types/lib/sb-trigger.d.ts +0 -4
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +4 -3
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +4 -8
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +4 -8
- package/dist-types/lib/triggers/registry.d.ts +6 -14
- 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 +2 -1
- package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +12 -9
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +12 -9
- package/dist-types/lib/user-facing/components/table/props.d.ts +12 -9
- package/dist-types/lib/user-facing/components/text/utils.d.ts +2 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -2
- package/dist-types/lib/user-facing/themes/constants.d.ts +7 -2
- package/dist-types/lib/utils/children.d.ts +3 -0
- package/package.json +3 -4
- package/dist-types/lib/internal-details/lib/devtools.d.ts +0 -1
|
@@ -2,6 +2,7 @@ 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";
|
|
5
6
|
type TextWidgetProps = InternalProps<typeof propertiesDefinition>;
|
|
6
7
|
export declare const useText: ({ text, numberFormat, minDecimals, maxDecimals, textType, currency, dateInputFormat, dateOutputFormat, }: Pick<TextWidgetProps, "text" | "numberFormat" | "minDecimals" | "maxDecimals" | "textType" | "currency" | "dateInputFormat" | "dateOutputFormat">) => string | undefined;
|
|
7
8
|
export declare const useTextClassName: ({ textStyleVariant, isLoading, }: {
|
|
@@ -17,7 +18,7 @@ export declare const useIcon: ({ textStyle }: {
|
|
|
17
18
|
};
|
|
18
19
|
iconSize: number;
|
|
19
20
|
};
|
|
20
|
-
export declare const useStyle: (props: TextWidgetProps) =>
|
|
21
|
+
export declare const useStyle: (props: TextWidgetProps) => CSSProperties;
|
|
21
22
|
export declare const useIconContainerStyles: ({ iconGap, horizontalAlign, }: {
|
|
22
23
|
iconGap: any;
|
|
23
24
|
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(modal: WithBindingIdentifier, action: "open" | "close"): SbEventFlow;
|
|
29
|
+
controlModal(modal: WithBindingIdentifier, 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,6 +47,8 @@ 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;
|
|
50
52
|
build(): StepDef[];
|
|
51
53
|
}
|
|
52
54
|
export { SbEventFlow };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { Border,
|
|
2
|
+
import type { Border, 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,7 +58,6 @@ export declare const BOX_SHADOWS: {
|
|
|
58
58
|
dark: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
export declare const BUTTON_PADDING: Padding;
|
|
62
61
|
export declare const INPUT_PADDING: {
|
|
63
62
|
left: Dim<"px">;
|
|
64
63
|
right: Dim<"px">;
|
|
@@ -71,6 +70,12 @@ export declare const DROPDOWN_PADDING: {
|
|
|
71
70
|
top: Dim<"px">;
|
|
72
71
|
bottom: Dim<"px">;
|
|
73
72
|
};
|
|
73
|
+
export declare const BUTTON_PADDING: {
|
|
74
|
+
left: Dim<"px">;
|
|
75
|
+
right: Dim<"px">;
|
|
76
|
+
top: Dim<"px">;
|
|
77
|
+
bottom: Dim<"px">;
|
|
78
|
+
};
|
|
74
79
|
export declare const KEY_VALUE_PADDING: {
|
|
75
80
|
left: Dim<"px">;
|
|
76
81
|
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.6-next.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -24,7 +24,6 @@
|
|
|
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",
|
|
28
27
|
"@oddbird/css-anchor-positioning": "^0.4.0",
|
|
29
28
|
"@opentelemetry/api": "^1.9.0",
|
|
30
29
|
"@popperjs/core": "^2.11.7",
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
33
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
34
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.
|
|
35
|
+
"@superblocksteam/library-shared": "2.0.6-next.0",
|
|
37
36
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
37
|
"antd": "4.24.15",
|
|
39
38
|
"apca-w3": "^0.1.9",
|
|
@@ -59,6 +58,7 @@
|
|
|
59
58
|
"normalize.css": "8.0.1",
|
|
60
59
|
"react-dnd": "^16.0.1",
|
|
61
60
|
"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,7 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@eslint/js": "^9.16.0",
|
|
77
|
-
"@mobx-devtools/tools": "^0.0.4",
|
|
78
77
|
"@testing-library/dom": "^10.4.0",
|
|
79
78
|
"@testing-library/react": "^16.0.1",
|
|
80
79
|
"@types/apca-w3": "^0.1.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function registerStores(stores: Record<string, any>): void;
|