@wix/editor-react-components 1.2430.0 → 1.2432.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 (51) hide show
  1. package/dist/site/components/BoxContainer/component.js +1 -1
  2. package/dist/site/components/Breadcrumbs/component.js +2 -2
  3. package/dist/site/components/Checkbox/component.js +1 -1
  4. package/dist/site/components/CheckboxGroup/component.js +1 -1
  5. package/dist/site/components/DatePicker/component.js +1 -1
  6. package/dist/site/components/Dropdown/component.js +2 -2
  7. package/dist/site/components/GoogleMap/component.js +2 -2
  8. package/dist/site/components/HTMLComponent/component.js +1 -1
  9. package/dist/site/components/HipaaIcon/component.js +2 -2
  10. package/dist/site/components/LegacyAppWidget/component.js +1 -1
  11. package/dist/site/components/LegacyContainer/component.js +1 -1
  12. package/dist/site/components/LegacyMultiStateBox/component.js +1 -1
  13. package/dist/site/components/LinkBar/component.js +1 -1
  14. package/dist/site/components/Lottie/component.js +1 -1
  15. package/dist/site/components/Menu/component.js +3 -3
  16. package/dist/site/components/RadioButtons/component.js +1 -1
  17. package/dist/site/components/ShareButtons/component.js +2 -2
  18. package/dist/site/components/Slideshow/component.js +1 -1
  19. package/dist/site/components/TextBox/component.js +1 -1
  20. package/dist/site/components/TextEffects3d/component.js +1 -1
  21. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  22. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  23. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  24. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  25. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  26. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  27. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  28. package/dist/site/components/TextEffectsOutlineOut/component.js +1 -1
  29. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  30. package/dist/site/components/TextEffectsShook/component.js +1 -1
  31. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  32. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  33. package/dist/site/components/TextInput/component.js +2 -2
  34. package/dist/site/components/TextInput/sdk.js +1 -1
  35. package/dist/site/components/TimePicker/component.js +1 -1
  36. package/dist/site/components/TransparentVideo/component.js +1 -1
  37. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  38. package/dist/site/components/chunks/index10.js +2021 -3
  39. package/dist/site/components/chunks/index11.js +31219 -0
  40. package/dist/site/components/chunks/index12.js +5 -0
  41. package/dist/site/components/chunks/index3.js +1 -1
  42. package/dist/site/components/chunks/index5.js +2370 -3
  43. package/dist/site/components/chunks/index6.js +3 -3
  44. package/dist/site/components/chunks/index7.js +3 -4
  45. package/dist/site/components/chunks/index8.js +3 -66
  46. package/dist/site/components/chunks/index9.js +64 -31214
  47. package/dist/site/components/chunks/parseHtml.js +4 -2
  48. package/dist/site/components/chunks/parseSvg.js +7 -23
  49. package/dist/site/components/chunks/staticService.js +1 -1
  50. package/dist/site/components/chunks/useConsentPolicyProps.js +1 -1
  51. package/package.json +4 -3
@@ -1,8 +1,10 @@
1
- import parse from "html-react-parser";
1
+ import { p as parseDocument } from "./index10.js";
2
+ import { l as libExports } from "./index5.js";
2
3
  import { s as sanitizeHTML } from "./sanitizeHTML.js";
3
4
  function parseHtml(html, options) {
4
5
  const sanitized = sanitizeHTML(html);
5
- return parse(sanitized, { ...options, htmlparser2: {} });
6
+ const doc = parseDocument(sanitized);
7
+ return libExports.domToReact(doc.children, options);
6
8
  }
7
9
  export {
8
10
  parseHtml as p
@@ -1,27 +1,11 @@
1
- import { htmlToDOM, Element, domToReact } from "html-react-parser";
2
- const parserOptions = {
3
- xmlMode: true,
4
- lowerCaseAttributeNames: false
5
- };
6
- const normalizeCdata = (parent) => {
7
- parent.children = parent.children.flatMap((child) => {
8
- const children = child.type === "cdata" ? child.children : [child];
9
- children.forEach((node) => {
10
- node.parent = parent;
11
- if (node instanceof Element) {
12
- normalizeCdata(node);
13
- }
14
- });
15
- return children;
16
- });
17
- };
1
+ import { p as parseDocument } from "./index10.js";
2
+ import { l as libExports } from "./index5.js";
18
3
  function parseSvg(svg) {
19
- const [root] = htmlToDOM(`<svg>${svg}</svg>`, parserOptions);
20
- if (!(root instanceof Element)) {
21
- return [];
22
- }
23
- normalizeCdata(root);
24
- return domToReact(root.children);
4
+ const doc = parseDocument(svg, {
5
+ xmlMode: true,
6
+ lowerCaseAttributeNames: false
7
+ });
8
+ return libExports.domToReact(doc.children);
25
9
  }
26
10
  export {
27
11
  parseSvg as p
@@ -1,4 +1,4 @@
1
- import { d as defineService } from "./index7.js";
1
+ import { d as defineService } from "./index8.js";
2
2
  const defineStaticService = defineService;
3
3
  export {
4
4
  defineStaticService as d
@@ -9,7 +9,7 @@ import __rspack_external_react_dom_7136dc57__default from "react-dom";
9
9
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers.js";
10
10
  import { useService } from "@wix/services-manager-react";
11
11
  import { E as EnvironmentDefinition } from "./index2.js";
12
- import { T as TranslationsDefinition } from "./index5.js";
12
+ import { T as TranslationsDefinition } from "./index6.js";
13
13
  import { d as defineStaticService } from "./staticService.js";
14
14
  const CONSENT_POLICY_NAMESPACE = "CookieConsent";
15
15
  const DataHooks = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2430.0",
3
+ "version": "1.2432.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -82,7 +82,7 @@
82
82
  "@wix/sdk": "^1.21.13",
83
83
  "@wix/services-manager-react": "^0.1.27",
84
84
  "@wix/site-service-rendering-context": "^1.0.1",
85
- "@wix/site-ui": "1.187.0",
85
+ "@wix/site-ui": "1.188.0",
86
86
  "@wix/video": "^1.85.0",
87
87
  "@wix/viewer-service-consent-policy": "^1.0.100",
88
88
  "@wix/web-bi-logger": "^2.1.26",
@@ -90,6 +90,7 @@
90
90
  "bidi-js": "^1.0.3",
91
91
  "classnames": "^2.5.1",
92
92
  "html-react-parser": "^5.1.18",
93
+ "htmlparser2": "^10.0.0",
93
94
  "kampos": "^0.16.0",
94
95
  "lodash": "^4.17.21",
95
96
  "lottie-react": "^2.4.1",
@@ -196,5 +197,5 @@
196
197
  "registry": "https://registry.npmjs.org/",
197
198
  "access": "public"
198
199
  },
199
- "falconPackageHash": "0c7a999c98d4fe926405fb3911aaad7b4bb7d9f08e6ca3f118f5f3ac"
200
+ "falconPackageHash": "3d1bb2af236dc0e971ace8da5024dd7f5f37696f56abf27756ac2c0b"
200
201
  }