@redneckz/wildless-cms-uni-blocks 0.14.203 → 0.14.205
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +2 -2
- package/dist/components/Calculator/CalculatorContent.d.ts +2 -2
- package/dist/hooks/useNavigateHandler.js +5 -0
- package/dist/hooks/useNavigateHandler.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +2 -2
- package/lib/hooks/useNavigateHandler.js +5 -0
- package/lib/hooks/useNavigateHandler.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -2
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -2
- package/mobile/dist/hooks/useNavigateHandler.js +5 -0
- package/mobile/dist/hooks/useNavigateHandler.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -2
- package/mobile/lib/hooks/useNavigateHandler.js +5 -0
- package/mobile/lib/hooks/useNavigateHandler.js.map +1 -1
- package/mobile/src/components/Calculator/CalculatorContent.ts +2 -2
- package/mobile/src/hooks/useNavigateHandler.ts +6 -0
- package/package.json +1 -1
- package/src/components/Calculator/CalculatorContent.ts +2 -2
- package/src/hooks/useNavigateHandler.ts +6 -0
|
@@ -61,9 +61,9 @@ export interface CreditCalculatorProps extends CommonCalculatorProps {
|
|
|
61
61
|
defaultParams?: CreditDefaultParams;
|
|
62
62
|
}
|
|
63
63
|
export interface DepositDefaultParams extends CommonDefaultParams {
|
|
64
|
-
/** @title
|
|
64
|
+
/** @title Ежемесячная выплата процентов */
|
|
65
65
|
isMonthlyInterestPayment?: boolean;
|
|
66
|
-
/** @title
|
|
66
|
+
/** @title Дистанционное оформление */
|
|
67
67
|
isRemoteRegistration?: boolean;
|
|
68
68
|
}
|
|
69
69
|
export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
@@ -61,9 +61,9 @@ export interface CreditCalculatorProps extends CommonCalculatorProps {
|
|
|
61
61
|
defaultParams?: CreditDefaultParams;
|
|
62
62
|
}
|
|
63
63
|
export interface DepositDefaultParams extends CommonDefaultParams {
|
|
64
|
-
/** @title
|
|
64
|
+
/** @title Ежемесячная выплата процентов */
|
|
65
65
|
isMonthlyInterestPayment?: boolean;
|
|
66
|
-
/** @title
|
|
66
|
+
/** @title Дистанционное оформление */
|
|
67
67
|
isRemoteRegistration?: boolean;
|
|
68
68
|
}
|
|
69
69
|
export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useNavigateHandler = void 0;
|
|
3
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
3
4
|
const useEventListener_1 = require("@redneckz/uni-jsx/lib/hooks/useEventListener");
|
|
4
5
|
const adjustSessionQuery_1 = require("../utils/adjustSessionQuery");
|
|
6
|
+
const getSessionQuery_1 = require("../utils/getSessionQuery");
|
|
5
7
|
const url_1 = require("../utils/url");
|
|
6
8
|
const useNavigateHandler = () => {
|
|
9
|
+
(0, hooks_1.useEffect)(() => {
|
|
10
|
+
(0, getSessionQuery_1.getSessionQuery)(); //? Call first time for save query in sessionStorage
|
|
11
|
+
}, []);
|
|
7
12
|
(0, useEventListener_1.useEventListener)(globalThis, 'click', navigationHandler);
|
|
8
13
|
};
|
|
9
14
|
exports.useNavigateHandler = useNavigateHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigateHandler.js","sourceRoot":"","sources":["../../src/hooks/useNavigateHandler.ts"],"names":[],"mappings":";;AAAA,mFAAgF;AAChF,oEAAiE;AACjE,sCAAqC;AAE9B,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,IAAA,mCAAgB,EAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAC3D,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useNavigateHandler.js","sourceRoot":"","sources":["../../src/hooks/useNavigateHandler.ts"],"names":[],"mappings":";;AAAA,uDAAwD;AACxD,mFAAgF;AAChF,oEAAiE;AACjE,8DAA2D;AAC3D,sCAAqC;AAE9B,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAA,iCAAe,GAAE,CAAC,CAAC,oDAAoD;IACzE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAA,mCAAgB,EAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAC3D,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B;AAEF,MAAM,iBAAiB,GAAG,CAAC,EAAc,EAAE,EAAE;IAC3C,MAAM,MAAM,GAAG,EAAE,CAAC,MAA2B,CAAC;IAC9C,IAAI,MAAM,EAAE,OAAO,KAAK,GAAG,IAAI,IAAA,WAAK,EAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACjD,EAAE,CAAC,cAAc,EAAE,CAAC;QAEpB,MAAM,GAAG,GAAG,IAAA,uCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC;QAE3D,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC;KAChC;AACH,CAAC,CAAC"}
|
|
@@ -61,9 +61,9 @@ export interface CreditCalculatorProps extends CommonCalculatorProps {
|
|
|
61
61
|
defaultParams?: CreditDefaultParams;
|
|
62
62
|
}
|
|
63
63
|
export interface DepositDefaultParams extends CommonDefaultParams {
|
|
64
|
-
/** @title
|
|
64
|
+
/** @title Ежемесячная выплата процентов */
|
|
65
65
|
isMonthlyInterestPayment?: boolean;
|
|
66
|
-
/** @title
|
|
66
|
+
/** @title Дистанционное оформление */
|
|
67
67
|
isRemoteRegistration?: boolean;
|
|
68
68
|
}
|
|
69
69
|
export interface DepositCalculatorProps extends CommonCalculatorProps {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
1
2
|
import { useEventListener } from '@redneckz/uni-jsx/lib/hooks/useEventListener';
|
|
2
3
|
import { adjustSessionQuery } from '../utils/adjustSessionQuery.js';
|
|
4
|
+
import { getSessionQuery } from '../utils/getSessionQuery.js';
|
|
3
5
|
import { isURL } from '../utils/url.js';
|
|
4
6
|
export const useNavigateHandler = () => {
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
getSessionQuery(); //? Call first time for save query in sessionStorage
|
|
9
|
+
}, []);
|
|
5
10
|
useEventListener(globalThis, 'click', navigationHandler);
|
|
6
11
|
};
|
|
7
12
|
const navigationHandler = (ev) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigateHandler.js","sourceRoot":"","sources":["../../src/hooks/useNavigateHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,gBAAgB,CAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,EAAc,EAAE,EAAE;IAC3C,MAAM,MAAM,GAAG,EAAE,CAAC,MAA2B,CAAC;IAC9C,IAAI,MAAM,EAAE,OAAO,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACjD,EAAE,CAAC,cAAc,EAAE,CAAC;QAEpB,MAAM,GAAG,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC;QAE3D,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC;KAChC;AACH,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useNavigateHandler.js","sourceRoot":"","sources":["../../src/hooks/useNavigateHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,EAAE,CAAC,CAAC,oDAAoD;IACzE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,gBAAgB,CAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,EAAc,EAAE,EAAE;IAC3C,MAAM,MAAM,GAAG,EAAE,CAAC,MAA2B,CAAC;IAC9C,IAAI,MAAM,EAAE,OAAO,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACjD,EAAE,CAAC,cAAc,EAAE,CAAC;QAEpB,MAAM,GAAG,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC;QAE3D,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC;KAChC;AACH,CAAC,CAAC"}
|
|
@@ -5538,6 +5538,9 @@
|
|
|
5538
5538
|
};
|
|
5539
5539
|
|
|
5540
5540
|
const useNavigateHandler = () => {
|
|
5541
|
+
useEffect(() => {
|
|
5542
|
+
getSessionQuery(); //? Call first time for save query in sessionStorage
|
|
5543
|
+
}, []);
|
|
5541
5544
|
useEventListener(globalThis, 'click', navigationHandler);
|
|
5542
5545
|
};
|
|
5543
5546
|
const navigationHandler = (ev) => {
|
|
@@ -5658,7 +5661,7 @@
|
|
|
5658
5661
|
|
|
5659
5662
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5660
5663
|
|
|
5661
|
-
const packageVersion = "0.14.
|
|
5664
|
+
const packageVersion = "0.14.204";
|
|
5662
5665
|
|
|
5663
5666
|
exports.Blocks = Blocks;
|
|
5664
5667
|
exports.ContentPage = ContentPage;
|