@wix/editor-react-components 1.2852.0 → 1.2854.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.
@@ -1,4 +1,3 @@
1
- export declare const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
2
1
  export declare const DisplayNames: {
3
2
  root: {
4
3
  elementDisplayName: string;
@@ -1,7 +1,7 @@
1
1
  import { D as DATA, b as DISPLAY_GROUPS, E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { d as defaultValues, a as DisplayNames, b as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, F as FunctionalStateKeys, D as DesignStates, s as selectors } from "../chunks/constants40.js";
2
+ import { d as defaultValues, a as DisplayNames, F as FunctionalStateKeys, D as DesignStates, s as selectors } from "../chunks/constants40.js";
3
3
  import { b as manifestFocusable, m as manifestKeyboard } from "../chunks/manifestSdkMixins.js";
4
- import { g as getSelector } from "../chunks/manifest.js";
4
+ import { T as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, g as getSelector } from "../chunks/manifest.js";
5
5
  const basePresetName = "baseCheckbox";
6
6
  const manifest = {
7
7
  id: "f98a2212-26c9-4403-ba6b-47a73d504152",
@@ -1,6 +1,6 @@
1
1
  import { C as CSS_PROPERTIES, N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { P as PREVIEW_CALENDAR_OPEN, D as DesignStates, d as defaultValues, b as DisplayNames, c as Descriptions, e as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants37.js";
3
- import { g as getSelector } from "../chunks/manifest.js";
3
+ import { T as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, g as getSelector } from "../chunks/manifest.js";
4
4
  const basePresetName = "baseDatePicker";
5
5
  const presetFont = (size) => ({
6
6
  defaultValue: `normal normal 400 ${size}/1.3em 'Wix Madefor Text', sans-serif`
@@ -322,18 +322,27 @@ const manifest = {
322
322
  label: {
323
323
  dataType: DATA.DATA_TYPE.text,
324
324
  displayName: DisplayNames.root.data.label,
325
- defaultValue: defaultValues.label
325
+ defaultValue: defaultValues.label,
326
+ [DATA.DATA_TYPE.text]: {
327
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
328
+ }
326
329
  },
327
330
  helperText: {
328
331
  dataType: DATA.DATA_TYPE.text,
329
332
  displayName: DisplayNames.root.data.helperText,
330
333
  description: Descriptions.root.data.helperText,
331
- defaultValue: defaultValues.helperText
334
+ defaultValue: defaultValues.helperText,
335
+ [DATA.DATA_TYPE.text]: {
336
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
337
+ }
332
338
  },
333
339
  errorMessage: {
334
340
  dataType: DATA.DATA_TYPE.text,
335
341
  displayName: DisplayNames.root.data.errorMessage,
336
- description: Descriptions.root.data.errorMessage
342
+ description: Descriptions.root.data.errorMessage,
343
+ [DATA.DATA_TYPE.text]: {
344
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
345
+ }
337
346
  },
338
347
  readOnly: {
339
348
  dataType: DATA.DATA_TYPE.booleanValue,
@@ -1,5 +1,4 @@
1
1
  export declare const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v5";
2
- export declare const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
3
2
  export declare const DesignStates: {
4
3
  readonly input: {
5
4
  readonly hover: {
@@ -1,5 +1,6 @@
1
1
  import { b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { a as DisplayNames, b as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, F as FunctionalStateKeys, e as editorElementClassNames, D as DesignStates, C as COMPONENT_TYPE } from "../chunks/constants36.js";
2
+ import { a as DisplayNames, F as FunctionalStateKeys, e as editorElementClassNames, D as DesignStates, C as COMPONENT_TYPE } from "../chunks/constants36.js";
3
+ import { T as TEXT_PROP_STATIC_VALUE_MAX_LENGTH } from "../chunks/manifest.js";
3
4
  const basePresetName = "baseDropdown";
4
5
  const manifest = {
5
6
  id: "d46302be-0629-45c8-bdf3-cdb14c6457c8",
@@ -1,6 +1,7 @@
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
2
  import { D as DesignStates, a as DisplayNames, F as FunctionalStateKeys, c as componentClassNames } from "../chunks/constants3.js";
3
3
  import { m as manifestKeyboard, a as manifestInputable, b as manifestFocusable } from "../chunks/manifestSdkMixins.js";
4
+ import { T as TEXT_PROP_STATIC_VALUE_MAX_LENGTH } from "../chunks/manifest.js";
4
5
  const designState = (s, pseudoClass) => ({
5
6
  displayName: s.displayName,
6
7
  className: s.className,
@@ -289,7 +290,10 @@ const manifest = {
289
290
  value: {
290
291
  displayName: DisplayNames.data.value,
291
292
  description: DisplayNames.descriptions.value,
292
- dataType: DATA.DATA_TYPE.text
293
+ dataType: DATA.DATA_TYPE.text,
294
+ [DATA.DATA_TYPE.text]: {
295
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
296
+ }
293
297
  },
294
298
  disabled: {
295
299
  displayName: DisplayNames.data.disabled,
@@ -305,14 +309,14 @@ const manifest = {
305
309
  displayName: DisplayNames.data.label,
306
310
  dataType: DATA.DATA_TYPE.text,
307
311
  [DATA.DATA_TYPE.text]: {
308
- maxLength: 400
312
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
309
313
  }
310
314
  },
311
315
  placeholder: {
312
316
  displayName: DisplayNames.data.placeholder,
313
317
  dataType: DATA.DATA_TYPE.text,
314
318
  [DATA.DATA_TYPE.text]: {
315
- maxLength: 400
319
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
316
320
  }
317
321
  },
318
322
  helperText: {
@@ -320,7 +324,7 @@ const manifest = {
320
324
  description: DisplayNames.descriptions.helperText,
321
325
  dataType: DATA.DATA_TYPE.text,
322
326
  [DATA.DATA_TYPE.text]: {
323
- maxLength: 400
327
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
324
328
  }
325
329
  },
326
330
  errorMessage: {
@@ -328,7 +332,7 @@ const manifest = {
328
332
  description: DisplayNames.descriptions.errorMessage,
329
333
  dataType: DATA.DATA_TYPE.text,
330
334
  [DATA.DATA_TYPE.text]: {
331
- maxLength: 400
335
+ maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
332
336
  }
333
337
  },
334
338
  // Accessibility
@@ -1,5 +1,4 @@
1
1
  export declare const COMPONENT_TYPE = "wixEditorElements.TimePicker__DEV__v7";
2
- export declare const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
3
2
  export declare const DisplayNames: {
4
3
  root: {
5
4
  elementDisplayName: string;
@@ -1,6 +1,6 @@
1
1
  import { b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { b as DisplayNames, c as Descriptions, d as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, D as DesignStates, P as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants2.js";
3
- import { g as getSelector } from "../chunks/manifest.js";
2
+ import { b as DisplayNames, c as Descriptions, D as DesignStates, P as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants2.js";
3
+ import { T as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, g as getSelector } from "../chunks/manifest.js";
4
4
  const basePresetName = "baseTimePicker";
5
5
  const manifest = {
6
6
  id: "41156bbe-2741-4a01-a715-7eba6e294f0b",
@@ -1,5 +1,4 @@
1
1
  const COMPONENT_TYPE = "wixEditorElements.TimePicker__DEV__v7";
2
- const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
3
2
  const DisplayNames = {
4
3
  root: {
5
4
  elementDisplayName: "Time Picker",
@@ -101,6 +100,5 @@ export {
101
100
  DEFAULT_LOCALE as a,
102
101
  DisplayNames as b,
103
102
  Descriptions as c,
104
- TEXT_PROP_STATIC_VALUE_MAX_LENGTH as d,
105
103
  selectors as s
106
104
  };
@@ -1,5 +1,4 @@
1
1
  const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v5";
2
- const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
3
2
  const DesignStates = {
4
3
  input: {
5
4
  hover: { displayName: "Hover", className: "dropdown__input--hover" },
@@ -94,6 +93,5 @@ export {
94
93
  FunctionalStateKeys as F,
95
94
  TestIds as T,
96
95
  DisplayNames as a,
97
- TEXT_PROP_STATIC_VALUE_MAX_LENGTH as b,
98
96
  editorElementClassNames as e
99
97
  };
@@ -1,4 +1,3 @@
1
- const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
2
1
  const DisplayNames = {
3
2
  root: {
4
3
  elementDisplayName: "Checkbox",
@@ -82,7 +81,6 @@ export {
82
81
  FunctionalStateKeys as F,
83
82
  TestIds as T,
84
83
  DisplayNames as a,
85
- TEXT_PROP_STATIC_VALUE_MAX_LENGTH as b,
86
84
  defaultValues as d,
87
85
  selectors as s
88
86
  };
@@ -1,6 +1,8 @@
1
1
  const getSelector = (selectorName) => {
2
2
  return `.${selectorName}`;
3
3
  };
4
+ const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
4
5
  export {
6
+ TEXT_PROP_STATIC_VALUE_MAX_LENGTH as T,
5
7
  getSelector as g
6
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2852.0",
3
+ "version": "1.2854.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": "67deaf14b9ed9995c07a2daff4f52b9005877fb0de907fd5fa4344b9"
231
+ "falconPackageHash": "286a3052bd87963bf707d00f61bf83f33271aee5670f458c6fc20e85"
232
232
  }