namirasoft-account-react 1.4.339 → 1.4.341
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/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/pages/PaymentRequired.d.ts +11 -0
- package/dist/pages/PaymentRequired.js +17 -0
- package/dist/pages/PaymentRequired.js.map +1 -0
- package/package.json +2 -2
- package/src/main.ts +1 -0
- package/src/pages/PaymentRequired.tsx +47 -0
package/dist/main.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./pages/NSAEmailVerificationPage";
|
|
|
12
12
|
export * from "./pages/NSAHomePage";
|
|
13
13
|
export * from "./pages/NSALoginPage";
|
|
14
14
|
export * from "./pages/NSAVerificationPage";
|
|
15
|
+
export * from "./pages/PaymentRequired";
|
|
15
16
|
export * from "./IEntityInfo";
|
|
16
17
|
export * from "./NSARouterMaker";
|
|
17
18
|
export * from "./NSARouterMakerComponent";
|
package/dist/main.js
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./pages/NSAEmailVerificationPage";
|
|
|
12
12
|
export * from "./pages/NSAHomePage";
|
|
13
13
|
export * from "./pages/NSALoginPage";
|
|
14
14
|
export * from "./pages/NSAVerificationPage";
|
|
15
|
+
export * from "./pages/PaymentRequired";
|
|
15
16
|
export * from "./IEntityInfo";
|
|
16
17
|
export * from "./NSARouterMaker";
|
|
17
18
|
export * from "./NSARouterMakerComponent";
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import { IBaseComponentProps } from "namirasoft-site-react";
|
|
3
|
+
export interface PaymentRequiredProps extends IBaseComponentProps {
|
|
4
|
+
tilte: string;
|
|
5
|
+
description: string;
|
|
6
|
+
action: string;
|
|
7
|
+
payment_offer_url: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class PaymentRequired extends Component<PaymentRequiredProps> {
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from "react";
|
|
3
|
+
import { NSBox, NSButtonGreen, NSLabel, NSPanel, NSRow, NSSection } from "namirasoft-site-react";
|
|
4
|
+
import { EncodingOperation } from "namirasoft-core";
|
|
5
|
+
export class PaymentRequired extends Component {
|
|
6
|
+
render() {
|
|
7
|
+
return (_jsx(_Fragment, { children: _jsx(NSSection, { children: _jsx(NSPanel, { children: _jsxs(NSRow, { style: {
|
|
8
|
+
width: NSBox.width.double
|
|
9
|
+
}, children: [_jsx(NSLabel, { title: this.props.tilte, desciption: this.props.description }), _jsx(NSButtonGreen, { title: this.props.action, onClick: {
|
|
10
|
+
action: () => {
|
|
11
|
+
window.open(this.props.payment_offer_url + "?callback=" + EncodingOperation.Base64Encode(window.location.href));
|
|
12
|
+
},
|
|
13
|
+
showLoading: false
|
|
14
|
+
} })] }) }) }) }));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=PaymentRequired.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentRequired.js","sourceRoot":"","sources":["../../src/pages/PaymentRequired.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAuB,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAUpD,MAAM,OAAO,eAAgB,SAAQ,SAA+B;IAE1D,MAAM;QAEd,OAAO,CACN,4BACC,KAAC,SAAS,cACT,KAAC,OAAO,cACP,MAAC,KAAK,IACL,KAAK,EAAE;4BACN,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM;yBACzB,aAED,KAAC,OAAO,IACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAEzB,EACV,KAAC,aAAa,IACb,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACxB,OAAO,EAAE;oCACR,MAAM,EAAE,GAAG,EAAE;wCAEZ,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,YAAY,GAAG,iBAAiB,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;oCACjH,CAAC;oCACD,WAAW,EAAE,KAAK;iCAClB,GACe,IACV,GACC,GACC,GACV,CACH,CAAC;IACH,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.341",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"namirasoft-account": "^1.4.84",
|
|
30
30
|
"namirasoft-account-client": "^1.4.6",
|
|
31
31
|
"namirasoft-api-product": "^1.4.36",
|
|
32
|
-
"namirasoft-core": "^1.4.
|
|
32
|
+
"namirasoft-core": "^1.4.78",
|
|
33
33
|
"namirasoft-field": "^1.4.22",
|
|
34
34
|
"namirasoft-history": "^1.4.17",
|
|
35
35
|
"namirasoft-message": "^1.4.20",
|
package/src/main.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./pages/NSAEmailVerificationPage";
|
|
|
12
12
|
export * from "./pages/NSAHomePage";
|
|
13
13
|
export * from "./pages/NSALoginPage";
|
|
14
14
|
export * from "./pages/NSAVerificationPage";
|
|
15
|
+
export * from "./pages/PaymentRequired";
|
|
15
16
|
export * from "./IEntityInfo";
|
|
16
17
|
export * from "./NSARouterMaker";
|
|
17
18
|
export * from "./NSARouterMakerComponent";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import { IBaseComponentProps, NSBox, NSButtonGreen, NSLabel, NSPanel, NSRow, NSSection } from "namirasoft-site-react";
|
|
3
|
+
import { EncodingOperation } from "namirasoft-core";
|
|
4
|
+
|
|
5
|
+
export interface PaymentRequiredProps extends IBaseComponentProps
|
|
6
|
+
{
|
|
7
|
+
tilte: string;
|
|
8
|
+
description: string;
|
|
9
|
+
action: string;
|
|
10
|
+
payment_offer_url: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class PaymentRequired extends Component<PaymentRequiredProps>
|
|
14
|
+
{
|
|
15
|
+
override render()
|
|
16
|
+
{
|
|
17
|
+
return (
|
|
18
|
+
<>
|
|
19
|
+
<NSSection>
|
|
20
|
+
<NSPanel>
|
|
21
|
+
<NSRow
|
|
22
|
+
style={{
|
|
23
|
+
width: NSBox.width.double
|
|
24
|
+
}}
|
|
25
|
+
>
|
|
26
|
+
<NSLabel
|
|
27
|
+
title={this.props.tilte}
|
|
28
|
+
desciption={this.props.description}
|
|
29
|
+
>
|
|
30
|
+
</NSLabel>
|
|
31
|
+
<NSButtonGreen
|
|
32
|
+
title={this.props.action}
|
|
33
|
+
onClick={{
|
|
34
|
+
action: () =>
|
|
35
|
+
{
|
|
36
|
+
window.open(this.props.payment_offer_url + "?callback=" + EncodingOperation.Base64Encode(window.location.href));
|
|
37
|
+
},
|
|
38
|
+
showLoading: false
|
|
39
|
+
}}
|
|
40
|
+
></NSButtonGreen>
|
|
41
|
+
</NSRow>
|
|
42
|
+
</NSPanel>
|
|
43
|
+
</NSSection>
|
|
44
|
+
</>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|