@everymatrix/nuts-inbox-widget 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 (27) hide show
  1. package/dist/cjs/{index-5e13b80a.js → index-c16396a3.js} +74 -211
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/nuts-inbox-widget.cjs.js +2 -2
  4. package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +59 -51
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +19 -57
  7. package/dist/collection/components/nuts-notification/nuts-notification.js +24 -50
  8. package/dist/collection/components/nuts-popover/nuts-popover.js +15 -33
  9. package/dist/esm/{index-e14bfa46.js → index-6a331097.js} +74 -211
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/esm/nuts-inbox-widget.js +3 -3
  12. package/dist/esm/nuts-inbox-widget_3.entry.js +59 -51
  13. package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
  14. package/dist/nuts-inbox-widget/p-5f8017ca.entry.js +1 -0
  15. package/dist/nuts-inbox-widget/p-75ed38bb.js +2 -0
  16. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +2 -0
  17. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +2 -0
  18. package/dist/types/stencil-public-runtime.d.ts +0 -6
  19. package/package.json +1 -1
  20. package/dist/nuts-inbox-widget/p-af9bcff0.js +0 -2
  21. package/dist/nuts-inbox-widget/p-fc6b9468.entry.js +0 -1
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +0 -2
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +0 -2
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/index.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  27. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-e14bfa46.js';
2
- export { s as setNonce } from './index-e14bfa46.js';
1
+ import { b as bootstrapLazy } from './index-6a331097.js';
2
+ export { s as setNonce } from './index-6a331097.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-e14bfa46.js';
2
- export { s as setNonce } from './index-e14bfa46.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6a331097.js';
2
+ export { s as setNonce } from './index-6a331097.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;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-e14bfa46.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-6a331097.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['hu', 'en'];
@@ -4230,33 +4230,6 @@ const NutsInboxWidget = class {
4230
4230
  registerInstance(this, hostRef);
4231
4231
  this.notificationFeed = createEvent(this, "notificationFeed", 7);
4232
4232
  this.newNotification = createEvent(this, "newNotification", 7);
4233
- /**
4234
- * Language of the widget
4235
- */
4236
- this.language = 'en';
4237
- /**
4238
- * Environment on which the widget is used (possible values: `stage`, `prod`)
4239
- */
4240
- this.environment = 'stage';
4241
- /**
4242
- * Client custom styling via inline styles
4243
- */
4244
- this.clientStyling = '';
4245
- /**
4246
- * Position of the widget (possible values: `left` and `right`) - this changes the `justify-content` property of the `.BellIconWrapper` class
4247
- */
4248
- this.bellIconPosition = 'left';
4249
- /**
4250
- * Clicking on the notification will automatically redirect you to the redirectURL attached to the notification (`default` behaviour). It can be changed to `postMessage` and instead of the redirect it will emit a postMessage with the redirectURL and the parent website can take actions
4251
- */
4252
- this.notificationAction = 'default';
4253
- /**
4254
- * Translations via URL
4255
- */
4256
- this.translationUrl = '';
4257
- this.isLoading = false;
4258
- this.popoverVisible = false;
4259
- this.limitStylingAppends = false;
4260
4233
  this.token = null;
4261
4234
  this.baseUrl = `${this.backendUrl}/v1/${this.operatorId}`;
4262
4235
  this.initializeSessionBody = {
@@ -4297,6 +4270,25 @@ const NutsInboxWidget = class {
4297
4270
  this.assignRefToBell = (ref) => {
4298
4271
  this.bellIconRef = ref;
4299
4272
  };
4273
+ this.backendUrl = undefined;
4274
+ this.socketUrl = undefined;
4275
+ this.userId = undefined;
4276
+ this.sessionId = undefined;
4277
+ this.operatorId = undefined;
4278
+ this.subscriberId = undefined;
4279
+ this.deviceId = undefined;
4280
+ this.language = 'en';
4281
+ this.environment = 'stage';
4282
+ this.applicationIdentifier = undefined;
4283
+ this.clientStyling = '';
4284
+ this.clientStylingUrl = undefined;
4285
+ this.bellIconPosition = 'left';
4286
+ this.notificationAction = 'default';
4287
+ this.translationUrl = '';
4288
+ this.isLoading = false;
4289
+ this.popoverVisible = false;
4290
+ this.unseenCount = undefined;
4291
+ this.limitStylingAppends = false;
4300
4292
  }
4301
4293
  initializeHandler(newValue, oldValue) {
4302
4294
  if (newValue !== oldValue) {
@@ -40693,18 +40685,6 @@ const NutsNotification = class {
40693
40685
  registerInstance(this, hostRef);
40694
40686
  this.messageDeteled = createEvent(this, "messageDeleted", 7);
40695
40687
  this.settingsOpened = createEvent(this, "settingsOpened", 7);
40696
- /**
40697
- * Translations via URL
40698
- */
40699
- this.translationUrl = '';
40700
- /**
40701
- * Clienty styling passed as a string
40702
- */
40703
- this.clientStyling = '';
40704
- this.showSettingsModal = false;
40705
- this.messageSeen = false;
40706
- this.messageRead = false;
40707
- this.limitStylingAppends = false;
40708
40688
  this.toggleSettingsModal = (e) => {
40709
40689
  e.stopImmediatePropagation();
40710
40690
  this.showSettingsModal = !this.showSettingsModal;
@@ -40793,6 +40773,30 @@ const NutsNotification = class {
40793
40773
  this.assignRefToDropdownArrow = (ref) => {
40794
40774
  this.dropdownArrowRef = ref;
40795
40775
  };
40776
+ this.badge = undefined;
40777
+ this.content = undefined;
40778
+ this.date = undefined;
40779
+ this.showSettings = undefined;
40780
+ this.read = undefined;
40781
+ this.seen = undefined;
40782
+ this.language = undefined;
40783
+ this.sessionId = undefined;
40784
+ this.subscriberId = undefined;
40785
+ this.userId = undefined;
40786
+ this.messageId = undefined;
40787
+ this.operatorId = undefined;
40788
+ this.token = undefined;
40789
+ this.backendUrl = undefined;
40790
+ this.redirectUrl = undefined;
40791
+ this.notificationAction = undefined;
40792
+ this.clientStylingUrl = undefined;
40793
+ this.translationUrl = '';
40794
+ this.clientStyling = '';
40795
+ this.showSettingsModal = false;
40796
+ this.messageSeen = false;
40797
+ this.messageRead = false;
40798
+ this.displayedContent = undefined;
40799
+ this.limitStylingAppends = false;
40796
40800
  }
40797
40801
  allNotificationsReadHandler() {
40798
40802
  this.messageSeen = true;
@@ -40858,17 +40862,6 @@ const NutsPopover = class {
40858
40862
  constructor(hostRef) {
40859
40863
  registerInstance(this, hostRef);
40860
40864
  this.allNotificationsRead = createEvent(this, "allNotificationsRead", 7);
40861
- /**
40862
- * Custom styling string
40863
- */
40864
- this.clientStyling = '';
40865
- /**
40866
- * Translations via URL
40867
- */
40868
- this.translationUrl = '';
40869
- this.isLoading = true;
40870
- this.showMarkAll = false;
40871
- this.limitStylingAppends = false;
40872
40865
  this.currentPage = 0;
40873
40866
  this.updateNotificationsDataAfterPageChange = (getNotificationsData) => {
40874
40867
  this.isLoading = getNotificationsData.isLoading;
@@ -40924,6 +40917,21 @@ const NutsPopover = class {
40924
40917
  this.assignRefToStylingContainer = (ref) => {
40925
40918
  this.stylingContainer = ref;
40926
40919
  };
40920
+ this.language = undefined;
40921
+ this.userId = undefined;
40922
+ this.operatorId = undefined;
40923
+ this.token = undefined;
40924
+ this.sessionId = undefined;
40925
+ this.backendUrl = undefined;
40926
+ this.unseenCount = undefined;
40927
+ this.clientStylingUrl = undefined;
40928
+ this.notificationAction = undefined;
40929
+ this.clientStyling = '';
40930
+ this.translationUrl = '';
40931
+ this.notifications = undefined;
40932
+ this.isLoading = true;
40933
+ this.showMarkAll = false;
40934
+ this.limitStylingAppends = false;
40927
40935
  }
40928
40936
  messageDeteledHandler(event) {
40929
40937
  this.notifications = this.notifications.filter((item) => {
@@ -1 +1 @@
1
- import{p as n,b as i}from"./p-af9bcff0.js";export{s as setNonce}from"./p-af9bcff0.js";import{g as e}from"./p-e1255160.js";(()=>{const i=import.meta.url,e={};return""!==i&&(e.resourcesUrl=new URL(".",i).href),n(e)})().then((async n=>(await e(),i([["p-fc6b9468",[[1,"nuts-inbox-widget",{backendUrl:[513,"backend-url"],socketUrl:[513,"socket-url"],userId:[513,"user-id"],sessionId:[513,"session-id"],operatorId:[513,"operator-id"],subscriberId:[513,"subscriber-id"],deviceId:[513,"device-id"],language:[513],environment:[513],applicationIdentifier:[513,"application-identifier"],clientStyling:[1537,"client-styling"],clientStylingUrl:[513,"client-styling-url"],bellIconPosition:[513,"bell-icon-position"],notificationAction:[513,"notification-action"],translationUrl:[513,"translation-url"],isLoading:[32],popoverVisible:[32],unseenCount:[32],limitStylingAppends:[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"]],{subscriberId:["initializeHandler"],operatorId:["initializeHandler"],applicationIdentifier:["initializeHandler"],deviceId:["initializeHandler"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}],[0,"nuts-popover",{language:[513],userId:[513,"user-id"],operatorId:[513,"operator-id"],token:[513],sessionId:[513,"session-id"],backendUrl:[513,"backend-url"],unseenCount:[514,"unseen-count"],clientStylingUrl:[513,"client-styling-url"],notificationAction:[513,"notification-action"],clientStyling:[1537,"client-styling"],translationUrl:[513,"translation-url"],notifications:[32],isLoading:[32],showMarkAll:[32],limitStylingAppends:[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{unseenCount:["unseenCountHandler"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}],[0,"nuts-notification",{badge:[513],content:[513],date:[513],showSettings:[516,"show-settings"],read:[516],seen:[516],language:[513],sessionId:[513,"session-id"],subscriberId:[513,"subscriber-id"],userId:[513,"user-id"],messageId:[513,"message-id"],operatorId:[513,"operator-id"],token:[513],backendUrl:[513,"backend-url"],redirectUrl:[513,"redirect-url"],notificationAction:[513,"notification-action"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clientStyling:[1537,"client-styling"],showSettingsModal:[32],messageSeen:[32],messageRead:[32],displayedContent:[32],limitStylingAppends:[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}]]]],n))));
1
+ import{p as n,b as i}from"./p-75ed38bb.js";export{s as setNonce}from"./p-75ed38bb.js";import{g as e}from"./p-e1255160.js";(()=>{const i=import.meta.url,e={};return""!==i&&(e.resourcesUrl=new URL(".",i).href),n(e)})().then((async n=>(await e(),i([["p-5f8017ca",[[1,"nuts-inbox-widget",{backendUrl:[513,"backend-url"],socketUrl:[513,"socket-url"],userId:[513,"user-id"],sessionId:[513,"session-id"],operatorId:[513,"operator-id"],subscriberId:[513,"subscriber-id"],deviceId:[513,"device-id"],language:[513],environment:[513],applicationIdentifier:[513,"application-identifier"],clientStyling:[1537,"client-styling"],clientStylingUrl:[513,"client-styling-url"],bellIconPosition:[513,"bell-icon-position"],notificationAction:[513,"notification-action"],translationUrl:[513,"translation-url"],isLoading:[32],popoverVisible:[32],unseenCount:[32],limitStylingAppends:[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"]],{subscriberId:["initializeHandler"],operatorId:["initializeHandler"],applicationIdentifier:["initializeHandler"],deviceId:["initializeHandler"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}],[0,"nuts-popover",{language:[513],userId:[513,"user-id"],operatorId:[513,"operator-id"],token:[513],sessionId:[513,"session-id"],backendUrl:[513,"backend-url"],unseenCount:[514,"unseen-count"],clientStylingUrl:[513,"client-styling-url"],notificationAction:[513,"notification-action"],clientStyling:[1537,"client-styling"],translationUrl:[513,"translation-url"],notifications:[32],isLoading:[32],showMarkAll:[32],limitStylingAppends:[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{unseenCount:["unseenCountHandler"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}],[0,"nuts-notification",{badge:[513],content:[513],date:[513],showSettings:[516,"show-settings"],read:[516],seen:[516],language:[513],sessionId:[513,"session-id"],subscriberId:[513,"subscriber-id"],userId:[513,"user-id"],messageId:[513,"message-id"],operatorId:[513,"operator-id"],token:[513],backendUrl:[513,"backend-url"],redirectUrl:[513,"redirect-url"],notificationAction:[513,"notification-action"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clientStyling:[1537,"client-styling"],showSettingsModal:[32],messageSeen:[32],messageRead:[32],displayedContent:[32],limitStylingAppends:[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}]]]],n))));