@wix/editor-react-components 1.2831.0 → 1.2833.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/site/components/AccordionComponent/component.js +2 -2
  2. package/dist/site/components/AccordionComponent/manifest.js +2 -2
  3. package/dist/site/components/AnimatedIcon/component.js +2 -3
  4. package/dist/site/components/AnimatedIcon/manifest.js +2 -2
  5. package/dist/site/components/AudioPlayer/component.js +9 -10
  6. package/dist/site/components/AudioPlayer/manifest.js +2 -2
  7. package/dist/site/components/BoxContainer/component.js +1 -2
  8. package/dist/site/components/Breadcrumbs/component.js +14 -15
  9. package/dist/site/components/Breadcrumbs/manifest.js +6 -6
  10. package/dist/site/components/Breadcrumbs/useBreadcrumbItems.d.ts +3 -1
  11. package/dist/site/components/Button/manifest.js +8 -2
  12. package/dist/site/components/Checkbox/component.js +4 -5
  13. package/dist/site/components/Checkbox/manifest.js +8 -2
  14. package/dist/site/components/CheckboxGroup/component.js +4 -5
  15. package/dist/site/components/CheckboxGroup/manifest.js +8 -2
  16. package/dist/site/components/CollapsibleText/component.js +3 -4
  17. package/dist/site/components/CollapsibleText/manifest.js +12 -2
  18. package/dist/site/components/DatePicker/component.js +4 -4
  19. package/dist/site/components/DatePicker/manifest.js +4 -2
  20. package/dist/site/components/Dropdown/component.js +3 -3
  21. package/dist/site/components/Dropdown/manifest.js +2 -1
  22. package/dist/site/components/GoogleMap/component.js +5 -6
  23. package/dist/site/components/GoogleMap/manifest.js +5 -1
  24. package/dist/site/components/HTMLComponent/component.js +15 -18
  25. package/dist/site/components/HTMLComponent/manifest.js +12 -4
  26. package/dist/site/components/HeadingTextBlock/component.js +2 -2
  27. package/dist/site/components/HipaaIcon/component.js +2 -2
  28. package/dist/site/components/HipaaIcon/manifest.js +3 -3
  29. package/dist/site/components/ImageReveal/component.js +2 -2
  30. package/dist/site/components/LegacyAppWidget/component.js +1 -1
  31. package/dist/site/components/LegacyContainer/component.js +1 -1
  32. package/dist/site/components/LegacyMultiStateBox/component.js +1 -1
  33. package/dist/site/components/Line/component.js +2 -5
  34. package/dist/site/components/Line/manifest.js +2 -2
  35. package/dist/site/components/Lottie/component.js +4 -5
  36. package/dist/site/components/Lottie/manifest.js +10 -2
  37. package/dist/site/components/MarkdownBlock/component.js +1 -1
  38. package/dist/site/components/Menu/component.js +9 -11
  39. package/dist/site/components/Menu/manifest.js +10 -4
  40. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  41. package/dist/site/components/RadioButtons/component.js +4 -5
  42. package/dist/site/components/RadioButtons/manifest.js +8 -2
  43. package/dist/site/components/Repeater/manifest.js +1 -1
  44. package/dist/site/components/ShareButtons/component.js +6 -5
  45. package/dist/site/components/ShareButtons/manifest.js +2 -2
  46. package/dist/site/components/Slideshow/component.js +4 -4
  47. package/dist/site/components/Slideshow/manifest.js +8 -2
  48. package/dist/site/components/SlotsPlaceholder/component.js +3 -3
  49. package/dist/site/components/SlotsPlaceholder/manifest.js +2 -2
  50. package/dist/site/components/SocialPlayerSnapchat/manifest.js +1 -1
  51. package/dist/site/components/SocialPlayerTikTok/manifest.js +1 -1
  52. package/dist/site/components/SocialPlayerVimeo/manifest.js +1 -1
  53. package/dist/site/components/SocialPlayerYoutube/manifest.js +1 -1
  54. package/dist/site/components/Tabs/component.js +2 -3
  55. package/dist/site/components/Tabs/manifest.js +2 -2
  56. package/dist/site/components/TextBox/component.js +4 -5
  57. package/dist/site/components/TextBox/manifest.js +8 -2
  58. package/dist/site/components/TextEffects3d/component.js +1 -1
  59. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  60. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  61. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  62. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  63. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  64. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  65. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  66. package/dist/site/components/TextEffectsOutlineOut/component.js +1 -1
  67. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  68. package/dist/site/components/TextEffectsShook/component.js +1 -1
  69. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  70. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  71. package/dist/site/components/TextInput/component.js +2 -3
  72. package/dist/site/components/TextInput/manifest.js +8 -2
  73. package/dist/site/components/TextMarquee/component.js +5 -6
  74. package/dist/site/components/TextMarquee/manifest.js +3 -2
  75. package/dist/site/components/TimePicker/component.js +5 -5
  76. package/dist/site/components/TimePicker/manifest.js +4 -2
  77. package/dist/site/components/TransparentVideo/manifest.js +1 -1
  78. package/dist/site/components/VideoScrub/component.js +3 -3
  79. package/dist/site/components/VideoScrub/manifest.js +2 -2
  80. package/dist/site/components/VideoUpload/component.js +2 -3
  81. package/dist/site/components/VideoUpload/manifest.js +3 -2
  82. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  83. package/dist/site/components/chunks/Button.js +6 -7
  84. package/dist/site/components/chunks/index10.js +238 -3
  85. package/dist/site/components/chunks/index11.js +2 -31127
  86. package/dist/site/components/chunks/index12.js +3 -3
  87. package/dist/site/components/chunks/index13.js +31123 -38
  88. package/dist/site/components/chunks/index14.js +5 -0
  89. package/dist/site/components/chunks/index15.js +5 -0
  90. package/dist/site/components/chunks/index16.js +5 -0
  91. package/dist/site/components/chunks/index17.js +46 -0
  92. package/dist/site/components/chunks/index2.js +3 -3
  93. package/dist/site/components/chunks/index3.js +1 -1
  94. package/dist/site/components/chunks/index4.js +1 -1
  95. package/dist/site/components/chunks/index5.js +1 -1
  96. package/dist/site/components/chunks/index7.js +3 -67
  97. package/dist/site/components/chunks/index8.js +52 -2006
  98. package/dist/site/components/chunks/index9.js +2012 -230
  99. package/dist/site/components/chunks/parseHtml.js +1 -1
  100. package/dist/site/components/chunks/parseSvg.js +1 -1
  101. package/dist/site/components/chunks/staticService.js +1 -1
  102. package/dist/site/components/chunks/urlUtils.js +21 -0
  103. package/dist/site/components/chunks/useConsentPolicyProps.js +8 -8
  104. package/dist/site/components/chunks/useCurrentLanguage.js +20 -0
  105. package/package.json +11 -7
@@ -1,6 +1,241 @@
1
- function defineService(id) {
2
- return id;
1
+ var cjs$2 = {};
2
+ var cjs$1;
3
+ var hasRequiredCjs$2;
4
+ function requireCjs$2() {
5
+ if (hasRequiredCjs$2) return cjs$1;
6
+ hasRequiredCjs$2 = 1;
7
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
8
+ var NEWLINE_REGEX = /\n/g;
9
+ var WHITESPACE_REGEX = /^\s*/;
10
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
11
+ var COLON_REGEX = /^:\s*/;
12
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
13
+ var SEMICOLON_REGEX = /^[;\s]*/;
14
+ var TRIM_REGEX = /^\s+|\s+$/g;
15
+ var NEWLINE = "\n";
16
+ var FORWARD_SLASH = "/";
17
+ var ASTERISK = "*";
18
+ var EMPTY_STRING = "";
19
+ var TYPE_COMMENT = "comment";
20
+ var TYPE_DECLARATION = "declaration";
21
+ function index(style, options) {
22
+ if (typeof style !== "string") {
23
+ throw new TypeError("First argument must be a string");
24
+ }
25
+ if (!style) return [];
26
+ options = options || {};
27
+ var lineno = 1;
28
+ var column = 1;
29
+ function updatePosition(str) {
30
+ var lines = str.match(NEWLINE_REGEX);
31
+ if (lines) lineno += lines.length;
32
+ var i = str.lastIndexOf(NEWLINE);
33
+ column = ~i ? str.length - i : column + str.length;
34
+ }
35
+ function position() {
36
+ var start = { line: lineno, column };
37
+ return function(node) {
38
+ node.position = new Position(start);
39
+ whitespace();
40
+ return node;
41
+ };
42
+ }
43
+ function Position(start) {
44
+ this.start = start;
45
+ this.end = { line: lineno, column };
46
+ this.source = options.source;
47
+ }
48
+ Position.prototype.content = style;
49
+ function error(msg) {
50
+ var err = new Error(
51
+ options.source + ":" + lineno + ":" + column + ": " + msg
52
+ );
53
+ err.reason = msg;
54
+ err.filename = options.source;
55
+ err.line = lineno;
56
+ err.column = column;
57
+ err.source = style;
58
+ if (options.silent) ;
59
+ else {
60
+ throw err;
61
+ }
62
+ }
63
+ function match(re) {
64
+ var m = re.exec(style);
65
+ if (!m) return;
66
+ var str = m[0];
67
+ updatePosition(str);
68
+ style = style.slice(str.length);
69
+ return m;
70
+ }
71
+ function whitespace() {
72
+ match(WHITESPACE_REGEX);
73
+ }
74
+ function comments(rules) {
75
+ var c;
76
+ rules = rules || [];
77
+ while (c = comment()) {
78
+ if (c !== false) {
79
+ rules.push(c);
80
+ }
81
+ }
82
+ return rules;
83
+ }
84
+ function comment() {
85
+ var pos = position();
86
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
87
+ var i = 2;
88
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
89
+ ++i;
90
+ }
91
+ i += 2;
92
+ if (EMPTY_STRING === style.charAt(i - 1)) {
93
+ return error("End of comment missing");
94
+ }
95
+ var str = style.slice(2, i - 2);
96
+ column += 2;
97
+ updatePosition(str);
98
+ style = style.slice(i);
99
+ column += 2;
100
+ return pos({
101
+ type: TYPE_COMMENT,
102
+ comment: str
103
+ });
104
+ }
105
+ function declaration() {
106
+ var pos = position();
107
+ var prop = match(PROPERTY_REGEX);
108
+ if (!prop) return;
109
+ comment();
110
+ if (!match(COLON_REGEX)) return error("property missing ':'");
111
+ var val = match(VALUE_REGEX);
112
+ var ret = pos({
113
+ type: TYPE_DECLARATION,
114
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
115
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
116
+ });
117
+ match(SEMICOLON_REGEX);
118
+ return ret;
119
+ }
120
+ function declarations() {
121
+ var decls = [];
122
+ comments(decls);
123
+ var decl;
124
+ while (decl = declaration()) {
125
+ if (decl !== false) {
126
+ decls.push(decl);
127
+ comments(decls);
128
+ }
129
+ }
130
+ return decls;
131
+ }
132
+ whitespace();
133
+ return declarations();
134
+ }
135
+ function trim(str) {
136
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
137
+ }
138
+ cjs$1 = index;
139
+ return cjs$1;
140
+ }
141
+ var hasRequiredCjs$1;
142
+ function requireCjs$1() {
143
+ if (hasRequiredCjs$1) return cjs$2;
144
+ hasRequiredCjs$1 = 1;
145
+ var __importDefault = cjs$2 && cjs$2.__importDefault || function(mod) {
146
+ return mod && mod.__esModule ? mod : { "default": mod };
147
+ };
148
+ Object.defineProperty(cjs$2, "__esModule", { value: true });
149
+ cjs$2.default = StyleToObject;
150
+ const inline_style_parser_1 = __importDefault(requireCjs$2());
151
+ function StyleToObject(style, iterator) {
152
+ let styleObject = null;
153
+ if (!style || typeof style !== "string") {
154
+ return styleObject;
155
+ }
156
+ const declarations = (0, inline_style_parser_1.default)(style);
157
+ const hasIterator = typeof iterator === "function";
158
+ declarations.forEach((declaration) => {
159
+ if (declaration.type !== "declaration") {
160
+ return;
161
+ }
162
+ const { property, value } = declaration;
163
+ if (hasIterator) {
164
+ iterator(property, value, declaration);
165
+ } else if (value) {
166
+ styleObject = styleObject || {};
167
+ styleObject[property] = value;
168
+ }
169
+ });
170
+ return styleObject;
171
+ }
172
+ return cjs$2;
173
+ }
174
+ var utilities = {};
175
+ var hasRequiredUtilities;
176
+ function requireUtilities() {
177
+ if (hasRequiredUtilities) return utilities;
178
+ hasRequiredUtilities = 1;
179
+ Object.defineProperty(utilities, "__esModule", { value: true });
180
+ utilities.camelCase = void 0;
181
+ var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
182
+ var HYPHEN_REGEX = /-([a-z])/g;
183
+ var NO_HYPHEN_REGEX = /^[^-]+$/;
184
+ var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
185
+ var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
186
+ var skipCamelCase = function(property) {
187
+ return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
188
+ };
189
+ var capitalize = function(match, character) {
190
+ return character.toUpperCase();
191
+ };
192
+ var trimHyphen = function(match, prefix) {
193
+ return "".concat(prefix, "-");
194
+ };
195
+ var camelCase = function(property, options) {
196
+ if (options === void 0) {
197
+ options = {};
198
+ }
199
+ if (skipCamelCase(property)) {
200
+ return property;
201
+ }
202
+ property = property.toLowerCase();
203
+ if (options.reactCompat) {
204
+ property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
205
+ } else {
206
+ property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
207
+ }
208
+ return property.replace(HYPHEN_REGEX, capitalize);
209
+ };
210
+ utilities.camelCase = camelCase;
211
+ return utilities;
212
+ }
213
+ var cjs;
214
+ var hasRequiredCjs;
215
+ function requireCjs() {
216
+ if (hasRequiredCjs) return cjs;
217
+ hasRequiredCjs = 1;
218
+ var __importDefault = cjs && cjs.__importDefault || function(mod) {
219
+ return mod && mod.__esModule ? mod : { "default": mod };
220
+ };
221
+ var style_to_object_1 = __importDefault(requireCjs$1());
222
+ var utilities_1 = requireUtilities();
223
+ function StyleToJS(style, options) {
224
+ var output = {};
225
+ if (!style || typeof style !== "string") {
226
+ return output;
227
+ }
228
+ (0, style_to_object_1.default)(style, function(property, value) {
229
+ if (property && value) {
230
+ output[(0, utilities_1.camelCase)(property, options)] = value;
231
+ }
232
+ });
233
+ return output;
234
+ }
235
+ StyleToJS.default = StyleToJS;
236
+ cjs = StyleToJS;
237
+ return cjs;
3
238
  }
4
239
  export {
5
- defineService as d
240
+ requireCjs as r
6
241
  };