@everymatrix/general-stories 1.56.0 → 1.56.2

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.
Files changed (32) hide show
  1. package/dist/cjs/{general-stories-f3bf4099.js → general-stories-bbb81cca.js} +14 -27
  2. package/dist/cjs/general-stories.cjs.entry.js +2 -2
  3. package/dist/cjs/general-stories.cjs.js +2 -2
  4. package/dist/cjs/{index-4176da89.js → index-5b8c1770.js} +73 -210
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +2 -2
  8. package/dist/collection/components/general-stories/general-stories.js +13 -42
  9. package/dist/esm/{general-stories-8ada9aa4.js → general-stories-09d4f95e.js} +14 -27
  10. package/dist/esm/general-stories.entry.js +2 -2
  11. package/dist/esm/general-stories.js +3 -3
  12. package/dist/esm/{index-95b2d607.js → index-b4964764.js} +73 -210
  13. package/dist/esm/index.js +2 -2
  14. package/dist/esm/loader.js +2 -2
  15. package/dist/general-stories/general-stories.esm.js +1 -1
  16. package/dist/general-stories/index.esm.js +1 -1
  17. package/dist/general-stories/p-34426db6.js +1 -0
  18. package/dist/general-stories/p-c85b316a.js +2 -0
  19. package/dist/general-stories/p-e1076ee3.entry.js +1 -0
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.dev.d.ts +2 -0
  22. package/dist/types/stencil-public-runtime.d.ts +0 -6
  23. package/package.json +1 -1
  24. package/dist/general-stories/p-004038c9.js +0 -1
  25. package/dist/general-stories/p-3e7fe480.entry.js +0 -1
  26. package/dist/general-stories/p-56d326ea.js +0 -2
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.d.ts +0 -2
  28. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.dev.d.ts +0 -2
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/index.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -4,35 +4,9 @@ import { translate, getTranslations } from "../../utils/locale.utils";
4
4
  import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
5
5
  export class GeneralStories {
6
6
  constructor() {
7
- /**
8
- * Language of the widget
9
- */
10
- this.language = 'en';
11
- /**
12
- * CMS Endpoint stage
13
- */
14
- this.cmsEnv = 'stage';
15
- /**
16
- * Client custom styling via string
17
- */
18
- this.clientStyling = '';
19
- /**
20
- * Client custom styling via url
21
- */
22
- this.clientStylingUrl = '';
23
- /**
24
- * Translations via URL
25
- */
26
- this.translationUrl = '';
27
- /**
28
- * Duration of progress bar
29
- */
30
- this.progressBarDuration = 10;
31
7
  this.hasErrors = false;
32
8
  this.isLoading = true;
33
9
  this.isSwipe = false;
34
- this.currentStoryId = null;
35
- this.progress = 0;
36
10
  this.getStories = () => {
37
11
  let url = new URL(`${this.cmsEndpoint}/${this.language}/stories`);
38
12
  url.searchParams.append('env', this.cmsEnv);
@@ -110,6 +84,19 @@ export class GeneralStories {
110
84
  const open = () => this.openFullScreenStory(props.id);
111
85
  return (h("div", { class: `StoryThumbnailContainer ${props.viewed ? 'Viewed' : 'Highlighted'}`, onTouchStart: open }, h("img", { class: `StoryThumbnailImage ${props.viewed ? 'Viewed' : 'Highlighted'}`, src: props.icon, alt: "story-icon" })));
112
86
  };
87
+ this.cmsEndpoint = undefined;
88
+ this.language = 'en';
89
+ this.cmsEnv = 'stage';
90
+ this.mbSource = undefined;
91
+ this.clientStyling = '';
92
+ this.clientStylingUrl = '';
93
+ this.translationUrl = '';
94
+ this.progressBarDuration = 10;
95
+ this.currentStory = undefined;
96
+ this.currentStoryId = null;
97
+ this.progress = 0;
98
+ this.touchPosStart = undefined;
99
+ this.touchPosEnd = undefined;
113
100
  }
114
101
  handleClientStylingChange(newValue, oldValue) {
115
102
  if (newValue != oldValue) {
@@ -236,8 +223,6 @@ export class GeneralStories {
236
223
  "tags": [],
237
224
  "text": "Endpoint URL for the source of data"
238
225
  },
239
- "getter": false,
240
- "setter": false,
241
226
  "attribute": "cms-endpoint",
242
227
  "reflect": true
243
228
  },
@@ -255,8 +240,6 @@ export class GeneralStories {
255
240
  "tags": [],
256
241
  "text": "Language of the widget"
257
242
  },
258
- "getter": false,
259
- "setter": false,
260
243
  "attribute": "language",
261
244
  "reflect": true,
262
245
  "defaultValue": "'en'"
@@ -275,8 +258,6 @@ export class GeneralStories {
275
258
  "tags": [],
276
259
  "text": "CMS Endpoint stage"
277
260
  },
278
- "getter": false,
279
- "setter": false,
280
261
  "attribute": "cms-env",
281
262
  "reflect": true,
282
263
  "defaultValue": "'stage'"
@@ -295,8 +276,6 @@ export class GeneralStories {
295
276
  "tags": [],
296
277
  "text": "Client custom styling via streamStyling"
297
278
  },
298
- "getter": false,
299
- "setter": false,
300
279
  "attribute": "mb-source",
301
280
  "reflect": false
302
281
  },
@@ -314,8 +293,6 @@ export class GeneralStories {
314
293
  "tags": [],
315
294
  "text": "Client custom styling via string"
316
295
  },
317
- "getter": false,
318
- "setter": false,
319
296
  "attribute": "client-styling",
320
297
  "reflect": true,
321
298
  "defaultValue": "''"
@@ -334,8 +311,6 @@ export class GeneralStories {
334
311
  "tags": [],
335
312
  "text": "Client custom styling via url"
336
313
  },
337
- "getter": false,
338
- "setter": false,
339
314
  "attribute": "client-styling-url",
340
315
  "reflect": true,
341
316
  "defaultValue": "''"
@@ -354,8 +329,6 @@ export class GeneralStories {
354
329
  "tags": [],
355
330
  "text": "Translations via URL"
356
331
  },
357
- "getter": false,
358
- "setter": false,
359
332
  "attribute": "translation-url",
360
333
  "reflect": true,
361
334
  "defaultValue": "''"
@@ -374,8 +347,6 @@ export class GeneralStories {
374
347
  "tags": [],
375
348
  "text": "Duration of progress bar"
376
349
  },
377
- "getter": false,
378
- "setter": false,
379
350
  "attribute": "progress-bar-duration",
380
351
  "reflect": true,
381
352
  "defaultValue": "10"
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-95b2d607.js';
1
+ import { r as registerInstance, h } from './index-b4964764.js';
2
2
 
3
3
  const getDevice = () => {
4
4
  let userAgent = window.navigator.userAgent;
@@ -146,35 +146,9 @@ const GeneralStoriesStyle0 = generalStoriesCss;
146
146
  const GeneralStories = class {
147
147
  constructor(hostRef) {
148
148
  registerInstance(this, hostRef);
149
- /**
150
- * Language of the widget
151
- */
152
- this.language = 'en';
153
- /**
154
- * CMS Endpoint stage
155
- */
156
- this.cmsEnv = 'stage';
157
- /**
158
- * Client custom styling via string
159
- */
160
- this.clientStyling = '';
161
- /**
162
- * Client custom styling via url
163
- */
164
- this.clientStylingUrl = '';
165
- /**
166
- * Translations via URL
167
- */
168
- this.translationUrl = '';
169
- /**
170
- * Duration of progress bar
171
- */
172
- this.progressBarDuration = 10;
173
149
  this.hasErrors = false;
174
150
  this.isLoading = true;
175
151
  this.isSwipe = false;
176
- this.currentStoryId = null;
177
- this.progress = 0;
178
152
  this.getStories = () => {
179
153
  let url = new URL(`${this.cmsEndpoint}/${this.language}/stories`);
180
154
  url.searchParams.append('env', this.cmsEnv);
@@ -252,6 +226,19 @@ const GeneralStories = class {
252
226
  const open = () => this.openFullScreenStory(props.id);
253
227
  return (h("div", { class: `StoryThumbnailContainer ${props.viewed ? 'Viewed' : 'Highlighted'}`, onTouchStart: open }, h("img", { class: `StoryThumbnailImage ${props.viewed ? 'Viewed' : 'Highlighted'}`, src: props.icon, alt: "story-icon" })));
254
228
  };
229
+ this.cmsEndpoint = undefined;
230
+ this.language = 'en';
231
+ this.cmsEnv = 'stage';
232
+ this.mbSource = undefined;
233
+ this.clientStyling = '';
234
+ this.clientStylingUrl = '';
235
+ this.translationUrl = '';
236
+ this.progressBarDuration = 10;
237
+ this.currentStory = undefined;
238
+ this.currentStoryId = null;
239
+ this.progress = 0;
240
+ this.touchPosStart = undefined;
241
+ this.touchPosEnd = undefined;
255
242
  }
256
243
  handleClientStylingChange(newValue, oldValue) {
257
244
  if (newValue != oldValue) {
@@ -1,2 +1,2 @@
1
- export { G as general_stories } from './general-stories-8ada9aa4.js';
2
- import './index-95b2d607.js';
1
+ export { G as general_stories } from './general-stories-09d4f95e.js';
2
+ import './index-b4964764.js';
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-95b2d607.js';
2
- export { s as setNonce } from './index-95b2d607.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b4964764.js';
2
+ export { s as setNonce } from './index-b4964764.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;