@superblocksteam/library 2.0.55 → 2.0.56-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.
Files changed (37) hide show
  1. package/dist/{devtools-consolidated-BJ2tPWBk.js → devtools-consolidated-Dm9AFGZs.js} +2 -2
  2. package/dist/{devtools-consolidated-BJ2tPWBk.js.map → devtools-consolidated-Dm9AFGZs.js.map} +1 -1
  3. package/dist/{early-console-buffer-Bd5jqqBJ.js → early-console-buffer-SSPd-jq2.js} +1 -1
  4. package/dist/{early-console-buffer-Bd5jqqBJ.js.map → early-console-buffer-SSPd-jq2.js.map} +1 -1
  5. package/dist/jsx-dev-runtime/index.d.ts +14 -0
  6. package/dist/jsx-dev-runtime/index.d.ts.map +1 -0
  7. package/dist/jsx-dev-runtime/index.js +329 -0
  8. package/dist/jsx-dev-runtime/index.js.map +1 -0
  9. package/dist/jsx-runtime/index.d.ts +7 -0
  10. package/dist/jsx-runtime/index.d.ts.map +1 -0
  11. package/dist/jsx-runtime/index.js +10 -0
  12. package/dist/jsx-runtime/index.js.map +1 -0
  13. package/dist/{index.css → lib/index.css} +17 -11
  14. package/dist/lib/index.css.map +1 -0
  15. package/dist/lib/index.d.ts +786 -0
  16. package/dist/lib/index.d.ts.map +1 -0
  17. package/dist/lib/index.js +4991 -0
  18. package/dist/lib/index.js.map +1 -0
  19. package/dist/{logs-BA3qqo2m.js → logs-CgCPS9qr.js} +2 -2
  20. package/dist/{logs-BA3qqo2m.js.map → logs-CgCPS9qr.js.map} +1 -1
  21. package/dist/{utils-xmrGF_mk.js → utils-AzBGeVXo.js} +1 -1
  22. package/dist/{utils-xmrGF_mk.js.map → utils-AzBGeVXo.js.map} +1 -1
  23. package/dist/utils-DR35eYvX.js +3 -0
  24. package/dist/widget-wrapper-naming-ChBggw6W.js +3049 -0
  25. package/dist/widget-wrapper-naming-ChBggw6W.js.map +1 -0
  26. package/package.json +27 -14
  27. package/dist/build-manifest-BNJahcH4.js +0 -6
  28. package/dist/build-manifest-BNJahcH4.js.map +0 -1
  29. package/dist/index.css.map +0 -1
  30. package/dist/index.d.ts +0 -1339
  31. package/dist/index.d.ts.map +0 -1
  32. package/dist/index.js +0 -11471
  33. package/dist/index.js.map +0 -1
  34. package/dist/root-store-Cc3dO2jP.js +0 -4721
  35. package/dist/root-store-Cc3dO2jP.js.map +0 -1
  36. package/dist/root-store-xviorlO5.js +0 -4
  37. package/dist/utils-BVE4VhSk.js +0 -3
package/package.json CHANGED
@@ -1,23 +1,33 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.55",
3
+ "version": "2.0.56-next.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.js"
7
+ "types": "./dist/lib/index.d.ts",
8
+ "import": "./dist/lib/index.js"
9
+ },
10
+ "./jsx-runtime": {
11
+ "types": "./dist/jsx-runtime/index.d.ts",
12
+ "import": "./dist/jsx-runtime/index.js"
13
+ },
14
+ "./jsx-dev-runtime": {
15
+ "types": "./dist/jsx-dev-runtime/index.d.ts",
16
+ "import": "./dist/jsx-dev-runtime/index.js"
9
17
  },
10
18
  "./package.json": "./package.json",
11
- "./index.css": "./dist/index.css"
19
+ "./index.css": "./dist/lib/index.css"
12
20
  },
13
21
  "files": [
14
22
  "dist"
15
23
  ],
16
24
  "peerDependencies": {
17
- "react": ">= 18",
18
- "react-dom": ">= 18"
25
+ "react": ">=18",
26
+ "react-dom": ">=18",
27
+ "react-router": "7.x"
19
28
  },
20
29
  "dependencies": {
30
+ "@dagrejs/graphlib": "2.2.4",
21
31
  "@dnd-kit/core": "^6.3.1",
22
32
  "@dnd-kit/modifiers": "^9.0.0",
23
33
  "@oddbird/css-anchor-positioning": "^0.4.0",
@@ -38,8 +48,8 @@
38
48
  "@react-hook/resize-observer": "1.2.6",
39
49
  "@superblocksteam/fast-deep-equal": "3.1.4",
40
50
  "@superblocksteam/iso-currency": "2.0.0",
41
- "@superblocksteam/library-shared": "2.0.55",
42
- "@superblocksteam/shared": "0.9503.0",
51
+ "@superblocksteam/library-shared": "2.0.56-next.0",
52
+ "@superblocksteam/shared": "0.9543.7",
43
53
  "apca-w3": "^0.1.9",
44
54
  "clsx": "^2.1.1",
45
55
  "copy-to-clipboard": "3.3.3",
@@ -60,18 +70,19 @@
60
70
  "moment": "2.29.4",
61
71
  "moment-timezone": "0.5.46",
62
72
  "normalize.css": "8.0.1",
73
+ "postcss": "^8.5.6",
63
74
  "posthog-js": "^1.258.3",
64
75
  "react-dnd": "^16.0.1",
65
76
  "react-hotkeys-hook": "3.3.1",
66
77
  "react-json-view-lite": "^2.4.1",
67
78
  "react-player": "2.3.1",
68
- "react-router": "^7.0.2",
69
79
  "react-svg": "^16.1.29",
70
80
  "rfdc": "^1.3.0",
71
81
  "shallowequal": "1.1.0",
72
82
  "sonner": "^2.0.7",
73
83
  "styled-components": "5.3.11",
74
84
  "stylis": "^4.2.0",
85
+ "tailwindcss": "^4.1.13",
75
86
  "tinycolor2": "^1.6.0",
76
87
  "use-debounce": "^10.0.4",
77
88
  "yaml": "^2.7.0"
@@ -84,13 +95,15 @@
84
95
  "@types/apca-w3": "^0.1.3",
85
96
  "@types/downloadjs": "1.4.3",
86
97
  "@types/lodash": "^4.17.15",
87
- "@types/node": "^20",
98
+ "@types/node": "^20.17.5",
88
99
  "@types/react": "^18.3.10",
89
100
  "@types/react-dom": "^18.3.0",
90
101
  "@types/shallowequal": "^1.1.5",
91
102
  "@types/styled-components": "5.1.4",
92
103
  "@types/stylis": "^4.2.0",
93
104
  "@types/tinycolor2": "^1.4.6",
105
+ "@vitejs/plugin-react": "^5.0.4",
106
+ "@vitest/browser": "^3.2.4",
94
107
  "@vitest/eslint-plugin": "^1.3.16",
95
108
  "@vitest/ui": "^3.2.0",
96
109
  "eslint": "^9.34.0",
@@ -104,16 +117,16 @@
104
117
  "globals": "^15.13.0",
105
118
  "jest-junit": "^16.0.0",
106
119
  "jsdom": "^26.1.0",
120
+ "playwright": "^1.56.0",
107
121
  "prettier": "^3.5.3",
108
- "react": "^18.3.1",
109
- "react-dom": "^18.3.1",
110
- "react-router": "^7.2.0",
122
+ "react-router": "^7.9.4",
111
123
  "ts-morph": "^25.0.0",
112
124
  "tsdown": "^0.15.0",
113
125
  "tsx": "^4.19.2",
114
126
  "typescript": "^5.5.3",
115
127
  "typescript-eslint": "^8.41.0",
116
- "vitest": "^3.2.0"
128
+ "vitest": "^3.2.4",
129
+ "vitest-browser-react": "^1.0.1"
117
130
  },
118
131
  "publishConfig": {
119
132
  "registry": "https://registry.npmjs.org"
@@ -1,6 +0,0 @@
1
- //#region src/lib/user-facing/build-manifest.js
2
- var build_manifest_default = {};
3
-
4
- //#endregion
5
- export { build_manifest_default as default };
6
- //# sourceMappingURL=build-manifest-BNJahcH4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build-manifest-BNJahcH4.js","names":[],"sources":["../src/lib/user-facing/build-manifest.js"],"sourcesContent":["// This is a placeholder file that is replaced with the actual build manifest during the build process\n// This stub will be used primarily in tests and for the dev server\nexport default {};\n"],"mappings":";AAEA,6BAAe,EAAE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.css","names":[],"sources":["../src/edit-mode/edit-style.css"],"sourcesContent":[":root {\n /* Edit mode z-index values */\n --sb-edit-z-index-high: 1010;\n --sb-edit-z-index-mid: 1002;\n --sb-edit-z-index-base: 1001;\n}\n\n/* A class that sets the child anchor-name to a variable that is set in react */\n/* First level is the suspense provider, second level is the component */\n.sb-anchor-name {\n anchor-name: var(--anchor-name);\n}\n\n.sb-draggable-wrapper {\n &[data-is-dragged=\"true\"] {\n visibility: hidden;\n }\n}\n\n/**\n* Used to drag *new* components into the canvas.\n* It's a full height/width layer above the editor canvas.\n* Triggers the draggable preview box for the new component to be dropped.\n**/\n.sb-new-component-dragging-layer {\n position: fixed;\n width: 100vw;\n height: 100vh;\n z-index: var(--sb-edit-z-index-high);\n}\n\n.sb-interaction-layer-wrapper {\n z-index: var(--sb-edit-z-index-high);\n height: 0;\n width: 0;\n top: 0;\n left: 0;\n}\n\n.sb-edit-drag-preview {\n background: rgba(224, 0, 0, 0.16);\n border: 1px solid red;\n box-shadow: inset 0 0 0 3px rgba(224, 0, 0, 0.16);\n width: 100%;\n height: 100%;\n pointer-events: none;\n\n &[data-is-valid-drop=\"true\"] {\n border: 1px solid #0087e0;\n background: rgba(0, 135, 224, 0.16);\n box-shadow: inset 0 0 0 3px rgba(0, 135, 224, 0.16);\n }\n}\n\n.sb-edit-selection-rect {\n position: absolute;\n border: 2px solid #0087e0;\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n\n &.sb-edit-focus {\n border: 1px solid #0087e0;\n }\n\n &.sb-edit-error {\n border: 1px solid #f45252;\n background: rgba(252, 190, 190, 0.3);\n }\n\n &.sb-edit-target {\n border: 2px solid #c2b9dd;\n }\n\n &.sb-edit-target-mode.sb-edit-focus {\n border: 1px solid #c2b9dd;\n background: rgba(124, 79, 248, 0.04);\n }\n}\n\n/* ai target mode */\n\n.sb-target-mode-border {\n position: absolute;\n top: anchor(top);\n left: anchor(left);\n right: anchor(right);\n bottom: anchor(bottom);\n pointer-events: none;\n}\n\n.sb-target-mode-border-top-right,\n.sb-target-mode-border-top-left,\n.sb-target-mode-border-bottom-right,\n.sb-target-mode-border-bottom-left {\n width: 12px;\n height: 12px;\n position: absolute;\n box-sizing: border-box;\n}\n\n.sb-target-mode-border-top-right {\n top: 0;\n left: 0;\n border-top: 2px solid rgba(124, 79, 248, 1);\n border-left: 2px solid rgba(124, 79, 248, 1);\n}\n\n.sb-target-mode-border-top-left {\n top: 0;\n right: 0;\n border-top: 2px solid rgba(124, 79, 248, 1);\n border-right: 2px solid rgba(124, 79, 248, 1);\n}\n\n.sb-target-mode-border-bottom-right {\n bottom: 0;\n right: 0;\n border-bottom: 2px solid rgba(124, 79, 248, 1);\n border-right: 2px solid rgba(124, 79, 248, 1);\n}\n\n.sb-target-mode-border-bottom-left {\n bottom: 0;\n left: 0;\n border-bottom: 2px solid rgba(124, 79, 248, 1);\n border-left: 2px solid rgba(124, 79, 248, 1);\n}\n\n/*\n Handles for resizing the selection rect.\n These are the little circles that appear when you select a widget\n Used in interaction-rect-handles.tsx\n*/\n\n.resize-handle {\n position: absolute;\n width: 12px;\n height: 12px;\n background-color: white;\n border: 1px solid #0087e0;\n border-radius: 50%;\n z-index: var(--sb-edit-z-index-high);\n pointer-events: auto;\n\n .bp5-popover-target {\n width: 100%;\n height: 100%;\n }\n\n &.top-left-resize-handle {\n top: -6px;\n left: -6px;\n cursor: nw-resize;\n }\n\n &.top-right-resize-handle {\n top: -6px;\n right: -6px;\n cursor: ne-resize;\n }\n\n &.bottom-right-resize-handle {\n bottom: -6px;\n right: -6px;\n cursor: se-resize;\n }\n\n &.bottom-left-resize-handle {\n bottom: -6px;\n left: -6px;\n cursor: sw-resize;\n }\n\n &.top-resize-handle {\n top: -6px;\n left: 0;\n right: 0;\n height: 12px;\n width: auto;\n cursor: ns-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n\n &.right-resize-handle {\n top: 0;\n right: -6px;\n bottom: 0;\n width: 12px;\n height: auto;\n cursor: ew-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n\n &.bottom-resize-handle {\n bottom: -6px;\n left: 0;\n right: 0;\n height: 12px;\n width: auto;\n cursor: ns-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n\n &.left-resize-handle {\n top: 0;\n left: -6px;\n bottom: 0;\n width: 12px;\n height: auto;\n cursor: ew-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n}\n\n.resize-handle-edge::after {\n position: absolute;\n content: \"\";\n border-radius: 3px;\n border: 1px solid rgb(0, 135, 224);\n background: rgb(255, 255, 255);\n box-sizing: border-box;\n transition: height 0.2s ease-in-out;\n}\n\n.left-resize-handle-edge::after {\n width: 6px;\n height: 16px;\n top: calc(50% - 8px);\n left: calc(50% - 2px);\n}\n\n.right-resize-handle-edge::after {\n width: 6px;\n height: 16px;\n top: calc(50% - 8px);\n right: calc(50% - 2px);\n}\n\n.top-resize-handle-edge::after {\n width: 16px;\n height: 6px;\n left: calc(50% - 8px);\n top: calc(50% - 2px);\n}\n\n.bottom-resize-handle-edge::after {\n width: 16px;\n height: 6px;\n left: calc(50% - 8px);\n bottom: calc(50% - 2px);\n}\n\n.bp5-unstyled-popover > .bp5-popover-content {\n padding: 0 !important;\n background: none !important;\n}\n\n.sb-edit-interaction-rect-actions {\n position: absolute;\n /* This will flip the name pill when anchored */\n position-try-fallbacks: flip-block, --actions-below-header;\n}\n\n.sb-edit-selection-name-pill,\n.sb-edit-add-to-chat-button {\n cursor: pointer;\n display: block;\n font-size: 11px;\n color: white;\n padding: 2px 4px;\n white-space: nowrap;\n background-color: #0087e0;\n border-radius: 3px;\n overflow: hidden;\n text-overflow: ellipsis;\n z-index: var(--sb-edit-z-index-mid);\n border: none;\n outline: none;\n\n &:hover {\n box-shadow: 0px 3px 8px -1px #0087e0;\n }\n\n &:active,\n &:focus {\n background-color: #0373be;\n }\n}\n\n.sb-edit-actions-target-mode .sb-edit-selection-name-pill,\n.sb-edit-actions-target-mode .sb-edit-add-to-chat-button {\n background-color: rgba(100, 58, 223, 1);\n\n &:hover {\n box-shadow: 0px 3px 8px -1px rgba(100, 58, 223, 1);\n }\n\n &:active,\n &:focus {\n background-color: rgb(77, 50, 160);\n }\n}\n\n.sb-edit-add-to-chat-button {\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 12px;\n height: 12px;\n }\n}\n\n@position-try --actions-below-header {\n margin-bottom: -24px;\n margin-right: 3px;\n}\n\n.sb-reparent-rect {\n position: absolute;\n border: 1px solid #0087e0;\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n animation: radial-gradient-animation 2s infinite;\n}\n\n@keyframes radial-gradient-animation {\n 0% {\n box-shadow: inset 0 0 0 0 rgba(0, 135, 224, 0.5);\n }\n 100% {\n box-shadow: inset 0 0 20px 20px rgba(0, 135, 224, 0.1);\n }\n}\n\n.sb-edit-drop-placeholder {\n position: absolute;\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n\n &[data-is-active=\"true\"] {\n border: 1px solid #0087e0;\n box-shadow: inset 0 0 0 3px rgba(0, 135, 224, 0.16);\n }\n\n &[data-is-valid-drop=\"false\"] {\n border-color: #f45252;\n }\n}\n\n.sb-edit-drop-target-outline {\n position: absolute;\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n border: 1px dashed #0087e0;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n\n &[data-invalid-target=\"true\"] {\n border-color: #f45252;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA"}