@developer_tribe/react-native-comnyx 0.1.0 → 0.2.0
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/lib/commonjs/App.js +59 -0
- package/lib/commonjs/App.js.map +1 -0
- package/lib/commonjs/__dev__.js +29 -0
- package/lib/commonjs/__dev__.js.map +1 -0
- package/lib/commonjs/api/api.js +22 -0
- package/lib/commonjs/api/api.js.map +1 -0
- package/lib/commonjs/api/conversations.js +37 -0
- package/lib/commonjs/api/conversations.js.map +1 -0
- package/lib/commonjs/api/customers.js +15 -0
- package/lib/commonjs/api/customers.js.map +1 -0
- package/lib/commonjs/api/index.js +33 -0
- package/lib/commonjs/api/index.js.map +1 -0
- package/lib/commonjs/api/messages.js +27 -0
- package/lib/commonjs/api/messages.js.map +1 -0
- package/lib/commonjs/assets/clock.png +0 -0
- package/lib/commonjs/assets/double-check.png +0 -0
- package/lib/commonjs/assets/down.png +0 -0
- package/lib/commonjs/assets/send.png +0 -0
- package/lib/commonjs/components/AppText.js +38 -0
- package/lib/commonjs/components/AppText.js.map +1 -0
- package/lib/commonjs/components/ChatList.js +268 -0
- package/lib/commonjs/components/ChatList.js.map +1 -0
- package/lib/commonjs/components/CustomerForm.js +213 -0
- package/lib/commonjs/components/CustomerForm.js.map +1 -0
- package/lib/commonjs/components/EmptyList.js +40 -0
- package/lib/commonjs/components/EmptyList.js.map +1 -0
- package/lib/commonjs/components/InitFailed.js +51 -0
- package/lib/commonjs/components/InitFailed.js.map +1 -0
- package/lib/commonjs/components/MessageInput.js +119 -0
- package/lib/commonjs/components/MessageInput.js.map +1 -0
- package/lib/commonjs/components/MessageItem.js +117 -0
- package/lib/commonjs/components/MessageItem.js.map +1 -0
- package/lib/commonjs/constants/translations.js +219 -0
- package/lib/commonjs/constants/translations.js.map +1 -0
- package/lib/commonjs/data/fake/conversations.js +95 -0
- package/lib/commonjs/data/fake/conversations.js.map +1 -0
- package/lib/commonjs/data/fake/customers.js +24 -0
- package/lib/commonjs/data/fake/customers.js.map +1 -0
- package/lib/commonjs/data/fake/messages.js +67 -0
- package/lib/commonjs/data/fake/messages.js.map +1 -0
- package/lib/commonjs/hooks/useLocalize.js +20 -0
- package/lib/commonjs/hooks/useLocalize.js.map +1 -0
- package/lib/commonjs/hooks/usePolling.js +50 -0
- package/lib/commonjs/hooks/usePolling.js.map +1 -0
- package/lib/commonjs/hooks/useThemeColors.js +17 -0
- package/lib/commonjs/hooks/useThemeColors.js.map +1 -0
- package/lib/commonjs/index.js +15 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/register.js +21 -0
- package/lib/commonjs/register.js.map +1 -0
- package/lib/commonjs/store.js +79 -0
- package/lib/commonjs/store.js.map +1 -0
- package/lib/commonjs/types/ApiOptions.js +2 -0
- package/lib/commonjs/types/ApiOptions.js.map +1 -0
- package/lib/commonjs/types/Conversation.js +2 -0
- package/lib/commonjs/types/Conversation.js.map +1 -0
- package/lib/commonjs/types/Customer.js +2 -0
- package/lib/commonjs/types/Customer.js.map +1 -0
- package/lib/commonjs/types/Language.js +2 -0
- package/lib/commonjs/types/Language.js.map +1 -0
- package/lib/commonjs/types/LocalizationKeys.js +2 -0
- package/lib/commonjs/types/LocalizationKeys.js.map +1 -0
- package/lib/commonjs/types/MessageResponse.js +2 -0
- package/lib/commonjs/types/MessageResponse.js.map +1 -0
- package/lib/commonjs/types/Theme.js +29 -0
- package/lib/commonjs/types/Theme.js.map +1 -0
- package/lib/commonjs/utils/date.js +17 -0
- package/lib/commonjs/utils/date.js.map +1 -0
- package/lib/module/App.js +55 -0
- package/lib/module/App.js.map +1 -0
- package/lib/module/__dev__.js +29 -0
- package/lib/module/__dev__.js.map +1 -0
- package/lib/module/api/api.js +17 -0
- package/lib/module/api/api.js.map +1 -0
- package/lib/module/api/conversations.js +32 -0
- package/lib/module/api/conversations.js.map +1 -0
- package/lib/module/api/customers.js +11 -0
- package/lib/module/api/customers.js.map +1 -0
- package/lib/module/api/index.js +6 -0
- package/lib/module/api/index.js.map +1 -0
- package/lib/module/api/messages.js +23 -0
- package/lib/module/api/messages.js.map +1 -0
- package/lib/module/assets/clock.png +0 -0
- package/lib/module/assets/double-check.png +0 -0
- package/lib/module/assets/down.png +0 -0
- package/lib/module/assets/send.png +0 -0
- package/lib/module/components/AppText.js +34 -0
- package/lib/module/components/AppText.js.map +1 -0
- package/lib/module/components/ChatList.js +265 -0
- package/lib/module/components/ChatList.js.map +1 -0
- package/lib/module/components/CustomerForm.js +209 -0
- package/lib/module/components/CustomerForm.js.map +1 -0
- package/lib/module/components/EmptyList.js +36 -0
- package/lib/module/components/EmptyList.js.map +1 -0
- package/lib/module/components/InitFailed.js +47 -0
- package/lib/module/components/InitFailed.js.map +1 -0
- package/lib/module/components/MessageInput.js +115 -0
- package/lib/module/components/MessageInput.js.map +1 -0
- package/lib/module/components/MessageItem.js +114 -0
- package/lib/module/components/MessageItem.js.map +1 -0
- package/lib/module/constants/translations.js +215 -0
- package/lib/module/constants/translations.js.map +1 -0
- package/lib/module/data/fake/conversations.js +88 -0
- package/lib/module/data/fake/conversations.js.map +1 -0
- package/lib/module/data/fake/customers.js +20 -0
- package/lib/module/data/fake/customers.js.map +1 -0
- package/lib/module/data/fake/messages.js +63 -0
- package/lib/module/data/fake/messages.js.map +1 -0
- package/lib/module/hooks/useLocalize.js +16 -0
- package/lib/module/hooks/useLocalize.js.map +1 -0
- package/lib/module/hooks/usePolling.js +46 -0
- package/lib/module/hooks/usePolling.js.map +1 -0
- package/lib/module/hooks/useThemeColors.js +13 -0
- package/lib/module/hooks/useThemeColors.js.map +1 -0
- package/lib/module/index.js +3 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/register.js +17 -0
- package/lib/module/register.js.map +1 -0
- package/lib/module/store.js +74 -0
- package/lib/module/store.js.map +1 -0
- package/lib/module/types/ApiOptions.js +2 -0
- package/lib/module/types/ApiOptions.js.map +1 -0
- package/lib/module/types/Conversation.js +2 -0
- package/lib/module/types/Conversation.js.map +1 -0
- package/lib/module/types/Customer.js +2 -0
- package/lib/module/types/Customer.js.map +1 -0
- package/lib/module/types/Language.js +2 -0
- package/lib/module/types/Language.js.map +1 -0
- package/lib/module/types/LocalizationKeys.js +2 -0
- package/lib/module/types/LocalizationKeys.js.map +1 -0
- package/lib/module/types/MessageResponse.js +2 -0
- package/lib/module/types/MessageResponse.js.map +1 -0
- package/lib/module/types/Theme.js +25 -0
- package/lib/module/types/Theme.js.map +1 -0
- package/lib/module/utils/date.js +12 -0
- package/lib/module/utils/date.js.map +1 -0
- package/lib/typescript/commonjs/src/App.d.ts +9 -0
- package/lib/typescript/commonjs/src/App.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/__dev__.d.ts +2 -0
- package/lib/typescript/commonjs/src/__dev__.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/api/api.d.ts +4 -0
- package/lib/typescript/commonjs/src/api/api.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/api/conversations.d.ts +7 -0
- package/lib/typescript/commonjs/src/api/conversations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/api/customers.d.ts +4 -0
- package/lib/typescript/commonjs/src/api/customers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/api/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/api/messages.d.ts +4 -0
- package/lib/typescript/commonjs/src/api/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/AppText.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/AppText.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ChatList.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/CustomerForm.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/EmptyList.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/EmptyList.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/InitFailed.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/InitFailed.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MessageInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/components/MessageInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MessageItem.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/MessageItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/translations.d.ts +4 -0
- package/lib/typescript/commonjs/src/constants/translations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/data/fake/conversations.d.ts +5 -0
- package/lib/typescript/commonjs/src/data/fake/conversations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/data/fake/customers.d.ts +3 -0
- package/lib/typescript/commonjs/src/data/fake/customers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/data/fake/messages.d.ts +3 -0
- package/lib/typescript/commonjs/src/data/fake/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts +3 -0
- package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/usePolling.d.ts +2 -0
- package/lib/typescript/commonjs/src/hooks/usePolling.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts +3 -0
- package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +4 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/register.d.ts +5 -0
- package/lib/typescript/commonjs/src/register.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/store.d.ts +35 -0
- package/lib/typescript/commonjs/src/store.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/ApiOptions.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/ApiOptions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/Conversation.d.ts +26 -0
- package/lib/typescript/commonjs/src/types/Conversation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/Customer.d.ts +30 -0
- package/lib/typescript/commonjs/src/types/Customer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/Language.d.ts +2 -0
- package/lib/typescript/commonjs/src/types/Language.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts +22 -0
- package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MessageResponse.d.ts +59 -0
- package/lib/typescript/commonjs/src/types/MessageResponse.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/Theme.d.ts +18 -0
- package/lib/typescript/commonjs/src/types/Theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/date.d.ts +7 -0
- package/lib/typescript/commonjs/src/utils/date.d.ts.map +1 -0
- package/lib/typescript/module/src/App.d.ts +9 -0
- package/lib/typescript/module/src/App.d.ts.map +1 -0
- package/lib/typescript/module/src/__dev__.d.ts +2 -0
- package/lib/typescript/module/src/__dev__.d.ts.map +1 -0
- package/lib/typescript/module/src/api/api.d.ts +4 -0
- package/lib/typescript/module/src/api/api.d.ts.map +1 -0
- package/lib/typescript/module/src/api/conversations.d.ts +7 -0
- package/lib/typescript/module/src/api/conversations.d.ts.map +1 -0
- package/lib/typescript/module/src/api/customers.d.ts +4 -0
- package/lib/typescript/module/src/api/customers.d.ts.map +1 -0
- package/lib/typescript/module/src/api/index.d.ts +4 -0
- package/lib/typescript/module/src/api/index.d.ts.map +1 -0
- package/lib/typescript/module/src/api/messages.d.ts +4 -0
- package/lib/typescript/module/src/api/messages.d.ts.map +1 -0
- package/lib/typescript/module/src/components/AppText.d.ts +10 -0
- package/lib/typescript/module/src/components/AppText.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ChatList.d.ts +2 -0
- package/lib/typescript/module/src/components/ChatList.d.ts.map +1 -0
- package/lib/typescript/module/src/components/CustomerForm.d.ts +2 -0
- package/lib/typescript/module/src/components/CustomerForm.d.ts.map +1 -0
- package/lib/typescript/module/src/components/EmptyList.d.ts +2 -0
- package/lib/typescript/module/src/components/EmptyList.d.ts.map +1 -0
- package/lib/typescript/module/src/components/InitFailed.d.ts +6 -0
- package/lib/typescript/module/src/components/InitFailed.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MessageInput.d.ts +4 -0
- package/lib/typescript/module/src/components/MessageInput.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MessageItem.d.ts +5 -0
- package/lib/typescript/module/src/components/MessageItem.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/translations.d.ts +4 -0
- package/lib/typescript/module/src/constants/translations.d.ts.map +1 -0
- package/lib/typescript/module/src/data/fake/conversations.d.ts +5 -0
- package/lib/typescript/module/src/data/fake/conversations.d.ts.map +1 -0
- package/lib/typescript/module/src/data/fake/customers.d.ts +3 -0
- package/lib/typescript/module/src/data/fake/customers.d.ts.map +1 -0
- package/lib/typescript/module/src/data/fake/messages.d.ts +3 -0
- package/lib/typescript/module/src/data/fake/messages.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useLocalize.d.ts +3 -0
- package/lib/typescript/module/src/hooks/useLocalize.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/usePolling.d.ts +2 -0
- package/lib/typescript/module/src/hooks/usePolling.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useThemeColors.d.ts +3 -0
- package/lib/typescript/module/src/hooks/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +4 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/register.d.ts +5 -0
- package/lib/typescript/module/src/register.d.ts.map +1 -0
- package/lib/typescript/module/src/store.d.ts +35 -0
- package/lib/typescript/module/src/store.d.ts.map +1 -0
- package/lib/typescript/module/src/types/ApiOptions.d.ts +4 -0
- package/lib/typescript/module/src/types/ApiOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/types/Conversation.d.ts +26 -0
- package/lib/typescript/module/src/types/Conversation.d.ts.map +1 -0
- package/lib/typescript/module/src/types/Customer.d.ts +30 -0
- package/lib/typescript/module/src/types/Customer.d.ts.map +1 -0
- package/lib/typescript/module/src/types/Language.d.ts +2 -0
- package/lib/typescript/module/src/types/Language.d.ts.map +1 -0
- package/lib/typescript/module/src/types/LocalizationKeys.d.ts +22 -0
- package/lib/typescript/module/src/types/LocalizationKeys.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MessageResponse.d.ts +59 -0
- package/lib/typescript/module/src/types/MessageResponse.d.ts.map +1 -0
- package/lib/typescript/module/src/types/Theme.d.ts +18 -0
- package/lib/typescript/module/src/types/Theme.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/date.d.ts +7 -0
- package/lib/typescript/module/src/utils/date.d.ts.map +1 -0
- package/package.json +10 -2
- package/src/App.tsx +59 -0
- package/src/__dev__.ts +22 -0
- package/src/api/api.ts +16 -0
- package/src/api/conversations.ts +53 -0
- package/src/api/customers.ts +16 -0
- package/src/api/index.ts +6 -0
- package/src/api/messages.ts +33 -0
- package/src/assets/clock.png +0 -0
- package/src/assets/double-check.png +0 -0
- package/src/assets/down.png +0 -0
- package/src/assets/send.png +0 -0
- package/src/components/AppText.tsx +43 -0
- package/src/components/ChatList.tsx +305 -0
- package/src/components/CustomerForm.tsx +203 -0
- package/src/components/EmptyList.tsx +32 -0
- package/src/components/InitFailed.tsx +46 -0
- package/src/components/MessageInput.tsx +133 -0
- package/src/components/MessageItem.tsx +141 -0
- package/src/constants/translations.ts +232 -0
- package/src/data/fake/conversations.ts +558 -0
- package/src/data/fake/customers.ts +19 -0
- package/src/data/fake/messages.ts +64 -0
- package/src/hooks/useLocalize.ts +18 -0
- package/src/hooks/usePolling.ts +46 -0
- package/src/hooks/useThemeColors.ts +10 -0
- package/src/index.tsx +4 -5
- package/src/register.ts +17 -0
- package/src/store.ts +85 -0
- package/src/types/ApiOptions.ts +4 -0
- package/src/types/Conversation.ts +29 -0
- package/src/types/Customer.ts +31 -0
- package/src/types/Language.ts +11 -0
- package/src/types/LocalizationKeys.ts +21 -0
- package/src/types/MessageResponse.ts +58 -0
- package/src/types/Theme.ts +40 -0
- package/src/utils/date.ts +11 -0
- package/.editorconfig +0 -15
- package/.gitattributes +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -68
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/actions/setup/action.yml +0 -36
- package/.github/workflows/ci.yml +0 -165
- package/.gitignore +0 -86
- package/.idea/.gitignore +0 -8
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/comnyx-rn.iml +0 -12
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -71
- package/.nvmrc +0 -1
- package/.watchmanconfig +0 -1
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
- package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
- package/.yarn/releases/yarn-3.6.1.cjs +0 -874
- package/.yarnrc.yml +0 -10
- package/CODE_OF_CONDUCT.md +0 -133
- package/CONTRIBUTING.md +0 -130
- package/babel.config.js +0 -3
- package/example/.bundle/config +0 -2
- package/example/.watchmanconfig +0 -1
- package/example/Gemfile +0 -10
- package/example/README.md +0 -97
- package/example/android/app/build.gradle +0 -133
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +0 -10
- package/example/android/app/src/debug/AndroidManifest.xml +0 -9
- package/example/android/app/src/main/AndroidManifest.xml +0 -26
- package/example/android/app/src/main/java/comnyx/example/MainActivity.kt +0 -22
- package/example/android/app/src/main/java/comnyx/example/MainApplication.kt +0 -44
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +0 -3
- package/example/android/app/src/main/res/values/styles.xml +0 -9
- package/example/android/build.gradle +0 -21
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/example/android/gradle.properties +0 -39
- package/example/android/gradlew +0 -251
- package/example/android/gradlew.bat +0 -94
- package/example/android/settings.gradle +0 -6
- package/example/app.json +0 -4
- package/example/babel.config.js +0 -12
- package/example/index.js +0 -5
- package/example/ios/.xcode.env +0 -11
- package/example/ios/ComnyxExample/AppDelegate.swift +0 -30
- package/example/ios/ComnyxExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/example/ios/ComnyxExample/Images.xcassets/Contents.json +0 -6
- package/example/ios/ComnyxExample/Info.plist +0 -52
- package/example/ios/ComnyxExample/LaunchScreen.storyboard +0 -47
- package/example/ios/ComnyxExample/PrivacyInfo.xcprivacy +0 -37
- package/example/ios/ComnyxExample.xcodeproj/project.pbxproj +0 -505
- package/example/ios/ComnyxExample.xcodeproj/xcshareddata/xcschemes/ComnyxExample.xcscheme +0 -88
- package/example/ios/Podfile +0 -43
- package/example/jest.config.js +0 -3
- package/example/metro.config.js +0 -18
- package/example/package.json +0 -31
- package/example/react-native.config.js +0 -21
- package/example/src/App.tsx +0 -20
- package/lefthook.yml +0 -14
- package/lib/typescript/commonjs/src/__tests__/index.test.d.ts +0 -1
- package/lib/typescript/commonjs/src/__tests__/index.test.d.ts.map +0 -1
- package/lib/typescript/module/src/__tests__/index.test.d.ts +0 -1
- package/lib/typescript/module/src/__tests__/index.test.d.ts.map +0 -1
- package/src/__tests__/index.test.tsx +0 -1
- package/tsconfig.build.json +0 -4
- package/tsconfig.json +0 -30
- package/turbo.json +0 -36
- package/yarn.lock +0 -9251
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function getFakeCustomer(customerData) {
|
|
4
|
+
return {
|
|
5
|
+
id: Math.floor(Math.random() * 1000),
|
|
6
|
+
project_id: 1,
|
|
7
|
+
external_id: customerData.externalId,
|
|
8
|
+
name: customerData.name,
|
|
9
|
+
country: customerData.country,
|
|
10
|
+
language: customerData.language,
|
|
11
|
+
email: customerData.email,
|
|
12
|
+
phone: customerData.phone,
|
|
13
|
+
ip_address: customerData.ipAddress,
|
|
14
|
+
custom_parameters: JSON.stringify(customerData.customParameters || []),
|
|
15
|
+
user_code: Math.random().toString(36).substring(7),
|
|
16
|
+
updated_at: new Date().toISOString(),
|
|
17
|
+
created_at: new Date().toISOString()
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getFakeCustomer","customerData","id","Math","floor","random","project_id","external_id","externalId","name","country","language","email","phone","ip_address","ipAddress","custom_parameters","JSON","stringify","customParameters","user_code","toString","substring","updated_at","Date","toISOString","created_at"],"sourceRoot":"../../../../src","sources":["data/fake/customers.ts"],"mappings":";;AAEA,OAAO,SAASA,eAAeA,CAACC,YAAmC,EAAY;EAC7E,OAAO;IACLC,EAAE,EAAEC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;IACpCC,UAAU,EAAE,CAAC;IACbC,WAAW,EAAEN,YAAY,CAACO,UAAU;IACpCC,IAAI,EAAER,YAAY,CAACQ,IAAI;IACvBC,OAAO,EAAET,YAAY,CAACS,OAAO;IAC7BC,QAAQ,EAAEV,YAAY,CAACU,QAAQ;IAC/BC,KAAK,EAAEX,YAAY,CAACW,KAAK;IACzBC,KAAK,EAAEZ,YAAY,CAACY,KAAK;IACzBC,UAAU,EAAEb,YAAY,CAACc,SAAS;IAClCC,iBAAiB,EAAEC,IAAI,CAACC,SAAS,CAACjB,YAAY,CAACkB,gBAAgB,IAAI,EAAE,CAAC;IACtEC,SAAS,EAAEjB,IAAI,CAACE,MAAM,CAAC,CAAC,CAACgB,QAAQ,CAAC,EAAE,CAAC,CAACC,SAAS,CAAC,CAAC,CAAC;IAClDC,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IACpCC,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC;EACrC,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function getFakeMessageResponse(content) {
|
|
4
|
+
return {
|
|
5
|
+
message: {
|
|
6
|
+
conversation_id: 1,
|
|
7
|
+
content: content,
|
|
8
|
+
is_note: false,
|
|
9
|
+
updated_at: new Date().toISOString(),
|
|
10
|
+
created_at: new Date().toISOString(),
|
|
11
|
+
id: Math.floor(Math.random() * 1000),
|
|
12
|
+
user: null,
|
|
13
|
+
conversation: {
|
|
14
|
+
id: 1,
|
|
15
|
+
project_id: 1,
|
|
16
|
+
customer_id: 1,
|
|
17
|
+
created_at: new Date().toISOString(),
|
|
18
|
+
updated_at: new Date().toISOString(),
|
|
19
|
+
deleted_at: null,
|
|
20
|
+
language: 'en',
|
|
21
|
+
use_ai_answers: 0,
|
|
22
|
+
project: {
|
|
23
|
+
id: 1,
|
|
24
|
+
name: 'Demo Project',
|
|
25
|
+
organization_id: 1,
|
|
26
|
+
created_at: new Date().toISOString(),
|
|
27
|
+
updated_at: new Date().toISOString(),
|
|
28
|
+
deleted_at: null,
|
|
29
|
+
uuid: 'demo-uuid',
|
|
30
|
+
organization: {
|
|
31
|
+
id: 1,
|
|
32
|
+
name: 'Demo Organization',
|
|
33
|
+
created_at: new Date().toISOString(),
|
|
34
|
+
updated_at: new Date().toISOString(),
|
|
35
|
+
deleted_at: null,
|
|
36
|
+
owner: [{
|
|
37
|
+
id: 1,
|
|
38
|
+
name: 'Demo User',
|
|
39
|
+
email: 'demo@example.com',
|
|
40
|
+
email_verified_at: null,
|
|
41
|
+
created_at: new Date().toISOString(),
|
|
42
|
+
updated_at: new Date().toISOString(),
|
|
43
|
+
avatar: null,
|
|
44
|
+
two_factor_secret: null,
|
|
45
|
+
two_factor_recovery_codes: null,
|
|
46
|
+
is_bot: false,
|
|
47
|
+
profile_photo_url: '',
|
|
48
|
+
pivot: {
|
|
49
|
+
organization_id: 1,
|
|
50
|
+
user_id: 1,
|
|
51
|
+
role: 'owner',
|
|
52
|
+
created_at: new Date().toISOString(),
|
|
53
|
+
updated_at: new Date().toISOString()
|
|
54
|
+
}
|
|
55
|
+
}]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
events: []
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getFakeMessageResponse","content","message","conversation_id","is_note","updated_at","Date","toISOString","created_at","id","Math","floor","random","user","conversation","project_id","customer_id","deleted_at","language","use_ai_answers","project","name","organization_id","uuid","organization","owner","email","email_verified_at","avatar","two_factor_secret","two_factor_recovery_codes","is_bot","profile_photo_url","pivot","user_id","role","events"],"sourceRoot":"../../../../src","sources":["data/fake/messages.ts"],"mappings":";;AAEA,OAAO,SAASA,sBAAsBA,CAACC,OAAe,EAAmB;EACvE,OAAO;IACLC,OAAO,EAAE;MACPC,eAAe,EAAE,CAAC;MAClBF,OAAO,EAAEA,OAAO;MAChBG,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;MACpCC,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;MACpCE,EAAE,EAAEC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;MACpCC,IAAI,EAAE,IAAI;MACVC,YAAY,EAAE;QACZL,EAAE,EAAE,CAAC;QACLM,UAAU,EAAE,CAAC;QACbC,WAAW,EAAE,CAAC;QACdR,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;QACpCF,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;QACpCU,UAAU,EAAE,IAAI;QAChBC,QAAQ,EAAE,IAAI;QACdC,cAAc,EAAE,CAAC;QACjBC,OAAO,EAAE;UACPX,EAAE,EAAE,CAAC;UACLY,IAAI,EAAE,cAAc;UACpBC,eAAe,EAAE,CAAC;UAClBd,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;UACpCF,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;UACpCU,UAAU,EAAE,IAAI;UAChBM,IAAI,EAAE,WAAW;UACjBC,YAAY,EAAE;YACZf,EAAE,EAAE,CAAC;YACLY,IAAI,EAAE,mBAAmB;YACzBb,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;YACpCF,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;YACpCU,UAAU,EAAE,IAAI;YAChBQ,KAAK,EAAE,CACL;cACEhB,EAAE,EAAE,CAAC;cACLY,IAAI,EAAE,WAAW;cACjBK,KAAK,EAAE,kBAAkB;cACzBC,iBAAiB,EAAE,IAAI;cACvBnB,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;cACpCF,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;cACpCqB,MAAM,EAAE,IAAI;cACZC,iBAAiB,EAAE,IAAI;cACvBC,yBAAyB,EAAE,IAAI;cAC/BC,MAAM,EAAE,KAAK;cACbC,iBAAiB,EAAE,EAAE;cACrBC,KAAK,EAAE;gBACLX,eAAe,EAAE,CAAC;gBAClBY,OAAO,EAAE,CAAC;gBACVC,IAAI,EAAE,OAAO;gBACb3B,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;gBACpCF,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC;cACrC;YACF,CAAC;UAEL;QACF;MACF,CAAC;MACD6B,MAAM,EAAE;IACV;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { LocalizationList } from "../constants/translations.js";
|
|
5
|
+
import { useAppStore } from "../store.js";
|
|
6
|
+
export function useLocalize() {
|
|
7
|
+
const {
|
|
8
|
+
language
|
|
9
|
+
} = useAppStore(s => ({
|
|
10
|
+
language: s.language
|
|
11
|
+
}));
|
|
12
|
+
return useCallback(localization => {
|
|
13
|
+
return (LocalizationList[language] || LocalizationList.en)[localization];
|
|
14
|
+
}, [language]);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=useLocalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","LocalizationList","useAppStore","useLocalize","language","s","localization","en"],"sourceRoot":"../../../src","sources":["hooks/useLocalize.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AACnC,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SAASC,WAAW,QAAQ,aAAU;AAGtC,OAAO,SAASC,WAAWA,CAAA,EAAG;EAC5B,MAAM;IAAEC;EAAS,CAAC,GAAGF,WAAW,CAAEG,CAAC,KAAM;IACvCD,QAAQ,EAAEC,CAAC,CAACD;EACd,CAAC,CAAC,CAAC;EAEH,OAAOJ,WAAW,CACfM,YAAoC,IAAa;IAChD,OAAO,CAACL,gBAAgB,CAACG,QAAQ,CAAkC,IACjEH,gBAAgB,CAACM,EAAE,EAAED,YAAY,CAAC;EACtC,CAAC,EACD,CAACF,QAAQ,CACX,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useAppStore } from "../store.js";
|
|
5
|
+
import { getNewCustomerConversation } from "../api/index.js";
|
|
6
|
+
const NEW_MESSAGES_CHECK_INTERVAL = 10000;
|
|
7
|
+
export function usePolling() {
|
|
8
|
+
const {
|
|
9
|
+
customer,
|
|
10
|
+
data,
|
|
11
|
+
setData
|
|
12
|
+
} = useAppStore(s => ({
|
|
13
|
+
customer: s.customer,
|
|
14
|
+
data: s.data,
|
|
15
|
+
setData: s.setData
|
|
16
|
+
}));
|
|
17
|
+
const lastMessage = data ? data[data.length - 1] : null;
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
const created_at = lastMessage?.created_at;
|
|
20
|
+
let interval = null;
|
|
21
|
+
if (customer?.external_id && created_at) {
|
|
22
|
+
interval = setInterval(() => {
|
|
23
|
+
getNewCustomerConversation(customer.external_id, created_at, {
|
|
24
|
+
fake: useAppStore.getState().fake
|
|
25
|
+
}).then(newData => {
|
|
26
|
+
setData(prevData => {
|
|
27
|
+
const newMessages = newData.page.data;
|
|
28
|
+
const existingIds = new Set(prevData?.map(msg => msg.id));
|
|
29
|
+
const uniqueNewMessages = newMessages.filter(msg => !existingIds.has(msg.id));
|
|
30
|
+
return [...uniqueNewMessages.map(u => ({
|
|
31
|
+
...u,
|
|
32
|
+
created_at: new Date(u.created_at),
|
|
33
|
+
approved: true
|
|
34
|
+
})), ...(prevData ?? [])];
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}, NEW_MESSAGES_CHECK_INTERVAL);
|
|
38
|
+
}
|
|
39
|
+
return () => {
|
|
40
|
+
if (interval) {
|
|
41
|
+
clearInterval(interval);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}, [customer?.external_id, lastMessage?.created_at, setData]);
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=usePolling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useAppStore","getNewCustomerConversation","NEW_MESSAGES_CHECK_INTERVAL","usePolling","customer","data","setData","s","lastMessage","length","created_at","interval","external_id","setInterval","fake","getState","then","newData","prevData","newMessages","page","existingIds","Set","map","msg","id","uniqueNewMessages","filter","has","u","Date","approved","clearInterval"],"sourceRoot":"../../../src","sources":["hooks/usePolling.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,WAAW,QAAQ,aAAU;AACtC,SAASC,0BAA0B,QAAQ,iBAAQ;AAEnD,MAAMC,2BAA2B,GAAG,KAAK;AAEzC,OAAO,SAASC,UAAUA,CAAA,EAAG;EAC3B,MAAM;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGN,WAAW,CAAEO,CAAC,KAAM;IACtDH,QAAQ,EAAEG,CAAC,CAACH,QAAQ;IACpBC,IAAI,EAAEE,CAAC,CAACF,IAAI;IACZC,OAAO,EAAEC,CAAC,CAACD;EACb,CAAC,CAAC,CAAC;EACH,MAAME,WAAW,GAAGH,IAAI,GAAGA,IAAI,CAACA,IAAI,CAACI,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI;EACvDV,SAAS,CAAC,MAAM;IACd,MAAMW,UAAU,GAAGF,WAAW,EAAEE,UAAU;IAC1C,IAAIC,QAA+B,GAAG,IAAI;IAC1C,IAAIP,QAAQ,EAAEQ,WAAW,IAAIF,UAAU,EAAE;MACvCC,QAAQ,GAAGE,WAAW,CAAC,MAAM;QAC3BZ,0BAA0B,CAACG,QAAQ,CAACQ,WAAW,EAAEF,UAAU,EAAE;UAC3DI,IAAI,EAAEd,WAAW,CAACe,QAAQ,CAAC,CAAC,CAACD;QAC/B,CAAC,CAAC,CAACE,IAAI,CAAEC,OAAO,IAAK;UACnBX,OAAO,CAAEY,QAAQ,IAAK;YACpB,MAAMC,WAAW,GAAGF,OAAO,CAACG,IAAI,CAACf,IAAI;YACrC,MAAMgB,WAAW,GAAG,IAAIC,GAAG,CAACJ,QAAQ,EAAEK,GAAG,CAAEC,GAAG,IAAKA,GAAG,CAACC,EAAE,CAAC,CAAC;YAC3D,MAAMC,iBAAiB,GAAGP,WAAW,CAACQ,MAAM,CACzCH,GAAG,IAAK,CAACH,WAAW,CAACO,GAAG,CAACJ,GAAG,CAACC,EAAE,CAClC,CAAC;YACD,OAAO,CACL,GAAGC,iBAAiB,CAACH,GAAG,CAAEM,CAAC,KAAM;cAC/B,GAAGA,CAAC;cACJnB,UAAU,EAAE,IAAIoB,IAAI,CAACD,CAAC,CAACnB,UAAU,CAAC;cAClCqB,QAAQ,EAAE;YACZ,CAAC,CAAC,CAAC,EACH,IAAIb,QAAQ,IAAI,EAAE,CAAC,CACpB;UACH,CAAC,CAAC;QACJ,CAAC,CAAC;MACJ,CAAC,EAAEhB,2BAA2B,CAAC;IACjC;IACA,OAAO,MAAM;MACX,IAAIS,QAAQ,EAAE;QACZqB,aAAa,CAACrB,QAAQ,CAAC;MACzB;IACF,CAAC;EACH,CAAC,EAAE,CAACP,QAAQ,EAAEQ,WAAW,EAAEJ,WAAW,EAAEE,UAAU,EAAEJ,OAAO,CAAC,CAAC;AAC/D","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useAppStore } from "../store.js";
|
|
4
|
+
import { lightTheme, darkTheme } from "../types/Theme.js";
|
|
5
|
+
export function useThemeColors() {
|
|
6
|
+
const {
|
|
7
|
+
theme
|
|
8
|
+
} = useAppStore(s => ({
|
|
9
|
+
theme: s.theme
|
|
10
|
+
}));
|
|
11
|
+
return theme === 'light' ? lightTheme : darkTheme;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=useThemeColors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useAppStore","lightTheme","darkTheme","useThemeColors","theme","s"],"sourceRoot":"../../../src","sources":["hooks/useThemeColors.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,aAAU;AACtC,SAASC,UAAU,EAAEC,SAAS,QAA0B,mBAAgB;AAExE,OAAO,SAASC,cAAcA,CAAA,EAAgB;EAC5C,MAAM;IAAEC;EAAM,CAAC,GAAGJ,WAAW,CAAEK,CAAC,KAAM;IACpCD,KAAK,EAAEC,CAAC,CAACD;EACX,CAAC,CAAC,CAAC;EAEH,OAAOA,KAAK,KAAK,OAAO,GAAGH,UAAU,GAAGC,SAAS;AACnD","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
import "./__dev__.js";
|
|
4
|
+
export { registerComnyx } from "./register.js";
|
|
5
|
+
export { Comnyx } from "./App.js";
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["registerComnyx","Comnyx"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAO,cAAW;AAClB,SAASA,cAAc,QAAQ,eAAY;AAE3C,SAASC,MAAM,QAAQ,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { initApi } from "./api/api.js";
|
|
4
|
+
import { useAppStore } from "./store.js";
|
|
5
|
+
export function registerComnyx(registerOptions) {
|
|
6
|
+
if (!registerOptions.externalId) {
|
|
7
|
+
throw new Error('External ID is required for initialization');
|
|
8
|
+
}
|
|
9
|
+
if (!registerOptions.token) {
|
|
10
|
+
throw new Error('Authentication token is required');
|
|
11
|
+
}
|
|
12
|
+
initApi(registerOptions.token);
|
|
13
|
+
useAppStore.getState().init({
|
|
14
|
+
externalId: registerOptions.externalId
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["initApi","useAppStore","registerComnyx","registerOptions","externalId","Error","token","getState","init"],"sourceRoot":"../../src","sources":["register.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,cAAW;AACnC,SAASC,WAAW,QAAQ,YAAS;AAErC,OAAO,SAASC,cAAcA,CAACC,eAG9B,EAAE;EACD,IAAI,CAACA,eAAe,CAACC,UAAU,EAAE;IAC/B,MAAM,IAAIC,KAAK,CAAC,4CAA4C,CAAC;EAC/D;EACA,IAAI,CAACF,eAAe,CAACG,KAAK,EAAE;IAC1B,MAAM,IAAID,KAAK,CAAC,kCAAkC,CAAC;EACrD;EAEAL,OAAO,CAACG,eAAe,CAACG,KAAK,CAAC;EAC9BL,WAAW,CAACM,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC;IAAEJ,UAAU,EAAED,eAAe,CAACC;EAAW,CAAC,CAAC;AACzE","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createJSONStorage, persist } from 'zustand/middleware';
|
|
4
|
+
import { shallow } from 'zustand/shallow';
|
|
5
|
+
import { createWithEqualityFn } from 'zustand/traditional';
|
|
6
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
7
|
+
const storeCreator = (set, get) => ({
|
|
8
|
+
initialized: false,
|
|
9
|
+
customer: null,
|
|
10
|
+
data: null,
|
|
11
|
+
externalId: null,
|
|
12
|
+
language: 'en',
|
|
13
|
+
theme: 'light',
|
|
14
|
+
fake: false,
|
|
15
|
+
firstMessage: null,
|
|
16
|
+
setData: cb => {
|
|
17
|
+
const newData = cb(get().data);
|
|
18
|
+
set({
|
|
19
|
+
data: newData
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
setFirstMessage: message => {
|
|
23
|
+
set({
|
|
24
|
+
firstMessage: message
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
init: ({
|
|
28
|
+
externalId
|
|
29
|
+
}) => {
|
|
30
|
+
set({
|
|
31
|
+
externalId: externalId,
|
|
32
|
+
initialized: true
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
initForm: createCustomerResponse => {
|
|
36
|
+
set({
|
|
37
|
+
customer: createCustomerResponse
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
setLanguage: language => {
|
|
41
|
+
set({
|
|
42
|
+
language
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
setTheme: theme => {
|
|
46
|
+
set({
|
|
47
|
+
theme
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
setFake: fake => {
|
|
51
|
+
set({
|
|
52
|
+
fake
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export const useAppStore = createWithEqualityFn()(persist(storeCreator, {
|
|
57
|
+
name: 'appStore-9',
|
|
58
|
+
storage: createJSONStorage(() => AsyncStorage),
|
|
59
|
+
skipHydration: false,
|
|
60
|
+
partialize: state => ({
|
|
61
|
+
customer: state.customer,
|
|
62
|
+
externalId: state.externalId,
|
|
63
|
+
data: []
|
|
64
|
+
/* data: state.data
|
|
65
|
+
?.filter((message) => message.approved)
|
|
66
|
+
.map((message) => ({
|
|
67
|
+
...message,
|
|
68
|
+
created_at: message.created_at
|
|
69
|
+
? new Date(message.created_at)
|
|
70
|
+
: undefined,
|
|
71
|
+
})),*/
|
|
72
|
+
})
|
|
73
|
+
}), shallow);
|
|
74
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createJSONStorage","persist","shallow","createWithEqualityFn","AsyncStorage","storeCreator","set","get","initialized","customer","data","externalId","language","theme","fake","firstMessage","setData","cb","newData","setFirstMessage","message","init","initForm","createCustomerResponse","setLanguage","setTheme","setFake","useAppStore","name","storage","skipHydration","partialize","state"],"sourceRoot":"../../src","sources":["store.ts"],"mappings":";;AAAA,SAASA,iBAAiB,EAAEC,OAAO,QAAQ,oBAAoB;AAC/D,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,oBAAoB,QAAQ,qBAAqB;AAE1D,OAAOC,YAAY,MAAM,2CAA2C;AA2BpE,MAAMC,YAAyC,GAAGA,CAACC,GAAG,EAAEC,GAAG,MAAM;EAC/DC,WAAW,EAAE,KAAK;EAClBC,QAAQ,EAAE,IAAI;EACdC,IAAI,EAAE,IAAI;EACVC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,KAAK;EACXC,YAAY,EAAE,IAAI;EAClBC,OAAO,EAAGC,EAAE,IAAK;IACf,MAAMC,OAAO,GAAGD,EAAE,CAACV,GAAG,CAAC,CAAC,CAACG,IAAI,CAAC;IAC9BJ,GAAG,CAAC;MAAEI,IAAI,EAAEQ;IAAQ,CAAC,CAAC;EACxB,CAAC;EACDC,eAAe,EAAGC,OAAO,IAAK;IAC5Bd,GAAG,CAAC;MAAES,YAAY,EAAEK;IAAQ,CAAC,CAAC;EAChC,CAAC;EACDC,IAAI,EAAEA,CAAC;IAAEV;EAAmC,CAAC,KAAK;IAChDL,GAAG,CAAC;MAAEK,UAAU,EAAEA,UAAU;MAAEH,WAAW,EAAE;IAAK,CAAC,CAAC;EACpD,CAAC;EACDc,QAAQ,EAAGC,sBAAgC,IAAK;IAC9CjB,GAAG,CAAC;MAAEG,QAAQ,EAAEc;IAAuB,CAAC,CAAC;EAC3C,CAAC;EACDC,WAAW,EAAGZ,QAAsB,IAAK;IACvCN,GAAG,CAAC;MAAEM;IAAS,CAAC,CAAC;EACnB,CAAC;EACDa,QAAQ,EAAGZ,KAAuB,IAAK;IACrCP,GAAG,CAAC;MAAEO;IAAM,CAAC,CAAC;EAChB,CAAC;EACDa,OAAO,EAAGZ,IAAa,IAAK;IAC1BR,GAAG,CAAC;MAAEQ;IAAK,CAAC,CAAC;EACf;AACF,CAAC,CAAC;AAEF,OAAO,MAAMa,WAAW,GAAGxB,oBAAoB,CAAgB,CAAC,CAC9DF,OAAO,CAACI,YAAY,EAAE;EACpBuB,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE7B,iBAAiB,CAAC,MAAMI,YAAY,CAAC;EAC9C0B,aAAa,EAAE,KAAK;EACpBC,UAAU,EAAGC,KAAK,KAAM;IACtBvB,QAAQ,EAAEuB,KAAK,CAACvB,QAAQ;IACxBE,UAAU,EAAEqB,KAAK,CAACrB,UAAU;IAC5BD,IAAI,EAAE;IACN;AACN;AACA;AACA;AACA;AACA;AACA;AACA;EACI,CAAC;AACH,CAAC,CAAC,EACFR,OACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/ApiOptions.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/Conversation.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/Customer.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/Language.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/LocalizationKeys.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/MessageResponse.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const lightTheme = {
|
|
4
|
+
primary: '#4361EE',
|
|
5
|
+
secondary: '#3A0CA3',
|
|
6
|
+
background: '#FFFFFF',
|
|
7
|
+
text: '#212529',
|
|
8
|
+
error: '#FF3B30',
|
|
9
|
+
success: '#34C759',
|
|
10
|
+
warning: '#FF9500',
|
|
11
|
+
info: '#007AFF',
|
|
12
|
+
border: '#E9ECEF'
|
|
13
|
+
};
|
|
14
|
+
export const darkTheme = {
|
|
15
|
+
primary: '#4361EE',
|
|
16
|
+
secondary: '#3A0CA3',
|
|
17
|
+
background: '#121212',
|
|
18
|
+
text: '#FFFFFF',
|
|
19
|
+
error: '#FF453A',
|
|
20
|
+
success: '#32D74B',
|
|
21
|
+
warning: '#FF9F0A',
|
|
22
|
+
info: '#0A84FF',
|
|
23
|
+
border: '#2C2C2C'
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["lightTheme","primary","secondary","background","text","error","success","warning","info","border","darkTheme"],"sourceRoot":"../../../src","sources":["types/Theme.ts"],"mappings":";;AAYA,OAAO,MAAMA,UAAuB,GAAG;EACrCC,OAAO,EAAE,SAAS;EAClBC,SAAS,EAAE,SAAS;EACpBC,UAAU,EAAE,SAAS;EACrBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE,SAAS;EAChBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE;AACV,CAAC;AAED,OAAO,MAAMC,SAAsB,GAAG;EACpCT,OAAO,EAAE,SAAS;EAClBC,SAAS,EAAE,SAAS;EACpBC,UAAU,EAAE,SAAS;EACrBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE,SAAS;EAChBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Converts a Date object to Unix timestamp (seconds)
|
|
5
|
+
* @param date - The Date object to convert
|
|
6
|
+
* @returns Unix timestamp in seconds, or undefined if date is undefined
|
|
7
|
+
*/
|
|
8
|
+
export const dateToUnixTimestamp = date => {
|
|
9
|
+
if (!date) return undefined;
|
|
10
|
+
return Math.floor(date.getTime() / 1000);
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["dateToUnixTimestamp","date","undefined","Math","floor","getTime"],"sourceRoot":"../../../src","sources":["utils/date.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,mBAAmB,GAC9BC,IAAsB,IACC;EACvB,IAAI,CAACA,IAAI,EAAE,OAAOC,SAAS;EAC3B,OAAOC,IAAI,CAACC,KAAK,CAACH,IAAI,CAACI,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;AAC1C,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LanguageCode } from './types/Language';
|
|
2
|
+
interface ComnyxProps {
|
|
3
|
+
language?: LanguageCode;
|
|
4
|
+
theme?: 'light' | 'dark';
|
|
5
|
+
fake?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function Comnyx({ language, theme, fake, }: ComnyxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=App.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/App.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMrD,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAe,EACf,KAAc,EACd,IAAY,GACb,EAAE,WAAW,2CAgCb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__dev__.d.ts","sourceRoot":"","sources":["../../../../src/__dev__.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/api/api.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa,+BAOjB,CAAC;AAEH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,QAGpC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConversationResponse } from '../types/Conversation';
|
|
2
|
+
import type { ApiOptions } from '../types/ApiOptions';
|
|
3
|
+
export declare function getCustomerConversation(externalId: string, created_at: Date | undefined, page: number | undefined, options: ApiOptions & {
|
|
4
|
+
per_page?: number;
|
|
5
|
+
}): Promise<ConversationResponse>;
|
|
6
|
+
export declare function getNewCustomerConversation(externalId: string, created_at: Date | undefined, options: ApiOptions): Promise<ConversationResponse>;
|
|
7
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../../../src/api/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUtD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,IAAI,GAAG,SAAS,EAC5B,IAAI,oBAAY,EAChB,OAAO,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1C,OAAO,CAAC,oBAAoB,CAAC,CAiB/B;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,IAAI,GAAG,SAAS,EAC5B,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,oBAAoB,CAAC,CAa/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CreateCustomerRequest, Customer } from '../types/Customer';
|
|
2
|
+
import type { ApiOptions } from '../types/ApiOptions';
|
|
3
|
+
export declare function createCustomer(customerData: CreateCustomerRequest, options: ApiOptions): Promise<Customer>;
|
|
4
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../../src/api/customers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,wBAAgB,cAAc,CAC5B,YAAY,EAAE,qBAAqB,EACnC,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,QAAQ,CAAC,CAOnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MessageResponse } from '../types/MessageResponse';
|
|
2
|
+
import type { ApiOptions } from '../types/ApiOptions';
|
|
3
|
+
export declare function sendCustomerMessage(externalId: string, content: string, options: ApiOptions): Promise<MessageResponse>;
|
|
4
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/api/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,eAAe,CAAC,CAuB1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
3
|
+
import type { LocalizationKeys } from '../types/LocalizationKeys';
|
|
4
|
+
interface AppTextProps extends Omit<TextProps, 'children'> {
|
|
5
|
+
localization?: keyof LocalizationKeys;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function AppText({ style, localization, children, ...props }: AppTextProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=AppText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppText.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppText.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,UAAU,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACxD,YAAY,CAAC,EAAE,MAAM,gBAAgB,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,YAAY,kDAyBd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatList.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,QAAQ,4CA4NvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomerForm.tsx"],"names":[],"mappings":"AAeA,wBAAgB,YAAY,4CAkJ3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyList.d.ts","sourceRoot":"","sources":["../../../../../src/components/EmptyList.tsx"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,4CAaxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitFailed.d.ts","sourceRoot":"","sources":["../../../../../src/components/InitFailed.tsx"],"names":[],"mappings":"AAIA,UAAU,eAAe;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,EAAE,aAAa,EAAE,EAAE,eAAe,2CAkB5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput.tsx"],"names":[],"mappings":"AAcA,wBAAgB,YAAY,CAAC,EAC3B,cAAc,GACf,EAAE;IACD,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C,2CAsFA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAOpE,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,2CAsErE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/constants/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAoO1D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ConversationMessage, ConversationResponse } from '../../types/Conversation';
|
|
2
|
+
export declare const getFakeConversations: (per_page: number, from: number, to: number, random?: boolean) => ConversationMessage[];
|
|
3
|
+
export declare const getFakeConversationResponse: (per_page: number, from: number, to: number, random?: boolean) => Promise<ConversationResponse>;
|
|
4
|
+
export declare const getFakePaginatedConversationResponse: (page: number, per_page?: number) => Promise<ConversationResponse>;
|
|
5
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../../../../src/data/fake/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AA4elC,eAAO,MAAM,oBAAoB,aACrB,MAAM,QACV,MAAM,MACR,MAAM,WACF,OAAO,KACd,mBAAmB,EAErB,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,MAAM,QACV,MAAM,MACR,MAAM,WACF,OAAO,KACd,QAAQ,oBAAoB,CAoB9B,CAAC;AAEF,eAAO,MAAM,oCAAoC,SACzC,MAAM,aACF,MAAM,KACf,QAAQ,oBAAoB,CAsB9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../../../src/data/fake/customers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE5E,wBAAgB,eAAe,CAAC,YAAY,EAAE,qBAAqB,GAAG,QAAQ,CAgB7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/data/fake/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CA6DvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocalize.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLocalize.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,wBAAgB,WAAW,mBAMR,MAAM,gBAAgB,KAAG,MAAM,CAMjD"}
|