@cntrl-site/sdk 1.22.9-alpha.0 → 1.22.11
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/Components/ControlSlider/ControlSliderComponent.d.ts +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -15
- package/dist/index.mjs +16 -15
- package/dist/schemas/article/Article.schema.d.ts +10 -45
- package/dist/schemas/article/Interaction.schema.d.ts +6 -31
- package/dist/schemas/article/Interaction.schema.js +1 -7
- package/dist/sdk.css +1 -1
- package/dist/types/article/Interaction.d.ts +2 -8
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export declare const ControlSliderComponent: {
|
|
|
21
21
|
triggers: {
|
|
22
22
|
name: string;
|
|
23
23
|
icon: string;
|
|
24
|
+
tooltip: string;
|
|
24
25
|
type: string;
|
|
25
26
|
properties: {
|
|
26
27
|
triggersList: {
|
|
@@ -50,6 +51,7 @@ export declare const ControlSliderComponent: {
|
|
|
50
51
|
direction: {
|
|
51
52
|
name: string;
|
|
52
53
|
icon: string;
|
|
54
|
+
tooltip: string;
|
|
53
55
|
type: string;
|
|
54
56
|
display: {
|
|
55
57
|
type: string;
|
|
@@ -59,6 +61,7 @@ export declare const ControlSliderComponent: {
|
|
|
59
61
|
controls: {
|
|
60
62
|
name: string;
|
|
61
63
|
icon: string;
|
|
64
|
+
tooltip: string;
|
|
62
65
|
type: string;
|
|
63
66
|
properties: {
|
|
64
67
|
isActive: {
|
|
@@ -117,6 +120,7 @@ export declare const ControlSliderComponent: {
|
|
|
117
120
|
pagination: {
|
|
118
121
|
name: string;
|
|
119
122
|
icon: string;
|
|
123
|
+
tooltip: string;
|
|
120
124
|
type: string;
|
|
121
125
|
properties: {
|
|
122
126
|
isActive: {
|
|
@@ -181,6 +185,7 @@ export declare const ControlSliderComponent: {
|
|
|
181
185
|
caption: {
|
|
182
186
|
name: string;
|
|
183
187
|
icon: string;
|
|
188
|
+
tooltip: string;
|
|
184
189
|
type: string;
|
|
185
190
|
properties: {
|
|
186
191
|
isActive: {
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type { Item, ImageItem, ItemAny, CustomItem, ItemCommonParamsMap, ItemLay
|
|
|
13
13
|
export type { RichTextBlock, RichTextEntity, RichTextStyle } from './types/article/RichText';
|
|
14
14
|
export type { ItemArea } from './types/article/ItemArea';
|
|
15
15
|
export type { ItemState, ItemStateParams, StateParams, ItemStatesMap } from './types/article/ItemState';
|
|
16
|
-
export type { Interaction,
|
|
16
|
+
export type { Interaction, InteractionTrigger, InteractionState } from './types/article/Interaction';
|
|
17
17
|
export type { Layout } from './types/project/Layout';
|
|
18
18
|
export type { Project } from './types/project/Project';
|
|
19
19
|
export type { Meta } from './types/project/Meta';
|
package/dist/index.js
CHANGED
|
@@ -542,12 +542,6 @@ const TriggerSchema = zod.z.object({
|
|
|
542
542
|
from: zod.z.string(),
|
|
543
543
|
to: zod.z.string()
|
|
544
544
|
});
|
|
545
|
-
const ScrollTriggerSchema = zod.z.object({
|
|
546
|
-
position: zod.z.number(),
|
|
547
|
-
from: zod.z.string(),
|
|
548
|
-
to: zod.z.string(),
|
|
549
|
-
isReverse: zod.z.boolean()
|
|
550
|
-
});
|
|
551
545
|
const VideoInteractionActionSchema = zod.z.object({
|
|
552
546
|
type: zod.z.enum(["play", "pause"]),
|
|
553
547
|
itemId: zod.z.string()
|
|
@@ -558,7 +552,7 @@ const StateSchema = zod.z.object({
|
|
|
558
552
|
});
|
|
559
553
|
const InteractionSchema = zod.z.object({
|
|
560
554
|
id: zod.z.string(),
|
|
561
|
-
triggers: zod.z.array(
|
|
555
|
+
triggers: zod.z.array(TriggerSchema),
|
|
562
556
|
states: zod.z.array(StateSchema),
|
|
563
557
|
startStateId: zod.z.string()
|
|
564
558
|
});
|
|
@@ -1230,6 +1224,7 @@ const nextArrow = "ControlSlider-module__nextArrow___-30Yc";
|
|
|
1230
1224
|
const arrowInner = "ControlSlider-module__arrowInner___aEra3";
|
|
1231
1225
|
const arrowIcon = "ControlSlider-module__arrowIcon___S4ztF";
|
|
1232
1226
|
const arrowImg = "ControlSlider-module__arrowImg___2dwJW";
|
|
1227
|
+
const mirror = "ControlSlider-module__mirror___brd6U";
|
|
1233
1228
|
const pagination = "ControlSlider-module__pagination___bicLF";
|
|
1234
1229
|
const paginationInner = "ControlSlider-module__paginationInner___bT-P-";
|
|
1235
1230
|
const paginationVertical = "ControlSlider-module__paginationVertical___zYqKw";
|
|
@@ -1271,6 +1266,7 @@ const styles$2 = {
|
|
|
1271
1266
|
arrowInner,
|
|
1272
1267
|
arrowIcon,
|
|
1273
1268
|
arrowImg,
|
|
1269
|
+
mirror,
|
|
1274
1270
|
pagination,
|
|
1275
1271
|
paginationInner,
|
|
1276
1272
|
paginationVertical,
|
|
@@ -1525,7 +1521,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1525
1521
|
},
|
|
1526
1522
|
className: styles$2.arrowInner,
|
|
1527
1523
|
style: {
|
|
1528
|
-
transform: `translate(${scalingValue(controlsOffsetX, isEditor)}, ${scalingValue(controlsOffsetY * (direction === "horizontal" ? 1 : -1), isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horizontal" ? "
|
|
1524
|
+
transform: `translate(${scalingValue(controlsOffsetX, isEditor)}, ${scalingValue(controlsOffsetY * (direction === "horizontal" ? 1 : -1), isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horizontal" ? "0deg" : "90deg"})`
|
|
1529
1525
|
},
|
|
1530
1526
|
children: [
|
|
1531
1527
|
settings.controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1534,10 +1530,10 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1534
1530
|
url: settings.controls.arrowsImgUrl,
|
|
1535
1531
|
fill: settings.controls.color,
|
|
1536
1532
|
hoverFill: settings.controls.hover,
|
|
1537
|
-
className: styles$2.arrowImg
|
|
1533
|
+
className: cn(styles$2.arrowImg, styles$2.mirror)
|
|
1538
1534
|
}
|
|
1539
1535
|
),
|
|
1540
|
-
!settings.controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: settings.controls.color, className: cn(styles$2.arrowIcon, styles$2.arrowImg) })
|
|
1536
|
+
!settings.controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: settings.controls.color, className: cn(styles$2.arrowIcon, styles$2.arrowImg, styles$2.mirror) })
|
|
1541
1537
|
]
|
|
1542
1538
|
}
|
|
1543
1539
|
)
|
|
@@ -1608,7 +1604,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1608
1604
|
{
|
|
1609
1605
|
className: styles$2.paginationInner,
|
|
1610
1606
|
style: {
|
|
1611
|
-
backgroundColor: settings.pagination.colors[
|
|
1607
|
+
backgroundColor: settings.pagination.colors[2],
|
|
1612
1608
|
transform: `scale(${settings.pagination.scale / 100}) translate(${scalingValue(settings.pagination.offset.x, isEditor)}, ${scalingValue(settings.pagination.offset.y, isEditor)}) rotate(${settings.direction === "horizontal" ? "0deg" : "90deg"})`
|
|
1613
1609
|
},
|
|
1614
1610
|
children: content.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1627,7 +1623,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1627
1623
|
[styles$2.activeDot]: index === currentSlideIndex
|
|
1628
1624
|
}),
|
|
1629
1625
|
style: {
|
|
1630
|
-
backgroundColor: settings.pagination.colors[1],
|
|
1626
|
+
backgroundColor: index === currentSlideIndex ? settings.pagination.colors[0] : settings.pagination.colors[1],
|
|
1631
1627
|
["--pagination-hover-color"]: settings.pagination.hover
|
|
1632
1628
|
}
|
|
1633
1629
|
}
|
|
@@ -1642,7 +1638,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1642
1638
|
] });
|
|
1643
1639
|
}
|
|
1644
1640
|
function ArrowIcon({ color, className }) {
|
|
1645
|
-
return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1",
|
|
1641
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
1646
1642
|
}
|
|
1647
1643
|
const ControlSliderComponent = {
|
|
1648
1644
|
element: ControlSlider,
|
|
@@ -1666,6 +1662,7 @@ const ControlSliderComponent = {
|
|
|
1666
1662
|
triggers: {
|
|
1667
1663
|
name: "triggers",
|
|
1668
1664
|
icon: "target",
|
|
1665
|
+
tooltip: "Triggers",
|
|
1669
1666
|
type: "object",
|
|
1670
1667
|
properties: {
|
|
1671
1668
|
triggersList: {
|
|
@@ -1695,6 +1692,7 @@ const ControlSliderComponent = {
|
|
|
1695
1692
|
direction: {
|
|
1696
1693
|
name: "direction",
|
|
1697
1694
|
icon: "horizontal-resize",
|
|
1695
|
+
tooltip: "Direction",
|
|
1698
1696
|
type: "string",
|
|
1699
1697
|
display: {
|
|
1700
1698
|
type: "direction-enum"
|
|
@@ -1704,6 +1702,7 @@ const ControlSliderComponent = {
|
|
|
1704
1702
|
controls: {
|
|
1705
1703
|
name: "controls",
|
|
1706
1704
|
icon: "controls",
|
|
1705
|
+
tooltip: "Controls",
|
|
1707
1706
|
type: "object",
|
|
1708
1707
|
properties: {
|
|
1709
1708
|
isActive: {
|
|
@@ -1762,6 +1761,7 @@ const ControlSliderComponent = {
|
|
|
1762
1761
|
pagination: {
|
|
1763
1762
|
name: "nav",
|
|
1764
1763
|
icon: "pagination",
|
|
1764
|
+
tooltip: "Navigation",
|
|
1765
1765
|
type: "object",
|
|
1766
1766
|
properties: {
|
|
1767
1767
|
isActive: {
|
|
@@ -1824,8 +1824,9 @@ const ControlSliderComponent = {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
},
|
|
1826
1826
|
caption: {
|
|
1827
|
-
name: "
|
|
1827
|
+
name: "Caption",
|
|
1828
1828
|
icon: "text-icon",
|
|
1829
|
+
tooltip: "Caption",
|
|
1829
1830
|
type: "object",
|
|
1830
1831
|
properties: {
|
|
1831
1832
|
isActive: {
|
|
@@ -1894,7 +1895,7 @@ const ControlSliderComponent = {
|
|
|
1894
1895
|
x: 0,
|
|
1895
1896
|
y: 0
|
|
1896
1897
|
},
|
|
1897
|
-
colors: ["#
|
|
1898
|
+
colors: ["#cccccc", "#cccccc", "#000000"],
|
|
1898
1899
|
hover: "#cccccc"
|
|
1899
1900
|
},
|
|
1900
1901
|
direction: "horizontal",
|
package/dist/index.mjs
CHANGED
|
@@ -523,12 +523,6 @@ const TriggerSchema = z.object({
|
|
|
523
523
|
from: z.string(),
|
|
524
524
|
to: z.string()
|
|
525
525
|
});
|
|
526
|
-
const ScrollTriggerSchema = z.object({
|
|
527
|
-
position: z.number(),
|
|
528
|
-
from: z.string(),
|
|
529
|
-
to: z.string(),
|
|
530
|
-
isReverse: z.boolean()
|
|
531
|
-
});
|
|
532
526
|
const VideoInteractionActionSchema = z.object({
|
|
533
527
|
type: z.enum(["play", "pause"]),
|
|
534
528
|
itemId: z.string()
|
|
@@ -539,7 +533,7 @@ const StateSchema = z.object({
|
|
|
539
533
|
});
|
|
540
534
|
const InteractionSchema = z.object({
|
|
541
535
|
id: z.string(),
|
|
542
|
-
triggers: z.array(
|
|
536
|
+
triggers: z.array(TriggerSchema),
|
|
543
537
|
states: z.array(StateSchema),
|
|
544
538
|
startStateId: z.string()
|
|
545
539
|
});
|
|
@@ -1211,6 +1205,7 @@ const nextArrow = "ControlSlider-module__nextArrow___-30Yc";
|
|
|
1211
1205
|
const arrowInner = "ControlSlider-module__arrowInner___aEra3";
|
|
1212
1206
|
const arrowIcon = "ControlSlider-module__arrowIcon___S4ztF";
|
|
1213
1207
|
const arrowImg = "ControlSlider-module__arrowImg___2dwJW";
|
|
1208
|
+
const mirror = "ControlSlider-module__mirror___brd6U";
|
|
1214
1209
|
const pagination = "ControlSlider-module__pagination___bicLF";
|
|
1215
1210
|
const paginationInner = "ControlSlider-module__paginationInner___bT-P-";
|
|
1216
1211
|
const paginationVertical = "ControlSlider-module__paginationVertical___zYqKw";
|
|
@@ -1252,6 +1247,7 @@ const styles$2 = {
|
|
|
1252
1247
|
arrowInner,
|
|
1253
1248
|
arrowIcon,
|
|
1254
1249
|
arrowImg,
|
|
1250
|
+
mirror,
|
|
1255
1251
|
pagination,
|
|
1256
1252
|
paginationInner,
|
|
1257
1253
|
paginationVertical,
|
|
@@ -1506,7 +1502,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1506
1502
|
},
|
|
1507
1503
|
className: styles$2.arrowInner,
|
|
1508
1504
|
style: {
|
|
1509
|
-
transform: `translate(${scalingValue(controlsOffsetX, isEditor)}, ${scalingValue(controlsOffsetY * (direction === "horizontal" ? 1 : -1), isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horizontal" ? "
|
|
1505
|
+
transform: `translate(${scalingValue(controlsOffsetX, isEditor)}, ${scalingValue(controlsOffsetY * (direction === "horizontal" ? 1 : -1), isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horizontal" ? "0deg" : "90deg"})`
|
|
1510
1506
|
},
|
|
1511
1507
|
children: [
|
|
1512
1508
|
settings.controls.arrowsImgUrl && /* @__PURE__ */ jsx(
|
|
@@ -1515,10 +1511,10 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1515
1511
|
url: settings.controls.arrowsImgUrl,
|
|
1516
1512
|
fill: settings.controls.color,
|
|
1517
1513
|
hoverFill: settings.controls.hover,
|
|
1518
|
-
className: styles$2.arrowImg
|
|
1514
|
+
className: cn(styles$2.arrowImg, styles$2.mirror)
|
|
1519
1515
|
}
|
|
1520
1516
|
),
|
|
1521
|
-
!settings.controls.arrowsImgUrl && /* @__PURE__ */ jsx(ArrowIcon, { color: settings.controls.color, className: cn(styles$2.arrowIcon, styles$2.arrowImg) })
|
|
1517
|
+
!settings.controls.arrowsImgUrl && /* @__PURE__ */ jsx(ArrowIcon, { color: settings.controls.color, className: cn(styles$2.arrowIcon, styles$2.arrowImg, styles$2.mirror) })
|
|
1522
1518
|
]
|
|
1523
1519
|
}
|
|
1524
1520
|
)
|
|
@@ -1589,7 +1585,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1589
1585
|
{
|
|
1590
1586
|
className: styles$2.paginationInner,
|
|
1591
1587
|
style: {
|
|
1592
|
-
backgroundColor: settings.pagination.colors[
|
|
1588
|
+
backgroundColor: settings.pagination.colors[2],
|
|
1593
1589
|
transform: `scale(${settings.pagination.scale / 100}) translate(${scalingValue(settings.pagination.offset.x, isEditor)}, ${scalingValue(settings.pagination.offset.y, isEditor)}) rotate(${settings.direction === "horizontal" ? "0deg" : "90deg"})`
|
|
1594
1590
|
},
|
|
1595
1591
|
children: content.map((_, index) => /* @__PURE__ */ jsx(
|
|
@@ -1608,7 +1604,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1608
1604
|
[styles$2.activeDot]: index === currentSlideIndex
|
|
1609
1605
|
}),
|
|
1610
1606
|
style: {
|
|
1611
|
-
backgroundColor: settings.pagination.colors[1],
|
|
1607
|
+
backgroundColor: index === currentSlideIndex ? settings.pagination.colors[0] : settings.pagination.colors[1],
|
|
1612
1608
|
["--pagination-hover-color"]: settings.pagination.hover
|
|
1613
1609
|
}
|
|
1614
1610
|
}
|
|
@@ -1623,7 +1619,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1623
1619
|
] });
|
|
1624
1620
|
}
|
|
1625
1621
|
function ArrowIcon({ color, className }) {
|
|
1626
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1",
|
|
1622
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsx("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
1627
1623
|
}
|
|
1628
1624
|
const ControlSliderComponent = {
|
|
1629
1625
|
element: ControlSlider,
|
|
@@ -1647,6 +1643,7 @@ const ControlSliderComponent = {
|
|
|
1647
1643
|
triggers: {
|
|
1648
1644
|
name: "triggers",
|
|
1649
1645
|
icon: "target",
|
|
1646
|
+
tooltip: "Triggers",
|
|
1650
1647
|
type: "object",
|
|
1651
1648
|
properties: {
|
|
1652
1649
|
triggersList: {
|
|
@@ -1676,6 +1673,7 @@ const ControlSliderComponent = {
|
|
|
1676
1673
|
direction: {
|
|
1677
1674
|
name: "direction",
|
|
1678
1675
|
icon: "horizontal-resize",
|
|
1676
|
+
tooltip: "Direction",
|
|
1679
1677
|
type: "string",
|
|
1680
1678
|
display: {
|
|
1681
1679
|
type: "direction-enum"
|
|
@@ -1685,6 +1683,7 @@ const ControlSliderComponent = {
|
|
|
1685
1683
|
controls: {
|
|
1686
1684
|
name: "controls",
|
|
1687
1685
|
icon: "controls",
|
|
1686
|
+
tooltip: "Controls",
|
|
1688
1687
|
type: "object",
|
|
1689
1688
|
properties: {
|
|
1690
1689
|
isActive: {
|
|
@@ -1743,6 +1742,7 @@ const ControlSliderComponent = {
|
|
|
1743
1742
|
pagination: {
|
|
1744
1743
|
name: "nav",
|
|
1745
1744
|
icon: "pagination",
|
|
1745
|
+
tooltip: "Navigation",
|
|
1746
1746
|
type: "object",
|
|
1747
1747
|
properties: {
|
|
1748
1748
|
isActive: {
|
|
@@ -1805,8 +1805,9 @@ const ControlSliderComponent = {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
},
|
|
1807
1807
|
caption: {
|
|
1808
|
-
name: "
|
|
1808
|
+
name: "Caption",
|
|
1809
1809
|
icon: "text-icon",
|
|
1810
|
+
tooltip: "Caption",
|
|
1810
1811
|
type: "object",
|
|
1811
1812
|
properties: {
|
|
1812
1813
|
isActive: {
|
|
@@ -1875,7 +1876,7 @@ const ControlSliderComponent = {
|
|
|
1875
1876
|
x: 0,
|
|
1876
1877
|
y: 0
|
|
1877
1878
|
},
|
|
1878
|
-
colors: ["#
|
|
1879
|
+
colors: ["#cccccc", "#cccccc", "#000000"],
|
|
1879
1880
|
hover: "#cccccc"
|
|
1880
1881
|
},
|
|
1881
1882
|
direction: "horizontal",
|
|
@@ -76,7 +76,7 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
76
76
|
}>, "many">;
|
|
77
77
|
interactions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
78
78
|
id: z.ZodString;
|
|
79
|
-
triggers: z.ZodArray<z.
|
|
79
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
80
80
|
itemId: z.ZodString;
|
|
81
81
|
type: z.ZodEnum<["hover-in", "hover-out", "click"]>;
|
|
82
82
|
from: z.ZodString;
|
|
@@ -91,22 +91,7 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
91
91
|
from: string;
|
|
92
92
|
to: string;
|
|
93
93
|
itemId: string;
|
|
94
|
-
}>,
|
|
95
|
-
position: z.ZodNumber;
|
|
96
|
-
from: z.ZodString;
|
|
97
|
-
to: z.ZodString;
|
|
98
|
-
isReverse: z.ZodBoolean;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
position: number;
|
|
101
|
-
from: string;
|
|
102
|
-
to: string;
|
|
103
|
-
isReverse: boolean;
|
|
104
|
-
}, {
|
|
105
|
-
position: number;
|
|
106
|
-
from: string;
|
|
107
|
-
to: string;
|
|
108
|
-
isReverse: boolean;
|
|
109
|
-
}>]>, "many">;
|
|
94
|
+
}>, "many">;
|
|
110
95
|
states: z.ZodArray<z.ZodObject<{
|
|
111
96
|
id: z.ZodString;
|
|
112
97
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -135,17 +120,12 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
135
120
|
startStateId: z.ZodString;
|
|
136
121
|
}, "strip", z.ZodTypeAny, {
|
|
137
122
|
id: string;
|
|
138
|
-
triggers:
|
|
123
|
+
triggers: {
|
|
139
124
|
type: "hover-in" | "hover-out" | "click";
|
|
140
125
|
from: string;
|
|
141
126
|
to: string;
|
|
142
127
|
itemId: string;
|
|
143
|
-
}
|
|
144
|
-
position: number;
|
|
145
|
-
from: string;
|
|
146
|
-
to: string;
|
|
147
|
-
isReverse: boolean;
|
|
148
|
-
})[];
|
|
128
|
+
}[];
|
|
149
129
|
states: {
|
|
150
130
|
id: string;
|
|
151
131
|
actions?: {
|
|
@@ -156,17 +136,12 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
156
136
|
startStateId: string;
|
|
157
137
|
}, {
|
|
158
138
|
id: string;
|
|
159
|
-
triggers:
|
|
139
|
+
triggers: {
|
|
160
140
|
type: "hover-in" | "hover-out" | "click";
|
|
161
141
|
from: string;
|
|
162
142
|
to: string;
|
|
163
143
|
itemId: string;
|
|
164
|
-
}
|
|
165
|
-
position: number;
|
|
166
|
-
from: string;
|
|
167
|
-
to: string;
|
|
168
|
-
isReverse: boolean;
|
|
169
|
-
})[];
|
|
144
|
+
}[];
|
|
170
145
|
states: {
|
|
171
146
|
id: string;
|
|
172
147
|
actions?: {
|
|
@@ -199,17 +174,12 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
199
174
|
}[];
|
|
200
175
|
interactions: Record<string, {
|
|
201
176
|
id: string;
|
|
202
|
-
triggers:
|
|
177
|
+
triggers: {
|
|
203
178
|
type: "hover-in" | "hover-out" | "click";
|
|
204
179
|
from: string;
|
|
205
180
|
to: string;
|
|
206
181
|
itemId: string;
|
|
207
|
-
}
|
|
208
|
-
position: number;
|
|
209
|
-
from: string;
|
|
210
|
-
to: string;
|
|
211
|
-
isReverse: boolean;
|
|
212
|
-
})[];
|
|
182
|
+
}[];
|
|
213
183
|
states: {
|
|
214
184
|
id: string;
|
|
215
185
|
actions?: {
|
|
@@ -242,17 +212,12 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
242
212
|
}[];
|
|
243
213
|
interactions: Record<string, {
|
|
244
214
|
id: string;
|
|
245
|
-
triggers:
|
|
215
|
+
triggers: {
|
|
246
216
|
type: "hover-in" | "hover-out" | "click";
|
|
247
217
|
from: string;
|
|
248
218
|
to: string;
|
|
249
219
|
itemId: string;
|
|
250
|
-
}
|
|
251
|
-
position: number;
|
|
252
|
-
from: string;
|
|
253
|
-
to: string;
|
|
254
|
-
isReverse: boolean;
|
|
255
|
-
})[];
|
|
220
|
+
}[];
|
|
256
221
|
states: {
|
|
257
222
|
id: string;
|
|
258
223
|
actions?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const InteractionSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
triggers: z.ZodArray<z.
|
|
4
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
5
5
|
itemId: z.ZodString;
|
|
6
6
|
type: z.ZodEnum<["hover-in", "hover-out", "click"]>;
|
|
7
7
|
from: z.ZodString;
|
|
@@ -16,22 +16,7 @@ export declare const InteractionSchema: z.ZodObject<{
|
|
|
16
16
|
from: string;
|
|
17
17
|
to: string;
|
|
18
18
|
itemId: string;
|
|
19
|
-
}>,
|
|
20
|
-
position: z.ZodNumber;
|
|
21
|
-
from: z.ZodString;
|
|
22
|
-
to: z.ZodString;
|
|
23
|
-
isReverse: z.ZodBoolean;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
position: number;
|
|
26
|
-
from: string;
|
|
27
|
-
to: string;
|
|
28
|
-
isReverse: boolean;
|
|
29
|
-
}, {
|
|
30
|
-
position: number;
|
|
31
|
-
from: string;
|
|
32
|
-
to: string;
|
|
33
|
-
isReverse: boolean;
|
|
34
|
-
}>]>, "many">;
|
|
19
|
+
}>, "many">;
|
|
35
20
|
states: z.ZodArray<z.ZodObject<{
|
|
36
21
|
id: z.ZodString;
|
|
37
22
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -60,17 +45,12 @@ export declare const InteractionSchema: z.ZodObject<{
|
|
|
60
45
|
startStateId: z.ZodString;
|
|
61
46
|
}, "strip", z.ZodTypeAny, {
|
|
62
47
|
id: string;
|
|
63
|
-
triggers:
|
|
48
|
+
triggers: {
|
|
64
49
|
type: "hover-in" | "hover-out" | "click";
|
|
65
50
|
from: string;
|
|
66
51
|
to: string;
|
|
67
52
|
itemId: string;
|
|
68
|
-
}
|
|
69
|
-
position: number;
|
|
70
|
-
from: string;
|
|
71
|
-
to: string;
|
|
72
|
-
isReverse: boolean;
|
|
73
|
-
})[];
|
|
53
|
+
}[];
|
|
74
54
|
states: {
|
|
75
55
|
id: string;
|
|
76
56
|
actions?: {
|
|
@@ -81,17 +61,12 @@ export declare const InteractionSchema: z.ZodObject<{
|
|
|
81
61
|
startStateId: string;
|
|
82
62
|
}, {
|
|
83
63
|
id: string;
|
|
84
|
-
triggers:
|
|
64
|
+
triggers: {
|
|
85
65
|
type: "hover-in" | "hover-out" | "click";
|
|
86
66
|
from: string;
|
|
87
67
|
to: string;
|
|
88
68
|
itemId: string;
|
|
89
|
-
}
|
|
90
|
-
position: number;
|
|
91
|
-
from: string;
|
|
92
|
-
to: string;
|
|
93
|
-
isReverse: boolean;
|
|
94
|
-
})[];
|
|
69
|
+
}[];
|
|
95
70
|
states: {
|
|
96
71
|
id: string;
|
|
97
72
|
actions?: {
|
|
@@ -8,12 +8,6 @@ const TriggerSchema = zod_1.z.object({
|
|
|
8
8
|
from: zod_1.z.string(),
|
|
9
9
|
to: zod_1.z.string()
|
|
10
10
|
});
|
|
11
|
-
const ScrollTriggerSchema = zod_1.z.object({
|
|
12
|
-
position: zod_1.z.number(),
|
|
13
|
-
from: zod_1.z.string(),
|
|
14
|
-
to: zod_1.z.string(),
|
|
15
|
-
isReverse: zod_1.z.boolean()
|
|
16
|
-
});
|
|
17
11
|
const VideoInteractionActionSchema = zod_1.z.object({
|
|
18
12
|
type: zod_1.z.enum(['play', 'pause']),
|
|
19
13
|
itemId: zod_1.z.string()
|
|
@@ -24,7 +18,7 @@ const StateSchema = zod_1.z.object({
|
|
|
24
18
|
});
|
|
25
19
|
exports.InteractionSchema = zod_1.z.object({
|
|
26
20
|
id: zod_1.z.string(),
|
|
27
|
-
triggers: zod_1.z.array(
|
|
21
|
+
triggers: zod_1.z.array(TriggerSchema),
|
|
28
22
|
states: zod_1.z.array(StateSchema),
|
|
29
23
|
startStateId: zod_1.z.string(),
|
|
30
24
|
});
|
package/dist/sdk.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,-50%)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(50%,-50%)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,50%)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__prevIcon___v8NAK{transform:rotate(180deg)}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate(-50%);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate(-50%);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate(-50%);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition:opacity .3s ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}.RichTextRenderer-module__link___BWeZ2{color:inherit;cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}
|
|
1
|
+
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,-50%)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(50%,-50%)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,50%)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleX(-1)}.ControlSlider-module__arrowVertical___tBfVN.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleY(-1)}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate(-50%);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate(-50%);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate(-50%);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition:opacity .3s ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}.RichTextRenderer-module__link___BWeZ2{color:inherit;cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
export interface Interaction {
|
|
2
2
|
id: string;
|
|
3
|
-
triggers:
|
|
3
|
+
triggers: InteractionTrigger[];
|
|
4
4
|
states: InteractionState[];
|
|
5
5
|
startStateId: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface InteractionTrigger {
|
|
8
8
|
itemId: string;
|
|
9
9
|
type: 'hover-in' | 'hover-out' | 'click';
|
|
10
10
|
from: StateId;
|
|
11
11
|
to: StateId;
|
|
12
12
|
}
|
|
13
|
-
export interface InteractionScrollTrigger {
|
|
14
|
-
position: number;
|
|
15
|
-
from: StateId;
|
|
16
|
-
to: StateId;
|
|
17
|
-
isReverse: boolean;
|
|
18
|
-
}
|
|
19
13
|
export type VideoInteractionAction = {
|
|
20
14
|
type: 'play' | 'pause';
|
|
21
15
|
itemId: string;
|