@nascentdigital/funnel-editor 6.1.7 → 7.0.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/collection/components/CollectionHeader.js +17 -3
- package/dist/core/components/fields/EnumField.js +3 -1
- package/dist/core/components/fields/FieldHeader.js +16 -23
- package/dist/core/components/fields/FieldLayout.d.ts +1 -1
- package/dist/core/components/fields/FieldLayout.js +10 -18
- package/dist/core/components/fields/collection/CollectionEditor.js +7 -7
- package/dist/core/components/index.d.ts +1 -0
- package/dist/core/components/index.js +1 -0
- package/dist/core/components/interaction/Combobox.js +17 -28
- package/dist/core/components/interaction/Popup.js +14 -2
- package/dist/core/components/interaction/QuickPicker.js +0 -1
- package/dist/core/components/panels/MessagePanel.d.ts +7 -0
- package/dist/core/components/panels/MessagePanel.js +53 -0
- package/dist/core/components/panels/index.d.ts +2 -0
- package/dist/core/components/panels/index.js +18 -0
- package/dist/core/components/panels/visual/MediaEditor.d.ts +12 -0
- package/dist/core/components/panels/visual/MediaEditor.js +47 -0
- package/dist/core/components/panels/visual/VisualPanel.d.ts +7 -0
- package/dist/core/components/panels/visual/VisualPanel.js +332 -0
- package/dist/core/components/panels/visual/index.d.ts +1 -0
- package/dist/core/components/panels/visual/index.js +17 -0
- package/dist/core/components/visuals/Icon.d.ts +1 -1
- package/dist/core/components/visuals/Icon.js +12 -0
- package/dist/core/domain/Block.d.ts +18 -8
- package/dist/core/domain/Block.js +101 -78
- package/dist/core/domain/BlockConfiguration.d.ts +38 -32
- package/dist/core/domain/BlockConfiguration.js +348 -255
- package/dist/core/domain/CollectionFieldProxy.d.ts +1 -0
- package/dist/core/domain/CollectionFieldProxy.js +5 -0
- package/dist/core/domain/CollectionSummary.d.ts +1 -1
- package/dist/core/domain/CollectionSummary.js +1 -1
- package/dist/core/domain/Collections.d.ts +2 -0
- package/dist/core/domain/Collections.js +6 -0
- package/dist/core/domain/IPage.d.ts +3 -2
- package/dist/core/domain/Item.d.ts +1 -1
- package/dist/core/domain/ItemBase.d.ts +2 -0
- package/dist/core/domain/ItemBase.js +9 -0
- package/dist/core/domain/Page.d.ts +1 -1
- package/dist/core/domain/SectionBlock.d.ts +4 -5
- package/dist/core/domain/SectionBlock.js +3 -10
- package/dist/core/hooks/useBlockConfiguration.d.ts +1 -7
- package/dist/core/hooks/useBlockConfiguration.js +1 -6
- package/dist/core/repository/PageSerializer.js +11 -10
- package/dist/core/repository/SerializeCollectionUpdate.js +4 -4
- package/dist/core/repository/SerializePageUpdate.d.ts +2 -1
- package/dist/core/repository/SerializePageUpdate.js +79 -24
- package/dist/page/components/BlockEditor.js +3 -3
- package/dist/page/components/config/BlockConfigButton.d.ts +3 -1
- package/dist/page/components/config/BlockConfigButton.js +12 -24
- package/dist/page/components/config/BlockPreview.d.ts +7 -6
- package/dist/page/components/config/BlockPreview.js +30 -15
- package/dist/page/components/config/index.d.ts +1 -2
- package/dist/page/components/config/index.js +1 -2
- package/dist/page/components/config/preview/ColumnLayout.d.ts +7 -4
- package/dist/page/components/config/preview/ColumnLayout.js +14 -2
- package/dist/page/components/config/preview/ItemLayout.d.ts +7 -4
- package/dist/page/components/config/preview/ItemLayout.js +24 -11
- package/dist/page/components/config/preview/ListPanel.d.ts +7 -4
- package/dist/page/components/config/preview/ListPanel.js +4 -2
- package/dist/page/components/config/preview/MessagePanel.d.ts +7 -4
- package/dist/page/components/config/preview/MessagePanel.js +6 -3
- package/dist/page/components/config/preview/Panel.d.ts +14 -4
- package/dist/page/components/config/preview/Panel.js +25 -7
- package/dist/page/components/config/preview/PreviewSize.d.ts +1 -0
- package/dist/page/components/config/preview/PreviewSize.js +2 -0
- package/dist/page/components/config/preview/RowLayout.d.ts +7 -4
- package/dist/page/components/config/preview/RowLayout.js +15 -3
- package/dist/page/components/config/preview/StackLayout.d.ts +7 -4
- package/dist/page/components/config/preview/StackLayout.js +14 -2
- package/dist/page/components/config/preview/VisualPanel.d.ts +7 -4
- package/dist/page/components/config/preview/VisualPanel.js +7 -5
- package/dist/page/components/config/preview/index.d.ts +2 -0
- package/dist/page/components/config/preview/index.js +2 -0
- package/dist/page/components/panels/BlockConfigPanel.d.ts +7 -1
- package/dist/page/components/panels/BlockConfigPanel.js +9 -7
- package/dist/page/screens/PageEditor.js +3 -4
- package/dist/styles/index.css +74 -56
- package/package.json +2 -2
- package/dist/page/components/config/BlockConfigurationProvider.d.ts +0 -16
- package/dist/page/components/config/BlockConfigurationProvider.js +0 -25
- package/dist/page/components/config/useBlockConfiguration$.d.ts +0 -3
- package/dist/page/components/config/useBlockConfiguration$.js +0 -22
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { BlockLayout } from '@nascentdigital/funnel-core';
|
|
2
|
-
|
|
1
|
+
import { BlockLayout, Schema } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { Panel } from './Panel';
|
|
3
|
+
import { PreviewSize } from './PreviewSize';
|
|
4
|
+
export declare function VisualPanel({ className, parentType, itemOffset, panel, variant, nested, size, selectedPanel, onSelectPanel }: VisualPanel.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
export declare namespace VisualPanel {
|
|
4
|
-
type Props = {
|
|
6
|
+
type Props = Panel.SelectionProps & {
|
|
5
7
|
className?: string;
|
|
6
8
|
parentType: BlockLayout.Container['type'];
|
|
7
9
|
itemOffset: number;
|
|
8
10
|
panel: BlockLayout.Visual;
|
|
9
|
-
|
|
11
|
+
variant: Schema.Block.Config.Variant;
|
|
10
12
|
nested: boolean;
|
|
13
|
+
size: PreviewSize;
|
|
11
14
|
};
|
|
12
15
|
}
|
|
@@ -9,19 +9,21 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
9
9
|
const core_1 = require("../../../../core");
|
|
10
10
|
const Panel_1 = require("./Panel");
|
|
11
11
|
// components
|
|
12
|
-
function VisualPanel({ className, parentType, itemOffset, panel,
|
|
12
|
+
function VisualPanel({ className, parentType, itemOffset, panel, variant, nested, size, selectedPanel, onSelectPanel }) {
|
|
13
13
|
// render
|
|
14
14
|
const { aspectRatio: { mobile: aspectRatioMobile, desktop: aspectRatioDesktop } } = panel;
|
|
15
|
-
const aspectRatio = mobile ? aspectRatioMobile : aspectRatioDesktop;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(Panel_1.Panel, { className: className, parentType: parentType, itemOffset: itemOffset, panel: panel,
|
|
15
|
+
const aspectRatio = variant === 'mobile' ? aspectRatioMobile : aspectRatioDesktop;
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(Panel_1.Panel, { className: className, label: "Visual", parentType: parentType, itemOffset: itemOffset, panel: panel, variant: variant, nested: nested, disableSizing: variant === 'mobile', size: size, selected: selectedPanel === 'visual', onClick: onSelectPanel
|
|
17
|
+
? () => onSelectPanel('visual')
|
|
18
|
+
: undefined, children: (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('flex justify-center items-center bg-surface-placeholder', {
|
|
17
19
|
'aspect-square': aspectRatio === 'square' || aspectRatio === 'auto',
|
|
18
20
|
'aspect-phone': aspectRatio === 'phone',
|
|
19
21
|
'aspects-tv': aspectRatio === 'tv',
|
|
20
22
|
'aspect-widescreen': aspectRatio === 'widescreen',
|
|
21
23
|
'aspect-cinema': aspectRatio === 'cinema'
|
|
22
24
|
}), children: (0, jsx_runtime_1.jsx)(core_1.Icon, { className: "text-content-tertiary", variant: "Image", size: {
|
|
23
|
-
size:
|
|
24
|
-
strokeWidth: 1
|
|
25
|
+
size: size === 'sm' ? 36 : 48,
|
|
26
|
+
strokeWidth: 1,
|
|
25
27
|
absoluteStrokeWidth: false
|
|
26
28
|
} }) }) }));
|
|
27
29
|
}
|
|
@@ -15,5 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ColumnLayout"), exports);
|
|
18
|
+
__exportStar(require("./Panel"), exports);
|
|
19
|
+
__exportStar(require("./PreviewSize"), exports);
|
|
18
20
|
__exportStar(require("./RowLayout"), exports);
|
|
19
21
|
__exportStar(require("./StackLayout"), exports);
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { Block, SectionBlock } from '../../../core';
|
|
2
|
+
export declare function BlockConfigPanel({ block }: BlockConfigPanel.Props): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
export declare namespace BlockConfigPanel {
|
|
4
|
+
type Props = {
|
|
5
|
+
block: Block | SectionBlock;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
@@ -6,20 +6,22 @@ const react_1 = require("react");
|
|
|
6
6
|
const core_1 = require("../../../core");
|
|
7
7
|
const config_1 = require("../config");
|
|
8
8
|
// panel
|
|
9
|
-
function BlockConfigPanel() {
|
|
9
|
+
function BlockConfigPanel({ block }) {
|
|
10
10
|
// bind hooks
|
|
11
11
|
const id = (0, react_1.useId)();
|
|
12
|
-
const configuration =
|
|
12
|
+
const { configuration } = block;
|
|
13
|
+
// sync configuration
|
|
14
|
+
(0, core_1.useBlockConfiguration)(configuration);
|
|
13
15
|
// skip if there's no config (shouldn't happen)
|
|
14
|
-
const {
|
|
15
|
-
if (!configuration
|
|
16
|
+
const { variant = 'base', layout } = configuration !== null && configuration !== void 0 ? configuration : {};
|
|
17
|
+
if (!configuration.hasPanels || !layout) {
|
|
16
18
|
return null;
|
|
17
19
|
}
|
|
18
20
|
// render
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(core_1.FadeIn, { children: (0, jsx_runtime_1.jsxs)(core_1.Popup.AnchorElement, { tag: "div", anchorId: id, className: "h-full flex flex-col gap-l6 py-l7 bg-surface1 rounded-xxl interpolate-all", children: [(0, jsx_runtime_1.jsx)(core_1.Tabs, { className: "mx-l7", variant: "highlighted", size: "sm", items: blockScopes, selectedItem:
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(core_1.FadeIn, { children: (0, jsx_runtime_1.jsxs)(core_1.Popup.AnchorElement, { tag: "div", anchorId: id, className: "h-full flex flex-col gap-l6 py-l7 bg-surface1 rounded-xxl interpolate-all", children: [(0, jsx_runtime_1.jsx)(core_1.Tabs, { className: "mx-l7", variant: "highlighted", size: "sm", items: blockScopes, selectedItem: variant, onSelect: scope => configuration.variant = variant }), (0, jsx_runtime_1.jsx)(config_1.BlockPreview, { className: "self-center", variant: variant, layout: layout }), (0, jsx_runtime_1.jsx)("div", { className: "px-l7", children: (0, jsx_runtime_1.jsx)(config_1.BlockConfigButton, { anchorId: id, target: "block", block: block }) })] }) }, "block.config"));
|
|
20
22
|
}
|
|
21
23
|
// helpers
|
|
22
24
|
const blockScopes = [
|
|
23
|
-
{ id: '
|
|
24
|
-
{ id: 'mobile', label: 'Mobile' }
|
|
25
|
+
{ id: 'base', label: 'Desktop' },
|
|
26
|
+
{ id: 'mobile', label: 'Mobile' }
|
|
25
27
|
];
|
|
@@ -11,7 +11,6 @@ const react_1 = require("motion/react");
|
|
|
11
11
|
const react_2 = require("react");
|
|
12
12
|
const core_1 = require("../../core");
|
|
13
13
|
const components_1 = require("../components");
|
|
14
|
-
const config_1 = require("../components/config");
|
|
15
14
|
const hooks_1 = require("../hooks");
|
|
16
15
|
// component
|
|
17
16
|
function PageEditor({ templateId, region, language, slug }) {
|
|
@@ -76,9 +75,9 @@ function PageEditor({ templateId, region, language, slug }) {
|
|
|
76
75
|
};
|
|
77
76
|
const onSelectItem = (item) => setItemId(item.identifier);
|
|
78
77
|
// render
|
|
79
|
-
return ((0, jsx_runtime_1.jsx)(hooks_1.PageControllerContext.Provider, { value: controllerContext, children: (0, jsx_runtime_1.jsx)(core_1.PageContext.Provider, { value: pageContext, children: (0, jsx_runtime_1.jsx)(core_1.AssetStoreContext.Provider, { value: page, children: (0, jsx_runtime_1.jsx)(core_1.CollectionStoreContext.Provider, { value: page, children: (0, jsx_runtime_1.jsx)(core_1.PageRefStoreContext.Provider, { value: pageRefStoreProxy, children: (0, jsx_runtime_1.
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
return ((0, jsx_runtime_1.jsx)(hooks_1.PageControllerContext.Provider, { value: controllerContext, children: (0, jsx_runtime_1.jsx)(core_1.PageContext.Provider, { value: pageContext, children: (0, jsx_runtime_1.jsx)(core_1.AssetStoreContext.Provider, { value: page, children: (0, jsx_runtime_1.jsx)(core_1.CollectionStoreContext.Provider, { value: page, children: (0, jsx_runtime_1.jsx)(core_1.PageRefStoreContext.Provider, { value: pageRefStoreProxy, children: (0, jsx_runtime_1.jsxs)("div", { className: "w-dvw h-dvh flex flex-col bg-background", children: [(0, jsx_runtime_1.jsx)(components_1.PageHeader, { target: target, selectedItem: selectedItem, onBack: onHeaderBack }), (0, jsx_runtime_1.jsx)("div", { className: "relative flex-1", children: (0, jsx_runtime_1.jsxs)("div", { className: "absolute inset-0 flex z-default", children: [(0, jsx_runtime_1.jsx)("section", { className: "w-[220px] lg:w-[240px] xl:w-[280px] shrink-0 overflow-y-scroll scrollbar-thin", tabIndex: -1, children: (0, jsx_runtime_1.jsx)(components_1.PageNav, { selectedItem: selectedItem, onSelectItem: onSelectItem }) }), (0, jsx_runtime_1.jsx)("section", { className: "flex-1 h-full max-h-full max-w-[1000px] mx-auto", tabIndex: -1, children: (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { mode: "wait", initial: false, children: renderContent({ target, controller, page, selectedItem, onSelectItem }) }) }), (0, jsx_runtime_1.jsxs)(react_1.motion.section, { className: (0, classnames_1.default)('hidden lg:flex lg:w-[320px] shrink-0 overflow-y-scroll scrollbar-thin', 'flex-col gap-l8 pt-l9 px-l8 pb-l8'), layout: true, tabIndex: -1, children: [(0, jsx_runtime_1.jsx)("h2", { className: "label-sm text-content-tertiary uppercase", children: "Inspector" }), (0, jsx_runtime_1.jsxs)(react_1.AnimatePresence, { mode: "popLayout", children: [page && selectedItem && (selectedItem instanceof core_1.Block || selectedItem instanceof core_1.SectionBlock) &&
|
|
79
|
+
(0, jsx_runtime_1.jsx)(components_1.BlockConfigPanel, { block: selectedItem }, "block.config"), page && selectedItem &&
|
|
80
|
+
(0, jsx_runtime_1.jsx)(components_1.PageStatus, { page: page, selectedItem: selectedItem, onSelectItem: onSelectItem }, "status")] })] })] }) })] }) }) }) }) }) }));
|
|
82
81
|
}
|
|
83
82
|
// helpers
|
|
84
83
|
function coerceTarget({ templateId, slug, region, language }) {
|
package/dist/styles/index.css
CHANGED
|
@@ -501,10 +501,10 @@ video {
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
[popover]{
|
|
504
|
-
inset: var(--toolwind-toggle-
|
|
505
|
-
background-color: var(--toolwind-toggle-
|
|
506
|
-
color: var(--toolwind-toggle-
|
|
507
|
-
margin: var(--toolwind-toggle-
|
|
504
|
+
inset: var(--toolwind-toggle-0cOGHWEMug, 0px);
|
|
505
|
+
background-color: var(--toolwind-toggle-JLzqBgKlAl, canvas);
|
|
506
|
+
color: var(--toolwind-toggle-irIqJNeMK7, canvastext);
|
|
507
|
+
margin: var(--toolwind-toggle-WytkiXl3Nj, auto);
|
|
508
508
|
}
|
|
509
509
|
html, body, #__next, #root, .Editor-wrap{
|
|
510
510
|
position: relative;
|
|
@@ -4767,6 +4767,10 @@ img.nd-Visual-image {
|
|
|
4767
4767
|
margin-left: 6px;
|
|
4768
4768
|
margin-right: 6px;
|
|
4769
4769
|
}
|
|
4770
|
+
.mx-l4{
|
|
4771
|
+
margin-left: 8px;
|
|
4772
|
+
margin-right: 8px;
|
|
4773
|
+
}
|
|
4770
4774
|
.mx-l6{
|
|
4771
4775
|
margin-left: 16px;
|
|
4772
4776
|
margin-right: 16px;
|
|
@@ -4801,12 +4805,6 @@ img.nd-Visual-image {
|
|
|
4801
4805
|
.-mr-l4{
|
|
4802
4806
|
margin-right: -8px;
|
|
4803
4807
|
}
|
|
4804
|
-
.mb-3{
|
|
4805
|
-
margin-bottom: 3px;
|
|
4806
|
-
}
|
|
4807
|
-
.mb-4{
|
|
4808
|
-
margin-bottom: 4px;
|
|
4809
|
-
}
|
|
4810
4808
|
.mb-l1{
|
|
4811
4809
|
margin-bottom: 2px;
|
|
4812
4810
|
}
|
|
@@ -4825,12 +4823,18 @@ img.nd-Visual-image {
|
|
|
4825
4823
|
.ml-9{
|
|
4826
4824
|
margin-left: 9px;
|
|
4827
4825
|
}
|
|
4826
|
+
.ml-l4{
|
|
4827
|
+
margin-left: 8px;
|
|
4828
|
+
}
|
|
4828
4829
|
.ml-l5{
|
|
4829
4830
|
margin-left: 12px;
|
|
4830
4831
|
}
|
|
4831
4832
|
.mr-l3{
|
|
4832
4833
|
margin-right: 6px;
|
|
4833
4834
|
}
|
|
4835
|
+
.mr-l4{
|
|
4836
|
+
margin-right: 8px;
|
|
4837
|
+
}
|
|
4834
4838
|
.mr-l5{
|
|
4835
4839
|
margin-right: 12px;
|
|
4836
4840
|
}
|
|
@@ -4843,9 +4847,6 @@ img.nd-Visual-image {
|
|
|
4843
4847
|
.mt-l2{
|
|
4844
4848
|
margin-top: 4px;
|
|
4845
4849
|
}
|
|
4846
|
-
.mt-l3{
|
|
4847
|
-
margin-top: 6px;
|
|
4848
|
-
}
|
|
4849
4850
|
.mt-l4{
|
|
4850
4851
|
margin-top: 8px;
|
|
4851
4852
|
}
|
|
@@ -4917,6 +4918,9 @@ img.nd-Visual-image {
|
|
|
4917
4918
|
.h-12{
|
|
4918
4919
|
height: 12px;
|
|
4919
4920
|
}
|
|
4921
|
+
.h-16{
|
|
4922
|
+
height: 16px;
|
|
4923
|
+
}
|
|
4920
4924
|
.h-18{
|
|
4921
4925
|
height: 18px;
|
|
4922
4926
|
}
|
|
@@ -5040,8 +5044,8 @@ img.nd-Visual-image {
|
|
|
5040
5044
|
.max-h-lvh{
|
|
5041
5045
|
max-height: 100lvh;
|
|
5042
5046
|
}
|
|
5043
|
-
.min-h-\[
|
|
5044
|
-
min-height:
|
|
5047
|
+
.min-h-\[120px\]{
|
|
5048
|
+
min-height: 120px;
|
|
5045
5049
|
}
|
|
5046
5050
|
.min-h-\[200px\]{
|
|
5047
5051
|
min-height: 200px;
|
|
@@ -5052,6 +5056,12 @@ img.nd-Visual-image {
|
|
|
5052
5056
|
.min-h-\[210px\]{
|
|
5053
5057
|
min-height: 210px;
|
|
5054
5058
|
}
|
|
5059
|
+
.min-h-\[240px\]{
|
|
5060
|
+
min-height: 240px;
|
|
5061
|
+
}
|
|
5062
|
+
.min-h-\[320px\]{
|
|
5063
|
+
min-height: 320px;
|
|
5064
|
+
}
|
|
5055
5065
|
.min-h-body-sm{
|
|
5056
5066
|
min-height: 18px;
|
|
5057
5067
|
}
|
|
@@ -5106,9 +5116,6 @@ img.nd-Visual-image {
|
|
|
5106
5116
|
.w-\[13\.5px\]{
|
|
5107
5117
|
width: 13.5px;
|
|
5108
5118
|
}
|
|
5109
|
-
.w-\[136px\]{
|
|
5110
|
-
width: 136px;
|
|
5111
|
-
}
|
|
5112
5119
|
.w-\[200px\]{
|
|
5113
5120
|
width: 200px;
|
|
5114
5121
|
}
|
|
@@ -5121,9 +5128,6 @@ img.nd-Visual-image {
|
|
|
5121
5128
|
.w-\[220px\]{
|
|
5122
5129
|
width: 220px;
|
|
5123
5130
|
}
|
|
5124
|
-
.w-\[240px\]{
|
|
5125
|
-
width: 240px;
|
|
5126
|
-
}
|
|
5127
5131
|
.w-\[288px\]{
|
|
5128
5132
|
width: 288px;
|
|
5129
5133
|
}
|
|
@@ -5160,12 +5164,6 @@ img.nd-Visual-image {
|
|
|
5160
5164
|
.min-w-18{
|
|
5161
5165
|
min-width: 18px;
|
|
5162
5166
|
}
|
|
5163
|
-
.min-w-\[120px\]{
|
|
5164
|
-
min-width: 120px;
|
|
5165
|
-
}
|
|
5166
|
-
.min-w-\[180px\]{
|
|
5167
|
-
min-width: 180px;
|
|
5168
|
-
}
|
|
5169
5167
|
.min-w-\[200px\]{
|
|
5170
5168
|
min-width: 200px;
|
|
5171
5169
|
}
|
|
@@ -5202,6 +5200,9 @@ img.nd-Visual-image {
|
|
|
5202
5200
|
.shrink-0{
|
|
5203
5201
|
flex-shrink: 0;
|
|
5204
5202
|
}
|
|
5203
|
+
.flex-grow{
|
|
5204
|
+
flex-grow: 1;
|
|
5205
|
+
}
|
|
5205
5206
|
.translate-x-16{
|
|
5206
5207
|
--tw-translate-x: 16px;
|
|
5207
5208
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -5318,9 +5319,6 @@ img.nd-Visual-image {
|
|
|
5318
5319
|
.grid-cols-\[max-content_max-content_1fr\]{
|
|
5319
5320
|
grid-template-columns: max-content max-content 1fr;
|
|
5320
5321
|
}
|
|
5321
|
-
.grid-cols-subgrid{
|
|
5322
|
-
grid-template-columns: subgrid;
|
|
5323
|
-
}
|
|
5324
5322
|
.grid-rows-1{
|
|
5325
5323
|
grid-template-rows: repeat(1, minmax(0, 1fr));
|
|
5326
5324
|
}
|
|
@@ -5396,6 +5394,9 @@ img.nd-Visual-image {
|
|
|
5396
5394
|
.gap-l6{
|
|
5397
5395
|
gap: 16px;
|
|
5398
5396
|
}
|
|
5397
|
+
.gap-l7{
|
|
5398
|
+
gap: 20px;
|
|
5399
|
+
}
|
|
5399
5400
|
.gap-l8{
|
|
5400
5401
|
gap: 24px;
|
|
5401
5402
|
}
|
|
@@ -5473,9 +5474,6 @@ img.nd-Visual-image {
|
|
|
5473
5474
|
.rounded-md{
|
|
5474
5475
|
border-radius: 12px;
|
|
5475
5476
|
}
|
|
5476
|
-
.rounded-px{
|
|
5477
|
-
border-radius: 1px;
|
|
5478
|
-
}
|
|
5479
5477
|
.rounded-sm{
|
|
5480
5478
|
border-radius: 8px;
|
|
5481
5479
|
}
|
|
@@ -5485,9 +5483,6 @@ img.nd-Visual-image {
|
|
|
5485
5483
|
.rounded-xxl{
|
|
5486
5484
|
border-radius: 32px;
|
|
5487
5485
|
}
|
|
5488
|
-
.rounded-xxs{
|
|
5489
|
-
border-radius: 2px;
|
|
5490
|
-
}
|
|
5491
5486
|
.rounded-l-\[2px\]{
|
|
5492
5487
|
border-top-left-radius: 2px;
|
|
5493
5488
|
border-bottom-left-radius: 2px;
|
|
@@ -5542,6 +5537,10 @@ img.nd-Visual-image {
|
|
|
5542
5537
|
--tw-border-opacity: 1;
|
|
5543
5538
|
border-color: rgb(var(--color-content-button-contrast) / var(--tw-border-opacity, 1));
|
|
5544
5539
|
}
|
|
5540
|
+
.border-destructive{
|
|
5541
|
+
--tw-border-opacity: 1;
|
|
5542
|
+
border-color: rgb(var(--color-destructive) / var(--tw-border-opacity, 1));
|
|
5543
|
+
}
|
|
5545
5544
|
.border-destructive-content{
|
|
5546
5545
|
--tw-border-opacity: 1;
|
|
5547
5546
|
border-color: rgb(var(--color-destructive-content) / var(--tw-border-opacity, 1));
|
|
@@ -5580,6 +5579,13 @@ img.nd-Visual-image {
|
|
|
5580
5579
|
--tw-border-opacity: 1;
|
|
5581
5580
|
border-color: rgb(var(--color-warn-content) / var(--tw-border-opacity, 1));
|
|
5582
5581
|
}
|
|
5582
|
+
.bg-\[\#036FE3\]{
|
|
5583
|
+
--tw-bg-opacity: 1;
|
|
5584
|
+
background-color: rgb(3 111 227 / var(--tw-bg-opacity, 1));
|
|
5585
|
+
}
|
|
5586
|
+
.bg-\[\#E8F5FF\]\/\[\.72\]{
|
|
5587
|
+
background-color: rgb(232 245 255 / .72);
|
|
5588
|
+
}
|
|
5583
5589
|
.bg-\[\#c4c7c6\]{
|
|
5584
5590
|
--tw-bg-opacity: 1;
|
|
5585
5591
|
background-color: rgb(196 199 198 / var(--tw-bg-opacity, 1));
|
|
@@ -5616,9 +5622,6 @@ img.nd-Visual-image {
|
|
|
5616
5622
|
.bg-draft\/tint0{
|
|
5617
5623
|
background-color: rgb(var(--color-draft) / .05);
|
|
5618
5624
|
}
|
|
5619
|
-
.bg-draft\/tint3{
|
|
5620
|
-
background-color: rgb(var(--color-draft) / .3);
|
|
5621
|
-
}
|
|
5622
5625
|
.bg-glass-fill-l1\/tint3{
|
|
5623
5626
|
background-color: rgb(var(--color-glass-fill-l1) / .3);
|
|
5624
5627
|
}
|
|
@@ -5657,9 +5660,6 @@ img.nd-Visual-image {
|
|
|
5657
5660
|
.bg-ix-util-hover\/tint1{
|
|
5658
5661
|
background-color: rgb(var(--color-ix-util-hover) / .1);
|
|
5659
5662
|
}
|
|
5660
|
-
.bg-ix-util-press\/tint2{
|
|
5661
|
-
background-color: rgb(var(--color-ix-util-press) / .2);
|
|
5662
|
-
}
|
|
5663
5663
|
.bg-modal-background{
|
|
5664
5664
|
--tw-bg-opacity: 1;
|
|
5665
5665
|
background-color: rgb(var(--color-modal-background) / var(--tw-bg-opacity, 1));
|
|
@@ -5781,6 +5781,9 @@ img.nd-Visual-image {
|
|
|
5781
5781
|
-o-object-position: top;
|
|
5782
5782
|
object-position: top;
|
|
5783
5783
|
}
|
|
5784
|
+
.p-10{
|
|
5785
|
+
padding: 10px;
|
|
5786
|
+
}
|
|
5784
5787
|
.p-6{
|
|
5785
5788
|
padding: 6px;
|
|
5786
5789
|
}
|
|
@@ -5861,14 +5864,14 @@ img.nd-Visual-image {
|
|
|
5861
5864
|
padding-top: 72px;
|
|
5862
5865
|
padding-bottom: 72px;
|
|
5863
5866
|
}
|
|
5864
|
-
.py-l3{
|
|
5865
|
-
padding-top: 6px;
|
|
5866
|
-
padding-bottom: 6px;
|
|
5867
|
-
}
|
|
5868
5867
|
.py-l4{
|
|
5869
5868
|
padding-top: 8px;
|
|
5870
5869
|
padding-bottom: 8px;
|
|
5871
5870
|
}
|
|
5871
|
+
.py-l5{
|
|
5872
|
+
padding-top: 12px;
|
|
5873
|
+
padding-bottom: 12px;
|
|
5874
|
+
}
|
|
5872
5875
|
.py-l6{
|
|
5873
5876
|
padding-top: 16px;
|
|
5874
5877
|
padding-bottom: 16px;
|
|
@@ -5920,9 +5923,6 @@ img.nd-Visual-image {
|
|
|
5920
5923
|
.pr-l2{
|
|
5921
5924
|
padding-right: 4px;
|
|
5922
5925
|
}
|
|
5923
|
-
.pr-l4{
|
|
5924
|
-
padding-right: 8px;
|
|
5925
|
-
}
|
|
5926
5926
|
.pr-l5{
|
|
5927
5927
|
padding-right: 12px;
|
|
5928
5928
|
}
|
|
@@ -6121,6 +6121,9 @@ img.nd-Visual-image {
|
|
|
6121
6121
|
.outline-2{
|
|
6122
6122
|
outline-width: 2px;
|
|
6123
6123
|
}
|
|
6124
|
+
.outline-\[3px\]{
|
|
6125
|
+
outline-width: 3px;
|
|
6126
|
+
}
|
|
6124
6127
|
.outline-offset-1{
|
|
6125
6128
|
outline-offset: 1px;
|
|
6126
6129
|
}
|
|
@@ -6130,6 +6133,9 @@ img.nd-Visual-image {
|
|
|
6130
6133
|
.outline-offset-4{
|
|
6131
6134
|
outline-offset: 4px;
|
|
6132
6135
|
}
|
|
6136
|
+
.outline-\[\#98CBFF\]{
|
|
6137
|
+
outline-color: #98CBFF;
|
|
6138
|
+
}
|
|
6133
6139
|
.outline-border-l1{
|
|
6134
6140
|
outline-color: rgb(var(--color-border-l1) / 1);
|
|
6135
6141
|
}
|
|
@@ -6214,10 +6220,10 @@ img.nd-Visual-image {
|
|
|
6214
6220
|
.anchored\/\[--nd-popup-anchor\]:where(.anchored\/\[--nd-popup-anchor\]){
|
|
6215
6221
|
position: absolute;
|
|
6216
6222
|
view-transition-name: --tw-anchor-view-transition-2j1919322s193433343934192p322r2w33362l;
|
|
6217
|
-
--toolwind-toggle-
|
|
6218
|
-
--toolwind-toggle-
|
|
6219
|
-
--toolwind-toggle-
|
|
6220
|
-
--toolwind-toggle-
|
|
6223
|
+
--toolwind-toggle-0cOGHWEMug: auto;
|
|
6224
|
+
--toolwind-toggle-JLzqBgKlAl: transparent;
|
|
6225
|
+
--toolwind-toggle-irIqJNeMK7: inherit;
|
|
6226
|
+
--toolwind-toggle-WytkiXl3Nj: 0px;
|
|
6221
6227
|
}
|
|
6222
6228
|
.counter-l1{
|
|
6223
6229
|
counter-reset: l1;
|
|
@@ -6271,6 +6277,11 @@ img.nd-Visual-image {
|
|
|
6271
6277
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
6272
6278
|
transition-duration: 800ms;
|
|
6273
6279
|
}
|
|
6280
|
+
.interpolate-colors{
|
|
6281
|
+
transition-duration: 500ms;
|
|
6282
|
+
transition-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
|
|
6283
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
6284
|
+
}
|
|
6274
6285
|
.interpolate-all{
|
|
6275
6286
|
transition-property: all;
|
|
6276
6287
|
transition-duration: 300ms;
|
|
@@ -7197,6 +7208,10 @@ span.flatpickr-weekday {
|
|
|
7197
7208
|
--tw-bg-opacity: 1;
|
|
7198
7209
|
background-color: rgb(var(--color-modal-background) / var(--tw-bg-opacity, 1));
|
|
7199
7210
|
}
|
|
7211
|
+
.focus-within\:border-ix-primary:focus-within{
|
|
7212
|
+
--tw-border-opacity: 1;
|
|
7213
|
+
border-color: rgb(var(--color-ix-primary) / var(--tw-border-opacity, 1));
|
|
7214
|
+
}
|
|
7200
7215
|
.focus-within\:outline-ix-primary:focus-within{
|
|
7201
7216
|
outline-color: rgb(var(--color-ix-primary) / 1);
|
|
7202
7217
|
}
|
|
@@ -7328,6 +7343,9 @@ span.flatpickr-weekday {
|
|
|
7328
7343
|
.active\:no-underline:active{
|
|
7329
7344
|
text-decoration-line: none;
|
|
7330
7345
|
}
|
|
7346
|
+
.active\:outline-\[\#98CBFF\]:active{
|
|
7347
|
+
outline-color: #98CBFF;
|
|
7348
|
+
}
|
|
7331
7349
|
.active\:outline-transparent:active{
|
|
7332
7350
|
outline-color: transparent;
|
|
7333
7351
|
}
|
|
@@ -7339,9 +7357,6 @@ span.flatpickr-weekday {
|
|
|
7339
7357
|
.disabled\:cursor-default:disabled{
|
|
7340
7358
|
cursor: default;
|
|
7341
7359
|
}
|
|
7342
|
-
.disabled\:opacity-disabled:disabled{
|
|
7343
|
-
opacity: .38;
|
|
7344
|
-
}
|
|
7345
7360
|
.group:focus-within .group-focus-within\:opacity-none{
|
|
7346
7361
|
opacity: 0;
|
|
7347
7362
|
}
|
|
@@ -7364,6 +7379,9 @@ span.flatpickr-weekday {
|
|
|
7364
7379
|
--tw-text-opacity: 1;
|
|
7365
7380
|
color: rgb(var(--color-content-secondary) / var(--tw-text-opacity, 1));
|
|
7366
7381
|
}
|
|
7382
|
+
.group:hover .group-hover\:opacity-full{
|
|
7383
|
+
opacity: 1;
|
|
7384
|
+
}
|
|
7367
7385
|
.group:focus-visible .group-focus-visible\:outline-ix-primary{
|
|
7368
7386
|
outline-color: rgb(var(--color-ix-primary) / 1);
|
|
7369
7387
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"ts-jest": "^29",
|
|
93
93
|
"type-fest": "^4"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "4da4fb0b92a8e3cb75bf668e0c9f63d82783f59b"
|
|
96
96
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Block, BlockConfiguration, PageSettings, Section, SectionBlock } from '../../../core';
|
|
4
|
-
export declare const BlockConfigurationProvider: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
children?: import("react").ReactNode | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
item?: Block | SectionBlock | Section | PageSettings;
|
|
8
|
-
} & import("react").RefAttributes<BlockConfigurationProvider.Ref>>;
|
|
9
|
-
export declare namespace BlockConfigurationProvider {
|
|
10
|
-
type Props = PropsWithChildren & {
|
|
11
|
-
item?: Block | SectionBlock | Section | PageSettings;
|
|
12
|
-
};
|
|
13
|
-
interface Ref {
|
|
14
|
-
readonly configuration$: Observable<BlockConfiguration | undefined>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlockConfigurationProvider = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const rxjs_1 = require("rxjs");
|
|
7
|
-
const core_1 = require("../../../core");
|
|
8
|
-
// provider
|
|
9
|
-
exports.BlockConfigurationProvider = (0, react_1.forwardRef)(function BlockConfigurationProvider({ item, children }, ref) {
|
|
10
|
-
// bind context
|
|
11
|
-
const context = (0, react_1.useMemo)(() => ({
|
|
12
|
-
configuration: item instanceof core_1.Block || item instanceof core_1.SectionBlock
|
|
13
|
-
? item.getConfiguration()
|
|
14
|
-
: undefined
|
|
15
|
-
}), [item]);
|
|
16
|
-
const configuration$ = (0, react_1.useMemo)(() => new rxjs_1.BehaviorSubject(undefined), []);
|
|
17
|
-
// bind interface
|
|
18
|
-
(0, react_1.useImperativeHandle)(ref, () => ({ configuration$ }), [configuration$]);
|
|
19
|
-
// sync configuration when context updates
|
|
20
|
-
(0, react_1.useEffect)(() => {
|
|
21
|
-
configuration$.next(context.configuration);
|
|
22
|
-
}, [configuration$, context]);
|
|
23
|
-
// render
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(core_1.BlockConfigurationContext.Provider, { value: context, children: children }));
|
|
25
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useBlockConfiguration$ = useBlockConfiguration$;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function useBlockConfiguration$(configuration$) {
|
|
6
|
-
// bind hooks
|
|
7
|
-
const [configuration, setConfiguration] = (0, react_1.useState)();
|
|
8
|
-
// sync configuration
|
|
9
|
-
(0, react_1.useEffect)(() => {
|
|
10
|
-
// skip if there's no stream
|
|
11
|
-
if (!configuration$) {
|
|
12
|
-
setConfiguration(undefined);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
// watch stream and sync
|
|
16
|
-
const subscription = configuration$.subscribe(setConfiguration);
|
|
17
|
-
// stop on unmount
|
|
18
|
-
return () => subscription.unsubscribe();
|
|
19
|
-
}, [configuration$]);
|
|
20
|
-
// return configuration
|
|
21
|
-
return configuration;
|
|
22
|
-
}
|