@wix/public-editor-platform-interfaces 1.30.0 → 1.32.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/Inputs.d.ts CHANGED
@@ -1,3 +1,34 @@
1
+ export type ColorPickerMode = 'solid' | 'gradient';
2
+ export type BasePickerOptions = {
3
+ position?: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ mode?: ColorPickerMode[];
8
+ showBrand?: boolean;
9
+ showCustom?: boolean;
10
+ showOpacity?: boolean;
11
+ hideCustomColors?: boolean;
12
+ biData?: {
13
+ origin: string;
14
+ };
15
+ };
16
+ export type BackgroundFillValue = {
17
+ backgroundImage: string;
18
+ backgroundColor: string;
19
+ };
20
+ export type BackgroundPickerOptions = BasePickerOptions & {
21
+ initialValue?: Partial<BackgroundFillValue>;
22
+ onChange?: (value: BackgroundFillValue) => void;
23
+ };
24
+ export type ColorPickerOptions = BasePickerOptions & {
25
+ initialValue?: string;
26
+ onChange?: (color: string) => void;
27
+ showAdvancedSettings?: boolean;
28
+ onApply?: (color: string) => void;
29
+ onClose?: () => void;
30
+ onCancel?: () => void;
31
+ };
1
32
  /**
2
33
  * Duplicated types from editor-platform-private-api / HostAPIBase.ts
3
34
  * to allow use them in public packages
package/dist/index.d.ts CHANGED
@@ -6,6 +6,6 @@ export { EventType } from './EventType';
6
6
  export { AccessToken } from './Token';
7
7
  export { DsItem } from './DataItem';
8
8
  export { BuilderStyle, Style, StyleRef } from './StyleData';
9
- export { OpenColorPickerFn, OpenLinkPanelFn } from './Inputs';
9
+ export { OpenColorPickerFn, OpenLinkPanelFn, BasePickerOptions, BackgroundFillValue, BackgroundPickerOptions, ColorPickerOptions, ColorPickerMode, } from './Inputs';
10
10
  export * as PublicDmTypes from './generated/dm-types';
11
11
  export * from './sdk';
@@ -50,7 +50,54 @@ export type ElementTextLink = DmTypes.TextLink & ElementLinkExtension & {
50
50
  };
51
51
  export type ElementLink = ElementPageLink | ElementExternalLink | ElementEmailLink | ElementPhoneLink | ElementWhatsAppLink | ElementAddressLink | ElementAnchorLink | ElementDocumentLink | ElementDynamicPageLink | ElementTpaPageLink | ElementLoginToWixLink | ElementTextLink;
52
52
  export type ElementImage = DmTypes.Image;
53
- export type ElementVideo = DmTypes.Video;
53
+ export interface ElementVideo {
54
+ /**
55
+ * Video media identifier.
56
+ * @maxLength 1000
57
+ */
58
+ uri: string;
59
+ /**
60
+ * Available video sources in different qualities.
61
+ * @maxSize 20
62
+ */
63
+ sources?: {
64
+ quality: '1080p' | '720p' | '480p' | '360p';
65
+ width: number;
66
+ height: number;
67
+ types: {
68
+ format: 'mp4' | 'mp4-luminance';
69
+ uri: string;
70
+ }[];
71
+ }[];
72
+ /**
73
+ * Adaptive streaming sources.
74
+ * @maxSize 10
75
+ */
76
+ adaptiveSources?: {
77
+ format: 'hls' | 'dash';
78
+ uri: string;
79
+ }[];
80
+ /** Whether the video contains an audio track. */
81
+ hasAudio?: boolean;
82
+ /** Frames per second. */
83
+ fps?: number;
84
+ /**
85
+ * ORIGINAL video poster field is a string URL
86
+ */
87
+ poster?: {
88
+ uri: string;
89
+ name?: string;
90
+ width?: number;
91
+ height?: number;
92
+ };
93
+ /** Duration in seconds. */
94
+ duration?: number;
95
+ /**
96
+ * Display name of the video.
97
+ * @maxLength 100
98
+ */
99
+ name?: string;
100
+ }
54
101
  export type ElementAudio = DmTypes.Audio;
55
102
  export type ElementVectorArt = DmTypes.VectorArt;
56
103
  export type ElementA11y = DmTypes.A11y;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.30.0",
3
+ "version": "1.32.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -51,5 +51,5 @@
51
51
  ]
52
52
  }
53
53
  },
54
- "falconPackageHash": "3b459ea00db0d9f2e1b7731b4f5a5bf19bbade1358ea9530affba71b"
54
+ "falconPackageHash": "c0db383d27c3d38dae20fa33cc945efa5a5a30a8f7135fe8bc662934"
55
55
  }