@everymatrix/nuts-inbox-widget 1.77.25 → 1.77.26
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/cjs/nuts-inbox-widget_3.cjs.entry.js +4 -9
- package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +4 -9
- package/dist/esm/nuts-inbox-widget_3.entry.js +4 -9
- package/dist/nuts-inbox-widget/nuts-inbox-widget_3.entry.js +1 -1
- package/dist/types/Users/StefanO/Desktop/Proj/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +2 -0
- package/dist/types/Users/StefanO/Desktop/Proj/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +2 -0
- package/hydrate/index.js +1 -1
- package/hydrate/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/StefanO/Desktop/Proj}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -4441,16 +4441,11 @@ const NutsInboxWidget = class {
|
|
|
4441
4441
|
setupSocket() {
|
|
4442
4442
|
if (this.socketRef)
|
|
4443
4443
|
return;
|
|
4444
|
+
const { origin, pathname } = new URL(this.socketUrl);
|
|
4444
4445
|
if (this.token) {
|
|
4445
|
-
this.socketRef = lookup(
|
|
4446
|
-
reconnection: true,
|
|
4447
|
-
reconnectionDelayMax: 10000,
|
|
4448
|
-
reconnectionAttempts: 10,
|
|
4449
|
-
transports: ['websocket'],
|
|
4450
|
-
auth: {
|
|
4446
|
+
this.socketRef = lookup(origin, Object.assign(Object.assign({ reconnection: true, reconnectionDelayMax: 10000, reconnectionAttempts: 10, transports: ['websocket'] }, (pathname ? { path: pathname + '/socket.io' } : {})), { auth: {
|
|
4451
4447
|
token: `${this.token}`
|
|
4452
|
-
}
|
|
4453
|
-
});
|
|
4448
|
+
} }));
|
|
4454
4449
|
this.socketRef.on('connect_error', (error) => {
|
|
4455
4450
|
console.error('WebSocket error', error);
|
|
4456
4451
|
});
|
|
@@ -4514,7 +4509,7 @@ const NutsInboxWidget = class {
|
|
|
4514
4509
|
return (index.h("div", { onClick: this.togglePopover, class: "BellIcon" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "currentColor", class: "bi bi-bell", viewBox: "0 0 16 16" }, ' ', index.h("path", { d: "M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" }), ' '), this.unseenCount > 0 ? (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "nc-bell-button-dot css-0 css-1eg2znq" }, index.h("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "6.5", fill: "url(#paint0_linear_1722_2699)", stroke: "#1E1E26", "stroke-width": "3" }), index.h("defs", null, index.h("linearGradient", { id: "paint0_linear_1722_2699", x1: "8", y1: "13", x2: "8", y2: "3", gradientUnits: "userSpaceOnUse" }, index.h("stop", { "stop-color": "#FF512F" }), index.h("stop", { offset: "1", "stop-color": "#DD2476" }))))) : ('')));
|
|
4515
4510
|
}
|
|
4516
4511
|
render() {
|
|
4517
|
-
return (index.h("div", { key: '
|
|
4512
|
+
return (index.h("div", { key: 'e260113048e5047c60dff310356b7c9f0946c804', ref: this.assignRefToStylingContainer, class: "Wrapper" }, index.h("div", { key: 'a78e858daaa376999bad820a3b8db41ab47be774', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.token && this.popoverVisible && (index.h("nuts-popover", { key: 'b0ddf7406e82c4833093e99f53386251f5e4d1c7', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
|
|
4518
4513
|
}
|
|
4519
4514
|
get el() { return index.getElement(this); }
|
|
4520
4515
|
static get watchers() { return {
|
|
@@ -122,16 +122,11 @@ export class NutsInboxWidget {
|
|
|
122
122
|
return;
|
|
123
123
|
if (this.socketRef)
|
|
124
124
|
return;
|
|
125
|
+
const { origin, pathname } = new URL(this.socketUrl);
|
|
125
126
|
if (this.token) {
|
|
126
|
-
this.socketRef = io(
|
|
127
|
-
reconnection: true,
|
|
128
|
-
reconnectionDelayMax: 10000,
|
|
129
|
-
reconnectionAttempts: 10,
|
|
130
|
-
transports: ['websocket'],
|
|
131
|
-
auth: {
|
|
127
|
+
this.socketRef = io(origin, Object.assign(Object.assign({ reconnection: true, reconnectionDelayMax: 10000, reconnectionAttempts: 10, transports: ['websocket'] }, (pathname ? { path: pathname + '/socket.io' } : {})), { auth: {
|
|
132
128
|
token: `${this.token}`
|
|
133
|
-
}
|
|
134
|
-
});
|
|
129
|
+
} }));
|
|
135
130
|
this.socketRef.on('connect_error', (error) => {
|
|
136
131
|
console.error('WebSocket error', error);
|
|
137
132
|
});
|
|
@@ -199,7 +194,7 @@ export class NutsInboxWidget {
|
|
|
199
194
|
return (h("div", { onClick: this.togglePopover, class: "BellIcon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "currentColor", class: "bi bi-bell", viewBox: "0 0 16 16" }, ' ', h("path", { d: "M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" }), ' '), this.unseenCount > 0 ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "nc-bell-button-dot css-0 css-1eg2znq" }, h("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "6.5", fill: "url(#paint0_linear_1722_2699)", stroke: "#1E1E26", "stroke-width": "3" }), h("defs", null, h("linearGradient", { id: "paint0_linear_1722_2699", x1: "8", y1: "13", x2: "8", y2: "3", gradientUnits: "userSpaceOnUse" }, h("stop", { "stop-color": "#FF512F" }), h("stop", { offset: "1", "stop-color": "#DD2476" }))))) : ('')));
|
|
200
195
|
}
|
|
201
196
|
render() {
|
|
202
|
-
return (h("div", { key: '
|
|
197
|
+
return (h("div", { key: 'e260113048e5047c60dff310356b7c9f0946c804', ref: this.assignRefToStylingContainer, class: "Wrapper" }, h("div", { key: 'a78e858daaa376999bad820a3b8db41ab47be774', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.token && this.popoverVisible && (h("nuts-popover", { key: 'b0ddf7406e82c4833093e99f53386251f5e4d1c7', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
|
|
203
198
|
}
|
|
204
199
|
static get is() { return "nuts-inbox-widget"; }
|
|
205
200
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4437,16 +4437,11 @@ const NutsInboxWidget = class {
|
|
|
4437
4437
|
setupSocket() {
|
|
4438
4438
|
if (this.socketRef)
|
|
4439
4439
|
return;
|
|
4440
|
+
const { origin, pathname } = new URL(this.socketUrl);
|
|
4440
4441
|
if (this.token) {
|
|
4441
|
-
this.socketRef = lookup(
|
|
4442
|
-
reconnection: true,
|
|
4443
|
-
reconnectionDelayMax: 10000,
|
|
4444
|
-
reconnectionAttempts: 10,
|
|
4445
|
-
transports: ['websocket'],
|
|
4446
|
-
auth: {
|
|
4442
|
+
this.socketRef = lookup(origin, Object.assign(Object.assign({ reconnection: true, reconnectionDelayMax: 10000, reconnectionAttempts: 10, transports: ['websocket'] }, (pathname ? { path: pathname + '/socket.io' } : {})), { auth: {
|
|
4447
4443
|
token: `${this.token}`
|
|
4448
|
-
}
|
|
4449
|
-
});
|
|
4444
|
+
} }));
|
|
4450
4445
|
this.socketRef.on('connect_error', (error) => {
|
|
4451
4446
|
console.error('WebSocket error', error);
|
|
4452
4447
|
});
|
|
@@ -4510,7 +4505,7 @@ const NutsInboxWidget = class {
|
|
|
4510
4505
|
return (h("div", { onClick: this.togglePopover, class: "BellIcon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "currentColor", class: "bi bi-bell", viewBox: "0 0 16 16" }, ' ', h("path", { d: "M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" }), ' '), this.unseenCount > 0 ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "nc-bell-button-dot css-0 css-1eg2znq" }, h("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "6.5", fill: "url(#paint0_linear_1722_2699)", stroke: "#1E1E26", "stroke-width": "3" }), h("defs", null, h("linearGradient", { id: "paint0_linear_1722_2699", x1: "8", y1: "13", x2: "8", y2: "3", gradientUnits: "userSpaceOnUse" }, h("stop", { "stop-color": "#FF512F" }), h("stop", { offset: "1", "stop-color": "#DD2476" }))))) : ('')));
|
|
4511
4506
|
}
|
|
4512
4507
|
render() {
|
|
4513
|
-
return (h("div", { key: '
|
|
4508
|
+
return (h("div", { key: 'e260113048e5047c60dff310356b7c9f0946c804', ref: this.assignRefToStylingContainer, class: "Wrapper" }, h("div", { key: 'a78e858daaa376999bad820a3b8db41ab47be774', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.token && this.popoverVisible && (h("nuts-popover", { key: 'b0ddf7406e82c4833093e99f53386251f5e4d1c7', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
|
|
4514
4509
|
}
|
|
4515
4510
|
get el() { return getElement(this); }
|
|
4516
4511
|
static get watchers() { return {
|