@anker-in/campaign-ui 0.2.10-beta.20 → 0.2.10-beta.22

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 (109) hide show
  1. package/dist/components/chat/action.d.ts +25 -0
  2. package/dist/components/chat/button.d.ts +3 -0
  3. package/dist/components/chat/chatContext.d.ts +101 -0
  4. package/dist/components/chat/index.d.ts +71 -0
  5. package/dist/components/chat/markdown.d.ts +5 -0
  6. package/dist/components/chat/messages.d.ts +3 -0
  7. package/dist/components/chat/props.d.ts +43 -0
  8. package/dist/components/chat/response.d.ts +4 -0
  9. package/dist/components/chat/suggestions.d.ts +3 -0
  10. package/dist/components/chat/utils.d.ts +3 -0
  11. package/dist/components/credits/context/const.d.ts +81 -0
  12. package/dist/components/credits/context/hooks/useActivities.d.ts +12 -0
  13. package/dist/components/credits/context/hooks/useAddressValidate.d.ts +34 -0
  14. package/dist/components/credits/context/hooks/useAlpcFetch.d.ts +23 -0
  15. package/dist/components/credits/context/hooks/useClickOutside.d.ts +3 -0
  16. package/dist/components/credits/context/hooks/useCopy.d.ts +5 -0
  17. package/dist/components/credits/context/hooks/useCountries.d.ts +8 -0
  18. package/dist/components/credits/context/hooks/useFirstPurchaseFinished.d.ts +1 -0
  19. package/dist/components/credits/context/hooks/useMyRewards.d.ts +14 -0
  20. package/dist/components/credits/context/hooks/useReceiptUploaded.d.ts +2 -0
  21. package/dist/components/credits/context/hooks/useRedeemAndBuy.d.ts +9 -0
  22. package/dist/components/credits/context/hooks/useRedeemCoupon.d.ts +17 -0
  23. package/dist/components/credits/context/hooks/useRedeemProduct.d.ts +16 -0
  24. package/dist/components/credits/context/hooks/useRedeemableList.d.ts +7 -0
  25. package/dist/components/credits/context/hooks/useSendEmailValidation.d.ts +1 -0
  26. package/dist/components/credits/context/hooks/useSubscribed.d.ts +1 -0
  27. package/dist/components/credits/context/hooks/useSubscriptions.d.ts +5 -0
  28. package/dist/components/credits/context/hooks/useUploadReceipt.d.ts +14 -0
  29. package/dist/components/credits/context/provider.d.ts +49 -0
  30. package/dist/components/credits/context/response.d.ts +63 -0
  31. package/dist/components/credits/context/utils.d.ts +25 -0
  32. package/dist/components/credits/creditsBanner/index.d.ts +23 -0
  33. package/dist/components/credits/creditsBenefits/benefitItem.d.ts +19 -0
  34. package/dist/components/credits/creditsBenefits/iconInfo.d.ts +2 -0
  35. package/dist/components/credits/creditsBenefits/index.d.ts +12 -0
  36. package/dist/components/credits/creditsCash/RedeemableItem.d.ts +15 -0
  37. package/dist/components/credits/creditsCash/index.d.ts +13 -0
  38. package/dist/components/credits/creditsCash/type.d.ts +47 -0
  39. package/dist/components/credits/creditsFaq/faqItem/FaqItem.d.ts +13 -0
  40. package/dist/components/credits/creditsFaq/index.d.ts +16 -0
  41. package/dist/components/credits/creditsInfoCard/index.d.ts +20 -0
  42. package/dist/components/credits/creditsRedeemList/AddressForm/CountrySelect.d.ts +14 -0
  43. package/dist/components/credits/creditsRedeemList/AddressForm/FormItem.d.ts +6 -0
  44. package/dist/components/credits/creditsRedeemList/AddressForm/Input.d.ts +13 -0
  45. package/dist/components/credits/creditsRedeemList/AddressForm/StateSelect.d.ts +15 -0
  46. package/dist/components/credits/creditsRedeemList/AddressForm/index.d.ts +2 -0
  47. package/dist/components/credits/creditsRedeemList/AddressForm/type.d.ts +26 -0
  48. package/dist/components/credits/creditsRedeemList/RedeemCouponModal.d.ts +9 -0
  49. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Address.d.ts +20 -0
  50. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Error.d.ts +8 -0
  51. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Init.d.ts +11 -0
  52. package/dist/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.d.ts +8 -0
  53. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Success.d.ts +13 -0
  54. package/dist/components/credits/creditsRedeemList/RedeemProductModal/index.d.ts +11 -0
  55. package/dist/components/credits/creditsRedeemList/RedeemableItem.d.ts +9 -0
  56. package/dist/components/credits/creditsRedeemList/index.d.ts +13 -0
  57. package/dist/components/credits/creditsRedeemList/type.d.ts +77 -0
  58. package/dist/components/credits/creditsWaysToGetCredits/index.d.ts +2 -0
  59. package/dist/components/credits/creditsWaysToGetCredits/type.d.ts +60 -0
  60. package/dist/components/credits/creditsWaysToGetCredits/useActions.d.ts +96 -0
  61. package/dist/components/credits/index.d.ts +10 -0
  62. package/dist/components/credits/modal/MyRewardsModal.d.ts +32 -0
  63. package/dist/components/credits/modal/activitiesModal.d.ts +32 -0
  64. package/dist/components/credits/modal/creditsUploadReceiptModal.d.ts +24 -0
  65. package/dist/components/credits/modal/loadingDots.d.ts +6 -0
  66. package/dist/components/credits/modal/modalContainer.d.ts +15 -0
  67. package/dist/components/credits/modal/rulesModal.d.ts +7 -0
  68. package/dist/components/credits/modal/tip.d.ts +5 -0
  69. package/dist/components/credits/type.d.ts +55 -0
  70. package/dist/components/index.d.ts +3 -0
  71. package/dist/debug-env.d.ts +7 -0
  72. package/dist/helpers/fetchResponse.d.ts +14 -0
  73. package/dist/helpers/fetcher.d.ts +2 -0
  74. package/dist/helpers/index.d.ts +2 -0
  75. package/dist/helpers/track.d.ts +19 -0
  76. package/dist/helpers/utils.d.ts +3 -0
  77. package/dist/index.d.mts +3 -3
  78. package/dist/index.d.ts +2 -494
  79. package/dist/index.js +1318 -4377
  80. package/dist/index.js.map +1 -1
  81. package/dist/index.mjs +1294 -4330
  82. package/dist/index.mjs.map +1 -1
  83. package/dist/stories/chat.stories.d.ts +7 -0
  84. package/package.json +14 -9
  85. package/src/components/credits/context/hooks/useActivities.ts +1 -1
  86. package/src/components/credits/context/hooks/useAddressValidate.ts +1 -1
  87. package/src/components/credits/context/hooks/useAlpcFetch.ts +1 -1
  88. package/src/components/credits/context/hooks/useCountries.ts +1 -1
  89. package/src/components/credits/context/hooks/useMyRewards.ts +1 -1
  90. package/src/components/credits/context/hooks/useRedeemAndBuy.ts +2 -2
  91. package/src/components/credits/context/hooks/useRedeemCoupon.ts +1 -1
  92. package/src/components/credits/context/hooks/useRedeemProduct.ts +1 -1
  93. package/src/components/credits/context/hooks/useRedeemableList.ts +1 -1
  94. package/src/components/credits/context/hooks/useSendEmailValidation.ts +1 -1
  95. package/src/components/credits/context/hooks/useSubscribed.ts +1 -1
  96. package/src/components/credits/context/hooks/useSubscriptions.ts +1 -1
  97. package/src/components/credits/creditsCash/index.tsx +2 -2
  98. package/src/components/credits/creditsCash/type.ts +1 -1
  99. package/src/components/credits/creditsRedeemList/AddressForm/index.tsx +1 -1
  100. package/src/components/credits/creditsRedeemList/RedeemCouponModal.tsx +1 -1
  101. package/src/components/credits/creditsRedeemList/RedeemProductModal/Address.tsx +1 -1
  102. package/src/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.tsx +1 -1
  103. package/src/components/credits/creditsRedeemList/RedeemProductModal/index.tsx +1 -1
  104. package/src/components/credits/creditsRedeemList/index.tsx +1 -1
  105. package/src/components/credits/creditsWaysToGetCredits/useActions.ts +1 -1
  106. package/src/components/credits/type.ts +1 -1
  107. package/src/index.ts +1 -1
  108. package/src/styles/global.css +15 -0
  109. package/style.css +1 -0
package/dist/index.d.ts CHANGED
@@ -1,494 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
- export { useCopilotAction, useCopilotChat, useCopilotReadable } from '@copilotkit/react-core';
4
- export { ActionExecutionMessage, Role, TextMessage } from '@copilotkit/runtime-client-gql';
5
- import * as swr_mutation from 'swr/mutation';
6
- export * from '@anker-in/shopify';
7
-
8
- interface ChatProps {
9
- title: string;
10
- runtimeUrl: string;
11
- shopifyDomain: string;
12
- /** GA 的 client id
13
- */
14
- userId: string;
15
- /** 是否登陆用户 0 or 1
16
- */
17
- account?: string;
18
- /** 用户浏览器语言
19
- */
20
- locale?: string;
21
- /** 开场白
22
- */
23
- prologue?: string;
24
- /** ?a=1&b=2
25
- */
26
- query?: string;
27
- /** 'follow' or 'unfollow' | true or false
28
- * follow: ResponseButton 会跟随在 messages 的后边
29
- * unfollow: ResponseButton 在聊天框底部
30
- */
31
- showResponseButton?: string | boolean;
32
- /** messages 的回调事件
33
- * 每次生成/接受新的messages,会将 整个 messages list 传递给外部
34
- */
35
- messagesCallback?: (_messages: any) => void;
36
- /** 通用 action 的触发事件
37
- */
38
- commonRender?: string | ((_props: any) => React.ReactElement);
39
- /** shulex的 action 的触发事件
40
- */
41
- shulexRender?: string | ((_props: any) => React.ReactElement);
42
- /** 通用 积分 换 Coupon 的触发事件
43
- */
44
- pointsExchangeCouponRender?: string | ((_props: any) => React.ReactElement);
45
- /** 跳转 checkout action 卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
46
- * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
47
- */
48
- gotocheckoutRender?: string | ((_props: any) => React.ReactElement);
49
- /** 打开购物车 action 卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
50
- * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
51
- */
52
- gotocartRender?: string | ((_props: any) => React.ReactElement);
53
- /** 打开购物车 action 的触发事件
54
- */
55
- addtocartHandler?: (_args: any) => Promise<any>;
56
- /** 加购卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
57
- * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
58
- */
59
- addtocartRender?: string | ((_props: any) => React.ReactElement);
60
- /** 订阅卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
61
- * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
62
- */
63
- signupRender?: string | ((_props: any) => React.ReactElement);
64
- /** 产品卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
65
- * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
66
- */
67
- productRender?: string | ((_props: any) => React.ReactElement);
68
- /** CopilotPopup 自定义参数,参考:https://docs.copilotkit.ai/reference/components/CopilotPopup */
69
- popup?: any;
70
- /** 文案,{"productRenderTipMessage": "","popupTip": "Hi ! Welcome to soundcore Innovations live chat!", "popupTipTimeout": [3000, 6000]} */
71
- lang?: any;
72
- /** 参考此文档:https://docs.copilotkit.ai/concepts/customize-look-and-feel */
73
- style?: any;
74
- className?: string;
75
- }
76
- declare const Chat: (props: ChatProps) => react_jsx_runtime.JSX.Element;
77
-
78
- declare enum ConsumeType {
79
- Coupon = "coupon",
80
- GiftCard = "giftCard",
81
- GoGift = "goGift",
82
- Product = "product"
83
- }
84
- declare enum DTC_TASK_TYPE {
85
- FirstPurchase = "firstPurchase",
86
- UploadReceipt = "uploadReceipt",
87
- Shopping = "shopping"
88
- }
89
-
90
- interface BaseResponse {
91
- brand: string;
92
- }
93
- interface CreditInfoResponse extends BaseResponse {
94
- total_credit: number;
95
- available_credit: number;
96
- pending_credit: number;
97
- expired_credit: number;
98
- cancel_credit: number;
99
- consumed_credit: number;
100
- }
101
-
102
- declare function CreditsProvider({ children, profile, removeProfile, isLoadingProfile, openSignInPopup, openSignUpPopup, taskIdToTypeMapping, creditInfo, customer, customerLoading, fetchCreditInfo, gtm, }: {
103
- children: React.ReactNode;
104
- profile: any;
105
- removeProfile: () => void;
106
- isLoadingProfile: boolean;
107
- openSignInPopup: () => void;
108
- openSignUpPopup: () => void;
109
- taskIdToTypeMapping: Record<string, DTC_TASK_TYPE>;
110
- creditInfo?: CreditInfoResponse;
111
- customer: any;
112
- fetchCreditInfo: (user_id: string) => void;
113
- customerLoading: boolean;
114
- gtm: {
115
- pageGroup: string;
116
- };
117
- }): react_jsx_runtime.JSX.Element;
118
- declare function useCreditsContext(): {
119
- profile: any;
120
- isLoadingProfile: boolean;
121
- removeProfile: () => void;
122
- taskIdToTypeMapping: Record<string, DTC_TASK_TYPE>;
123
- openSignInPopup: () => void;
124
- openSignUpPopup: () => void;
125
- creditInfo?: CreditInfoResponse;
126
- customer?: any;
127
- customerLoading: boolean;
128
- fetchCreditInfo: (user_id: string) => void;
129
- gtm: {
130
- pageGroup: string;
131
- };
132
- };
133
-
134
- declare const useUploadReceipt: () => swr_mutation.SWRMutationResponse<{
135
- ok: boolean;
136
- code: number;
137
- }, any, "/api/multipass/mktsrv/v1/credit/upload_third_party_order", {
138
- orderName: string;
139
- }>;
140
-
141
- type ReceiptCopy = {
142
- title: string;
143
- description: string;
144
- placeholder: string;
145
- note: string;
146
- submit: string;
147
- successTitle: string;
148
- successDescription: string;
149
- gotIt: string;
150
- failedTitle: string;
151
- successIcon: string;
152
- failedIcon: string;
153
- failedReasons: {
154
- code: string;
155
- id: string;
156
- description: string;
157
- }[];
158
- };
159
- declare function CreditsUploadReceiptModal({ isOpen, onClose, copy, onSuccess, }: {
160
- isOpen: boolean;
161
- onClose: () => void;
162
- copy: ReceiptCopy;
163
- onSuccess: () => void;
164
- }): react_jsx_runtime.JSX.Element;
165
-
166
- type Img = {
167
- url: string;
168
- alt: string;
169
- };
170
- type BannerProps = {
171
- copy: {
172
- pcImg: Img;
173
- laptopImg: Img;
174
- mobileImg: Img;
175
- joinNow: string;
176
- loginIn: string;
177
- login: {
178
- title: string;
179
- description: string;
180
- };
181
- unLogin: {
182
- title: string;
183
- description: string;
184
- };
185
- };
186
- };
187
- declare function CreditsBanner({ copy }: BannerProps): react_jsx_runtime.JSX.Element;
188
-
189
- interface BenefitItemCopy {
190
- icon: {
191
- alt: string;
192
- url: string;
193
- };
194
- text: string;
195
- note?: string;
196
- tag?: string;
197
- }
198
-
199
- interface CreditsBenefitsProps {
200
- copy: {
201
- title: string;
202
- benefits: BenefitItemCopy[];
203
- };
204
- }
205
- declare const CreditsBenefits: ({ copy }: CreditsBenefitsProps) => react_jsx_runtime.JSX.Element;
206
-
207
- interface MyRewardsMetafields {
208
- title: string;
209
- orderNumberLabel: string;
210
- valueLabel: string;
211
- receivedLabel: string;
212
- failedLabel: string;
213
- approveSuccessLabel: string;
214
- couponTab: string;
215
- productTab: string;
216
- pendingLabel: string;
217
- unfulfilledLabel: string;
218
- fulfilledLabel: string;
219
- confirmedTip: string;
220
- pendingTip: string;
221
- processingTip: string;
222
- ShippedTip: string;
223
- emptyListLabel: string;
224
- pointUnit: string;
225
- code: string;
226
- copied: string;
227
- copy: string;
228
- emptyListImage: {
229
- url: string;
230
- alt?: string;
231
- };
232
- }
233
-
234
- interface MyActivitiesMetafields {
235
- title: string;
236
- tips: string;
237
- allTab: string;
238
- earnedTab: string;
239
- deductedTab: string;
240
- expiredTab: string;
241
- activationTask: string;
242
- updateNameTask: string;
243
- updatePhoneTask: string;
244
- updateBirthdayTask: string;
245
- updateAppNameTask: string;
246
- subscriptionTask: string;
247
- refundTask: string;
248
- productUnApprovedTask: string;
249
- pendingTips?: string;
250
- pendingTips2?: string;
251
- firstPurchaseTask: string;
252
- uploadReceiptTask: string;
253
- shoppingTask: string;
254
- emptyListImage: {
255
- url: string;
256
- alt?: string;
257
- };
258
- emptyListLabel: string;
259
- }
260
-
261
- type ButtonConfig = {
262
- text: string;
263
- type: 'activities' | 'rewards';
264
- };
265
- interface InfoCardProps {
266
- data: {
267
- balanceLabel: string;
268
- comingSoonLabel: string;
269
- comingSoonTips: string;
270
- buttons: ButtonConfig[];
271
- pointUnit: string;
272
- infoIcon: string;
273
- myActivities: MyActivitiesMetafields;
274
- myRewards: MyRewardsMetafields;
275
- };
276
- }
277
- declare function CreditsInfoCard({ data }: InfoCardProps): react_jsx_runtime.JSX.Element;
278
-
279
- type BenefitItem = {
280
- title: string;
281
- credits: string;
282
- id: string;
283
- };
284
- type WaysToGetCreditsCopy = {
285
- title: string;
286
- subtitle: string;
287
- equalCredits: string;
288
- musicIcon: string;
289
- list: BenefitItem[];
290
- mainImage: {
291
- url: string;
292
- alt: string;
293
- };
294
- joinNow: string;
295
- activate: string;
296
- completed: string;
297
- completeProfile: string;
298
- makeFirstPurchase: string;
299
- goShopLink: string;
300
- uploadReceipt: string;
301
- shopNow: string;
302
- subscribe: string;
303
- sendEmailSuccess: string;
304
- creditsIcon: {
305
- url: string;
306
- alt: string;
307
- };
308
- receipt: ReceiptCopy;
309
- };
310
- type CreditsWaysToGetCreditsProps = {
311
- copy: WaysToGetCreditsCopy;
312
- classNames?: {
313
- equalCreditsText?: string;
314
- subtitle?: string;
315
- };
316
- activate: {
317
- openAuthCodePopup: () => void;
318
- isSuccess: boolean;
319
- isSendingActivateEmail: boolean;
320
- };
321
- subscribe: {
322
- openSubscribePopup: () => void;
323
- isSuccess: boolean;
324
- };
325
- uploadReceipt: {
326
- openUploadReceiptPopup: () => void;
327
- isSuccess: boolean;
328
- };
329
- };
330
-
331
- declare const CreditsWaysToGetCredits: ({ copy, activate, subscribe, uploadReceipt, classNames, }: CreditsWaysToGetCreditsProps) => react_jsx_runtime.JSX.Element;
332
-
333
- type FaqCopy = {
334
- title: string;
335
- subTitle: string;
336
- learnMore: {
337
- link: string;
338
- label: string;
339
- };
340
- items: {
341
- category_name: string;
342
- question: string;
343
- answer: string;
344
- }[];
345
- };
346
- declare const CreditsFaq: ({ copy }: {
347
- copy: FaqCopy;
348
- }) => react_jsx_runtime.JSX.Element;
349
-
350
- type RedeemableItemConfig = {
351
- title: string;
352
- desc: string;
353
- price: string;
354
- credit: string;
355
- rules: string;
356
- image: {
357
- url: string;
358
- };
359
- mobileImage: {
360
- url: string;
361
- };
362
- redeemId: number;
363
- };
364
- type CreditsCashCopy = {
365
- title: string;
366
- list: (RedeemableItemConfig & {
367
- products: {
368
- handle: string;
369
- sku: string;
370
- }[];
371
- })[];
372
- soldOut: string;
373
- ruleLabel: string;
374
- unlockRewards: string;
375
- btnRedeem: string;
376
- off: string;
377
- insufficientCredits: string;
378
- };
379
-
380
- declare const CreditsCash: ({ copy, className, hideTitle, cardClassName, authCodeActivate, }: {
381
- copy: CreditsCashCopy;
382
- className?: string;
383
- hideTitle?: boolean;
384
- cardClassName?: string;
385
- authCodeActivate: {
386
- openAuthCodePopup: Function;
387
- isSuccess: boolean;
388
- setOnSuccess: (arg: Function) => void;
389
- isSendingActivateEmail: boolean;
390
- };
391
- }) => react_jsx_runtime.JSX.Element;
392
-
393
- type CreditsPageCommon = {
394
- pointUnit: string;
395
- ruleLabel: string;
396
- soldOut: string;
397
- imageMapping: {
398
- [key in ConsumeType]: {
399
- url: string;
400
- };
401
- };
402
- };
403
-
404
- type CreditsRedeemListCopy = {
405
- title: string;
406
- giftCardLabel: string;
407
- unlockRewards: string;
408
- btnRedeem: string;
409
- list: {
410
- label: string;
411
- list: {
412
- id: string;
413
- type: string;
414
- value: string;
415
- rules: string[];
416
- }[];
417
- }[];
418
- validatorInfo: {
419
- addressInfo: {
420
- name: string;
421
- country: string;
422
- province: string;
423
- city: string;
424
- address: string;
425
- };
426
- };
427
- redeemModal: {
428
- confirmTitle: string;
429
- confirmButton: string;
430
- commonError: string;
431
- redeemLimitError: string;
432
- inventoryNotEnough: string;
433
- creditsNotEnough: string;
434
- crossSiteError: string;
435
- errorImageUrl: string;
436
- coupon: {
437
- successDesc: string;
438
- successTitle: string;
439
- successButton: string;
440
- successButtonUrl: string;
441
- };
442
- product: {
443
- required: string;
444
- invalidEmail: string;
445
- shippingAddress: string;
446
- shippingProduct: string;
447
- addressForm: {
448
- key: string;
449
- type: string;
450
- label: string;
451
- isSelect: boolean;
452
- required: boolean;
453
- placeholder: string;
454
- }[][];
455
- form: {
456
- key: string;
457
- type: string;
458
- isSelect: boolean;
459
- required: boolean;
460
- placeholder: string;
461
- }[][];
462
- successDesc: string[];
463
- rules: string[];
464
- steps: {
465
- imageUrl: string;
466
- title: string;
467
- }[];
468
- quantityLabel: string;
469
- totalPriceLabel: string;
470
- variantLabel: string;
471
- shippingFeeLabel: string;
472
- paymentButton: string;
473
- stepTitle: string;
474
- };
475
- };
476
- copied: string;
477
- off: string;
478
- copy: string;
479
- } & CreditsPageCommon;
480
-
481
- declare function CreditsRedeemList({ copy, className, tabClassName, hideTitle, cardClassName, activate, }: {
482
- copy: CreditsRedeemListCopy;
483
- className?: string;
484
- tabClassName?: string;
485
- hideTitle?: boolean;
486
- cardClassName?: string;
487
- activate: {
488
- openAuthCodePopup: () => void;
489
- isSuccess: boolean;
490
- setOnSuccess: (callback: Function) => void;
491
- };
492
- }): react_jsx_runtime.JSX.Element;
493
-
494
- export { Chat, CreditsBanner, CreditsBenefits, CreditsCash, CreditsFaq, CreditsInfoCard, CreditsProvider, CreditsRedeemList, CreditsUploadReceiptModal, CreditsWaysToGetCredits, useCreditsContext, useUploadReceipt as useCreditsUploadReceipt };
1
+ export * from './components/index';
2
+ export * from '@anker-in/lib';