@snabcentr/common-lib 3.11.0 → 3.12.0
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/manifest.json +1 -1
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-common-lib.js +8 -8
- package/dist/sc-common-lib.js.map +1 -1
- package/dist/sc-common-lib.umd.cjs +1 -1
- package/dist/sc-common-lib.umd.cjs.map +1 -1
- package/dist/src/auth/states/{auth-state-store.d.ts → auth-store.d.ts} +2 -2
- package/dist/src/auth/states/auth-store.d.ts.map +1 -0
- package/dist/src/auth/states/index.d.ts +1 -1
- package/dist/src/auth/states/index.d.ts.map +1 -1
- package/dist/src/config/states/{config-state-store.d.ts → config-store.d.ts} +2 -2
- package/dist/src/config/states/config-store.d.ts.map +1 -0
- package/dist/src/config/states/index.d.ts +1 -1
- package/dist/src/config/states/index.d.ts.map +1 -1
- package/dist/src/discounts/providers/discount-provider.d.ts +1 -1
- package/dist/src/discounts/providers/discount-provider.d.ts.map +1 -1
- package/dist/src/http/classes/http-requester.d.ts.map +1 -1
- package/dist/src/references/states/index.d.ts +1 -1
- package/dist/src/references/states/index.d.ts.map +1 -1
- package/dist/src/references/states/{references-state-store.d.ts → references-store.d.ts} +1 -1
- package/dist/src/references/states/references-store.d.ts.map +1 -0
- package/dist/src/user/states/index.d.ts +1 -1
- package/dist/src/user/states/index.d.ts.map +1 -1
- package/dist/src/user/states/{user-state-store.d.ts → user-store.d.ts} +2 -2
- package/dist/src/user/states/user-store.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/auth/states/auth-state-store.d.ts.map +0 -1
- package/dist/src/config/states/config-state-store.d.ts.map +0 -1
- package/dist/src/references/states/references-state-store.d.ts.map +0 -1
- package/dist/src/user/states/user-state-store.d.ts.map +0 -1
package/dist/manifest.json
CHANGED
package/dist/release_notes.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## 3.
|
|
1
|
+
## 3.12.0 (2026-10-14)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### changed (1 change)
|
|
4
4
|
|
|
5
|
-
- [#:
|
|
5
|
+
- [#: Выполнено переименование хранилищ state-store в store](web_soft/libs/ts/snabcentr-common-lib@0247fb0b0272559d69339224bf58f0cd72a71fde)
|
|
6
6
|
|
package/dist/sc-common-lib.js
CHANGED
|
@@ -484,7 +484,7 @@ function et(i) {
|
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const we = pe("common.
|
|
487
|
+
const we = pe("common.auth_private", () => {
|
|
488
488
|
const i = C(
|
|
489
489
|
(() => {
|
|
490
490
|
var u;
|
|
@@ -526,7 +526,7 @@ const we = pe("common.auth_state_private", () => {
|
|
|
526
526
|
*/
|
|
527
527
|
recalculateUserPermissions: n
|
|
528
528
|
};
|
|
529
|
-
}), ze = pe("common.
|
|
529
|
+
}), ze = pe("common.auth", () => {
|
|
530
530
|
const i = b(() => {
|
|
531
531
|
const o = we();
|
|
532
532
|
if (m(o.jwtToken) && !m(o.jwtTokenUpdater)) {
|
|
@@ -6752,7 +6752,7 @@ class _r extends M {
|
|
|
6752
6752
|
*
|
|
6753
6753
|
* @see /doc/api/internal#/operations/api_internal_catalog_price_discount_get_list
|
|
6754
6754
|
*/
|
|
6755
|
-
getDiscountsList(r, e, t, n
|
|
6755
|
+
getDiscountsList(r, e, t, n) {
|
|
6756
6756
|
return this.getTypedPaginated(Mr, "/internal/price/discounts", r, e, t, {}, void 0, n);
|
|
6757
6757
|
}
|
|
6758
6758
|
/**
|
|
@@ -9487,7 +9487,7 @@ class ui extends h {
|
|
|
9487
9487
|
return this.get("/internal/users/info", {}, (r) => new li(r.data), !0);
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
9490
|
-
const qr = pe("common.
|
|
9490
|
+
const qr = pe("common.user_private", () => {
|
|
9491
9491
|
const i = C({}), r = C(void 0), e = C(void 0);
|
|
9492
9492
|
return {
|
|
9493
9493
|
/**
|
|
@@ -9512,7 +9512,7 @@ function mt(i) {
|
|
|
9512
9512
|
r.dataLoaderList.currentManager = !1;
|
|
9513
9513
|
}));
|
|
9514
9514
|
}
|
|
9515
|
-
const gn = pe("common.
|
|
9515
|
+
const gn = pe("common.user", () => {
|
|
9516
9516
|
const i = b(() => {
|
|
9517
9517
|
const e = qr();
|
|
9518
9518
|
return !e.currentUser && !e.dataLoaderList.currentUser && (e.dataLoaderList.currentUser = !0, h.getInstance(ui).getCurrentUser().then((t) => {
|
|
@@ -9919,8 +9919,8 @@ export {
|
|
|
9919
9919
|
ji as formatPercentChange,
|
|
9920
9920
|
Mi as formatRelativeDate,
|
|
9921
9921
|
Hs as pluralize,
|
|
9922
|
-
ze as
|
|
9923
|
-
S as
|
|
9922
|
+
ze as useAuthStore,
|
|
9923
|
+
S as useBaseConfigStore,
|
|
9924
9924
|
on as useReferencesStore,
|
|
9925
|
-
gn as
|
|
9925
|
+
gn as useUserStore
|
|
9926
9926
|
};
|