@webiny/app-website-builder 6.4.0-beta.2 → 6.4.0-beta.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/BaseEditor/components/DragPreview/DragCursorWrapper.d.ts +7 -0
- package/BaseEditor/components/DragPreview/DragCursorWrapper.js +17 -0
- package/BaseEditor/components/DragPreview/DragCursorWrapper.js.map +1 -0
- package/BaseEditor/components/DragPreview/DragPreview.js +37 -0
- package/BaseEditor/components/DragPreview/DragPreview.js.map +1 -0
- package/BaseEditor/components/DragPreview/index.d.ts +1 -0
- package/BaseEditor/components/DragPreview/index.js +1 -0
- package/BaseEditor/components/DragPreview/useDragPosition.d.ts +4 -0
- package/BaseEditor/components/DragPreview/useDragPosition.js +26 -0
- package/BaseEditor/components/DragPreview/useDragPosition.js.map +1 -0
- package/BaseEditor/components/Editor.js +1 -2
- package/BaseEditor/components/Editor.js.map +1 -1
- package/BaseEditor/config/EditorConfig.d.ts +4 -2
- package/BaseEditor/config/Layout.js +1 -1
- package/BaseEditor/config/Layout.js.map +1 -1
- package/BaseEditor/config/Sidebar/Layout.js +8 -14
- package/BaseEditor/config/Sidebar/Layout.js.map +1 -1
- package/BaseEditor/config/Sidebar/Sidebar.d.ts +1 -1
- package/BaseEditor/config/Sidebar/Sidebar.js +1 -1
- package/BaseEditor/config/Sidebar/Sidebar.js.map +1 -1
- package/BaseEditor/config/Sidebar/Tab.d.ts +2 -2
- package/BaseEditor/config/Sidebar/Tab.js +3 -3
- package/BaseEditor/config/Sidebar/Tab.js.map +1 -1
- package/BaseEditor/config/Toolbar/Layout.js +8 -14
- package/BaseEditor/config/Toolbar/Layout.js.map +1 -1
- package/BaseEditor/config/Toolbar/Tab.d.ts +10 -0
- package/BaseEditor/config/Toolbar/Tab.js +13 -0
- package/BaseEditor/config/Toolbar/Tab.js.map +1 -0
- package/BaseEditor/config/Toolbar/Toolbar.d.ts +1 -0
- package/BaseEditor/config/Toolbar/Toolbar.js +4 -2
- package/BaseEditor/config/Toolbar/Toolbar.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/AddressBar/AddressBar.js +1 -4
- package/BaseEditor/defaultConfig/Content/AddressBar/AddressBar.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/AddressBar/BreakpointSelector.js +20 -23
- package/BaseEditor/defaultConfig/Content/AddressBar/BreakpointSelector.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/AddressBar/PreviewDomain.js +1 -1
- package/BaseEditor/defaultConfig/Content/AddressBar/PreviewDomain.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Breadcrumbs/styles.js +2 -2
- package/BaseEditor/defaultConfig/Content/Breadcrumbs/styles.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/ContentPreviewConfig.js +6 -1
- package/BaseEditor/defaultConfig/Content/ContentPreviewConfig.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/DropZoneManager.d.ts +3 -0
- package/BaseEditor/defaultConfig/Content/Preview/DropZoneManager.js +6 -0
- package/BaseEditor/defaultConfig/Content/Preview/DropZoneManager.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/Iframe.js +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/Iframe.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/Overlays/ElementOverlay.js +10 -6
- package/BaseEditor/defaultConfig/Content/Preview/Overlays/ElementOverlay.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/Preview.js +2 -1
- package/BaseEditor/defaultConfig/Content/Preview/Preview.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/PreviewContainer.js +12 -2
- package/BaseEditor/defaultConfig/Content/Preview/PreviewContainer.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/PreviewEvents.js +1 -2
- package/BaseEditor/defaultConfig/Content/Preview/PreviewEvents.js.map +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/useResponsiveContainer.js +1 -1
- package/BaseEditor/defaultConfig/Content/Preview/useResponsiveContainer.js.map +1 -1
- package/BaseEditor/defaultConfig/DefaultEditorConfig.js +3 -5
- package/BaseEditor/defaultConfig/DefaultEditorConfig.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/ElementPreview.d.ts +7 -0
- package/BaseEditor/defaultConfig/Sidebar/ElementPreview.js +23 -0
- package/BaseEditor/defaultConfig/Sidebar/ElementPreview.js.map +1 -0
- package/BaseEditor/defaultConfig/Sidebar/ElementSettings/ElementInputs.js +12 -3
- package/BaseEditor/defaultConfig/Sidebar/ElementSettings/ElementInputs.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/ElementSettings/ElementSettingsGroup.js +6 -0
- package/BaseEditor/defaultConfig/Sidebar/ElementSettings/ElementSettingsGroup.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/ElementSettings/useBindingsForElement.d.ts +5 -5
- package/BaseEditor/defaultConfig/Sidebar/InfoMessage.js +2 -2
- package/BaseEditor/defaultConfig/Sidebar/InfoMessage.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/InheritanceLabel.js +2 -0
- package/BaseEditor/defaultConfig/Sidebar/InheritanceLabel.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/SidebarEmptyState.d.ts +4 -0
- package/BaseEditor/defaultConfig/Sidebar/SidebarEmptyState.js +12 -0
- package/BaseEditor/defaultConfig/Sidebar/SidebarEmptyState.js.map +1 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundColor.js +8 -5
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundColor.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundImage.js +11 -9
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundImage.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundPosition.js +7 -4
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundPosition.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundScaling.js +7 -4
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background/BackgroundScaling.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background.js +8 -4
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Background.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/Border.js +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/Border.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderColor.js +7 -4
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderColor.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderRadius.js +11 -14
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderRadius.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderStyle.js +7 -4
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderStyle.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderWidth.js +11 -14
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border/BorderWidth.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border.js +6 -9
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Border.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Layout/Alignment.js +8 -5
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Layout/Alignment.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Layout/LengthWithUnitInput.js +9 -8
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Layout/LengthWithUnitInput.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Layout.js +8 -4
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Layout.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/LinkedEditing.js +1 -5
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/LinkedEditing.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/Margin.js +10 -21
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/Margin.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/MarginPadding.js +2 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/MarginPadding.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/Padding.js +13 -16
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding/Padding.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding.js +6 -9
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/MarginPadding.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Visibility/Visibility.js +21 -7
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/Visibility/Visibility.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/VisibilityGroup.js +4 -3
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/Groups/VisibilityGroup.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/SidebarRow.d.ts +8 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/SidebarRow.js +24 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/SidebarRow.js.map +1 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleAccordion.d.ts +8 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleAccordion.js +11 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleAccordion.js.map +1 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleAccordionItem.d.ts +9 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleAccordionItem.js +45 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleAccordionItem.js.map +1 -0
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleProperties.js +8 -3
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleProperties.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleSettingsGroup.js +8 -7
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StyleSettingsGroup.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StylesStore.js +2 -2
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/StylesStore.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/UnitValuePicker.js +3 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/UnitValuePicker.js.map +1 -1
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/ValueSelector.js +9 -8
- package/BaseEditor/defaultConfig/Sidebar/StyleSettings/ValueSelector.js.map +1 -1
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GridItem.d.ts +5 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GridItem.js +24 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GridItem.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GroupItemsGrid.d.ts +7 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GroupItemsGrid.js +18 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GroupItemsGrid.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GroupItemsList.d.ts +7 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GroupItemsList.js +18 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/GroupItemsList.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/InsertElements.js +72 -36
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/InsertElements.js.map +1 -1
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/InsertElementsTab.js +6 -7
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/InsertElementsTab.js.map +1 -1
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/ListItem.d.ts +5 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/ListItem.js +23 -0
- package/BaseEditor/defaultConfig/Toolbar/InsertElements/ListItem.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/ElementActions.d.ts +4 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/ElementActions.js +29 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/ElementActions.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/LayoutIllustration.d.ts +2 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/LayoutIllustration.js +94 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/LayoutIllustration.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/Navigator.js +12 -111
- package/BaseEditor/defaultConfig/Toolbar/Navigator/Navigator.js.map +1 -1
- package/BaseEditor/defaultConfig/Toolbar/Navigator/NavigatorEmptyState.d.ts +2 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/NavigatorEmptyState.js +20 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/NavigatorEmptyState.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/NavigatorTab.js +6 -7
- package/BaseEditor/defaultConfig/Toolbar/Navigator/NavigatorTab.js.map +1 -1
- package/BaseEditor/defaultConfig/Toolbar/Navigator/Placeholder.d.ts +7 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/Placeholder.js +16 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/Placeholder.js.map +1 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/navigatorUtils.d.ts +32 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/navigatorUtils.js +70 -0
- package/BaseEditor/defaultConfig/Toolbar/Navigator/navigatorUtils.js.map +1 -0
- package/BaseEditor/hooks/useCreateElement.d.ts +1 -1
- package/BaseEditor/hooks/useCreateElement.js +1 -3
- package/BaseEditor/hooks/useCreateElement.js.map +1 -1
- package/ecommerce/EcommerceIntegration.js +1 -1
- package/ecommerce/EcommerceIntegration.js.map +1 -1
- package/ecommerce/components/ResourcePage.d.ts +1 -1
- package/ecommerce/components/ResourcePage.js +1 -1
- package/ecommerce/components/ResourcePage.js.map +1 -1
- package/exports/admin/website-builder/lexical.d.ts +18 -17
- package/exports/admin/website-builder/lexical.js +3 -2
- package/features/ecommerce/apis/useEcommerceApi.js +3 -1
- package/features/ecommerce/apis/useEcommerceApi.js.map +1 -1
- package/inputRenderers/BooleanInput.js +15 -4
- package/inputRenderers/BooleanInput.js.map +1 -1
- package/inputRenderers/FileInput.js.map +1 -1
- package/inputRenderers/LexicalInput/DefaultLexicalConfig.js +4 -1
- package/inputRenderers/LexicalInput/DefaultLexicalConfig.js.map +1 -1
- package/inputRenderers/LexicalInput/ExpandEditorAction.js +4 -1
- package/inputRenderers/LexicalInput/ExpandEditorAction.js.map +1 -1
- package/inputRenderers/LexicalInput/LexicalEditor.d.ts +4 -1
- package/inputRenderers/LexicalInput/LexicalEditor.js +13 -2
- package/inputRenderers/LexicalInput/LexicalEditor.js.map +1 -1
- package/inputRenderers/LexicalInput/LexicalEditorConfig.d.ts +18 -0
- package/inputRenderers/LexicalInput/LexicalEditorConfig.js +5 -1
- package/inputRenderers/LexicalInput/LexicalEditorConfig.js.map +1 -1
- package/inputRenderers/LexicalInput/LexicalInput.js +5 -9
- package/inputRenderers/LexicalInput/LexicalInput.js.map +1 -1
- package/inputRenderers/LexicalInput/wbStaticToolbar.css +1 -1
- package/inputRenderers/TextInput.js +3 -1
- package/inputRenderers/TextInput.js.map +1 -1
- package/modules/pages/PageEditor/PageEditorConfig.d.ts +4 -2
- package/modules/pages/PageEditor/PageSettings/PageSettingsPresenter.js +2 -2
- package/modules/pages/PageEditor/PageSettings/PageSettingsPresenter.js.map +1 -1
- package/package.json +31 -29
- package/BaseEditor/components/DragPreview.js +0 -59
- package/BaseEditor/components/DragPreview.js.map +0 -1
- package/ecommerce/components/adaptInputToBind.d.ts +0 -6
- package/ecommerce/components/adaptInputToBind.js +0 -26
- package/ecommerce/components/adaptInputToBind.js.map +0 -1
- /package/BaseEditor/components/{DragPreview.d.ts → DragPreview/DragPreview.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-website-builder",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -20,29 +20,29 @@
|
|
|
20
20
|
"@lexical/utils": "0.44.0",
|
|
21
21
|
"@monaco-editor/react": "4.7.0",
|
|
22
22
|
"@svgr/webpack": "8.1.0",
|
|
23
|
-
"@types/react": "18.3.
|
|
24
|
-
"@webiny/admin-ui": "6.4.0-beta.
|
|
25
|
-
"@webiny/app": "6.4.0-beta.
|
|
26
|
-
"@webiny/app-aco": "6.4.0-beta.
|
|
27
|
-
"@webiny/app-admin": "6.4.0-beta.
|
|
28
|
-
"@webiny/app-headless-cms-common": "6.4.0-beta.
|
|
29
|
-
"@webiny/app-trash-bin": "6.4.0-beta.
|
|
30
|
-
"@webiny/app-utils": "6.4.0-beta.
|
|
23
|
+
"@types/react": "18.3.29",
|
|
24
|
+
"@webiny/admin-ui": "6.4.0-beta.4",
|
|
25
|
+
"@webiny/app": "6.4.0-beta.4",
|
|
26
|
+
"@webiny/app-aco": "6.4.0-beta.4",
|
|
27
|
+
"@webiny/app-admin": "6.4.0-beta.4",
|
|
28
|
+
"@webiny/app-headless-cms-common": "6.4.0-beta.4",
|
|
29
|
+
"@webiny/app-trash-bin": "6.4.0-beta.4",
|
|
30
|
+
"@webiny/app-utils": "6.4.0-beta.4",
|
|
31
31
|
"@webiny/di": "1.0.1",
|
|
32
|
-
"@webiny/error": "6.4.0-beta.
|
|
33
|
-
"@webiny/feature": "6.4.0-beta.
|
|
34
|
-
"@webiny/form": "6.4.0-beta.
|
|
35
|
-
"@webiny/icons": "6.4.0-beta.
|
|
36
|
-
"@webiny/languages": "6.4.0-beta.
|
|
37
|
-
"@webiny/lexical-converter": "6.4.0-beta.
|
|
38
|
-
"@webiny/lexical-editor": "6.4.0-beta.
|
|
39
|
-
"@webiny/lexical-nodes": "6.4.0-beta.
|
|
40
|
-
"@webiny/lexical-theme": "6.4.0-beta.
|
|
41
|
-
"@webiny/react-composition": "6.4.0-beta.
|
|
42
|
-
"@webiny/react-properties": "6.4.0-beta.
|
|
43
|
-
"@webiny/utils": "6.4.0-beta.
|
|
44
|
-
"@webiny/validation": "6.4.0-beta.
|
|
45
|
-
"@webiny/website-builder-sdk": "6.4.0-beta.
|
|
32
|
+
"@webiny/error": "6.4.0-beta.4",
|
|
33
|
+
"@webiny/feature": "6.4.0-beta.4",
|
|
34
|
+
"@webiny/form": "6.4.0-beta.4",
|
|
35
|
+
"@webiny/icons": "6.4.0-beta.4",
|
|
36
|
+
"@webiny/languages": "6.4.0-beta.4",
|
|
37
|
+
"@webiny/lexical-converter": "6.4.0-beta.4",
|
|
38
|
+
"@webiny/lexical-editor": "6.4.0-beta.4",
|
|
39
|
+
"@webiny/lexical-nodes": "6.4.0-beta.4",
|
|
40
|
+
"@webiny/lexical-theme": "6.4.0-beta.4",
|
|
41
|
+
"@webiny/react-composition": "6.4.0-beta.4",
|
|
42
|
+
"@webiny/react-properties": "6.4.0-beta.4",
|
|
43
|
+
"@webiny/utils": "6.4.0-beta.4",
|
|
44
|
+
"@webiny/validation": "6.4.0-beta.4",
|
|
45
|
+
"@webiny/website-builder-sdk": "6.4.0-beta.4",
|
|
46
46
|
"apollo-cache": "1.3.5",
|
|
47
47
|
"apollo-client": "2.6.10",
|
|
48
48
|
"apollo-link": "1.2.14",
|
|
@@ -53,11 +53,12 @@
|
|
|
53
53
|
"graphql-tag": "2.12.6",
|
|
54
54
|
"is-hotkey": "0.2.0",
|
|
55
55
|
"lodash": "4.18.1",
|
|
56
|
-
"markdown-to-jsx": "9.8.
|
|
56
|
+
"markdown-to-jsx": "9.8.1",
|
|
57
57
|
"matcher": "6.0.0",
|
|
58
58
|
"mobx": "6.15.3",
|
|
59
59
|
"mobx-react-lite": "4.1.1",
|
|
60
60
|
"pluralize": "8.0.0",
|
|
61
|
+
"radix-ui": "1.4.3",
|
|
61
62
|
"react": "18.3.1",
|
|
62
63
|
"react-dnd": "16.0.1",
|
|
63
64
|
"react-dnd-html5-backend": "16.0.1",
|
|
@@ -68,15 +69,14 @@
|
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@types/deep-equal": "1.0.4",
|
|
70
71
|
"@types/is-hotkey": "0.1.10",
|
|
71
|
-
"@webiny/build-tools": "6.4.0-beta.
|
|
72
|
+
"@webiny/build-tools": "6.4.0-beta.4",
|
|
72
73
|
"execa": "5.1.1",
|
|
73
74
|
"rimraf": "6.1.3",
|
|
74
75
|
"typescript": "6.0.3",
|
|
75
|
-
"vitest": "4.1.
|
|
76
|
+
"vitest": "4.1.7"
|
|
76
77
|
},
|
|
77
78
|
"publishConfig": {
|
|
78
|
-
"access": "public"
|
|
79
|
-
"directory": "dist"
|
|
79
|
+
"access": "public"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "yarn webiny run build",
|
|
@@ -90,5 +90,7 @@
|
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"webiny": {
|
|
94
|
+
"publishFrom": "dist"
|
|
95
|
+
}
|
|
94
96
|
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import react, { useEffect, useState } from "react";
|
|
2
|
-
import { useDragLayer } from "react-dnd";
|
|
3
|
-
let subscribedToOffsetChange = false;
|
|
4
|
-
let dragPreviewRef = null;
|
|
5
|
-
const onOffsetChange = (monitor)=>()=>{
|
|
6
|
-
if (!dragPreviewRef) return;
|
|
7
|
-
const offset = monitor.getClientOffset();
|
|
8
|
-
if (!offset) return;
|
|
9
|
-
const transform = `translate(${offset.x - 15}px, ${offset.y - 15}px)`;
|
|
10
|
-
dragPreviewRef.style["transform"] = transform;
|
|
11
|
-
dragPreviewRef.style["-webkit-transform"] = transform;
|
|
12
|
-
};
|
|
13
|
-
const DragPreview = ()=>{
|
|
14
|
-
const [dragHelperOpacity, setDragHelperOpacity] = useState(0);
|
|
15
|
-
const { isDragging, item } = useDragLayer((monitor)=>{
|
|
16
|
-
if (!subscribedToOffsetChange) {
|
|
17
|
-
monitor.subscribeToOffsetChange(onOffsetChange(monitor));
|
|
18
|
-
subscribedToOffsetChange = true;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
isDragging: monitor.isDragging(),
|
|
22
|
-
item: monitor.getItem()
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
useEffect(()=>()=>{
|
|
26
|
-
subscribedToOffsetChange = false;
|
|
27
|
-
dragPreviewRef = null;
|
|
28
|
-
}, []);
|
|
29
|
-
useEffect(()=>{
|
|
30
|
-
if (isDragging) return void setTimeout(()=>{
|
|
31
|
-
setDragHelperOpacity(isDragging ? 1 : 0);
|
|
32
|
-
}, 100);
|
|
33
|
-
setDragHelperOpacity(0);
|
|
34
|
-
}, [
|
|
35
|
-
isDragging
|
|
36
|
-
]);
|
|
37
|
-
if (!isDragging) return null;
|
|
38
|
-
if (item && item.dragInNavigator) return null;
|
|
39
|
-
return /*#__PURE__*/ react.createElement("div", {
|
|
40
|
-
style: {
|
|
41
|
-
zIndex: 1001
|
|
42
|
-
},
|
|
43
|
-
className: "fixed pointer-events-none left-0 top-0 w-full h-full"
|
|
44
|
-
}, /*#__PURE__*/ react.createElement("div", {
|
|
45
|
-
ref: (el)=>{
|
|
46
|
-
dragPreviewRef = el;
|
|
47
|
-
},
|
|
48
|
-
className: "transition-opacity duration-250 ease-in-out block",
|
|
49
|
-
style: {
|
|
50
|
-
opacity: dragHelperOpacity
|
|
51
|
-
}
|
|
52
|
-
}, /*#__PURE__*/ react.createElement("div", {
|
|
53
|
-
className: "size-lg rounded-full bg-primary"
|
|
54
|
-
})));
|
|
55
|
-
};
|
|
56
|
-
const components_DragPreview = DragPreview;
|
|
57
|
-
export default components_DragPreview;
|
|
58
|
-
|
|
59
|
-
//# sourceMappingURL=DragPreview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEditor/components/DragPreview.js","sources":["../../../src/BaseEditor/components/DragPreview.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport type { DragLayerMonitor } from \"react-dnd\";\nimport { useDragLayer } from \"react-dnd\";\n\nlet subscribedToOffsetChange = false;\nlet dragPreviewRef: HTMLDivElement | null = null;\n\nconst onOffsetChange = (monitor: DragLayerMonitor) => () => {\n if (!dragPreviewRef) {\n return;\n }\n\n const offset = monitor.getClientOffset();\n if (!offset) {\n return;\n }\n\n const transform = `translate(${offset.x - 15}px, ${offset.y - 15}px)`;\n dragPreviewRef.style[\"transform\"] = transform;\n /**\n * TS is complaining about -webkit.\n */\n // @ts-expect-error\n dragPreviewRef.style[\"-webkit-transform\"] = transform;\n};\n\nconst DragPreview = () => {\n const [dragHelperOpacity, setDragHelperOpacity] = useState(0);\n\n const { isDragging, item } = useDragLayer((monitor: DragLayerMonitor) => {\n if (!subscribedToOffsetChange) {\n // @ts-expect-error\n monitor.subscribeToOffsetChange(onOffsetChange(monitor));\n subscribedToOffsetChange = true;\n }\n\n return {\n isDragging: monitor.isDragging(),\n item: monitor.getItem()\n };\n });\n\n useEffect(() => {\n return () => {\n subscribedToOffsetChange = false;\n dragPreviewRef = null;\n };\n }, []);\n\n // We track the value of \"isDragging\" and apply opacity=1 (after 100ms), when it switches to true.\n // Without this, the drag cursor would be shown in the top-left corner for a short amount of time, and then it\n // would be repositioned correctly. Definitely looks like a glitch. This also adds a nice little fade-in effect.\n useEffect((): void => {\n if (isDragging) {\n setTimeout(() => {\n setDragHelperOpacity(isDragging ? 1 : 0);\n }, 100);\n return;\n }\n\n setDragHelperOpacity(0);\n }, [isDragging]);\n\n if (!isDragging) {\n return null;\n }\n // We don't want to show the drag preview for items being drag in the navigator.\n if (item && item.dragInNavigator) {\n return null;\n }\n\n return (\n <div\n style={{ zIndex: 1001 }}\n className=\"fixed pointer-events-none left-0 top-0 w-full h-full\"\n >\n <div\n ref={el => {\n dragPreviewRef = el;\n }}\n className=\"transition-opacity duration-250 ease-in-out block\"\n style={{ opacity: dragHelperOpacity }}\n >\n <div className=\"size-lg rounded-full bg-primary\" />\n </div>\n </div>\n );\n};\n\nexport default DragPreview;\n"],"names":["subscribedToOffsetChange","dragPreviewRef","onOffsetChange","monitor","offset","transform","DragPreview","dragHelperOpacity","setDragHelperOpacity","useState","isDragging","item","useDragLayer","useEffect","setTimeout","el"],"mappings":";;AAIA,IAAIA,2BAA2B;AAC/B,IAAIC,iBAAwC;AAE5C,MAAMC,iBAAiB,CAACC,UAA8B;QAClD,IAAI,CAACF,gBACD;QAGJ,MAAMG,SAASD,QAAQ,eAAe;QACtC,IAAI,CAACC,QACD;QAGJ,MAAMC,YAAY,CAAC,UAAU,EAAED,OAAO,CAAC,GAAG,GAAG,IAAI,EAAEA,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;QACrEH,eAAe,KAAK,CAAC,YAAY,GAAGI;QAKpCJ,eAAe,KAAK,CAAC,oBAAoB,GAAGI;IAChD;AAEA,MAAMC,cAAc;IAChB,MAAM,CAACC,mBAAmBC,qBAAqB,GAAGC,SAAS;IAE3D,MAAM,EAAEC,UAAU,EAAEC,IAAI,EAAE,GAAGC,aAAa,CAACT;QACvC,IAAI,CAACH,0BAA0B;YAE3BG,QAAQ,uBAAuB,CAACD,eAAeC;YAC/CH,2BAA2B;QAC/B;QAEA,OAAO;YACH,YAAYG,QAAQ,UAAU;YAC9B,MAAMA,QAAQ,OAAO;QACzB;IACJ;IAEAU,UAAU,IACC;YACHb,2BAA2B;YAC3BC,iBAAiB;QACrB,GACD,EAAE;IAKLY,UAAU;QACN,IAAIH,YAAY,YACZI,WAAW;YACPN,qBAAqBE,aAAa,IAAI;QAC1C,GAAG;QAIPF,qBAAqB;IACzB,GAAG;QAACE;KAAW;IAEf,IAAI,CAACA,YACD,OAAO;IAGX,IAAIC,QAAQA,KAAK,eAAe,EAC5B,OAAO;IAGX,OAAO,WAAP,GACI,oBAAC;QACG,OAAO;YAAE,QAAQ;QAAK;QACtB,WAAU;qBAEV,oBAAC;QACG,KAAKI,CAAAA;YACDd,iBAAiBc;QACrB;QACA,WAAU;QACV,OAAO;YAAE,SAASR;QAAkB;qBAEpC,oBAAC;QAAI,WAAU;;AAI/B;AAEA,+BAAeD"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { BindComponentRenderProp } from "@webiny/form";
|
|
3
|
-
import type { ElementInputRendererProps } from "../../BaseEditor/index.js";
|
|
4
|
-
export declare const adaptInputToBind: (Component: React.ComponentType<ElementInputRendererProps>) => (props: BindComponentRenderProp & {
|
|
5
|
-
label: string;
|
|
6
|
-
}) => React.JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { NullMetadata } from "../../BaseEditor/metadata/index.js";
|
|
3
|
-
import { InputValueObject } from "../../BaseEditor/hooks/useInputValue.js";
|
|
4
|
-
const metadata = new NullMetadata();
|
|
5
|
-
const noop = ()=>void 0;
|
|
6
|
-
const adaptInputToBind = (Component)=>function(props) {
|
|
7
|
-
const onChange = (cb)=>{
|
|
8
|
-
const value = new InputValueObject(props.value);
|
|
9
|
-
cb({
|
|
10
|
-
value,
|
|
11
|
-
metadata: metadata
|
|
12
|
-
});
|
|
13
|
-
props.onChange(value.get());
|
|
14
|
-
};
|
|
15
|
-
return /*#__PURE__*/ react.createElement(Component, {
|
|
16
|
-
label: props.label,
|
|
17
|
-
value: props.value,
|
|
18
|
-
onChange: onChange,
|
|
19
|
-
metadata: metadata,
|
|
20
|
-
onPreviewChange: noop,
|
|
21
|
-
input: {}
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
export { adaptInputToBind };
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=adaptInputToBind.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecommerce/components/adaptInputToBind.js","sources":["../../../src/ecommerce/components/adaptInputToBind.tsx"],"sourcesContent":["import React from \"react\";\nimport type { BindComponentRenderProp } from \"@webiny/form\";\nimport type { ElementInputRendererProps } from \"~/BaseEditor/index.js\";\nimport { NullMetadata } from \"~/BaseEditor/metadata/index.js\";\nimport { InputValueObject } from \"~/BaseEditor/hooks/useInputValue.js\";\n\nconst metadata = new NullMetadata();\nconst noop = () => void 0;\n\nexport const adaptInputToBind = (Component: React.ComponentType<ElementInputRendererProps>) => {\n return function ElementInputAsFormInput(props: BindComponentRenderProp & { label: string }) {\n const onChange: ElementInputRendererProps[\"onChange\"] = cb => {\n const value = new InputValueObject(props.value);\n cb({ value, metadata });\n props.onChange(value.get());\n };\n\n return (\n <Component\n label={props.label}\n value={props.value}\n onChange={onChange}\n metadata={metadata}\n onPreviewChange={noop}\n input={{} as any}\n />\n );\n };\n};\n"],"names":["metadata","NullMetadata","noop","adaptInputToBind","Component","props","onChange","cb","value","InputValueObject"],"mappings":";;;AAMA,MAAMA,WAAW,IAAIC;AACrB,MAAMC,OAAO,IAAM,KAAK;AAEjB,MAAMC,mBAAmB,CAACC,YACtB,SAAiCC,KAAkD;QACtF,MAAMC,WAAkDC,CAAAA;YACpD,MAAMC,QAAQ,IAAIC,iBAAiBJ,MAAM,KAAK;YAC9CE,GAAG;gBAAEC;gBAAOR,UAAAA;YAAS;YACrBK,MAAM,QAAQ,CAACG,MAAM,GAAG;QAC5B;QAEA,OAAO,WAAP,GACI,oBAACJ,WAAAA;YACG,OAAOC,MAAM,KAAK;YAClB,OAAOA,MAAM,KAAK;YAClB,UAAUC;YACV,UAAUN;YACV,iBAAiBE;YACjB,OAAO,CAAC;;IAGpB"}
|
|
File without changes
|