@wix/editor-react-components 1.2337.0 → 1.2338.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,5 +1,6 @@
1
1
  import { Translations } from './translations/consts';
2
- import { PresetConfigKey, PresetScope } from './patterns.types';
2
+ import { PATTERN_SCOPE_VALUES, PresetConfigKey, PresetScope } from './patterns.types';
3
+ import { SVGProps, JSX } from 'react';
3
4
  export { MAX_PATTERNS, PatternConfig } from './patterns.config';
4
5
  export declare const PATTERN_RANGES: {
5
6
  readonly rotation: {
@@ -39,20 +40,11 @@ export declare const dataHooks: {
39
40
  readonly rotationPatternInput: "patterns-rotation-pattern-input";
40
41
  readonly offsetPatternInput: "patterns-offset-pattern-input";
41
42
  };
42
- export declare const scopeOptions: readonly [{
43
- readonly scope: "none";
44
- readonly dataHook: "patterns-scope-none";
45
- readonly titleKey: "scopeNoTwist";
46
- readonly image: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
- }, {
48
- readonly scope: "character";
49
- readonly dataHook: "patterns-scope-character";
50
- readonly titleKey: "scopeLetter";
51
- readonly image: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
- }, {
53
- readonly scope: "word";
54
- readonly dataHook: "patterns-scope-word";
55
- readonly titleKey: "scopeWord";
56
- readonly image: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
- }];
43
+ type ScopeOption = {
44
+ scope: (typeof PATTERN_SCOPE_VALUES)[keyof typeof PATTERN_SCOPE_VALUES];
45
+ dataHook: string;
46
+ titleKey: keyof Translations;
47
+ image: string | ((props: SVGProps<SVGSVGElement>) => JSX.Element);
48
+ };
49
+ export declare const scopeOptions: Array<ScopeOption>;
58
50
  export declare const PRESET_TRANSLATION_KEYS: Record<PresetConfigKey, keyof Translations>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2337.0",
3
+ "version": "1.2338.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -77,6 +77,7 @@
77
77
  "@vimeo/player": "^2.20.1",
78
78
  "@vis.gl/react-google-maps": "^1.5.2",
79
79
  "@wix/ambassador-devcenter-v1-component-type-data": "^1.0.436",
80
+ "@wix/design-system-illustrations": "^2.19.0",
80
81
  "@wix/sdk": "^1.21.13",
81
82
  "@wix/services-manager-react": "^0.1.27",
82
83
  "@wix/site-ui": "1.156.0",
@@ -198,5 +199,5 @@
198
199
  "registry": "https://registry.npmjs.org/",
199
200
  "access": "public"
200
201
  },
201
- "falconPackageHash": "08b420bae2f408829dda57d988ab0e6a56b80192ef7bb4973564e652"
202
+ "falconPackageHash": "58e054428404468f4607c6c9eeba59deea4f03f0a55fb4e95dc5d0a6"
202
203
  }