@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.
- package/dist/components/chat/action.d.ts +25 -0
- package/dist/components/chat/button.d.ts +3 -0
- package/dist/components/chat/chatContext.d.ts +101 -0
- package/dist/components/chat/index.d.ts +71 -0
- package/dist/components/chat/markdown.d.ts +5 -0
- package/dist/components/chat/messages.d.ts +3 -0
- package/dist/components/chat/props.d.ts +43 -0
- package/dist/components/chat/response.d.ts +4 -0
- package/dist/components/chat/suggestions.d.ts +3 -0
- package/dist/components/chat/utils.d.ts +3 -0
- package/dist/components/credits/context/const.d.ts +81 -0
- package/dist/components/credits/context/hooks/useActivities.d.ts +12 -0
- package/dist/components/credits/context/hooks/useAddressValidate.d.ts +34 -0
- package/dist/components/credits/context/hooks/useAlpcFetch.d.ts +23 -0
- package/dist/components/credits/context/hooks/useClickOutside.d.ts +3 -0
- package/dist/components/credits/context/hooks/useCopy.d.ts +5 -0
- package/dist/components/credits/context/hooks/useCountries.d.ts +8 -0
- package/dist/components/credits/context/hooks/useFirstPurchaseFinished.d.ts +1 -0
- package/dist/components/credits/context/hooks/useMyRewards.d.ts +14 -0
- package/dist/components/credits/context/hooks/useReceiptUploaded.d.ts +2 -0
- package/dist/components/credits/context/hooks/useRedeemAndBuy.d.ts +9 -0
- package/dist/components/credits/context/hooks/useRedeemCoupon.d.ts +17 -0
- package/dist/components/credits/context/hooks/useRedeemProduct.d.ts +16 -0
- package/dist/components/credits/context/hooks/useRedeemableList.d.ts +7 -0
- package/dist/components/credits/context/hooks/useSendEmailValidation.d.ts +1 -0
- package/dist/components/credits/context/hooks/useSubscribed.d.ts +1 -0
- package/dist/components/credits/context/hooks/useSubscriptions.d.ts +5 -0
- package/dist/components/credits/context/hooks/useUploadReceipt.d.ts +14 -0
- package/dist/components/credits/context/provider.d.ts +49 -0
- package/dist/components/credits/context/response.d.ts +63 -0
- package/dist/components/credits/context/utils.d.ts +25 -0
- package/dist/components/credits/creditsBanner/index.d.ts +23 -0
- package/dist/components/credits/creditsBenefits/benefitItem.d.ts +19 -0
- package/dist/components/credits/creditsBenefits/iconInfo.d.ts +2 -0
- package/dist/components/credits/creditsBenefits/index.d.ts +12 -0
- package/dist/components/credits/creditsCash/RedeemableItem.d.ts +15 -0
- package/dist/components/credits/creditsCash/index.d.ts +13 -0
- package/dist/components/credits/creditsCash/type.d.ts +47 -0
- package/dist/components/credits/creditsFaq/faqItem/FaqItem.d.ts +13 -0
- package/dist/components/credits/creditsFaq/index.d.ts +16 -0
- package/dist/components/credits/creditsInfoCard/index.d.ts +20 -0
- package/dist/components/credits/creditsRedeemList/AddressForm/CountrySelect.d.ts +14 -0
- package/dist/components/credits/creditsRedeemList/AddressForm/FormItem.d.ts +6 -0
- package/dist/components/credits/creditsRedeemList/AddressForm/Input.d.ts +13 -0
- package/dist/components/credits/creditsRedeemList/AddressForm/StateSelect.d.ts +15 -0
- package/dist/components/credits/creditsRedeemList/AddressForm/index.d.ts +2 -0
- package/dist/components/credits/creditsRedeemList/AddressForm/type.d.ts +26 -0
- package/dist/components/credits/creditsRedeemList/RedeemCouponModal.d.ts +9 -0
- package/dist/components/credits/creditsRedeemList/RedeemProductModal/Address.d.ts +20 -0
- package/dist/components/credits/creditsRedeemList/RedeemProductModal/Error.d.ts +8 -0
- package/dist/components/credits/creditsRedeemList/RedeemProductModal/Init.d.ts +11 -0
- package/dist/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.d.ts +8 -0
- package/dist/components/credits/creditsRedeemList/RedeemProductModal/Success.d.ts +13 -0
- package/dist/components/credits/creditsRedeemList/RedeemProductModal/index.d.ts +11 -0
- package/dist/components/credits/creditsRedeemList/RedeemableItem.d.ts +9 -0
- package/dist/components/credits/creditsRedeemList/index.d.ts +13 -0
- package/dist/components/credits/creditsRedeemList/type.d.ts +77 -0
- package/dist/components/credits/creditsWaysToGetCredits/index.d.ts +2 -0
- package/dist/components/credits/creditsWaysToGetCredits/type.d.ts +60 -0
- package/dist/components/credits/creditsWaysToGetCredits/useActions.d.ts +96 -0
- package/dist/components/credits/index.d.ts +10 -0
- package/dist/components/credits/modal/MyRewardsModal.d.ts +32 -0
- package/dist/components/credits/modal/activitiesModal.d.ts +32 -0
- package/dist/components/credits/modal/creditsUploadReceiptModal.d.ts +24 -0
- package/dist/components/credits/modal/loadingDots.d.ts +6 -0
- package/dist/components/credits/modal/modalContainer.d.ts +15 -0
- package/dist/components/credits/modal/rulesModal.d.ts +7 -0
- package/dist/components/credits/modal/tip.d.ts +5 -0
- package/dist/components/credits/type.d.ts +55 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/debug-env.d.ts +7 -0
- package/dist/helpers/fetchResponse.d.ts +14 -0
- package/dist/helpers/fetcher.d.ts +2 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/track.d.ts +19 -0
- package/dist/helpers/utils.d.ts +3 -0
- package/dist/index.d.ts +1 -493
- package/dist/index.js +1245 -4292
- package/dist/index.mjs +1130 -4154
- package/dist/stories/chat.stories.d.ts +7 -0
- package/package.json +8 -3
- package/src/styles/global.css +15 -0
- 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.
|
|
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.
|
|
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": "
|
|
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