subos-frontend 1.0.102 → 1.0.104
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/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/components/subscription/index.d.ts +2 -0
- package/dist/types/components/subscription/index.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/planUtils.d.ts +9 -0
- package/dist/types/utils/planUtils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export { SubscriptionTransactionButton } from './SubscriptionTransactionButton';
|
|
|
6
6
|
export { SubscriptionCancelButton } from './SubscriptionCancelButton';
|
|
7
7
|
export { SubscriptionCancelModal } from './SubscriptionCancelModal';
|
|
8
8
|
export { ScheduledPlanNotification } from './ScheduledPlanNotification';
|
|
9
|
+
export { GracePeriodNotification } from './GracePeriodNotification';
|
|
9
10
|
export type { SubscriptionDetailsProps } from './SubscriptionDetails';
|
|
10
11
|
export type { InfoField, SubscriptionInfoGridProps } from './SubscriptionInfoGrid';
|
|
11
12
|
export type { UsageMetric, SubscriptionUsageDisplayProps } from './SubscriptionUsageDisplay';
|
|
@@ -14,4 +15,5 @@ export type { SubscriptionTransactionButtonProps } from './SubscriptionTransacti
|
|
|
14
15
|
export type { SubscriptionCancelButtonProps } from './SubscriptionCancelButton';
|
|
15
16
|
export type { CancelOptions, SubscriptionCancelModalProps } from './SubscriptionCancelModal';
|
|
16
17
|
export type { ScheduledPlanNotificationProps } from './ScheduledPlanNotification';
|
|
18
|
+
export type { GracePeriodNotificationProps } from './GracePeriodNotification';
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/subscription/index.ts"],"names":[],"mappings":"AACA,OAAO,E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AAY,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAC1F,YAAY,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC7F,YAAY,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,YAAY,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getPlanFeatures, getCandidateUnits, getUniqueCandidateUnits, getDropdownOptions, getCurrentSelectionText, filterPlansByBillingCycle, filterPlansByTier, isPlanPopular, getPlanDescription, formatDate } from './planUtils';
|
|
1
|
+
export { getPlanFeatures, getCandidateUnits, getUniqueCandidateUnits, getDropdownOptions, getCurrentSelectionText, filterPlansByBillingCycle, filterPlansByTier, isPlanPopular, getPlanDescription, formatDate, getGracePeriodInfo } from './planUtils';
|
|
2
2
|
export type { DropdownOption } from './planUtils';
|
|
3
3
|
export { registerClearSelectedPlan, clearSelectedPlan, unregisterClearSelectedPlan } from './upgradeUtils';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC"}
|
|
@@ -49,4 +49,13 @@ export declare const getPlanDescription: (plan: Plan) => string;
|
|
|
49
49
|
* Format date string with optional time format
|
|
50
50
|
*/
|
|
51
51
|
export declare const formatDate: (dateString: string, format?: "date" | "datetime") => string;
|
|
52
|
+
/**
|
|
53
|
+
* Get grace period information for display
|
|
54
|
+
*/
|
|
55
|
+
export declare const getGracePeriodInfo: (subscription: any) => {
|
|
56
|
+
startDate: any;
|
|
57
|
+
endDate: any;
|
|
58
|
+
remainingDays: any;
|
|
59
|
+
message: string;
|
|
60
|
+
} | null;
|
|
52
61
|
//# sourceMappingURL=planUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/planUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,KAAG,MAAM,EAUlD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,IAAI,KAAG,MAY9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,OAAO,IAAI,EAAE,KAAG,MAAM,EAe7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,IAAI,EAAE,KAAG,cAAc,EAchE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,EAAE,OAAO,IAAI,EAAE,KAAG,MAe3E,CAAC;AAE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