@base316/react 0.5.1 → 0.5.2
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/CHANGELOG.md +29 -0
- package/dist/index.cjs +866 -646
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +693 -483
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/src/QrCode.d.ts +15 -0
- package/dist/src/QrCode.d.ts.map +1 -0
- package/dist/src/SignIn.d.ts.map +1 -1
- package/dist/src/SubscriptionManager.d.ts +3 -0
- package/dist/src/SubscriptionManager.d.ts.map +1 -1
- package/dist/src/TwoFactorManager.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/manifest.json
CHANGED
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
{
|
|
454
454
|
"name": "TwoFactorManager",
|
|
455
455
|
"kind": "component",
|
|
456
|
-
"summary": "Turn two-factor authentication on or off, by authenticator app, a code to the inbox or a code by text message.",
|
|
456
|
+
"summary": "Turn two-factor authentication on or off, by authenticator app (QR code and key), a code to the inbox or a code by text message.",
|
|
457
457
|
"useWhen": "A security settings page. The app is strongest; the emailed or texted code is the one people who will not install an app actually use.",
|
|
458
458
|
"requires": [
|
|
459
459
|
"session"
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
{
|
|
703
703
|
"name": "SubscriptionManager",
|
|
704
704
|
"kind": "component",
|
|
705
|
-
"summary": "The current plan, its renewal date, a scheduled plan change with its undo, cancelling at the period end
|
|
705
|
+
"summary": "The current plan, its renewal date, a scheduled plan change with its undo, cancelling at the period end — asking why, and showing the environment's retention offer when it makes one — and resuming a cancelled one.",
|
|
706
706
|
"useWhen": "A billing settings page.",
|
|
707
707
|
"requires": [
|
|
708
708
|
"session"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface QrCodeProps {
|
|
2
|
+
value: string;
|
|
3
|
+
/** What a screen reader announces in place of the picture. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Rendered width and height in pixels. */
|
|
6
|
+
size?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/** One path of unit squares: a few kilobytes for a TOTP URI, and crisp at any size. */
|
|
10
|
+
export declare function qrPath(value: string): {
|
|
11
|
+
path: string;
|
|
12
|
+
modules: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function QrCode({ value, label, size, className }: QrCodeProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=QrCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QrCode.d.ts","sourceRoot":"","sources":["../../src/QrCode.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,uFAAuF;AACvF,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAoBvE;AAED,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAU,EAAE,SAAS,EAAE,EAAE,WAAW,+BAuB1E"}
|
package/dist/src/SignIn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../src/SignIn.tsx"],"names":[],"mappings":"AASA,OAAO,EAA+B,KAAK,aAAa,EAAkB,MAAM,OAAO,CAAC;AAIxF,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE/E;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,EACtB,UAAU,EACV,QAAe,EACf,oBAAoB,EACpB,KAAa,EACb,kBAAkB,EAClB,SAAS,EACT,KAAK,GACL,EAAE;IACF,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,kBAAkB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACtB,+
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../src/SignIn.tsx"],"names":[],"mappings":"AASA,OAAO,EAA+B,KAAK,aAAa,EAAkB,MAAM,OAAO,CAAC;AAIxF,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE/E;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,EACtB,UAAU,EACV,QAAe,EACf,oBAAoB,EACpB,KAAa,EACb,kBAAkB,EAClB,SAAS,EACT,KAAK,GACL,EAAE;IACF,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,kBAAkB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACtB,+BAwbA"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { RetentionOffer } from "@base316/sdk";
|
|
1
2
|
import { type CSSProperties } from "react";
|
|
3
|
+
/** "50% off your next 3 invoices", from the offer's terms rather than the coupon's name. */
|
|
4
|
+
export declare function describeRetentionOffer(offer: RetentionOffer, currency: string): string;
|
|
2
5
|
/**
|
|
3
6
|
* The signed-in user's own subscription.
|
|
4
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionManager.d.ts","sourceRoot":"","sources":["../../src/SubscriptionManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubscriptionManager.d.ts","sourceRoot":"","sources":["../../src/SubscriptionManager.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAIX,cAAc,EAEd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAoC,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAqB7E,4FAA4F;AAC5F,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAuBtF;AAOD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EACnC,QAAQ,EACR,SAAS,EACT,KAAK,GACL,EAAE;IACF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACtB,+BAmTA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoFactorManager.d.ts","sourceRoot":"","sources":["../../src/TwoFactorManager.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TwoFactorManager.d.ts","sourceRoot":"","sources":["../../src/TwoFactorManager.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAOrD;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,qBAAqB;IACrC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACtB;AAgBD,wBAAgB,gBAAgB,CAAC,EAChC,OAAe,EACf,QAAgB,EAChB,SAAS,EACT,UAAU,EACV,SAAS,EACT,KAAK,GACL,EAAE,qBAAqB,sCA4SvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base316/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Drop-in React components for Base316 authentication and billing.",
|
|
5
5
|
"homepage": "https://base316.com",
|
|
6
6
|
"bugs": "https://github.com/ThinkfleetAI/base316/issues",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
35
|
+
"qrcode-generator": "2.0.4",
|
|
36
|
+
"@base316/sdk": "0.7.1"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@testing-library/dom": "^10.4.2",
|