@mediaclip/designer-api 14.0.0-beta.26190 → 14.0.0-beta.26191

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/designer-api.d.ts CHANGED
@@ -94,16 +94,15 @@ export class PhotoSelection extends RemoteObject {
94
94
  name:string;
95
95
  photos:string[];
96
96
  }
97
-
98
- export enum StepNames {
99
- ProductSelection = 'PRODUCT_SELECTION',
100
- Edition = 'EDITION',
101
- ThemeSelection = 'THEME_SELECTION',
102
- AlternativeProducts = 'ALTERNATIVE_PRODUCTS',
103
- Customize = 'CUSTOMIZE',
104
- Form = 'FORM',
105
- Contacts = 'CONTACTS'
106
- }
97
+ export type StepNames =
98
+ | 'PRODUCT_SELECTION'
99
+ | 'EDITION'
100
+ | 'THEME_SELECTION'
101
+ | 'ALTERNATIVE_PRODUCTS'
102
+ | 'CUSTOMIZE'
103
+ | 'FORM'
104
+ | 'CONTACTS'
105
+ ;
107
106
 
108
107
  export class State extends RemoteObject {
109
108
  generatedStep:StepNames;
@@ -146,15 +145,14 @@ export class SaveResultCommandContainer extends SaveResult implements ICommandCo
146
145
  command:ICommand;
147
146
  }
148
147
 
149
- export enum SaveTrigger {
150
- Undefined = 'undefined',
151
- User = 'user',
152
- StepChange = 'stepchange',
153
- Auto = 'auto',
154
- AddToCart = 'addtocart',
155
- Hook = 'hook',
156
- Redirect = 'redirect'
157
- }
148
+ export type SaveTrigger =
149
+ | 'undefined'
150
+ | 'user'
151
+ | 'stepchange'
152
+ | 'auto'
153
+ | 'addtocart'
154
+ | 'hook'
155
+ | 'redirect';
158
156
 
159
157
  export interface INode {
160
158
  }
@@ -324,11 +322,11 @@ export interface IDesignerEvents {
324
322
  onUploadPhotos:(url:string) => boolean;
325
323
  }
326
324
 
327
- export enum ColorTheme {
328
- Auto = 'auto',
329
- Light = 'light',
330
- Dark = 'dark',
331
- }
325
+ export type ColorTheme =
326
+ | 'auto'
327
+ | 'light'
328
+ | 'dark'
329
+ ;
332
330
 
333
331
  export interface IMediaclipConfig {
334
332
  allowedDomains?:string[];
package/index.js ADDED
File without changes
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@mediaclip/designer-api",
3
- "version": "14.0.0-beta.26190",
3
+ "version": "14.0.0-beta.26191",
4
4
  "description": "Mediaclip Designer Javascript API Typings",
5
5
  "types": "designer-api.d.ts",
6
+ "main": "index.js",
6
7
  "keywords": [],
7
8
  "author": "Mediaclip inc.",
8
9
  "license": "GPL-3.0-or-later",
9
10
  "files": [
10
11
  "designer-api.d.ts",
12
+ "index.js",
11
13
  "README.md"
12
14
  ]
13
15
  }