@anker-in/campaign-ui 0.2.10-beta.21 → 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 (83) 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.ts +1 -493
  78. package/dist/index.js +1245 -4292
  79. package/dist/index.mjs +1130 -4154
  80. package/dist/stories/chat.stories.d.ts +7 -0
  81. package/package.json +8 -3
  82. package/src/styles/global.css +15 -0
  83. package/style.css +1 -0
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Chat } from '../components/index';
3
+ import '../styles/chat.css';
4
+ type Story = StoryObj<typeof meta>;
5
+ declare const meta: Meta<typeof Chat>;
6
+ export default meta;
7
+ export declare const Default: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anker-in/campaign-ui",
3
- "version": "0.2.10-beta.21",
3
+ "version": "0.2.10-beta.22",
4
4
  "description": "Campaign UI components and utilities for Anker projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -49,6 +49,7 @@
49
49
  "@types/react": "^18.3.3",
50
50
  "@types/react-dom": "^18.3.0",
51
51
  "babel-jest": "^29.7.0",
52
+ "esbuild": "^0.19.0",
52
53
  "eslint-plugin-react-hooks": "^4.6.2",
53
54
  "eslint-plugin-require-extensions": "^0.1.3",
54
55
  "jest": "^29.7.0",
@@ -89,7 +90,7 @@
89
90
  "tailwind-merge": "^2.3.0",
90
91
  "tailwindcss": "^3.4.3",
91
92
  "@anker-in/headless-ui": "1.0.19",
92
- "@anker-in/lib": "0.0.0-beta.1"
93
+ "@anker-in/lib": "0.0.0-beta.2"
93
94
  },
94
95
  "publishConfig": {
95
96
  "access": "public",
@@ -101,7 +102,11 @@
101
102
  "scripts": {
102
103
  "dev": "pnpm run dev:css & tsup --watch",
103
104
  "dev:css": "postcss src/styles/global.css -o style.css --watch",
104
- "build": "tsup",
105
+ "build": "pnpm run build:css & pnpm run build:js:esm & pnpm run build:js:cjs & pnpm run build:types",
106
+ "build:css": "postcss src/styles/global.css -o style.css",
107
+ "build:js:cjs": "node esbuild-cjs.mjs",
108
+ "build:js:esm": "node esbuild-esm.mjs",
109
+ "build:types": "tsc --outdir dist",
105
110
  "lint": "eslint \"src/**/*.ts*\"",
106
111
  "test": "echo run @anker-in/campaign-ui tests",
107
112
  "type-check": "tsc --noEmit",
@@ -0,0 +1,15 @@
1
+ @import "./css/colors.css";
2
+ @import "./css/popup.css";
3
+ @import "./css/sidebar.css";
4
+ @import "./css/button.css";
5
+ @import "./css/header.css";
6
+ @import "./css/input.css";
7
+ @import "./css/messages.css";
8
+ @import "./css/window.css";
9
+ @import "./css/animations.css";
10
+ @import "./css/response.css";
11
+ @import "./css/markdown.css";
12
+ @import "./css/suggestions.css";
13
+ @import "./css/panel.css";
14
+ @import "./css/console.css";
15
+
package/style.css CHANGED
@@ -12,3 +12,4 @@
12
12
  @import "./css/suggestions.css";
13
13
  @import "./css/panel.css";
14
14
  @import "./css/console.css";
15
+