@claspo/editor 1.0.14 → 1.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claspo/editor",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Claspo Editor SDK and types",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  "build:types": "node scripts/build-types.js && node scripts/types-postprocessing.js && node scripts/generate-enum-values.js",
20
20
  "build:docs": "typedoc --options typedoc.md.json && node scripts/postprocess-md.js && node scripts/add-frontmatter.js",
21
21
  "build:all": "npm run build:types && npm run build:docs",
22
+ "sync:docs": "node ../../../scripts/sync-docs.js --package=editor",
22
23
 
23
24
  "generate-reexports": "echo 'DO NOT CALL IT, WILL REWRITE editor-config.interface.ts' && node scripts/generate-esng-reexports.js"
24
25
  },
@@ -29,8 +30,8 @@
29
30
  },
30
31
  "peerDependencies": {
31
32
  "rxjs": ">=6.0.0",
32
- "@claspo/common": "6.0.6",
33
- "@claspo/document-connector": "15.0.5"
33
+ "@claspo/common": "6.0.14",
34
+ "@claspo/document-connector": "15.0.12"
34
35
  },
35
36
  "peerDependenciesMeta": {
36
37
  "rxjs": { "optional": true }
package/src/index.js CHANGED
@@ -82,11 +82,6 @@ exports.WidgetPublishStatus = Object.freeze({
82
82
  DEBUG: "DEBUG",
83
83
  });
84
84
 
85
- exports.FormTestingStatus = Object.freeze({
86
- TESTING: "TESTING",
87
- OFF: "OFF",
88
- });
89
-
90
85
  exports.EsFormIntegrationType = Object.freeze({
91
86
  WEBHOOK: "webhook",
92
87
  EMBEDDED: "embedded",
package/src/types.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { ComponentManifestI } from '@claspo/common/component-manifest/ComponentManifest.interface';
1
2
  import { ClPropertyPaneManifestModelName } from '@claspo/common/component-manifest/PropertyPaneManifest.interface';
2
- import { ClBaseComponentI, ClComponentType, ClDocumentActionType, ClDocumentI as CommonDocumentI, ClDocumentSharedI as CommonDocumentSharedI } from '@claspo/common/document/Document.interface';
3
- import { LayoutType } from '@claspo/common/LayoutType';
3
+ import { ClBaseComponentI, ClBaseComponentI as ClBaseComponentI$1, ClComponentType, ClDocumentActionType, ClDocumentI as CommonDocumentI, ClDocumentSharedI as CommonDocumentSharedI } from '@claspo/common/document/Document.interface';
4
+ import { LayoutType, LayoutType as LayoutType$1 } from '@claspo/common/LayoutType';
4
5
  import { PrizePoolModelI, PrizePoolOptionI } from '@claspo/common/PrizePool.interface';
5
- import { WidgetType } from '@claspo/common/WidgetType';
6
+ import { WidgetType, WidgetType as WidgetType$1 } from '@claspo/common/WidgetType';
6
7
  import LayoutFactory from '@claspo/document-connector/layouts/LayoutFactory';
7
8
  import { Observable } from 'rxjs';
8
9
  declare enum BaseListSortOption {
@@ -162,26 +163,16 @@ export interface WidgetsListItemI {
162
163
  id: number;
163
164
  name: string;
164
165
  publishStatus: WidgetPublishStatus;
165
- testingStatus: FormTestingStatus;
166
- fullyConfigured: boolean;
167
166
  createdDate: string;
168
167
  updatedDate: string;
169
- draft: boolean;
170
168
  variantIds: number[];
171
- abTestId: number | null;
172
169
  config: WidgetVariantDtoI;
173
- restrictions?: EsFormRestrictionI;
174
- deleted?: boolean;
175
170
  }
176
171
  export declare enum WidgetPublishStatus {
177
172
  FOR_ALL = "FOR_ALL",
178
173
  PAUSED = "PAUSED",// teaser disabled. Any other status means that teaser is enabled and status works as usual
179
174
  DEBUG = "DEBUG"
180
175
  }
181
- declare enum FormTestingStatus {
182
- TESTING = "TESTING",
183
- OFF = "OFF"
184
- }
185
176
  export interface WidgetModelI {
186
177
  id: number;
187
178
  name: string;
@@ -191,12 +182,6 @@ export interface WidgetModelI {
191
182
  variants: WidgetVariantDtoI[];
192
183
  config: WidgetVariantDtoI;
193
184
  }
194
- export interface EsFormRestrictionI {
195
- BRANDED?: EsFormBrandingI;
196
- }
197
- export interface EsFormBrandingI {
198
- reason?: string;
199
- }
200
185
  export interface WidgetVariantDtoI {
201
186
  formId: number;
202
187
  id: number;
@@ -208,7 +193,7 @@ export interface WidgetVariantDtoI {
208
193
  publishedRevision?: string;
209
194
  }
210
195
  export interface WidgetVariantConfigDtoI {
211
- type: LayoutType;
196
+ type: LayoutType$1;
212
197
  placements?: WidgetPlacementI[];
213
198
  prizePoolIds?: string[];
214
199
  }
@@ -267,7 +252,7 @@ export interface WidgetVariantI {
267
252
  publishedRevision: string | null;
268
253
  }
269
254
  export interface WidgetVariantConfigI {
270
- type: LayoutType;
255
+ type: LayoutType$1;
271
256
  placements: WidgetPlacementI[];
272
257
  prizePoolIds?: string[];
273
258
  }
@@ -284,7 +269,7 @@ export interface WidgetRevisionPayloadI {
284
269
  linkedTo?: number | null;
285
270
  }
286
271
  export interface WidgetRevisionPresentationI {
287
- type: LayoutType;
272
+ type: LayoutType$1;
288
273
  }
289
274
  export interface WidgetRevisionAppearanceI {
290
275
  id: number | string;
@@ -321,7 +306,7 @@ export declare enum WidgetProjectConfigId {
321
306
  CABINET_AB_TESTS = "CABINET_AB_TESTS"
322
307
  }
323
308
  export interface BaseFormsListRequestParamsI {
324
- layoutTypes?: LayoutType[];
309
+ layoutTypes?: LayoutType$1[];
325
310
  order?: BaseListOrderOption;
326
311
  search?: string;
327
312
  offset?: number;
@@ -1215,7 +1200,7 @@ export {
1215
1200
  LayoutType,
1216
1201
  PrizePoolModelI,
1217
1202
  PrizePoolOptionI,
1218
- WidgetType,
1203
+ WidgetType$1 as WidgetType,
1219
1204
  };
1220
1205
 
1221
1206
  export {};