@wix/react-component-schema 1.6.0 → 1.7.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.
package/dist/index.d.ts CHANGED
@@ -1569,6 +1569,16 @@ declare enum DisplayValueEnumDisplayValue {
1569
1569
  listItem = "listItem"
1570
1570
  }
1571
1571
 
1572
+ export declare const DOM_EVENT: {
1573
+ readonly POINTER: "POINTER";
1574
+ readonly CHANGE: "CHANGE";
1575
+ readonly FOCUS: "FOCUS";
1576
+ readonly SUBMIT: "SUBMIT";
1577
+ readonly KEYBOARD: "KEYBOARD";
1578
+ };
1579
+
1580
+ export declare type DomEvent = (typeof DOM_EVENT)[keyof typeof DOM_EVENT];
1581
+
1572
1582
  declare interface EditorDependencies {
1573
1583
  /**
1574
1584
  * A list of service dependencies required by the component, example: ['@wix/environment']
package/dist/index.js CHANGED
@@ -539,6 +539,13 @@ var MEDIA = {
539
539
  VECTOR_ART_CATEGORY: VectorArtCategoryTypes,
540
540
  IMAGE_CATEGORY: ImageCategoryTypes
541
541
  };
542
+ const DOM_EVENT = {
543
+ POINTER: "POINTER",
544
+ CHANGE: "CHANGE",
545
+ FOCUS: "FOCUS",
546
+ SUBMIT: "SUBMIT",
547
+ KEYBOARD: "KEYBOARD"
548
+ };
542
549
  export {
543
550
  ACTIONS,
544
551
  ActionName as ACTION_NAME,
@@ -547,6 +554,7 @@ export {
547
554
  CSS_PROPERTIES,
548
555
  DATA,
549
556
  DISPLAY_GROUPS,
557
+ DOM_EVENT,
550
558
  ELEMENTS,
551
559
  INTERACTIONS,
552
560
  LAYOUT,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "registry": "https://registry.npmjs.org/",
5
5
  "access": "public"
6
6
  },
7
- "version": "1.6.0",
7
+ "version": "1.7.0",
8
8
  "description": "Schema constants and types for EditorReactComponent extension",
9
9
  "type": "module",
10
10
  "main": "dist/index.js",
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "falconPackageHash": "f3429a7c4873fb344e5987e3d7a9bbe48fb474d829d4b1d0d735eda3"
56
+ "falconPackageHash": "ec12e42e643d5bb6ebf0efb0e259c690f18dacdcfa23a136a873c967"
57
57
  }
@@ -1984,6 +1984,16 @@ declare enum DisplayValueEnumDisplayValue {
1984
1984
  listItem = "listItem"
1985
1985
  }
1986
1986
 
1987
+ export declare const DOM_EVENT: {
1988
+ readonly POINTER: "POINTER";
1989
+ readonly CHANGE: "CHANGE";
1990
+ readonly FOCUS: "FOCUS";
1991
+ readonly SUBMIT: "SUBMIT";
1992
+ readonly KEYBOARD: "KEYBOARD";
1993
+ };
1994
+
1995
+ export declare type DomEvent = (typeof DOM_EVENT)[keyof typeof DOM_EVENT];
1996
+
1987
1997
  declare interface EditorDependencies {
1988
1998
  /**
1989
1999
  * A list of service dependencies required by the component, example: ['@wix/environment']
@@ -4462,6 +4472,13 @@ var MEDIA = {
4462
4472
  VECTOR_ART_CATEGORY: VectorArtCategoryTypes,
4463
4473
  IMAGE_CATEGORY: ImageCategoryTypes
4464
4474
  };
4475
+ const DOM_EVENT = {
4476
+ POINTER: "POINTER",
4477
+ CHANGE: "CHANGE",
4478
+ FOCUS: "FOCUS",
4479
+ SUBMIT: "SUBMIT",
4480
+ KEYBOARD: "KEYBOARD"
4481
+ };
4465
4482
  export {
4466
4483
  ACTIONS,
4467
4484
  ActionName as ACTION_NAME,
@@ -4470,6 +4487,7 @@ export {
4470
4487
  CSS_PROPERTIES,
4471
4488
  DATA,
4472
4489
  DISPLAY_GROUPS,
4490
+ DOM_EVENT,
4473
4491
  ELEMENTS,
4474
4492
  INTERACTIONS,
4475
4493
  LAYOUT,
package/src/index.ts CHANGED
@@ -14,6 +14,18 @@ export {
14
14
  OverrideType,
15
15
  } from '@wix/component-protocol/schema'
16
16
 
17
+ // TODO: replace with re-export from @wix/component-protocol/schema once
18
+ // https://github.com/wix-private/component-protocol exports DomEventType.
19
+ export const DOM_EVENT = {
20
+ POINTER: 'POINTER',
21
+ CHANGE: 'CHANGE',
22
+ FOCUS: 'FOCUS',
23
+ SUBMIT: 'SUBMIT',
24
+ KEYBOARD: 'KEYBOARD',
25
+ } as const
26
+
27
+ export type DomEvent = (typeof DOM_EVENT)[keyof typeof DOM_EVENT]
28
+
17
29
  export type {
18
30
  Behaviors,
19
31
  StyleItem,