@plasmicpkgs/react-slick 0.0.68 → 0.0.72
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/react-slick.cjs.development.js +122 -25
- package/dist/react-slick.cjs.development.js.map +1 -1
- package/dist/react-slick.cjs.production.min.js +1 -1
- package/dist/react-slick.cjs.production.min.js.map +1 -1
- package/dist/react-slick.esm.js +122 -25
- package/dist/react-slick.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -6,6 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var registerComponent = _interopDefault(require('@plasmicapp/host/registerComponent'));
|
|
8
8
|
var composeRefs = _interopDefault(require('@seznam/compose-react-refs'));
|
|
9
|
+
var antd = require('antd');
|
|
9
10
|
var React = require('react');
|
|
10
11
|
var React__default = _interopDefault(React);
|
|
11
12
|
var Slider = _interopDefault(require('react-slick'));
|
|
@@ -26,16 +27,110 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
var _excluded = ["editingSlide", "setControlContextData"];
|
|
30
|
+
var Option = antd.Select.Option;
|
|
31
|
+
|
|
32
|
+
function CurrentSlideDropdown(_ref) {
|
|
33
|
+
var _componentProps$editi, _componentProps$child;
|
|
34
|
+
|
|
35
|
+
var componentProps = _ref.componentProps,
|
|
36
|
+
studioOps = _ref.studioOps;
|
|
37
|
+
var editingSlide = (_componentProps$editi = componentProps.editingSlide) != null ? _componentProps$editi : 0;
|
|
38
|
+
var slidesCnt = (_componentProps$child = componentProps.children.length) != null ? _componentProps$child : componentProps.children.type === "img" ? 1 : 0;
|
|
39
|
+
var options = Array.from({
|
|
40
|
+
length: slidesCnt
|
|
41
|
+
}, function (_, i) {
|
|
42
|
+
return i;
|
|
43
|
+
}).map(function (i) {
|
|
44
|
+
return React__default.createElement(Option, {
|
|
45
|
+
value: i.toString()
|
|
46
|
+
}, "Slide ", i + 1);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
var handleChange = function handleChange(value) {
|
|
50
|
+
var slideIdx = Number(value);
|
|
51
|
+
studioOps.updateProps({
|
|
52
|
+
editingSlide: slideIdx % slidesCnt
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
return React__default.createElement("div", {
|
|
57
|
+
style: {
|
|
58
|
+
width: "100%",
|
|
59
|
+
display: "flex",
|
|
60
|
+
flexDirection: "row",
|
|
61
|
+
gap: "10px",
|
|
62
|
+
justifyContent: "space-between"
|
|
63
|
+
}
|
|
64
|
+
}, React__default.createElement("div", null, "Current slide:"), React__default.createElement(antd.Select, {
|
|
65
|
+
defaultValue: editingSlide.toString(),
|
|
66
|
+
style: {
|
|
67
|
+
width: "100%"
|
|
68
|
+
},
|
|
69
|
+
onChange: handleChange,
|
|
70
|
+
value: editingSlide.toString()
|
|
71
|
+
}, options));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function NavigateSlides(_ref2) {
|
|
75
|
+
var _componentProps$editi2;
|
|
76
|
+
|
|
77
|
+
var componentProps = _ref2.componentProps,
|
|
78
|
+
studioOps = _ref2.studioOps;
|
|
79
|
+
var slidesCnt = componentProps.children.length;
|
|
80
|
+
var editingSlide = (_componentProps$editi2 = componentProps.editingSlide) != null ? _componentProps$editi2 : 0;
|
|
81
|
+
return React__default.createElement("div", {
|
|
82
|
+
style: {
|
|
83
|
+
width: "100%",
|
|
84
|
+
display: "flex",
|
|
85
|
+
flexDirection: "row",
|
|
86
|
+
gap: "10px",
|
|
87
|
+
justifyContent: "space-between"
|
|
88
|
+
}
|
|
89
|
+
}, React__default.createElement(antd.Button, {
|
|
90
|
+
style: {
|
|
91
|
+
width: "100%"
|
|
92
|
+
},
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
var prevSlide = (editingSlide - 1 + slidesCnt) % slidesCnt;
|
|
95
|
+
studioOps.updateProps({
|
|
96
|
+
editingSlide: prevSlide
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, "Prev slide"), React__default.createElement(antd.Button, {
|
|
100
|
+
style: {
|
|
101
|
+
width: "100%"
|
|
102
|
+
},
|
|
103
|
+
onClick: function onClick() {
|
|
104
|
+
var nextSlide = (editingSlide + 1) % slidesCnt;
|
|
105
|
+
studioOps.updateProps({
|
|
106
|
+
editingSlide: nextSlide
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}, "Next slide"));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function OutlineMessage() {
|
|
113
|
+
return React__default.createElement("div", null, "* To re-arrange slides, use the Outline panel");
|
|
114
|
+
}
|
|
115
|
+
|
|
29
116
|
var sliderMeta = {
|
|
30
117
|
name: "hostless-slider",
|
|
31
118
|
displayName: "Slider",
|
|
32
119
|
importName: "Slider",
|
|
33
120
|
importPath: "react-slick",
|
|
34
121
|
actions: [{
|
|
122
|
+
type: "custom-action",
|
|
123
|
+
control: CurrentSlideDropdown
|
|
124
|
+
}, {
|
|
125
|
+
type: "custom-action",
|
|
126
|
+
control: NavigateSlides
|
|
127
|
+
}, {
|
|
35
128
|
type: "button-action",
|
|
36
129
|
label: "Append new slide",
|
|
37
|
-
onClick: function onClick(
|
|
38
|
-
var
|
|
130
|
+
onClick: function onClick(_ref3) {
|
|
131
|
+
var componentProps = _ref3.componentProps,
|
|
132
|
+
studioOps = _ref3.studioOps;
|
|
133
|
+
var slidesCnt = componentProps.children.length;
|
|
39
134
|
studioOps.appendToSlot({
|
|
40
135
|
type: "img",
|
|
41
136
|
src: "",
|
|
@@ -43,17 +138,29 @@ var sliderMeta = {
|
|
|
43
138
|
maxWidth: "100%"
|
|
44
139
|
}
|
|
45
140
|
}, "children");
|
|
141
|
+
studioOps.updateProps({
|
|
142
|
+
editingSlide: slidesCnt
|
|
143
|
+
});
|
|
46
144
|
}
|
|
47
145
|
}, {
|
|
48
146
|
type: "button-action",
|
|
49
147
|
label: "Delete current slide",
|
|
50
|
-
onClick: function onClick(
|
|
148
|
+
onClick: function onClick(_ref4) {
|
|
51
149
|
var _contextData$editingS;
|
|
52
150
|
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
151
|
+
var componentProps = _ref4.componentProps,
|
|
152
|
+
contextData = _ref4.contextData,
|
|
153
|
+
studioOps = _ref4.studioOps;
|
|
154
|
+
var editingSlide = (_contextData$editingS = contextData.editingSlide) != null ? _contextData$editingS : 0;
|
|
155
|
+
studioOps.removeFromSlotAt(editingSlide, "children");
|
|
156
|
+
var slidesCnt = componentProps.children.length - 1;
|
|
157
|
+
studioOps.updateProps({
|
|
158
|
+
editingSlide: (editingSlide - 1 + slidesCnt) % slidesCnt
|
|
159
|
+
});
|
|
56
160
|
}
|
|
161
|
+
}, {
|
|
162
|
+
type: "custom-action",
|
|
163
|
+
control: OutlineMessage
|
|
57
164
|
}],
|
|
58
165
|
props: {
|
|
59
166
|
children: {
|
|
@@ -83,21 +190,11 @@ var sliderMeta = {
|
|
|
83
190
|
type: "number",
|
|
84
191
|
description: "Switch to the specified slide (first is 0). Only affects the editor, not the final page.",
|
|
85
192
|
defaultValueHint: 0,
|
|
86
|
-
editOnly: true
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
// type: "custom",
|
|
92
|
-
// description: "Insert a new slide right after the current slide.",
|
|
93
|
-
// control: MyReactComponent,
|
|
94
|
-
// },
|
|
95
|
-
// deleteSlide: {
|
|
96
|
-
// displayName: "",
|
|
97
|
-
// type: "custom",
|
|
98
|
-
// description: "Delete the current slide.",
|
|
99
|
-
// control: MyReactComponent,
|
|
100
|
-
// },
|
|
193
|
+
editOnly: true,
|
|
194
|
+
hidden: function hidden() {
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
},
|
|
101
198
|
accessibility: {
|
|
102
199
|
displayName: "Accessibility",
|
|
103
200
|
type: "boolean",
|
|
@@ -315,10 +412,10 @@ var sliderMeta = {
|
|
|
315
412
|
flexDirection: "column"
|
|
316
413
|
}
|
|
317
414
|
};
|
|
318
|
-
var SliderWrapper = /*#__PURE__*/React.forwardRef(function SliderWrapper_(
|
|
319
|
-
var editingSlide =
|
|
320
|
-
setControlContextData =
|
|
321
|
-
props = _objectWithoutPropertiesLoose(
|
|
415
|
+
var SliderWrapper = /*#__PURE__*/React.forwardRef(function SliderWrapper_(_ref5, userRef) {
|
|
416
|
+
var editingSlide = _ref5.editingSlide,
|
|
417
|
+
setControlContextData = _ref5.setControlContextData,
|
|
418
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded);
|
|
322
419
|
|
|
323
420
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
324
421
|
editingSlide: editingSlide
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-slick.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport composeRefs from \"@seznam/compose-react-refs\";\nimport React, { forwardRef, Ref, useEffect, useRef } from \"react\";\nimport Slider, { Settings } from \"react-slick\";\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n actions: [\n {\n type: \"button-action\",\n label: \"Append new slide\",\n onClick: ({ studioOps }) => {\n studioOps.appendToSlot(\n {\n type: \"img\",\n src: \"\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n \"children\"\n );\n },\n },\n {\n type: \"button-action\",\n label: \"Delete current slide\",\n onClick: ({ contextData, studioOps }) =>\n studioOps.removeFromSlotAt(contextData.editingSlide ?? 0, \"children\"),\n },\n ],\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n editingSlide: {\n displayName: \"Currently edited slide\",\n type: \"number\",\n description:\n \"Switch to the specified slide (first is 0). Only affects the editor, not the final page.\",\n defaultValueHint: 0,\n editOnly: true,\n },\n // TODO Ideally, we are not showing any labels on these buttons, and we can place them in the same row.\n // insertSlide: {\n // displayName: \"\",\n // type: \"custom\",\n // description: \"Insert a new slide right after the current slide.\",\n // control: MyReactComponent,\n // },\n // deleteSlide: {\n // displayName: \"\",\n // type: \"custom\",\n // description: \"Delete the current slide.\",\n // control: MyReactComponent,\n // },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n flexDirection: \"column\",\n },\n};\n\nexport const SliderWrapper = forwardRef(function SliderWrapper_(\n {\n editingSlide,\n setControlContextData,\n ...props\n }: Settings & {\n editingSlide?: number;\n setControlContextData?: (data: {\n editingSlide: number | undefined;\n }) => void;\n },\n userRef?: Ref<Slider>\n) {\n setControlContextData?.({ editingSlide: editingSlide });\n const slider = useRef<Slider>(null);\n useEffect(() => {\n if (editingSlide !== undefined) {\n slider.current!.slickGoTo(editingSlide);\n }\n }, [editingSlide]);\n return <Slider ref={composeRefs(slider, userRef)} {...props} />;\n});\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["sliderMeta","name","displayName","importName","importPath","actions","type","label","onClick","studioOps","appendToSlot","src","styles","maxWidth","contextData","removeFromSlotAt","editingSlide","props","children","defaultValue","description","defaultValueHint","editOnly","accessibility","adaptiveHeight","arrows","autoplay","autoplaySpeed","hidden","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width","flexDirection","SliderWrapper","forwardRef","SliderWrapper_","userRef","setControlContextData","slider","useRef","useEffect","undefined","current","slickGoTo","React","Slider","ref","composeRefs","registerSlider","loader","customSliderMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOaA,UAAU,GAA4B;AACjDC,EAAAA,IAAI,EAAE,iBAD2C;AAEjDC,EAAAA,WAAW,EAAE,QAFoC;AAGjDC,EAAAA,UAAU,EAAE,QAHqC;AAIjDC,EAAAA,UAAU,EAAE,aAJqC;AAKjDC,EAAAA,OAAO,EAAE,CACP;AACEC,IAAAA,IAAI,EAAE,eADR;AAEEC,IAAAA,KAAK,EAAE,kBAFT;AAGEC,IAAAA,OAAO,EAAE;UAAGC,iBAAAA;AACVA,MAAAA,SAAS,C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,KAAKqD,SAArB,EAAgC;AAC9BH,MAAAA,MAAM,CAACI,OAAP,CAAgBC,SAAhB,CAA0BvD,YAA1B;AACD;AACF,GAJQ,EAIN,CAACA,YAAD,CAJM,CAAT;AAKA,SAAOwD,4BAAA,CAACC,MAAD;AAAQC,IAAAA,GAAG,EAAEC,WAAW,CAACT,MAAD,EAASF,OAAT;KAAuB/C,MAA/C,CAAP;AACD,CArBsC;SAuBvB2D,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBlB,aAAzB,EAAwCiB,gBAAxC,WAAwCA,gBAAxC,GAA4D9E,UAA5D;AACD,GAFD,MAEO;AACL+E,IAAAA,iBAAiB,CAAClB,aAAD,EAAgBiB,gBAAhB,WAAgBA,gBAAhB,GAAoC9E,UAApC,CAAjB;AACD;AACF;;;;;;"}
|
|
1
|
+
{"version":3,"file":"react-slick.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ActionProps,\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport composeRefs from \"@seznam/compose-react-refs\";\nimport { Button, Select } from \"antd\";\nimport React, { forwardRef, Ref, useEffect, useRef } from \"react\";\nimport Slider, { Settings } from \"react-slick\";\n\nconst { Option } = Select;\n\nfunction CurrentSlideDropdown({ componentProps, studioOps }: ActionProps<any>) {\n const editingSlide = componentProps.editingSlide ?? 0;\n const slidesCnt =\n componentProps.children.length ??\n (componentProps.children.type === \"img\" ? 1 : 0);\n\n const options = Array.from({ length: slidesCnt }, (_, i) => i).map((i) => {\n return <Option value={i.toString()}>Slide {i + 1}</Option>;\n });\n\n const handleChange = (value: string) => {\n const slideIdx = Number(value);\n studioOps.updateProps({ editingSlide: slideIdx % slidesCnt });\n };\n\n return (\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"10px\",\n justifyContent: \"space-between\",\n }}\n >\n <div>Current slide:</div>\n <Select\n defaultValue={editingSlide.toString()}\n style={{ width: \"100%\" }}\n onChange={handleChange}\n value={editingSlide.toString()}\n >\n {options}\n </Select>\n </div>\n );\n}\n\nfunction NavigateSlides({ componentProps, studioOps }: ActionProps<any>) {\n const slidesCnt = componentProps.children.length;\n const editingSlide = componentProps.editingSlide ?? 0;\n\n return (\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"10px\",\n justifyContent: \"space-between\",\n }}\n >\n <Button\n style={{ width: \"100%\" }}\n onClick={() => {\n const prevSlide = (editingSlide - 1 + slidesCnt) % slidesCnt;\n studioOps.updateProps({ editingSlide: prevSlide });\n }}\n >\n Prev slide\n </Button>\n <Button\n style={{ width: \"100%\" }}\n onClick={() => {\n const nextSlide = (editingSlide + 1) % slidesCnt;\n studioOps.updateProps({ editingSlide: nextSlide });\n }}\n >\n Next slide\n </Button>\n </div>\n );\n}\n\nfunction OutlineMessage() {\n return <div>* To re-arrange slides, use the Outline panel</div>;\n}\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n actions: [\n {\n type: \"custom-action\",\n control: CurrentSlideDropdown,\n },\n {\n type: \"custom-action\",\n control: NavigateSlides,\n },\n {\n type: \"button-action\",\n label: \"Append new slide\",\n onClick: ({ componentProps, studioOps }: ActionProps<any>) => {\n const slidesCnt = componentProps.children.length;\n studioOps.appendToSlot(\n {\n type: \"img\",\n src: \"\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n \"children\"\n );\n studioOps.updateProps({ editingSlide: slidesCnt });\n },\n },\n {\n type: \"button-action\",\n label: \"Delete current slide\",\n onClick: ({\n componentProps,\n contextData,\n studioOps,\n }: ActionProps<any>) => {\n const editingSlide = contextData.editingSlide ?? 0;\n studioOps.removeFromSlotAt(editingSlide, \"children\");\n const slidesCnt = componentProps.children.length - 1;\n studioOps.updateProps({\n editingSlide: (editingSlide - 1 + slidesCnt) % slidesCnt,\n });\n },\n },\n {\n type: \"custom-action\",\n control: OutlineMessage,\n },\n ],\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n editingSlide: {\n displayName: \"Currently edited slide\",\n type: \"number\",\n description:\n \"Switch to the specified slide (first is 0). Only affects the editor, not the final page.\",\n defaultValueHint: 0,\n editOnly: true,\n hidden: () => true,\n },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n flexDirection: \"column\",\n },\n};\n\nexport const SliderWrapper = forwardRef(function SliderWrapper_(\n {\n editingSlide,\n setControlContextData,\n ...props\n }: Settings & {\n editingSlide?: number;\n setControlContextData?: (data: {\n editingSlide: number | undefined;\n }) => void;\n },\n userRef?: Ref<Slider>\n) {\n setControlContextData?.({ editingSlide: editingSlide });\n const slider = useRef<Slider>(null);\n useEffect(() => {\n if (editingSlide !== undefined) {\n slider.current!.slickGoTo(editingSlide);\n }\n }, [editingSlide]);\n return <Slider ref={composeRefs(slider, userRef)} {...props} />;\n});\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["Option","Select","CurrentSlideDropdown","componentProps","studioOps","editingSlide","slidesCnt","children","length","type","options","Array","from","_","i","map","React","value","toString","handleChange","slideIdx","Number","updateProps","style","width","display","flexDirection","gap","justifyContent","defaultValue","onChange","NavigateSlides","Button","onClick","prevSlide","nextSlide","OutlineMessage","sliderMeta","name","displayName","importName","importPath","actions","control","label","appendToSlot","src","styles","maxWidth","contextData","removeFromSlotAt","props","description","defaultValueHint","editOnly","hidden","accessibility","adaptiveHeight","arrows","autoplay","autoplaySpeed","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","SliderWrapper","forwardRef","SliderWrapper_","userRef","setControlContextData","slider","useRef","useEffect","undefined","current","slickGoTo","Slider","ref","composeRefs","registerSlider","loader","customSliderMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAQA,MAAR,GAAmBC,WAAnB,CAAQD,MAAR;;AAEA,SAASE,oBAAT;;;MAAgCC,sBAAAA;MAAgBC,iBAAAA;AAC9C,MAAMC,YAAY,4BAAGF,c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gBAAxC,WAAwCA,gBAAxC,GAA4DrE,UAA5D;AACD,GAFD,MAEO;AACLsE,IAAAA,iBAAiB,CAACjB,aAAD,EAAgBgB,gBAAhB,WAAgBA,gBAAhB,GAAoCrE,UAApC,CAAjB;AACD;AACF;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),i=e(require("@seznam/compose-react-refs")),n=require("antd"),l=require("react"),a=e(l),o=e(require("react-slick")),s=["editingSlide","setControlContextData"],d=n.Select.Option,r={name:"hostless-slider",displayName:"Slider",importName:"Slider",importPath:"react-slick",actions:[{type:"custom-action",control:function(e){var t,i,l=e.componentProps,o=e.studioOps,s=null!=(t=l.editingSlide)?t:0,r=null!=(i=l.children.length)?i:"img"===l.children.type?1:0,p=Array.from({length:r},(function(e,t){return t})).map((function(e){return a.createElement(d,{value:e.toString()},"Slide ",e+1)}));return a.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"row",gap:"10px",justifyContent:"space-between"}},a.createElement("div",null,"Current slide:"),a.createElement(n.Select,{defaultValue:s.toString(),style:{width:"100%"},onChange:function(e){var t=Number(e);o.updateProps({editingSlide:t%r})},value:s.toString()},p))}},{type:"custom-action",control:function(e){var t,i=e.componentProps,l=e.studioOps,o=i.children.length,s=null!=(t=i.editingSlide)?t:0;return a.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"row",gap:"10px",justifyContent:"space-between"}},a.createElement(n.Button,{style:{width:"100%"},onClick:function(){l.updateProps({editingSlide:(s-1+o)%o})}},"Prev slide"),a.createElement(n.Button,{style:{width:"100%"},onClick:function(){l.updateProps({editingSlide:(s+1)%o})}},"Next slide"))}},{type:"button-action",label:"Append new slide",onClick:function(e){var t=e.studioOps,i=e.componentProps.children.length;t.appendToSlot({type:"img",src:"",styles:{maxWidth:"100%"}},"children"),t.updateProps({editingSlide:i})}},{type:"button-action",label:"Delete current slide",onClick:function(e){var t,i=e.componentProps,n=e.studioOps,l=null!=(t=e.contextData.editingSlide)?t:0;n.removeFromSlotAt(l,"children");var a=i.children.length-1;n.updateProps({editingSlide:(l-1+a)%a})}},{type:"custom-action",control:function(){return a.createElement("div",null,"* To re-arrange slides, use the Outline panel")}}],props:{children:{type:"slot",defaultValue:[{type:"img",src:"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1",styles:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",styles:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",styles:{maxWidth:"100%"}}]},editingSlide:{displayName:"Currently edited slide",type:"number",description:"Switch to the specified slide (first is 0). Only affects the editor, not the final page.",defaultValueHint:0,editOnly:!0,hidden:function(){return!0}},accessibility:{displayName:"Accessibility",type:"boolean",description:"Enables tabbing and arrow key navigation",defaultValueHint:!0},adaptiveHeight:{displayName:"Adaptive Height",type:"boolean",description:"Adjust the slide's height automatically",defaultValueHint:!1},arrows:{displayName:"Arrows",type:"boolean",description:"Show next/prev arrows",defaultValueHint:!0},autoplay:{displayName:"Auto Play",type:"boolean",description:"Automatically start scrolling",defaultValueHint:!1},autoplaySpeed:{displayName:"Auto Play Speed",type:"number",description:"Delay between each auto scroll, in milliseconds",defaultValueHint:3e3,hidden:function(e){return!e.autoplay}},centerMode:{displayName:"Center Mode",type:"boolean",description:"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts",defaultValueHint:!1},centerPadding:{displayName:"Center Padding",type:"string",description:"Side padding when in center mode (px or %)",defaultValueHint:"50px",hidden:function(e){return!e.centerMode}},dots:{displayName:"Dots",type:"boolean",description:"Show dots for each slide",defaultValueHint:!1},draggable:{displayName:"Draggable",type:"boolean",description:"Enables mouse dragging on desktop",defaultValueHint:!0},easing:{displayName:"Easing",type:"string",description:"Easing method for transition",defaultValueHint:"linear"},fade:{displayName:"Fade",type:"boolean",description:"Cross-fade between slides",defaultValueHint:!1},focusOnSelect:{displayName:"Focus On Select",type:"boolean",description:"Go to slide on click",defaultValueHint:!1},infinite:{displayName:"Infinite",type:"boolean",description:"Infinitely wrap around contents",defaultValueHint:!0},initialSlide:{displayName:"Initial Slide",type:"number",description:"Index of initial slide",defaultValueHint:0},lazyLoad:{displayName:"Lazy Load",type:"choice",options:["ondemand","progressive"],description:"Load images or render components on demand or progressively"},pauseOnDotsHover:{displayName:"Pause On Dots Hover",type:"boolean",description:"Prevents autoplay while hovering on dots",defaultValueHint:!1},pauseOnFocus:{displayName:"Pause On Focus",type:"boolean",description:"Prevents autoplay while focused on slides",defaultValueHint:!1},pauseOnHover:{displayName:"Pause On Hover",type:"boolean",description:"Prevents autoplay while hovering on track",defaultValueHint:!0},rows:{displayName:"Rows",type:"number",description:"Number of rows per slide (enables grid mode)",defaultValueHint:1},rtl:{displayName:"Reverse",type:"boolean",description:"Reverses the slide order",defaultValueHint:!1},slidesPerRow:{displayName:"Slides Per Row",type:"number",description:"Number of slides to display in grid mode, this is useful with rows option",defaultValueHint:1},slidesToScroll:{displayName:"Slides To Scroll",type:"number",description:"Number of slides to scroll at once",defaultValueHint:1},slidesToShow:{displayName:"Slides To Show",type:"number",description:"Number of slides to show in one frame",defaultValueHint:1},speed:{displayName:"Speed",type:"number",description:"Transition speed in milliseconds",defaultValueHint:500},swipe:{displayName:"Swipe",type:"boolean",description:"Enable swiping to change slides",defaultValueHint:!0},swipeToSlide:{displayName:"Swipe To Slide",type:"boolean",description:"Enable drag/swipe irrespective of 'slidesToScroll'",defaultValueHint:!1},touchMove:{displayName:"Touch Move",type:"boolean",description:"Enable slide moving on touch",defaultValueHint:!0},touchThreshold:{displayName:"Touch Threshold",type:"number",description:"Swipe distance threshold in pixels",defaultValueHint:5},useCSS:{displayName:"Use CSS",type:"boolean",description:"Enable/Disable CSS Transitions",defaultValueHint:!0},useTransform:{displayName:"Use Transform",type:"boolean",description:"Enable/Disable CSS Transforms",defaultValueHint:!0},variableWidth:{displayName:"Variable Width",type:"boolean",description:"Variable width slides",defaultValueHint:!1},vertical:{displayName:"Vertical",type:"boolean",description:"Vertical slide mode",defaultValueHint:!1}},isDefaultExport:!0,defaultStyles:{width:"stretch",maxWidth:"100%",flexDirection:"column"}},p=l.forwardRef((function(e,t){var n=e.editingSlide,d=e.setControlContextData,r=function(e,t){if(null==e)return{};var i,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(i=a[n])>=0||(l[i]=e[i]);return l}(e,s);null==d||d({editingSlide:n});var p=l.useRef(null);return l.useEffect((function(){void 0!==n&&p.current.slickGoTo(n)}),[n]),a.createElement(o,Object.assign({ref:i(p,t)},r))}));exports.SliderWrapper=p,exports.registerSlider=function(e,i){e?e.registerComponent(p,null!=i?i:r):t(p,null!=i?i:r)},exports.sliderMeta=r;
|
|
2
2
|
//# sourceMappingURL=react-slick.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-slick.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport composeRefs from \"@seznam/compose-react-refs\";\nimport React, { forwardRef, Ref, useEffect, useRef } from \"react\";\nimport Slider, { Settings } from \"react-slick\";\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n actions: [\n {\n type: \"button-action\",\n label: \"Append new slide\",\n onClick: ({ studioOps }) => {\n studioOps.appendToSlot(\n {\n type: \"img\",\n src: \"\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n \"children\"\n );\n },\n },\n {\n type: \"button-action\",\n label: \"Delete current slide\",\n onClick: ({ contextData, studioOps }) =>\n studioOps.removeFromSlotAt(contextData.editingSlide ?? 0, \"children\"),\n },\n ],\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n editingSlide: {\n displayName: \"Currently edited slide\",\n type: \"number\",\n description:\n \"Switch to the specified slide (first is 0). Only affects the editor, not the final page.\",\n defaultValueHint: 0,\n editOnly: true,\n },\n // TODO Ideally, we are not showing any labels on these buttons, and we can place them in the same row.\n // insertSlide: {\n // displayName: \"\",\n // type: \"custom\",\n // description: \"Insert a new slide right after the current slide.\",\n // control: MyReactComponent,\n // },\n // deleteSlide: {\n // displayName: \"\",\n // type: \"custom\",\n // description: \"Delete the current slide.\",\n // control: MyReactComponent,\n // },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n flexDirection: \"column\",\n },\n};\n\nexport const SliderWrapper = forwardRef(function SliderWrapper_(\n {\n editingSlide,\n setControlContextData,\n ...props\n }: Settings & {\n editingSlide?: number;\n setControlContextData?: (data: {\n editingSlide: number | undefined;\n }) => void;\n },\n userRef?: Ref<Slider>\n) {\n setControlContextData?.({ editingSlide: editingSlide });\n const slider = useRef<Slider>(null);\n useEffect(() => {\n if (editingSlide !== undefined) {\n slider.current!.slickGoTo(editingSlide);\n }\n }, [editingSlide]);\n return <Slider ref={composeRefs(slider, userRef)} {...props} />;\n});\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["sliderMeta","name","displayName","importName","importPath","actions","type","label","onClick","studioOps","appendToSlot","src","styles","maxWidth","removeFromSlotAt","contextData","editingSlide","props","children","defaultValue","description","defaultValueHint","editOnly","accessibility","adaptiveHeight","arrows","autoplay","autoplaySpeed","hidden","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width","flexDirection","SliderWrapper","forwardRef","userRef","setControlContextData","slider","useRef","useEffect","undefined","current","slickGoTo","React","Slider","ref","composeRefs","loader","customSliderMeta","registerComponent"],"mappings":"6UAOaA,EAAsC,CACjDC,KAAM,kBACNC,YAAa,SACbC,WAAY,SACZC,WAAY,cACZC,QAAS,CACP,CACEC,KAAM,gBACNC,MAAO,mBACPC,QAAS,cAAGC,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kB,GAEpBgC,OAAQ,CACNnD,YAAa,UACbI,KAAM,UACNc,YAAa,iCACbC,kBAAkB,GAEpBiC,aAAc,CACZpD,YAAa,gBACbI,KAAM,UACNc,YAAa,gCACbC,kBAAkB,GAEpBkC,cAAe,CACbrD,YAAa,iBACbI,KAAM,UACNc,YAAa,wBACbC,kBAAkB,GAEpBmC,SAAU,CACRtD,YAAa,WACbI,KAAM,UACNc,YAAa,sBACbC,kBAAkB,IAGtBoC,iBAAiB,EACjBC,cAAe,CACbC,MAAO,UACP9C,SAAU,OACV+C,cAAe,WAINC,EAAgBC,cAAW,WAWtCC,OATE/C,IAAAA,aACAgD,IAAAA,sBACG/C,gJASL+C,GAAAA,EAAwB,CAAEhD,aAAcA,QAClCiD,EAASC,SAAe,aAC9BC,aAAU,gBACaC,IAAjBpD,GACFiD,EAAOI,QAASC,UAAUtD,KAE3B,CAACA,IACGuD,gBAACC,iBAAOC,IAAKC,EAAYT,EAAQF,IAAc9C,+DAItD0D,EACAC,GAEID,EACFA,EAAOE,kBAAkBhB,QAAee,EAAAA,EAAoB5E,GAE5D6E,EAAkBhB,QAAee,EAAAA,EAAoB5E"}
|
|
1
|
+
{"version":3,"file":"react-slick.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ActionProps,\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport composeRefs from \"@seznam/compose-react-refs\";\nimport { Button, Select } from \"antd\";\nimport React, { forwardRef, Ref, useEffect, useRef } from \"react\";\nimport Slider, { Settings } from \"react-slick\";\n\nconst { Option } = Select;\n\nfunction CurrentSlideDropdown({ componentProps, studioOps }: ActionProps<any>) {\n const editingSlide = componentProps.editingSlide ?? 0;\n const slidesCnt =\n componentProps.children.length ??\n (componentProps.children.type === \"img\" ? 1 : 0);\n\n const options = Array.from({ length: slidesCnt }, (_, i) => i).map((i) => {\n return <Option value={i.toString()}>Slide {i + 1}</Option>;\n });\n\n const handleChange = (value: string) => {\n const slideIdx = Number(value);\n studioOps.updateProps({ editingSlide: slideIdx % slidesCnt });\n };\n\n return (\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"10px\",\n justifyContent: \"space-between\",\n }}\n >\n <div>Current slide:</div>\n <Select\n defaultValue={editingSlide.toString()}\n style={{ width: \"100%\" }}\n onChange={handleChange}\n value={editingSlide.toString()}\n >\n {options}\n </Select>\n </div>\n );\n}\n\nfunction NavigateSlides({ componentProps, studioOps }: ActionProps<any>) {\n const slidesCnt = componentProps.children.length;\n const editingSlide = componentProps.editingSlide ?? 0;\n\n return (\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"10px\",\n justifyContent: \"space-between\",\n }}\n >\n <Button\n style={{ width: \"100%\" }}\n onClick={() => {\n const prevSlide = (editingSlide - 1 + slidesCnt) % slidesCnt;\n studioOps.updateProps({ editingSlide: prevSlide });\n }}\n >\n Prev slide\n </Button>\n <Button\n style={{ width: \"100%\" }}\n onClick={() => {\n const nextSlide = (editingSlide + 1) % slidesCnt;\n studioOps.updateProps({ editingSlide: nextSlide });\n }}\n >\n Next slide\n </Button>\n </div>\n );\n}\n\nfunction OutlineMessage() {\n return <div>* To re-arrange slides, use the Outline panel</div>;\n}\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n actions: [\n {\n type: \"custom-action\",\n control: CurrentSlideDropdown,\n },\n {\n type: \"custom-action\",\n control: NavigateSlides,\n },\n {\n type: \"button-action\",\n label: \"Append new slide\",\n onClick: ({ componentProps, studioOps }: ActionProps<any>) => {\n const slidesCnt = componentProps.children.length;\n studioOps.appendToSlot(\n {\n type: \"img\",\n src: \"\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n \"children\"\n );\n studioOps.updateProps({ editingSlide: slidesCnt });\n },\n },\n {\n type: \"button-action\",\n label: \"Delete current slide\",\n onClick: ({\n componentProps,\n contextData,\n studioOps,\n }: ActionProps<any>) => {\n const editingSlide = contextData.editingSlide ?? 0;\n studioOps.removeFromSlotAt(editingSlide, \"children\");\n const slidesCnt = componentProps.children.length - 1;\n studioOps.updateProps({\n editingSlide: (editingSlide - 1 + slidesCnt) % slidesCnt,\n });\n },\n },\n {\n type: \"custom-action\",\n control: OutlineMessage,\n },\n ],\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n editingSlide: {\n displayName: \"Currently edited slide\",\n type: \"number\",\n description:\n \"Switch to the specified slide (first is 0). Only affects the editor, not the final page.\",\n defaultValueHint: 0,\n editOnly: true,\n hidden: () => true,\n },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n flexDirection: \"column\",\n },\n};\n\nexport const SliderWrapper = forwardRef(function SliderWrapper_(\n {\n editingSlide,\n setControlContextData,\n ...props\n }: Settings & {\n editingSlide?: number;\n setControlContextData?: (data: {\n editingSlide: number | undefined;\n }) => void;\n },\n userRef?: Ref<Slider>\n) {\n setControlContextData?.({ editingSlide: editingSlide });\n const slider = useRef<Slider>(null);\n useEffect(() => {\n if (editingSlide !== undefined) {\n slider.current!.slickGoTo(editingSlide);\n }\n }, [editingSlide]);\n return <Slider ref={composeRefs(slider, userRef)} {...props} />;\n});\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["Option","Select","sliderMeta","name","displayName","importName","importPath","actions","type","control","componentProps","studioOps","editingSlide","slidesCnt","children","length","options","Array","from","_","i","map","React","value","toString","style","width","display","flexDirection","gap","justifyContent","defaultValue","onChange","slideIdx","Number","updateProps","Button","onClick","label","appendToSlot","src","styles","maxWidth","contextData","removeFromSlotAt","props","description","defaultValueHint","editOnly","hidden","accessibility","adaptiveHeight","arrows","autoplay","autoplaySpeed","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","SliderWrapper","forwardRef","userRef","setControlContextData","slider","useRef","useEffect","undefined","current","slickGoTo","Slider","ref","composeRefs","loader","customSliderMeta","registerComponent"],"mappings":"+VASQA,EAAWC,SAAXD,OAgFKE,EAAsC,CACjDC,KAAM,kBACNC,YAAa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kBAAkB,GAEpB4B,aAAc,CACZvE,YAAa,iBACbI,KAAM,UACNsC,YAAa,qDACbC,kBAAkB,GAEpB6B,UAAW,CACTxE,YAAa,aACbI,KAAM,UACNsC,YAAa,+BACbC,kBAAkB,GAEpB8B,eAAgB,CACdzE,YAAa,kBACbI,KAAM,SACNsC,YAAa,qCACbC,iBAAkB,GAEpB+B,OAAQ,CACN1E,YAAa,UACbI,KAAM,UACNsC,YAAa,iCACbC,kBAAkB,GAEpBgC,aAAc,CACZ3E,YAAa,gBACbI,KAAM,UACNsC,YAAa,gCACbC,kBAAkB,GAEpBiC,cAAe,CACb5E,YAAa,iBACbI,KAAM,UACNsC,YAAa,wBACbC,kBAAkB,GAEpBkC,SAAU,CACR7E,YAAa,WACbI,KAAM,UACNsC,YAAa,sBACbC,kBAAkB,IAGtBmC,iBAAiB,EACjBC,cAAe,CACbzD,MAAO,UACPgB,SAAU,OACVd,cAAe,WAINwD,EAAgBC,cAAW,WAWtCC,OATE1E,IAAAA,aACA2E,IAAAA,sBACG1C,gJASL0C,GAAAA,EAAwB,CAAE3E,aAAcA,QAClC4E,EAASC,SAAe,aAC9BC,aAAU,gBACaC,IAAjB/E,GACF4E,EAAOI,QAASC,UAAUjF,KAE3B,CAACA,IACGU,gBAACwE,iBAAOC,IAAKC,EAAYR,EAAQF,IAAczC,+DAItDoD,EACAC,GAEID,EACFA,EAAOE,kBAAkBf,QAAec,EAAAA,EAAoBhG,GAE5DiG,EAAkBf,QAAec,EAAAA,EAAoBhG"}
|
package/dist/react-slick.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
2
2
|
import composeRefs from '@seznam/compose-react-refs';
|
|
3
|
+
import { Select, Button } from 'antd';
|
|
3
4
|
import React, { forwardRef, useRef, useEffect } from 'react';
|
|
4
5
|
import Slider from 'react-slick';
|
|
5
6
|
|
|
@@ -19,16 +20,110 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
var _excluded = ["editingSlide", "setControlContextData"];
|
|
23
|
+
var Option = Select.Option;
|
|
24
|
+
|
|
25
|
+
function CurrentSlideDropdown(_ref) {
|
|
26
|
+
var _componentProps$editi, _componentProps$child;
|
|
27
|
+
|
|
28
|
+
var componentProps = _ref.componentProps,
|
|
29
|
+
studioOps = _ref.studioOps;
|
|
30
|
+
var editingSlide = (_componentProps$editi = componentProps.editingSlide) != null ? _componentProps$editi : 0;
|
|
31
|
+
var slidesCnt = (_componentProps$child = componentProps.children.length) != null ? _componentProps$child : componentProps.children.type === "img" ? 1 : 0;
|
|
32
|
+
var options = Array.from({
|
|
33
|
+
length: slidesCnt
|
|
34
|
+
}, function (_, i) {
|
|
35
|
+
return i;
|
|
36
|
+
}).map(function (i) {
|
|
37
|
+
return React.createElement(Option, {
|
|
38
|
+
value: i.toString()
|
|
39
|
+
}, "Slide ", i + 1);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
var handleChange = function handleChange(value) {
|
|
43
|
+
var slideIdx = Number(value);
|
|
44
|
+
studioOps.updateProps({
|
|
45
|
+
editingSlide: slideIdx % slidesCnt
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
return React.createElement("div", {
|
|
50
|
+
style: {
|
|
51
|
+
width: "100%",
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: "row",
|
|
54
|
+
gap: "10px",
|
|
55
|
+
justifyContent: "space-between"
|
|
56
|
+
}
|
|
57
|
+
}, React.createElement("div", null, "Current slide:"), React.createElement(Select, {
|
|
58
|
+
defaultValue: editingSlide.toString(),
|
|
59
|
+
style: {
|
|
60
|
+
width: "100%"
|
|
61
|
+
},
|
|
62
|
+
onChange: handleChange,
|
|
63
|
+
value: editingSlide.toString()
|
|
64
|
+
}, options));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function NavigateSlides(_ref2) {
|
|
68
|
+
var _componentProps$editi2;
|
|
69
|
+
|
|
70
|
+
var componentProps = _ref2.componentProps,
|
|
71
|
+
studioOps = _ref2.studioOps;
|
|
72
|
+
var slidesCnt = componentProps.children.length;
|
|
73
|
+
var editingSlide = (_componentProps$editi2 = componentProps.editingSlide) != null ? _componentProps$editi2 : 0;
|
|
74
|
+
return React.createElement("div", {
|
|
75
|
+
style: {
|
|
76
|
+
width: "100%",
|
|
77
|
+
display: "flex",
|
|
78
|
+
flexDirection: "row",
|
|
79
|
+
gap: "10px",
|
|
80
|
+
justifyContent: "space-between"
|
|
81
|
+
}
|
|
82
|
+
}, React.createElement(Button, {
|
|
83
|
+
style: {
|
|
84
|
+
width: "100%"
|
|
85
|
+
},
|
|
86
|
+
onClick: function onClick() {
|
|
87
|
+
var prevSlide = (editingSlide - 1 + slidesCnt) % slidesCnt;
|
|
88
|
+
studioOps.updateProps({
|
|
89
|
+
editingSlide: prevSlide
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}, "Prev slide"), React.createElement(Button, {
|
|
93
|
+
style: {
|
|
94
|
+
width: "100%"
|
|
95
|
+
},
|
|
96
|
+
onClick: function onClick() {
|
|
97
|
+
var nextSlide = (editingSlide + 1) % slidesCnt;
|
|
98
|
+
studioOps.updateProps({
|
|
99
|
+
editingSlide: nextSlide
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}, "Next slide"));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function OutlineMessage() {
|
|
106
|
+
return React.createElement("div", null, "* To re-arrange slides, use the Outline panel");
|
|
107
|
+
}
|
|
108
|
+
|
|
22
109
|
var sliderMeta = {
|
|
23
110
|
name: "hostless-slider",
|
|
24
111
|
displayName: "Slider",
|
|
25
112
|
importName: "Slider",
|
|
26
113
|
importPath: "react-slick",
|
|
27
114
|
actions: [{
|
|
115
|
+
type: "custom-action",
|
|
116
|
+
control: CurrentSlideDropdown
|
|
117
|
+
}, {
|
|
118
|
+
type: "custom-action",
|
|
119
|
+
control: NavigateSlides
|
|
120
|
+
}, {
|
|
28
121
|
type: "button-action",
|
|
29
122
|
label: "Append new slide",
|
|
30
|
-
onClick: function onClick(
|
|
31
|
-
var
|
|
123
|
+
onClick: function onClick(_ref3) {
|
|
124
|
+
var componentProps = _ref3.componentProps,
|
|
125
|
+
studioOps = _ref3.studioOps;
|
|
126
|
+
var slidesCnt = componentProps.children.length;
|
|
32
127
|
studioOps.appendToSlot({
|
|
33
128
|
type: "img",
|
|
34
129
|
src: "",
|
|
@@ -36,17 +131,29 @@ var sliderMeta = {
|
|
|
36
131
|
maxWidth: "100%"
|
|
37
132
|
}
|
|
38
133
|
}, "children");
|
|
134
|
+
studioOps.updateProps({
|
|
135
|
+
editingSlide: slidesCnt
|
|
136
|
+
});
|
|
39
137
|
}
|
|
40
138
|
}, {
|
|
41
139
|
type: "button-action",
|
|
42
140
|
label: "Delete current slide",
|
|
43
|
-
onClick: function onClick(
|
|
141
|
+
onClick: function onClick(_ref4) {
|
|
44
142
|
var _contextData$editingS;
|
|
45
143
|
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
144
|
+
var componentProps = _ref4.componentProps,
|
|
145
|
+
contextData = _ref4.contextData,
|
|
146
|
+
studioOps = _ref4.studioOps;
|
|
147
|
+
var editingSlide = (_contextData$editingS = contextData.editingSlide) != null ? _contextData$editingS : 0;
|
|
148
|
+
studioOps.removeFromSlotAt(editingSlide, "children");
|
|
149
|
+
var slidesCnt = componentProps.children.length - 1;
|
|
150
|
+
studioOps.updateProps({
|
|
151
|
+
editingSlide: (editingSlide - 1 + slidesCnt) % slidesCnt
|
|
152
|
+
});
|
|
49
153
|
}
|
|
154
|
+
}, {
|
|
155
|
+
type: "custom-action",
|
|
156
|
+
control: OutlineMessage
|
|
50
157
|
}],
|
|
51
158
|
props: {
|
|
52
159
|
children: {
|
|
@@ -76,21 +183,11 @@ var sliderMeta = {
|
|
|
76
183
|
type: "number",
|
|
77
184
|
description: "Switch to the specified slide (first is 0). Only affects the editor, not the final page.",
|
|
78
185
|
defaultValueHint: 0,
|
|
79
|
-
editOnly: true
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// type: "custom",
|
|
85
|
-
// description: "Insert a new slide right after the current slide.",
|
|
86
|
-
// control: MyReactComponent,
|
|
87
|
-
// },
|
|
88
|
-
// deleteSlide: {
|
|
89
|
-
// displayName: "",
|
|
90
|
-
// type: "custom",
|
|
91
|
-
// description: "Delete the current slide.",
|
|
92
|
-
// control: MyReactComponent,
|
|
93
|
-
// },
|
|
186
|
+
editOnly: true,
|
|
187
|
+
hidden: function hidden() {
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
},
|
|
94
191
|
accessibility: {
|
|
95
192
|
displayName: "Accessibility",
|
|
96
193
|
type: "boolean",
|
|
@@ -308,10 +405,10 @@ var sliderMeta = {
|
|
|
308
405
|
flexDirection: "column"
|
|
309
406
|
}
|
|
310
407
|
};
|
|
311
|
-
var SliderWrapper = /*#__PURE__*/forwardRef(function SliderWrapper_(
|
|
312
|
-
var editingSlide =
|
|
313
|
-
setControlContextData =
|
|
314
|
-
props = _objectWithoutPropertiesLoose(
|
|
408
|
+
var SliderWrapper = /*#__PURE__*/forwardRef(function SliderWrapper_(_ref5, userRef) {
|
|
409
|
+
var editingSlide = _ref5.editingSlide,
|
|
410
|
+
setControlContextData = _ref5.setControlContextData,
|
|
411
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded);
|
|
315
412
|
|
|
316
413
|
setControlContextData == null ? void 0 : setControlContextData({
|
|
317
414
|
editingSlide: editingSlide
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-slick.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport composeRefs from \"@seznam/compose-react-refs\";\nimport React, { forwardRef, Ref, useEffect, useRef } from \"react\";\nimport Slider, { Settings } from \"react-slick\";\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n actions: [\n {\n type: \"button-action\",\n label: \"Append new slide\",\n onClick: ({ studioOps }) => {\n studioOps.appendToSlot(\n {\n type: \"img\",\n src: \"\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n \"children\"\n );\n },\n },\n {\n type: \"button-action\",\n label: \"Delete current slide\",\n onClick: ({ contextData, studioOps }) =>\n studioOps.removeFromSlotAt(contextData.editingSlide ?? 0, \"children\"),\n },\n ],\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n editingSlide: {\n displayName: \"Currently edited slide\",\n type: \"number\",\n description:\n \"Switch to the specified slide (first is 0). Only affects the editor, not the final page.\",\n defaultValueHint: 0,\n editOnly: true,\n },\n // TODO Ideally, we are not showing any labels on these buttons, and we can place them in the same row.\n // insertSlide: {\n // displayName: \"\",\n // type: \"custom\",\n // description: \"Insert a new slide right after the current slide.\",\n // control: MyReactComponent,\n // },\n // deleteSlide: {\n // displayName: \"\",\n // type: \"custom\",\n // description: \"Delete the current slide.\",\n // control: MyReactComponent,\n // },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n flexDirection: \"column\",\n },\n};\n\nexport const SliderWrapper = forwardRef(function SliderWrapper_(\n {\n editingSlide,\n setControlContextData,\n ...props\n }: Settings & {\n editingSlide?: number;\n setControlContextData?: (data: {\n editingSlide: number | undefined;\n }) => void;\n },\n userRef?: Ref<Slider>\n) {\n setControlContextData?.({ editingSlide: editingSlide });\n const slider = useRef<Slider>(null);\n useEffect(() => {\n if (editingSlide !== undefined) {\n slider.current!.slickGoTo(editingSlide);\n }\n }, [editingSlide]);\n return <Slider ref={composeRefs(slider, userRef)} {...props} />;\n});\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["sliderMeta","name","displayName","importName","importPath","actions","type","label","onClick","studioOps","appendToSlot","src","styles","maxWidth","contextData","removeFromSlotAt","editingSlide","props","children","defaultValue","description","defaultValueHint","editOnly","accessibility","adaptiveHeight","arrows","autoplay","autoplaySpeed","hidden","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width","flexDirection","SliderWrapper","forwardRef","SliderWrapper_","userRef","setControlContextData","slider","useRef","useEffect","undefined","current","slickGoTo","React","Slider","ref","composeRefs","registerSlider","loader","customSliderMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAOaA,UAAU,GAA4B;AACjDC,EAAAA,IAAI,EAAE,iBAD2C;AAEjDC,EAAAA,WAAW,EAAE,QAFoC;AAGjDC,EAAAA,UAAU,EAAE,QAHqC;AAIjDC,EAAAA,UAAU,EAAE,aAJqC;AAKjDC,EAAAA,OAAO,EAAE,CACP;AACEC,IAAAA,IAAI,EAAE,eADR;AAEEC,IAAAA,KAAK,EAAE,kBAFT;AAGEC,IAAAA,OAAO,EAAE;UAAGC,iBAAAA;AACVA,MAAAA,SAAS,CAACC,YAAV,CACE;AACEJ,QAAAA,IAAI,EAAE,KADR;AAEEK,QAAAA,GAAG,EAAE,EAFP;AAGEC,QAAAA,MAAM,EAAE;AACNC,UAAAA,QAAQ,EAAE;AADJ;AAHV,OADF,EAQE,UARF;AAUD;AAdH,GADO,EAiBP;AACEP,IAAAA,IAAI,EAAE,eADR;AAEEC,IAAAA,KAAK,EAAE,sBAFT;AAGEC,IAAAA,OAAO,EAAE;AAAA;;AAAA,UAAGM,WAAH,SAAGA,WAAH;AAAA,UAAgBL,SAAhB,SAAgBA,SAAhB;AAAA,aACPA,SAAS,CAACM,gBAAV,0BAA2BD,WAAW,CAACE,YAAvC,oCAAuD,CAAvD,EAA0D,UAA1D,CADO;AAAA;AAHX,GAjBO,CALwC;AA6BjDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE;AACRZ,MAAAA,IAAI,EAAE,MADE;AAERa,MAAAA,YAAY,EAAE,CACZ;AACEb,QAAAA,IAAI,EAAE,KADR;AAEEK,QAAAA,GAAG,EAAE,gEAFP;AAGEC,QAAAA,MAAM,EAAE;AACNC,UAAAA,QAAQ,EAA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BAHL;AAIRC,MAAAA,gBAAgB,EAAE;AAJV;AA1PL,GA7B0C;AA8RjDoC,EAAAA,eAAe,EAAE,IA9RgC;AA+RjDC,EAAAA,aAAa,EAAE;AACbC,IAAAA,KAAK,EAAE,SADM;AAEb9C,IAAAA,QAAQ,EAAE,MAFG;AAGb+C,IAAAA,aAAa,EAAE;AAHF;AA/RkC;IAsStCC,aAAa,gBAAGC,UAAU,CAAC,SAASC,cAAT,QAWtCC,OAXsC;MAEpChD,qBAAAA;MACAiD,8BAAAA;MACGhD;;AASLgD,EAAAA,qBAAqB,QAArB,YAAAA,qBAAqB,CAAG;AAAEjD,IAAAA,YAAY,EAAEA;AAAhB,GAAH,CAArB;AACA,MAAMkD,MAAM,GAAGC,MAAM,CAAS,IAAT,CAArB;AACAC,EAAAA,SAAS,CAAC;AACR,QAAIpD,YAAY,KAAKqD,SAArB,EAAgC;AAC9BH,MAAAA,MAAM,CAACI,OAAP,CAAgBC,SAAhB,CAA0BvD,YAA1B;AACD;AACF,GAJQ,EAIN,CAACA,YAAD,CAJM,CAAT;AAKA,SAAOwD,mBAAA,CAACC,MAAD;AAAQC,IAAAA,GAAG,EAAEC,WAAW,CAACT,MAAD,EAASF,OAAT;KAAuB/C,MAA/C,CAAP;AACD,CArBsC;SAuBvB2D,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBlB,aAAzB,EAAwCiB,gBAAxC,WAAwCA,gBAAxC,GAA4D9E,UAA5D;AACD,GAFD,MAEO;AACL+E,IAAAA,iBAAiB,CAAClB,aAAD,EAAgBiB,gBAAhB,WAAgBA,gBAAhB,GAAoC9E,UAApC,CAAjB;AACD;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"react-slick.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ActionProps,\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport composeRefs from \"@seznam/compose-react-refs\";\nimport { Button, Select } from \"antd\";\nimport React, { forwardRef, Ref, useEffect, useRef } from \"react\";\nimport Slider, { Settings } from \"react-slick\";\n\nconst { Option } = Select;\n\nfunction CurrentSlideDropdown({ componentProps, studioOps }: ActionProps<any>) {\n const editingSlide = componentProps.editingSlide ?? 0;\n const slidesCnt =\n componentProps.children.length ??\n (componentProps.children.type === \"img\" ? 1 : 0);\n\n const options = Array.from({ length: slidesCnt }, (_, i) => i).map((i) => {\n return <Option value={i.toString()}>Slide {i + 1}</Option>;\n });\n\n const handleChange = (value: string) => {\n const slideIdx = Number(value);\n studioOps.updateProps({ editingSlide: slideIdx % slidesCnt });\n };\n\n return (\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"10px\",\n justifyContent: \"space-between\",\n }}\n >\n <div>Current slide:</div>\n <Select\n defaultValue={editingSlide.toString()}\n style={{ width: \"100%\" }}\n onChange={handleChange}\n value={editingSlide.toString()}\n >\n {options}\n </Select>\n </div>\n );\n}\n\nfunction NavigateSlides({ componentProps, studioOps }: ActionProps<any>) {\n const slidesCnt = componentProps.children.length;\n const editingSlide = componentProps.editingSlide ?? 0;\n\n return (\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"10px\",\n justifyContent: \"space-between\",\n }}\n >\n <Button\n style={{ width: \"100%\" }}\n onClick={() => {\n const prevSlide = (editingSlide - 1 + slidesCnt) % slidesCnt;\n studioOps.updateProps({ editingSlide: prevSlide });\n }}\n >\n Prev slide\n </Button>\n <Button\n style={{ width: \"100%\" }}\n onClick={() => {\n const nextSlide = (editingSlide + 1) % slidesCnt;\n studioOps.updateProps({ editingSlide: nextSlide });\n }}\n >\n Next slide\n </Button>\n </div>\n );\n}\n\nfunction OutlineMessage() {\n return <div>* To re-arrange slides, use the Outline panel</div>;\n}\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n actions: [\n {\n type: \"custom-action\",\n control: CurrentSlideDropdown,\n },\n {\n type: \"custom-action\",\n control: NavigateSlides,\n },\n {\n type: \"button-action\",\n label: \"Append new slide\",\n onClick: ({ componentProps, studioOps }: ActionProps<any>) => {\n const slidesCnt = componentProps.children.length;\n studioOps.appendToSlot(\n {\n type: \"img\",\n src: \"\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n \"children\"\n );\n studioOps.updateProps({ editingSlide: slidesCnt });\n },\n },\n {\n type: \"button-action\",\n label: \"Delete current slide\",\n onClick: ({\n componentProps,\n contextData,\n studioOps,\n }: ActionProps<any>) => {\n const editingSlide = contextData.editingSlide ?? 0;\n studioOps.removeFromSlotAt(editingSlide, \"children\");\n const slidesCnt = componentProps.children.length - 1;\n studioOps.updateProps({\n editingSlide: (editingSlide - 1 + slidesCnt) % slidesCnt,\n });\n },\n },\n {\n type: \"custom-action\",\n control: OutlineMessage,\n },\n ],\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n editingSlide: {\n displayName: \"Currently edited slide\",\n type: \"number\",\n description:\n \"Switch to the specified slide (first is 0). Only affects the editor, not the final page.\",\n defaultValueHint: 0,\n editOnly: true,\n hidden: () => true,\n },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n flexDirection: \"column\",\n },\n};\n\nexport const SliderWrapper = forwardRef(function SliderWrapper_(\n {\n editingSlide,\n setControlContextData,\n ...props\n }: Settings & {\n editingSlide?: number;\n setControlContextData?: (data: {\n editingSlide: number | undefined;\n }) => void;\n },\n userRef?: Ref<Slider>\n) {\n setControlContextData?.({ editingSlide: editingSlide });\n const slider = useRef<Slider>(null);\n useEffect(() => {\n if (editingSlide !== undefined) {\n slider.current!.slickGoTo(editingSlide);\n }\n }, [editingSlide]);\n return <Slider ref={composeRefs(slider, userRef)} {...props} />;\n});\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(SliderWrapper, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["Option","Select","CurrentSlideDropdown","componentProps","studioOps","editingSlide","slidesCnt","children","length","type","options","Array","from","_","i","map","React","value","toString","handleChange","slideIdx","Number","updateProps","style","width","display","flexDirection","gap","justifyContent","defaultValue","onChange","NavigateSlides","Button","onClick","prevSlide","nextSlide","OutlineMessage","sliderMeta","name","displayName","importName","importPath","actions","control","label","appendToSlot","src","styles","maxWidth","contextData","removeFromSlotAt","props","description","defaultValueHint","editOnly","hidden","accessibility","adaptiveHeight","arrows","autoplay","autoplaySpeed","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","SliderWrapper","forwardRef","SliderWrapper_","userRef","setControlContextData","slider","useRef","useEffect","undefined","current","slickGoTo","Slider","ref","composeRefs","registerSlider","loader","customSliderMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASA,IAAQA,MAAR,GAAmBC,MAAnB,CAAQD,MAAR;;AAEA,SAASE,oBAAT;;;MAAgCC,sBAAAA;MAAgBC,iBAAAA;AAC9C,MAAMC,YAAY,4BAAGF,cAAc,CAACE,YAAlB,oCAAkC,CAApD;AACA,MAAMC,SAAS,4BACbH,cAAc,CAACI,QAAf,CAAwBC,MADX,oCAEZL,cAAc,CAACI,QAAf,CAAwBE,IAAxB,KAAiC,KAAjC,GAAyC,CAAzC,GAA6C,CAFhD;AAIA,MAAMC,OAAO,GAAGC,KAAK,CAACC,IAAN,CAAW;AAAEJ,IAAAA,MAAM,EAAEF;AAAV,GAAX,EAAkC,UAACO,CAAD,EAAIC,CAAJ;AAAA,WAAUA,CAAV;AAAA,GAAlC,EAA+CC,GAA/C,CAAmD,UAACD,CAAD;AACjE,WAAOE,mBAAA,CAAChB,MAAD;AAAQiB,MAAAA,KAAK,EAAEH,CAAC,CAACI,QAAF;KAAf,UAAA,EAAoCJ,CAAC,GAAG,CAAxC,CAAP;AACD,GAFe,CAAhB;;AAIA,MAAMK,YAAY,GAAG,SAAfA,YAAe,CAACF,KAAD;AACnB,QAAMG,QAAQ,GAAGC,MAAM,CAACJ,KAAD,CAAvB;AACAb,IAAAA,SAAS,CAACkB,WAAV,CAAsB;AAAEjB,MAAAA,YAAY,EAAEe,QAAQ,GAAGd;AAA3B,KAAtB;AACD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AAAEzF,IAAAA,YAAY,EAAEA;AAAhB,GAAH,CAArB;AACA,MAAM0F,MAAM,GAAGC,MAAM,CAAS,IAAT,CAArB;AACAC,EAAAA,SAAS,CAAC;AACR,QAAI5F,YAAY,KAAK6F,SAArB,EAAgC;AAC9BH,MAAAA,MAAM,CAACI,OAAP,CAAgBC,SAAhB,CAA0B/F,YAA1B;AACD;AACF,GAJQ,EAIN,CAACA,YAAD,CAJM,CAAT;AAKA,SAAOW,mBAAA,CAACqF,MAAD;AAAQC,IAAAA,GAAG,EAAEC,WAAW,CAACR,MAAD,EAASF,OAAT;KAAuB1C,MAA/C,CAAP;AACD,CArBsC;SAuBvBqD,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBjB,aAAzB,EAAwCgB,gBAAxC,WAAwCA,gBAAxC,GAA4DrE,UAA5D;AACD,GAFD,MAEO;AACLsE,IAAAA,iBAAiB,CAACjB,aAAD,EAAgBgB,gBAAhB,WAAgBA,gBAAhB,GAAoCrE,UAApC,CAAjB;AACD;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/react-slick",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"description": "Plasmic registration call for the React Slick Slider component",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"analyze": "size-limit --why"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@plasmicapp/host": "1.0.
|
|
31
|
+
"@plasmicapp/host": "1.0.68",
|
|
32
32
|
"@size-limit/preset-small-lib": "^4.11.0",
|
|
33
33
|
"@types/node": "^14.0.26",
|
|
34
34
|
"@types/react-slick": "^0.23.7",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"react": ">=16.8.0",
|
|
48
48
|
"react-dom": ">=16.8.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "14050241fe73b5c0cfd60fe5429f433438284700"
|
|
51
51
|
}
|