@salla.sa/twilight-components 2.14.296 → 2.14.297
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/{filepond-E7NOvLwV.js → filepond-B40UxVrp.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D3bKYBq5.js → filepond-plugin-file-poster-BJ2is-CR.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-D4sJa2nT.js → filepond-plugin-file-validate-size-jaoaOCNL.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DDz99ei0.js → filepond-plugin-file-validate-type-CjxCZWaY.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-yDHuyk0R.js → filepond-plugin-image-edit-JEKYuBL0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-hj89JJI_.js → filepond-plugin-image-exif-orientation-DmK-aAfe.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-UoTioUkG.js → filepond-plugin-image-preview-BZxhd7ci.js} +1 -1
- package/dist/cjs/{index-BfEIQrIk.js → index-Bc1Blm9E.js} +2 -2
- package/dist/cjs/{index-BZQAN2JT.js → index-CYgngxgk.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion_62.cjs.entry.js +25 -19
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +17 -10
- package/dist/components/index.js +2 -2
- package/dist/components/salla-user-menu.js +17 -10
- package/dist/esm/{filepond-BEN4Pt87.js → filepond-DjIxwPi0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-B7t9aVVy.js → filepond-plugin-file-poster-CYvspSki.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DFkfdHfo.js → filepond-plugin-file-validate-size-Cf09KKtA.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CU-RnplM.js → filepond-plugin-file-validate-type-ByZikBAG.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Dz3oYXef.js → filepond-plugin-image-edit-DbT6_H2k.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DJrUnj97.js → filepond-plugin-image-exif-orientation-BhEk_QOu.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BCWlifYd.js → filepond-plugin-image-preview-Bsa9hzKo.js} +1 -1
- package/dist/esm/{index-fxSENfiU.js → index-CYhDRQ7q.js} +1 -1
- package/dist/esm/{index-bXg2F_NN.js → index-D8Ikl-5X.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion_62.entry.js +25 -19
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +1 -1
- package/dist/esm/salla-reviews-page.entry.js +1 -1
- package/dist/esm/salla-reviews.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/twilight/{p-5dd1b37c.entry.js → p-00042305.entry.js} +1 -1
- package/dist/twilight/{p-dcd9e688.entry.js → p-03907a0b.entry.js} +1 -1
- package/dist/twilight/{p-56dde07a.entry.js → p-067eafaf.entry.js} +1 -1
- package/dist/twilight/{p-e4418e6f.entry.js → p-199025a7.entry.js} +1 -1
- package/dist/twilight/{p-c5afe02a.entry.js → p-243e9c31.entry.js} +1 -1
- package/dist/twilight/{p-fcd1344e.entry.js → p-26c2b559.entry.js} +1 -1
- package/dist/twilight/{p-ef3a4d3e.entry.js → p-28eae4bb.entry.js} +1 -1
- package/dist/twilight/{p-9f42e27b.entry.js → p-2a59b701.entry.js} +1 -1
- package/dist/twilight/{p-988ea6cb.entry.js → p-37249106.entry.js} +1 -1
- package/dist/twilight/{p-193bea42.entry.js → p-3d7b61c6.entry.js} +1 -1
- package/dist/twilight/{p-76657684.entry.js → p-3f2a0489.entry.js} +1 -1
- package/dist/twilight/{p-0b970445.entry.js → p-3fe694f7.entry.js} +1 -1
- package/dist/twilight/{p-fa379f1e.entry.js → p-407a5e84.entry.js} +1 -1
- package/dist/twilight/{p-22f479da.entry.js → p-4713b2c5.entry.js} +1 -1
- package/dist/twilight/{p-c88d32f0.entry.js → p-5fe10b3f.entry.js} +1 -1
- package/dist/twilight/{p-732c5190.entry.js → p-60a1cceb.entry.js} +1 -1
- package/dist/twilight/{p-32512487.entry.js → p-60aa330e.entry.js} +1 -1
- package/dist/twilight/{p-c848e1d3.entry.js → p-62b33ee4.entry.js} +1 -1
- package/dist/twilight/{p-67ed25a4.entry.js → p-66ccff79.entry.js} +1 -1
- package/dist/twilight/{p-7012bda9.entry.js → p-6781caef.entry.js} +1 -1
- package/dist/twilight/{p-51ef83f7.entry.js → p-747b3306.entry.js} +1 -1
- package/dist/twilight/{p-dd84065f.entry.js → p-8713ed50.entry.js} +1 -1
- package/dist/twilight/{p-0645c8e3.entry.js → p-87c26055.entry.js} +1 -1
- package/dist/twilight/{p-ef9ac6cb.entry.js → p-9bb74d00.entry.js} +1 -1
- package/dist/twilight/{p-1Xk7fjpB.js → p-BENXSP8S.js} +1 -1
- package/dist/twilight/{p-CWkLySV3.js → p-BdPzpmIq.js} +1 -1
- package/dist/twilight/{p-k3nBgoPC.js → p-CFX5Won9.js} +1 -1
- package/dist/twilight/{p-CP2LDZCD.js → p-CYIyfWLw.js} +1 -1
- package/dist/twilight/{p-BW8LVXVp.js → p-CdhBe5Fz.js} +2 -2
- package/dist/twilight/{p-CD5i_50p.js → p-D7xuopBR.js} +1 -1
- package/dist/twilight/{p-bXg2F_NN.js → p-D8Ikl-5X.js} +1 -1
- package/dist/twilight/{p-CoLlt5es.js → p-DQJu53PU.js} +1 -1
- package/dist/twilight/{p-f4549e2e.entry.js → p-a608994f.entry.js} +1 -1
- package/dist/twilight/{p-4fb7f400.entry.js → p-ade5c1b4.entry.js} +1 -1
- package/dist/twilight/{p-1b7cfbae.entry.js → p-c0804853.entry.js} +1 -1
- package/dist/twilight/{p-4dd68813.entry.js → p-dded0945.entry.js} +1 -1
- package/dist/twilight/{p-d08cedb0.entry.js → p-e7b610b8.entry.js} +2 -2
- package/dist/twilight/{p-c691fd39.entry.js → p-e82e0803.entry.js} +1 -1
- package/dist/twilight/{p-a6ebba30.entry.js → p-ecdb32fb.entry.js} +1 -1
- package/dist/twilight/{p-8220b125.entry.js → p-f0267809.entry.js} +1 -1
- package/dist/twilight/{p-8d3f2028.entry.js → p-f30f7e03.entry.js} +1 -1
- package/dist/twilight/{p-5f247331.entry.js → p-f8beff97.entry.js} +1 -1
- package/dist/twilight/{p-BIRmkG1d.js → p-fl5mSXGV.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +2 -1
- package/package.json +5 -5
|
@@ -51,16 +51,6 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super();
|
|
53
53
|
this.__registerHost();
|
|
54
|
-
this.items = {
|
|
55
|
-
notifications: BellRing,
|
|
56
|
-
orders: OrderIcon,
|
|
57
|
-
pending_orders: PendingOrdersIcon,
|
|
58
|
-
wishlist: WishListIcon,
|
|
59
|
-
wallet: WalletIcon,
|
|
60
|
-
loyalty_program: loyaltyProgramIcon,
|
|
61
|
-
profile: UserCircle,
|
|
62
|
-
settings: SettingstIcon,
|
|
63
|
-
};
|
|
64
54
|
this.accountLoading = false;
|
|
65
55
|
this.opened = false;
|
|
66
56
|
this.notifications = salla.lang.get('common.titles.notifications');
|
|
@@ -81,6 +71,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
81
71
|
notifications: salla.helpers.number(salla.storage.get('user.notifications') || 0),
|
|
82
72
|
pending_orders: salla.helpers.number(salla.storage.get('user.pending_orders') || 0),
|
|
83
73
|
};
|
|
74
|
+
this.sallaAccountEnabled = Salla.config.get('store.features').includes('salla-account');
|
|
84
75
|
this.hasBadges = Number(salla.storage.get('user.pending_orders')) > 0 ||
|
|
85
76
|
Number(salla.storage.get('user.notifications')) > 0;
|
|
86
77
|
/**
|
|
@@ -103,6 +94,16 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
103
94
|
this.opened = false;
|
|
104
95
|
};
|
|
105
96
|
this.OrderUpdate = 0;
|
|
97
|
+
this.items = {
|
|
98
|
+
notifications: BellRing,
|
|
99
|
+
orders: OrderIcon,
|
|
100
|
+
pending_orders: PendingOrdersIcon,
|
|
101
|
+
wishlist: WishListIcon,
|
|
102
|
+
wallet: WalletIcon,
|
|
103
|
+
loyalty_program: loyaltyProgramIcon,
|
|
104
|
+
profile: UserCircle,
|
|
105
|
+
...(this.sallaAccountEnabled ? { settings: SettingstIcon } : {})
|
|
106
|
+
};
|
|
106
107
|
// salla.auth.event.onLoggedIn(() => {
|
|
107
108
|
// this.is_loggedIn = true
|
|
108
109
|
// })
|
|
@@ -219,6 +220,11 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
219
220
|
}, id: "trigger-slot", onClick: e => this.open(e), onKeyUp: e => this.open(e), innerHTML: this.replaceParams(this.triggerSlot) }));
|
|
220
221
|
}
|
|
221
222
|
getItemAnchorLinkAttrs(itemKey) {
|
|
223
|
+
if (itemKey === 'profile' && this.profileUrl) {
|
|
224
|
+
return this.sallaAccountEnabled ?
|
|
225
|
+
{ href: this.profileUrl, target: '_blank', rel: 'noopener noreferrer' } :
|
|
226
|
+
{ href: '/profile' };
|
|
227
|
+
}
|
|
222
228
|
// Fix loyalty program URL mapping from master
|
|
223
229
|
const urlKey = itemKey === 'loyalty_program' ? 'loyalty' : itemKey;
|
|
224
230
|
return { href: salla.url.get(urlKey) };
|
|
@@ -279,6 +285,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
279
285
|
"avatar": [32],
|
|
280
286
|
"is_loggedIn": [32],
|
|
281
287
|
"badges": [32],
|
|
288
|
+
"sallaAccountEnabled": [32],
|
|
282
289
|
"hasBadges": [32],
|
|
283
290
|
"profileUrl": [32],
|
|
284
291
|
"OrderUpdate": [32]
|