@huyooo/ui 2.1.4 → 2.1.8

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.
Files changed (39) hide show
  1. package/dist/{AuthkitAppSetting-BJWwY3T-.js → AuthkitAppSetting-CHVSyEY1.js} +1 -1
  2. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-BJj1bNKu.js → FeedbackModal.vue_vue_type_script_setup_true_lang-FIZdBxIZ.js} +1 -1
  3. package/dist/{LegalDocViewer-DCDSLVjc.js → LegalDocViewer-DiNoy_oj.js} +2 -2
  4. package/dist/PaySubscriptions-pEZtjp1g.js +1287 -0
  5. package/dist/{PricingPlans-CXk2DNb4.js → PricingPlans-qRWHwi9x.js} +2 -2
  6. package/dist/{ReferrerReferees-ZhroFXBA.js → ReferrerReferees-t5s4LzbY.js} +1 -1
  7. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DbkGYZ2f.js +601 -0
  8. package/dist/{WidthContainer-CDf1GiFk.js → WidthContainer-FXZqDMid.js} +4 -4
  9. package/dist/authkit.js +3 -3
  10. package/dist/common.js +1 -1
  11. package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +2 -2
  12. package/dist/components/Feedback/FeedbackModal.vue.d.ts +2 -2
  13. package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
  14. package/dist/components/Message/MessageTabs.vue.d.ts +2 -2
  15. package/dist/components/Pay/PaySubscriptions.vue.d.ts +2 -2
  16. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +9 -9
  17. package/dist/composables/Billing/useBillingPlans.d.ts +10 -2
  18. package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +77 -258
  19. package/dist/composables.js +3 -3
  20. package/dist/feedback.js +1 -1
  21. package/dist/main.js +103 -102
  22. package/dist/pay.d.ts +1 -1
  23. package/dist/pay.js +18 -17
  24. package/dist/referrer.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/types/api/billing.generated.d.ts +2 -2
  27. package/dist/types/subscription.d.ts +57 -0
  28. package/dist/types/user.d.ts +3 -0
  29. package/dist/useAuthkitUsersProfile-D4H_Gxgd.js +67 -0
  30. package/dist/useBillingSubscriptionSummary-BC3G0N4t.js +43 -0
  31. package/dist/{useRoutePermission-ZOeRg6Wq.js → useRoutePermission-CGq_LIZM.js} +1 -1
  32. package/dist/useSubscriptionCheckout-Dmg0kt4F.js +399 -0
  33. package/dist/user.js +1 -1
  34. package/dist/utils/subscriptionDisplay.d.ts +6 -6
  35. package/package.json +1 -1
  36. package/dist/PaySubscriptions-CXLqpfgf.js +0 -1331
  37. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-COM36ViG.js +0 -598
  38. package/dist/useAuthkitUsersProfile-DX2PYmdU.js +0 -59
  39. package/dist/useSubscriptionCheckout-DAwwBVAk.js +0 -353
@@ -14,8 +14,8 @@ interface Props {
14
14
  }
15
15
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
16
16
  reverse: boolean;
17
- title: string;
18
17
  features: Feature[];
18
+ title: string;
19
19
  imageAlt: string;
20
20
  subTitle: string;
21
21
  imageUrl: string;
@@ -16,8 +16,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
16
  required: true;
17
17
  };
18
18
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- readAll: (...args: any[]) => void;
20
19
  change: (...args: any[]) => void;
20
+ readAll: (...args: any[]) => void;
21
21
  "update:activeTab": (...args: any[]) => void;
22
22
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
23
  tabs: {
@@ -36,8 +36,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
36
36
  required: true;
37
37
  };
38
38
  }>> & Readonly<{
39
- onReadAll?: ((...args: any[]) => any) | undefined;
40
39
  onChange?: ((...args: any[]) => any) | undefined;
40
+ onReadAll?: ((...args: any[]) => any) | undefined;
41
41
  "onUpdate:activeTab"?: ((...args: any[]) => any) | undefined;
42
42
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
43
43
  export default _default;
@@ -3,10 +3,10 @@ declare function setData(data: OpenSubscriptionsOptions | null, state: boolean):
3
3
  declare const _default: import('vue').DefineComponent<{}, {
4
4
  setData: typeof setData;
5
5
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- confirm: (...args: any[]) => void;
7
6
  cancel: (...args: any[]) => void;
7
+ confirm: (...args: any[]) => void;
8
8
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
9
- onConfirm?: ((...args: any[]) => any) | undefined;
10
9
  onCancel?: ((...args: any[]) => any) | undefined;
10
+ onConfirm?: ((...args: any[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
12
  export default _default;
@@ -1,12 +1,12 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
2
  appSettingRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3
- onConfirm?: ((...args: any[]) => any) | undefined;
4
3
  onCancel?: ((...args: any[]) => any) | undefined;
4
+ onConfirm?: ((...args: any[]) => any) | undefined;
5
5
  }>, {
6
6
  setData: (_data: unknown, state: boolean) => void;
7
7
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
- confirm: (...args: any[]) => void;
9
8
  cancel: (...args: any[]) => void;
9
+ confirm: (...args: any[]) => void;
10
10
  }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
11
11
  P: {};
12
12
  B: {};
@@ -15,19 +15,19 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
15
15
  M: {};
16
16
  Defaults: {};
17
17
  }, Readonly<{}> & Readonly<{
18
- onConfirm?: ((...args: any[]) => any) | undefined;
19
18
  onCancel?: ((...args: any[]) => any) | undefined;
19
+ onConfirm?: ((...args: any[]) => any) | undefined;
20
20
  }>, {
21
21
  setData: (_data: unknown, state: boolean) => void;
22
22
  }, {}, {}, {}, {}> | null;
23
23
  paySubsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
24
- onConfirm?: ((...args: any[]) => any) | undefined;
25
24
  onCancel?: ((...args: any[]) => any) | undefined;
25
+ onConfirm?: ((...args: any[]) => any) | undefined;
26
26
  }>, {
27
27
  setData: (data: import('../../composables/UserMenu/useUserMenu').OpenSubscriptionsOptions | null, state: boolean) => void;
28
28
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
- confirm: (...args: any[]) => void;
30
29
  cancel: (...args: any[]) => void;
30
+ confirm: (...args: any[]) => void;
31
31
  }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
32
32
  P: {};
33
33
  B: {};
@@ -36,8 +36,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
36
36
  M: {};
37
37
  Defaults: {};
38
38
  }, Readonly<{}> & Readonly<{
39
- onConfirm?: ((...args: any[]) => any) | undefined;
40
39
  onCancel?: ((...args: any[]) => any) | undefined;
40
+ onConfirm?: ((...args: any[]) => any) | undefined;
41
41
  }>, {
42
42
  setData: (data: import('../../composables/UserMenu/useUserMenu').OpenSubscriptionsOptions | null, state: boolean) => void;
43
43
  }, {}, {}, {}, {}> | null;
@@ -107,13 +107,13 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
107
107
  openNotification: () => void;
108
108
  }, {}, {}, {}, {}> | null;
109
109
  feedbackModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
110
- onConfirm?: ((...args: any[]) => any) | undefined;
111
110
  onCancel?: ((...args: any[]) => any) | undefined;
111
+ onConfirm?: ((...args: any[]) => any) | undefined;
112
112
  }>, {
113
113
  setData: (state: boolean) => void;
114
114
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
115
- confirm: (...args: any[]) => void;
116
115
  cancel: (...args: any[]) => void;
116
+ confirm: (...args: any[]) => void;
117
117
  }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
118
118
  P: {};
119
119
  B: {};
@@ -122,8 +122,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
122
122
  M: {};
123
123
  Defaults: {};
124
124
  }, Readonly<{}> & Readonly<{
125
- onConfirm?: ((...args: any[]) => any) | undefined;
126
125
  onCancel?: ((...args: any[]) => any) | undefined;
126
+ onConfirm?: ((...args: any[]) => any) | undefined;
127
127
  }>, {
128
128
  setData: (state: boolean) => void;
129
129
  }, {}, {}, {}, {}> | null;
@@ -17,6 +17,8 @@ export interface BillingPrice {
17
17
  unitAmount: number;
18
18
  interval?: "day" | "week" | BillingInterval;
19
19
  intervalCount?: number;
20
+ /** 订阅支付成功后附送积分 */
21
+ bonusPoints?: number;
20
22
  metadata?: Record<string, unknown>;
21
23
  features?: BillingProductFeature[];
22
24
  }
@@ -103,7 +105,10 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
103
105
  currency: string;
104
106
  unitAmount: number;
105
107
  interval?: ("day" | "week" | BillingInterval) | undefined;
106
- intervalCount?: number | undefined;
108
+ intervalCount?: number
109
+ /** 订阅支付成功后附送积分 */
110
+ | undefined;
111
+ bonusPoints?: number | undefined;
107
112
  metadata?: Record<string, unknown> | undefined;
108
113
  features?: {
109
114
  key: string;
@@ -127,7 +132,10 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
127
132
  currency: string;
128
133
  unitAmount: number;
129
134
  interval?: ("day" | "week" | BillingInterval) | undefined;
130
- intervalCount?: number | undefined;
135
+ intervalCount?: number
136
+ /** 订阅支付成功后附送积分 */
137
+ | undefined;
138
+ bonusPoints?: number | undefined;
131
139
  metadata?: Record<string, unknown> | undefined;
132
140
  features?: {
133
141
  key: string;
@@ -1,154 +1,43 @@
1
- export interface BillingSubscriptionSummaryCurrent {
2
- id: string;
3
- productId: string;
4
- productName: string;
5
- priceId: string;
6
- priceNickname?: string;
7
- status: "active" | "trialing" | "past_due" | "canceled" | "incomplete" | string;
8
- interval?: "day" | "week" | "month" | "year";
9
- intervalCount?: number;
10
- unitAmount?: number;
11
- currency?: string;
12
- trialStart?: string | null;
13
- trialEnd?: string | null;
14
- currentPeriodStart?: string | null;
15
- currentPeriodEnd?: string | null;
16
- cancelAtPeriodEnd?: boolean;
17
- pendingChange?: {
18
- type: string;
19
- productId: string;
20
- productName?: string;
21
- priceId: string;
22
- priceNickname?: string;
23
- interval?: string;
24
- intervalCount?: number;
25
- unitAmount?: number;
26
- currency?: string;
27
- requestedAt?: string | null;
28
- effectiveAt?: string | null;
29
- } | null;
30
- canceledAt?: string | null;
31
- endedAt?: string | null;
32
- createAt?: string;
33
- }
34
- export interface BillingSubscriptionSummaryFeature {
35
- key: string;
36
- name?: string;
37
- description?: string;
38
- type: "boolean" | "quota" | "unlimited" | string;
39
- value?: boolean | number | string | null;
40
- highlight?: boolean;
41
- }
42
- export interface BillingSubscriptionSummaryQuota {
43
- id: string;
44
- featureKey: string;
45
- name: string;
46
- description?: string;
47
- limit: number;
48
- used: number;
49
- remaining: number;
50
- unlimited: boolean;
51
- period: "day" | "week" | "month" | "year" | "lifetime" | string;
52
- resetsAt?: string | null;
53
- percentage: number;
54
- }
55
- export interface BillingSubscriptionSummaryPointsBalance {
56
- totalPoints: number;
57
- updateAt?: string | null;
58
- }
59
- export interface BillingSubscriptionSummaryPendingInvoice {
60
- id: string;
61
- total: number;
62
- status: string;
63
- createAt: string;
64
- }
65
- export interface BillingSubscriptionSummaryTrial {
66
- id: string;
67
- productId: string;
68
- productName: string;
69
- priceId?: string;
70
- priceNickname?: string;
71
- grantType?: "backfill" | "beta" | null;
72
- status: string;
73
- startAt?: string | null;
74
- endAt?: string | null;
75
- }
76
- export interface BillingSubscriptionSummaryEntitlement {
77
- type: "subscription" | "trial";
78
- productName: string;
79
- grantType?: "backfill" | "beta" | null;
80
- status: string;
81
- startAt?: string | null;
82
- endAt?: string | null;
83
- }
84
- export interface BillingSubscriptionSummary {
85
- current: BillingSubscriptionSummaryCurrent | null;
86
- trial: BillingSubscriptionSummaryTrial | null;
87
- entitlement: BillingSubscriptionSummaryEntitlement | null;
88
- features: BillingSubscriptionSummaryFeature[];
89
- quotas: BillingSubscriptionSummaryQuota[];
90
- pointsBalance: BillingSubscriptionSummaryPointsBalance | null;
91
- pendingInvoice: BillingSubscriptionSummaryPendingInvoice | null;
92
- }
1
+ import { UserSubscriptionSnapshot, UserSubscriptionSnapshotEntitlement, UserSubscriptionSnapshotFeature, UserSubscriptionSnapshotQuota } from '../../types/subscription';
2
+ export type { UserSubscriptionSnapshot, UserSubscriptionSnapshotEntitlement, UserSubscriptionSnapshotFeature, UserSubscriptionSnapshotQuota, };
3
+ export type BillingSubscriptionSummary = UserSubscriptionSnapshot;
4
+ export type BillingSubscriptionSummaryFeature = UserSubscriptionSnapshotFeature;
5
+ export type BillingSubscriptionSummaryQuota = UserSubscriptionSnapshotQuota;
6
+ export type BillingSubscriptionSummaryPointsBalance = NonNullable<UserSubscriptionSnapshot["pointsBalance"]>;
7
+ export type BillingSubscriptionSummaryEntitlement = UserSubscriptionSnapshotEntitlement;
93
8
  export declare function useBillingSubscriptionSummary(): {
94
9
  summary: import('vue').Ref<{
95
- current: {
10
+ syncedAt: string;
11
+ product: {
96
12
  id: string;
97
- productId: string;
98
- productName: string;
99
- priceId: string;
100
- priceNickname?: string | undefined;
101
- status: "active" | "trialing" | "past_due" | "canceled" | "incomplete" | string;
102
- interval?: "day" | "week" | "month" | "year" | undefined;
103
- intervalCount?: number | undefined;
104
- unitAmount?: number | undefined;
105
- currency?: string | undefined;
106
- trialStart?: string | null | undefined;
107
- trialEnd?: string | null | undefined;
108
- currentPeriodStart?: string | null | undefined;
109
- currentPeriodEnd?: string | null | undefined;
110
- cancelAtPeriodEnd?: boolean | undefined;
111
- pendingChange?: {
112
- type: string;
113
- productId: string;
114
- productName?: string | undefined;
115
- priceId: string;
116
- priceNickname?: string | undefined;
117
- interval?: string | undefined;
118
- intervalCount?: number | undefined;
119
- unitAmount?: number | undefined;
120
- currency?: string | undefined;
121
- requestedAt?: string | null | undefined;
122
- effectiveAt?: string | null | undefined;
123
- } | null | undefined;
124
- canceledAt?: string | null | undefined;
125
- endedAt?: string | null | undefined;
126
- createAt?: string | undefined;
13
+ name: string;
14
+ description?: string | null | undefined;
127
15
  } | null;
128
- trial: {
16
+ price: {
129
17
  id: string;
130
- productId: string;
131
- productName: string;
132
- priceId?: string | undefined;
133
- priceNickname?: string | undefined;
134
- grantType?: "backfill" | "beta" | null | undefined;
135
- status: string;
136
- startAt?: string | null | undefined;
137
- endAt?: string | null | undefined;
18
+ nickname?: string | null | undefined;
19
+ type: string;
20
+ interval?: string | null | undefined;
21
+ intervalCount?: number | null | undefined;
22
+ unitAmount?: number | null | undefined;
23
+ currency?: string | null | undefined;
138
24
  } | null;
139
25
  entitlement: {
140
- type: "subscription" | "trial";
141
- productName: string;
142
- grantType?: "backfill" | "beta" | null | undefined;
26
+ kind: "plan" | "beta";
143
27
  status: string;
144
- startAt?: string | null | undefined;
145
- endAt?: string | null | undefined;
28
+ startAt: string | null;
29
+ endAt: string | null;
30
+ acquiredBy: "subscribe" | "free" | "grant";
31
+ grantType?: "backfill" | "beta" | null | undefined;
32
+ sourceId: string;
33
+ cancelAtPeriodEnd?: boolean | undefined;
34
+ pendingChange?: (Record<string, unknown> | null) | undefined;
146
35
  } | null;
147
36
  features: {
148
37
  key: string;
149
38
  name?: string | undefined;
150
39
  description?: string | undefined;
151
- type: "boolean" | "quota" | "unlimited" | string;
40
+ type: string;
152
41
  value?: boolean | number | string | null | undefined;
153
42
  highlight?: boolean | undefined;
154
43
  }[];
@@ -161,78 +50,46 @@ export declare function useBillingSubscriptionSummary(): {
161
50
  used: number;
162
51
  remaining: number;
163
52
  unlimited: boolean;
164
- period: "day" | "week" | "month" | "year" | "lifetime" | string;
165
- resetsAt?: string | null | undefined;
53
+ period: string;
54
+ resetsAt: string | null;
166
55
  percentage: number;
167
56
  }[];
168
57
  pointsBalance: {
169
58
  totalPoints: number;
170
- updateAt?: string | null | undefined;
59
+ updateAt: string | null;
171
60
  } | null;
172
- pendingInvoice: {
61
+ }, UserSubscriptionSnapshot | {
62
+ syncedAt: string;
63
+ product: {
173
64
  id: string;
174
- total: number;
175
- status: string;
176
- createAt: string;
177
- } | null;
178
- }, BillingSubscriptionSummary | {
179
- current: {
180
- id: string;
181
- productId: string;
182
- productName: string;
183
- priceId: string;
184
- priceNickname?: string | undefined;
185
- status: "active" | "trialing" | "past_due" | "canceled" | "incomplete" | string;
186
- interval?: "day" | "week" | "month" | "year" | undefined;
187
- intervalCount?: number | undefined;
188
- unitAmount?: number | undefined;
189
- currency?: string | undefined;
190
- trialStart?: string | null | undefined;
191
- trialEnd?: string | null | undefined;
192
- currentPeriodStart?: string | null | undefined;
193
- currentPeriodEnd?: string | null | undefined;
194
- cancelAtPeriodEnd?: boolean | undefined;
195
- pendingChange?: {
196
- type: string;
197
- productId: string;
198
- productName?: string | undefined;
199
- priceId: string;
200
- priceNickname?: string | undefined;
201
- interval?: string | undefined;
202
- intervalCount?: number | undefined;
203
- unitAmount?: number | undefined;
204
- currency?: string | undefined;
205
- requestedAt?: string | null | undefined;
206
- effectiveAt?: string | null | undefined;
207
- } | null | undefined;
208
- canceledAt?: string | null | undefined;
209
- endedAt?: string | null | undefined;
210
- createAt?: string | undefined;
65
+ name: string;
66
+ description?: string | null | undefined;
211
67
  } | null;
212
- trial: {
68
+ price: {
213
69
  id: string;
214
- productId: string;
215
- productName: string;
216
- priceId?: string | undefined;
217
- priceNickname?: string | undefined;
218
- grantType?: "backfill" | "beta" | null | undefined;
219
- status: string;
220
- startAt?: string | null | undefined;
221
- endAt?: string | null | undefined;
70
+ nickname?: string | null | undefined;
71
+ type: string;
72
+ interval?: string | null | undefined;
73
+ intervalCount?: number | null | undefined;
74
+ unitAmount?: number | null | undefined;
75
+ currency?: string | null | undefined;
222
76
  } | null;
223
77
  entitlement: {
224
- type: "subscription" | "trial";
225
- productName: string;
226
- grantType?: "backfill" | "beta" | null | undefined;
78
+ kind: "plan" | "beta";
227
79
  status: string;
228
- startAt?: string | null | undefined;
229
- endAt?: string | null | undefined;
80
+ startAt: string | null;
81
+ endAt: string | null;
82
+ acquiredBy: "subscribe" | "free" | "grant";
83
+ grantType?: "backfill" | "beta" | null | undefined;
84
+ sourceId: string;
85
+ cancelAtPeriodEnd?: boolean | undefined;
86
+ pendingChange?: (Record<string, unknown> | null) | undefined;
230
87
  } | null;
231
88
  features: {
232
89
  key: string;
233
90
  name?: string | undefined;
234
91
  description?: string | undefined;
235
- type: "boolean" | "quota" | "unlimited" | string;
92
+ type: string;
236
93
  value?: boolean | number | string | null | undefined;
237
94
  highlight?: boolean | undefined;
238
95
  }[];
@@ -245,78 +102,45 @@ export declare function useBillingSubscriptionSummary(): {
245
102
  used: number;
246
103
  remaining: number;
247
104
  unlimited: boolean;
248
- period: "day" | "week" | "month" | "year" | "lifetime" | string;
249
- resetsAt?: string | null | undefined;
105
+ period: string;
106
+ resetsAt: string | null;
250
107
  percentage: number;
251
108
  }[];
252
109
  pointsBalance: {
253
110
  totalPoints: number;
254
- updateAt?: string | null | undefined;
255
- } | null;
256
- pendingInvoice: {
257
- id: string;
258
- total: number;
259
- status: string;
260
- createAt: string;
111
+ updateAt: string | null;
261
112
  } | null;
262
113
  }>;
263
- current: import('vue').ComputedRef<{
114
+ product: import('vue').ComputedRef<{
264
115
  id: string;
265
- productId: string;
266
- productName: string;
267
- priceId: string;
268
- priceNickname?: string | undefined;
269
- status: "active" | "trialing" | "past_due" | "canceled" | "incomplete" | string;
270
- interval?: "day" | "week" | "month" | "year" | undefined;
271
- intervalCount?: number | undefined;
272
- unitAmount?: number | undefined;
273
- currency?: string | undefined;
274
- trialStart?: string | null | undefined;
275
- trialEnd?: string | null | undefined;
276
- currentPeriodStart?: string | null | undefined;
277
- currentPeriodEnd?: string | null | undefined;
278
- cancelAtPeriodEnd?: boolean | undefined;
279
- pendingChange?: {
280
- type: string;
281
- productId: string;
282
- productName?: string | undefined;
283
- priceId: string;
284
- priceNickname?: string | undefined;
285
- interval?: string | undefined;
286
- intervalCount?: number | undefined;
287
- unitAmount?: number | undefined;
288
- currency?: string | undefined;
289
- requestedAt?: string | null | undefined;
290
- effectiveAt?: string | null | undefined;
291
- } | null | undefined;
292
- canceledAt?: string | null | undefined;
293
- endedAt?: string | null | undefined;
294
- createAt?: string | undefined;
116
+ name: string;
117
+ description?: string | null | undefined;
295
118
  } | null>;
296
- trial: import('vue').ComputedRef<{
119
+ price: import('vue').ComputedRef<{
297
120
  id: string;
298
- productId: string;
299
- productName: string;
300
- priceId?: string | undefined;
301
- priceNickname?: string | undefined;
302
- grantType?: "backfill" | "beta" | null | undefined;
303
- status: string;
304
- startAt?: string | null | undefined;
305
- endAt?: string | null | undefined;
121
+ nickname?: string | null | undefined;
122
+ type: string;
123
+ interval?: string | null | undefined;
124
+ intervalCount?: number | null | undefined;
125
+ unitAmount?: number | null | undefined;
126
+ currency?: string | null | undefined;
306
127
  } | null>;
307
128
  entitlement: import('vue').ComputedRef<{
308
- type: "subscription" | "trial";
309
- productName: string;
310
- grantType?: "backfill" | "beta" | null | undefined;
129
+ kind: "plan" | "beta";
311
130
  status: string;
312
- startAt?: string | null | undefined;
313
- endAt?: string | null | undefined;
131
+ startAt: string | null;
132
+ endAt: string | null;
133
+ acquiredBy: "subscribe" | "free" | "grant";
134
+ grantType?: "backfill" | "beta" | null | undefined;
135
+ sourceId: string;
136
+ cancelAtPeriodEnd?: boolean | undefined;
137
+ pendingChange?: (Record<string, unknown> | null) | undefined;
314
138
  } | null>;
315
139
  features: import('vue').ComputedRef<{
316
140
  key: string;
317
141
  name?: string | undefined;
318
142
  description?: string | undefined;
319
- type: "boolean" | "quota" | "unlimited" | string;
143
+ type: string;
320
144
  value?: boolean | number | string | null | undefined;
321
145
  highlight?: boolean | undefined;
322
146
  }[]>;
@@ -329,20 +153,15 @@ export declare function useBillingSubscriptionSummary(): {
329
153
  used: number;
330
154
  remaining: number;
331
155
  unlimited: boolean;
332
- period: "day" | "week" | "month" | "year" | "lifetime" | string;
333
- resetsAt?: string | null | undefined;
156
+ period: string;
157
+ resetsAt: string | null;
334
158
  percentage: number;
335
159
  }[]>;
336
160
  pointsBalance: import('vue').ComputedRef<{
337
161
  totalPoints: number;
338
- updateAt?: string | null | undefined;
339
- } | null>;
340
- pendingInvoice: import('vue').ComputedRef<{
341
- id: string;
342
- total: number;
343
- status: string;
344
- createAt: string;
162
+ updateAt: string | null;
345
163
  } | null>;
346
164
  loading: import('vue').Ref<boolean, boolean>;
347
165
  refresh: () => Promise<void>;
166
+ hydrateFromProfile: (subscription: UserSubscriptionSnapshot | null | undefined) => void;
348
167
  };
@@ -2,15 +2,15 @@ import { u as a } from "./useAuthkitAuth-CWHJs8zY.js";
2
2
  import { u as t } from "./apiClients-CWSwNzGk.js";
3
3
  import { L as r, a as i, b as n, i as p, o as f, r as l, c as m, u as c } from "./useLegalDocs-xXYvYpPC.js";
4
4
  import { f as A } from "./fetchAuthPageAboutUs-CLQlGhQy.js";
5
- import { u as d } from "./useAuthkitUsersProfile-DX2PYmdU.js";
5
+ import { u as d } from "./useAuthkitUsersProfile-D4H_Gxgd.js";
6
6
  import { u as L } from "./useAuthkitAppsAuthPageInfo-2izIyMfu.js";
7
- import { f as P, a as b, g as O, u as S, b as C, c as U, d as k, w as M } from "./useRoutePermission-ZOeRg6Wq.js";
7
+ import { f as P, a as b, g as O, u as S, b as C, c as U, d as k, w as M } from "./useRoutePermission-CGq_LIZM.js";
8
8
  import { u as T } from "./useAuthkitCreateAndUpdate-COI5KVPJ.js";
9
9
  import { u as E } from "./useMessageNotifications-pxa5LHjV.js";
10
10
  import { c as y, g as B, a as H, s as I, u as _ } from "./runtime-DDJRAtkv.js";
11
11
  import { u as F, a as K, b as N, c as V, d as Y } from "./usePageSEO-B3stKP3n.js";
12
12
  import { u as q } from "./useUserMenu-ClPBlvaM.js";
13
- import { u as J, a as Q } from "./useSubscriptionCheckout-DAwwBVAk.js";
13
+ import { u as J, a as Q } from "./useSubscriptionCheckout-Dmg0kt4F.js";
14
14
  import { c as X, u as Z, a as $, b as ee } from "./useBillingStatusOptions-C6edto7H.js";
15
15
  export {
16
16
  r as LEGAL_DOCS,
package/dist/feedback.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as b, a as s, F as d, b as F, _ as o, c, R as t, V as r } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-BJj1bNKu.js";
1
+ import { B as b, a as s, F as d, b as F, _ as o, c, R as t, V as r } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-FIZdBxIZ.js";
2
2
  import { C as i } from "./index-BYH7DaQf.js";
3
3
  import { F as m, a as f, b as n, c as p } from "./FeedbackItem-BP-SiJ2u.js";
4
4
  export {