@wix/editor-react-components 1.2837.0 → 1.2838.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 (28) hide show
  1. package/dist/site/components/AccordionComponent/manifest.js +1 -1
  2. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  3. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  4. package/dist/site/components/Button/manifest.js +1 -1
  5. package/dist/site/components/Checkbox/Checkbox.types.d.ts +11 -11
  6. package/dist/site/components/Checkbox/component.js +67 -119
  7. package/dist/site/components/Checkbox/constants.d.ts +21 -24
  8. package/dist/site/components/Checkbox/css.css +48 -164
  9. package/dist/site/components/Checkbox/manifest.js +178 -89
  10. package/dist/site/components/CheckboxGroup/manifest.js +1 -1
  11. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  12. package/dist/site/components/GoogleMap/manifest.js +1 -1
  13. package/dist/site/components/HTMLComponent/manifest.js +1 -1
  14. package/dist/site/components/LinkBar/manifest.js +1 -1
  15. package/dist/site/components/Lottie/manifest.js +1 -1
  16. package/dist/site/components/Menu/manifest.js +1 -1
  17. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  18. package/dist/site/components/RadioButtons/manifest.js +1 -1
  19. package/dist/site/components/ShareButtons/manifest.js +1 -1
  20. package/dist/site/components/Slideshow/manifest.js +1 -1
  21. package/dist/site/components/Tabs/manifest.js +1 -1
  22. package/dist/site/components/TestComp/manifest.js +1 -1
  23. package/dist/site/components/TextBox/manifest.js +1 -1
  24. package/dist/site/components/TextInput/manifest.js +2 -16
  25. package/dist/site/components/chunks/constants40.js +29 -31
  26. package/dist/site/components/chunks/manifestSdkMixins.js +25 -7
  27. package/package.json +2 -2
  28. package/dist/site/components/Checkbox/component.preview.d.ts +0 -4
@@ -1,7 +1,7 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { D as DisplayNames, c as DesignStates, d as defaultValues, s as selectors } from "../chunks/constants24.js";
3
3
  import { g as getSelector } from "../chunks/manifest.js";
4
- import { a as manifestFocusable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
4
+ import { b as manifestFocusable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
5
5
  import { m as manifestValidation } from "../chunks/manifest2.js";
6
6
  const manifest = {
7
7
  id: "01a3965d-95d7-49e2-903a-3a496de97054",
@@ -1,7 +1,7 @@
1
1
  import { C as CSS_PROPERTIES, N as NativeStateType, E as ELEMENTS, a as ACTIONS, D as DATA, I as INTERACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
3
  import { h as elementKeys, i as DesignStates, j as DisplayNames, k as DisplayConfig, d as DefaultValues, I as IconPositionOptions, S as StaticDisplayFilters, l as PageToShareOptions, m as DefaultButtons, B as ButtonWidthOptions, b as COMPONENT_TYPE } from "../chunks/constants22.js";
4
- import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
4
+ import { d as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
5
5
  const presets = {
6
6
  horizontal: "horizontal",
7
7
  vertical: "vertical"
@@ -2,7 +2,7 @@ import { E as ELEMENTS, C as CSS_PROPERTIES, D as DATA, a as ACTIONS, I as INTER
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
3
  import { g as getSelector } from "../chunks/manifest.js";
4
4
  import { c as DisplayNames, a as semanticClassNames, d as slideshowCssCustomPropertiesDefaults, e as slideshowCssPropertiesDefaults, s as slideshowDataDefaults, C as COMPONENT_TYPE } from "../chunks/Slideshow.semanticClassNames.js";
5
- import { c as manifestMouseHover, d as manifestClickable, e as manifestPlayable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
5
+ import { d as manifestMouseHover, e as manifestClickable, f as manifestPlayable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
6
6
  const navigationButtons = {
7
7
  elementType: ELEMENTS.ELEMENT_TYPE.refElement,
8
8
  refElement: {
@@ -1,6 +1,6 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, a as ACTIONS, I as INTERACTIONS, b as DISPLAY_GROUPS, D as DATA, L as LAYOUT, c as ContainerType, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { D as DesignStates, c as classes, R as ROOT_MENU_ITEM_CSS_PROPERTIES, a as ROOT_MENU_ITEM_CUSTOM_PROPERTIES } from "../chunks/constants20.js";
3
- import { a as manifestFocusable, c as manifestMouseHover, d as manifestClickable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
3
+ import { b as manifestFocusable, d as manifestMouseHover, e as manifestClickable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
4
4
  const menuItemConfig = {
5
5
  elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
6
6
  [ELEMENTS.ELEMENT_TYPE.inlineElement]: {
@@ -1,5 +1,5 @@
1
1
  import { L as LAYOUT, N as NativeStateType, E as ELEMENTS, D as DATA, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { a as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
2
+ import { b as manifestFocusable, d as manifestMouseHover, e as manifestClickable } from "../chunks/manifestSdkMixins.js";
3
3
  const DesignStates = {
4
4
  testCompCard: {
5
5
  hover: { displayName: "Hover", className: "test-comp-card--hover" },
@@ -1,7 +1,7 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, D as DATA, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { D as DisplayNames, b as DesignStates, d as defaultValues, s as selectors } from "../chunks/constants18.js";
3
3
  import { g as getSelector } from "../chunks/manifest.js";
4
- import { a as manifestFocusable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
4
+ import { b as manifestFocusable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
5
5
  import { m as manifestValidation } from "../chunks/manifest2.js";
6
6
  const manifest = {
7
7
  id: "002d94d7-bec7-4082-8d00-fe4ede12024d",
@@ -1,7 +1,6 @@
1
1
  import { I as INTERACTIONS, D as DATA, b as DISPLAY_GROUPS, E as ELEMENTS, C as CSS_PROPERTIES, N as NativeStateType, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { D as DomEventType } from "../chunks/types.impl.js";
3
2
  import { D as DesignStates, a as DisplayNames, F as FunctionalStateKeys, c as componentClassNames } from "../chunks/constants3.js";
4
- import { m as manifestInputable, a as manifestFocusable } from "../chunks/manifestSdkMixins.js";
3
+ import { m as manifestKeyboard, a as manifestInputable, b as manifestFocusable } from "../chunks/manifestSdkMixins.js";
5
4
  const designState = (s, pseudoClass) => ({
6
5
  displayName: s.displayName,
7
6
  className: s.className,
@@ -350,26 +349,13 @@ const manifest = {
350
349
  },
351
350
  ...manifestFocusable(),
352
351
  ...manifestInputable(),
353
- onKeyUp: {
354
- displayName: "On Key Up",
355
- dataType: DATA.DATA_TYPE.function,
356
- [DATA.DATA_TYPE.function]: {
357
- parameters: [{ domEvent: DomEventType.KEYBOARD }]
358
- }
359
- },
352
+ ...manifestKeyboard(),
360
353
  onValueChange: {
361
354
  displayName: "On Value Change",
362
355
  dataType: DATA.DATA_TYPE.function,
363
356
  [DATA.DATA_TYPE.function]: {
364
357
  parameters: [{ dataType: DATA.DATA_TYPE.text }]
365
358
  }
366
- },
367
- onKeyDown: {
368
- displayName: "On Key Down",
369
- dataType: DATA.DATA_TYPE.function,
370
- [DATA.DATA_TYPE.function]: {
371
- parameters: [{ domEvent: DomEventType.KEYBOARD }]
372
- }
373
359
  }
374
360
  },
375
361
  interactions: {
@@ -1,19 +1,23 @@
1
+ const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
1
2
  const DisplayNames = {
2
3
  root: {
3
4
  elementDisplayName: "Checkbox",
4
5
  data: {
5
6
  checked: "Checked",
6
- defaultChecked: "Checked by default",
7
- required: "Required",
8
7
  readOnly: "Read only",
9
8
  disabled: "Disabled",
10
- indeterminate: "Indeterminate",
11
9
  label: "Label",
12
- tooltip: "Tooltip"
10
+ errorMessage: "Error message"
11
+ },
12
+ descriptions: {
13
+ checked: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
14
+ errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows."
13
15
  },
14
16
  cssCustomProperties: {
15
- gap: "Spacing",
16
- alignment: "Alignment"
17
+ gap: "Spacing"
18
+ },
19
+ presets: {
20
+ baseCheckbox: "Base Checkbox"
17
21
  }
18
22
  },
19
23
  indicator: {
@@ -23,13 +27,15 @@ const DisplayNames = {
23
27
  uncheckedBorderColor: "Unchecked border color",
24
28
  checkedBackgroundColor: "Checked background color",
25
29
  checkedBorderColor: "Checked border color",
26
- borderWidth: "Border width",
27
30
  checkmarkColor: "Checkmark color",
28
- size: "Checkbox size"
31
+ checkboxSize: "Checkbox size"
29
32
  }
30
33
  },
31
34
  label: {
32
35
  elementDisplayName: "Label"
36
+ },
37
+ errorMessage: {
38
+ elementDisplayName: "Error message"
33
39
  }
34
40
  };
35
41
  const DesignStates = {
@@ -40,51 +46,43 @@ const DesignStates = {
40
46
  displayName: "Disabled",
41
47
  className: "checkbox__indicator--disabled"
42
48
  },
43
- invalid: {
44
- displayName: "Invalid",
45
- className: "checkbox__indicator--invalid"
49
+ error: {
50
+ displayName: "Error",
51
+ className: "checkbox__indicator--error"
46
52
  }
47
53
  }
48
54
  };
55
+ const FunctionalStateKeys = {
56
+ previewError: "previewError"
57
+ };
58
+ const ERROR_MESSAGE_PREVIEW_TEXT = "Error message";
49
59
  const defaultValues = {
50
60
  label: "Label",
51
61
  checked: false,
52
- defaultChecked: false,
53
- required: false,
54
62
  readOnly: false,
55
- disabled: false,
56
- indeterminate: false,
57
- tooltip: ""
63
+ disabled: false
58
64
  };
59
- const VALUE_MISSING_MESSAGE = "This field is required";
60
65
  const TestIds = {
61
66
  root: "checkbox-root",
62
67
  control: "checkbox-control",
63
68
  indicator: "checkbox-indicator",
64
69
  label: "checkbox-label",
65
- requiredIndicator: "checkbox-required-indicator",
66
- tooltipButton: "checkbox-tooltip-button",
67
- errorMessage: "checkbox-error-message"
70
+ errorMessage: "checkbox-error-message",
71
+ accessibleName: "checkbox-accessible-name"
68
72
  };
69
73
  const selectors = {
70
74
  root: "checkbox",
71
75
  indicator: "checkbox__indicator",
72
- label: "checkbox__label"
73
- };
74
- const semanticClassNames = {
75
- root: "checkbox",
76
- control: "checkbox__control",
77
- indicator: "checkbox__indicator",
78
76
  label: "checkbox__label",
79
- requiredIndicator: "checkbox__required-indicator",
80
77
  errorMessage: "checkbox__error-message"
81
78
  };
82
79
  export {
83
- DisplayNames as D,
80
+ DesignStates as D,
81
+ ERROR_MESSAGE_PREVIEW_TEXT as E,
82
+ FunctionalStateKeys as F,
84
83
  TestIds as T,
85
- VALUE_MISSING_MESSAGE as V,
86
- semanticClassNames as a,
87
- DesignStates as b,
84
+ DisplayNames as a,
85
+ TEXT_PROP_STATIC_VALUE_MAX_LENGTH as b,
88
86
  defaultValues as d,
89
87
  selectors as s
90
88
  };
@@ -7,6 +7,8 @@ const MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES = {
7
7
  onDblClick: "On Double Click",
8
8
  onFocus: "On Focus",
9
9
  onBlur: "On Blur",
10
+ onKeyDown: "On Key Down",
11
+ onKeyUp: "On Key Up",
10
12
  onMouseIn: "On Mouse In",
11
13
  onMouseOut: "On Mouse Out",
12
14
  onPlay: "On Play",
@@ -73,6 +75,21 @@ function manifestFocusable(names = {}) {
73
75
  )
74
76
  };
75
77
  }
78
+ function manifestKeyboard(names = {}) {
79
+ const payload = {
80
+ parameters: [{ domEvent: DomEventType.KEYBOARD }]
81
+ };
82
+ return {
83
+ onKeyDown: manifestFunction(
84
+ names.onKeyDown ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onKeyDown,
85
+ payload
86
+ ),
87
+ onKeyUp: manifestFunction(
88
+ names.onKeyUp ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onKeyUp,
89
+ payload
90
+ )
91
+ };
92
+ }
76
93
  function manifestMouseHover(names = {}) {
77
94
  const payload = {
78
95
  parameters: [{ domEvent: DomEventType.POINTER }]
@@ -115,11 +132,12 @@ function manifestMediaProgress(names = {}) {
115
132
  };
116
133
  }
117
134
  export {
118
- manifestFocusable as a,
119
- manifestChangeable as b,
120
- manifestMouseHover as c,
121
- manifestClickable as d,
122
- manifestPlayable as e,
123
- manifestMediaProgress as f,
124
- manifestInputable as m
135
+ manifestInputable as a,
136
+ manifestFocusable as b,
137
+ manifestChangeable as c,
138
+ manifestMouseHover as d,
139
+ manifestClickable as e,
140
+ manifestPlayable as f,
141
+ manifestMediaProgress as g,
142
+ manifestKeyboard as m
125
143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2837.0",
3
+ "version": "1.2838.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -228,5 +228,5 @@
228
228
  "registry": "https://registry.npmjs.org/",
229
229
  "access": "public"
230
230
  },
231
- "falconPackageHash": "110eee47b76f8d690dcb94facecdd82642236c71e1f3c75aa2e78b74"
231
+ "falconPackageHash": "098d5314e74b592357b869dd0cebeeb40b0e16597928c11f76a69d2e"
232
232
  }
@@ -1,4 +0,0 @@
1
- import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
2
- import { default as Checkbox } from './Checkbox';
3
- export default Checkbox;
4
- export declare const resolveManifestOverrides: ResolveManifestOverrides;