codicent-app-sdk 0.3.120 → 0.4.1
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/README.md +173 -26
- package/dist/cjs/_virtual/jsQR.js +1 -0
- package/dist/cjs/bootstrap.d.ts +112 -0
- package/dist/cjs/bootstrap.d.ts.map +1 -0
- package/dist/cjs/bootstrap.js +1 -0
- package/dist/cjs/components/AiInput.js +1 -1
- package/dist/cjs/components/AudioIcon.js +1 -1
- package/dist/cjs/components/BulkUploadDialog.d.ts +16 -0
- package/dist/cjs/components/BulkUploadDialog.d.ts.map +1 -0
- package/dist/cjs/components/BulkUploadDialog.js +1 -0
- package/dist/cjs/components/ChatInput.js +1 -1
- package/dist/cjs/components/ChatMessage.js +1 -1
- package/dist/cjs/components/CombinedPlaceholderDialog.js +1 -1
- package/dist/cjs/components/ErrorBoundary.d.ts +17 -0
- package/dist/cjs/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/cjs/components/ErrorBoundary.js +1 -0
- package/dist/cjs/components/Footer.js +1 -1
- package/dist/cjs/components/GenericJsonRenderer.d.ts +20 -0
- package/dist/cjs/components/GenericJsonRenderer.d.ts.map +1 -0
- package/dist/cjs/components/GenericJsonRenderer.js +1 -0
- package/dist/cjs/components/Header.js +1 -1
- package/dist/cjs/components/HtmlView.js +1 -1
- package/dist/cjs/components/LanguageSelector.d.ts +11 -0
- package/dist/cjs/components/LanguageSelector.d.ts.map +1 -0
- package/dist/cjs/components/LanguageSelector.js +1 -0
- package/dist/cjs/components/ListView.d.ts +39 -0
- package/dist/cjs/components/ListView.d.ts.map +1 -0
- package/dist/cjs/components/ListView.js +1 -0
- package/dist/cjs/components/MessageInput.js +1 -1
- package/dist/cjs/components/MessageItem.js +1 -1
- package/dist/cjs/components/OfflineMessage.d.ts +6 -0
- package/dist/cjs/components/OfflineMessage.d.ts.map +1 -0
- package/dist/cjs/components/OfflineMessage.js +1 -0
- package/dist/cjs/components/Profile.js +1 -1
- package/dist/cjs/components/Prompt.js +1 -1
- package/dist/cjs/components/QrScanner.d.ts +12 -0
- package/dist/cjs/components/QrScanner.d.ts.map +1 -0
- package/dist/cjs/components/QrScanner.js +1 -0
- package/dist/cjs/components/RecordModal.d.ts +13 -0
- package/dist/cjs/components/RecordModal.d.ts.map +1 -0
- package/dist/cjs/components/RecordModal.js +1 -0
- package/dist/cjs/components/SnapFooter.js +1 -1
- package/dist/cjs/components/TextHeader.js +1 -1
- package/dist/cjs/components/TypingIndicator.js +1 -1
- package/dist/cjs/components/UploadFile.js +1 -1
- package/dist/cjs/components/UrlProcessor.js +1 -1
- package/dist/cjs/components/VoiceIcon.js +1 -1
- package/dist/cjs/components/index.d.ts +9 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/config/index.d.ts +1 -0
- package/dist/cjs/config/index.d.ts.map +1 -1
- package/dist/cjs/config/index.js +1 -1
- package/dist/cjs/hooks/index.d.ts +3 -0
- package/dist/cjs/hooks/index.d.ts.map +1 -1
- package/dist/cjs/hooks/useAuthState.d.ts.map +1 -1
- package/dist/cjs/hooks/useAuthState.js +1 -1
- package/dist/cjs/hooks/useCodicentState.js +1 -1
- package/dist/cjs/hooks/useDebugLogs.d.ts +6 -0
- package/dist/cjs/hooks/useDebugLogs.d.ts.map +1 -0
- package/dist/cjs/hooks/useDebugLogs.js +1 -0
- package/dist/cjs/hooks/useObserveDataSchemas.d.ts +42 -0
- package/dist/cjs/hooks/useObserveDataSchemas.d.ts.map +1 -0
- package/dist/cjs/hooks/useObserveDataSchemas.js +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@auth0/auth0-react/dist/auth0-react.esm.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-button/lib/contexts/ButtonContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/Checkbox.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/renderCheckbox.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/useCheckbox.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/useCheckboxStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-combobox/lib/components/Combobox/useCombobox.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/Dialog/Dialog.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/Dialog/renderDialog.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/Dialog/useDialog.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/Dialog/useDialogContextValues.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogActions/DialogActions.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogActions/renderDialogActions.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogActions/useDialogActions.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogActions/useDialogActionsStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogBackdropMotion.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogBody/DialogBody.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogBody/renderDialogBody.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogBody/useDialogBody.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogBody/useDialogBodyStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogContent/DialogContent.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogContent/renderDialogContent.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogContent/useDialogContent.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogContent/useDialogContentStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/DialogSurface.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/renderDialogSurface.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/useDialogSurface.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/useDialogSurfaceContextValues.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogSurfaceMotion.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/DialogTitle.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/renderDialogTitle.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/useDialogTitle.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/useDialogTitleStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTrigger/DialogTrigger.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTrigger/renderDialogTrigger.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/DialogTrigger/useDialogTrigger.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/components/MotionRefForwarder.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/contexts/dialogContext.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/contexts/dialogSurfaceContext.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/utils/useDisableBodyScroll.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/utils/useDisableBodyScroll.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-dialog/lib/utils/useFocusFirstElement.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/contexts/IconDirectionContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-0.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-1.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-14.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-3.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-5.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-6.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-7.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-menu/lib/components/Menu/useMenu.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-menu/lib/components/MenuItem/useMenuItem.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/MessageBarActions.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/renderMessageBarActions.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/useMessageBarActions.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/useMessageBarActionsContextValues.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/useMessageBarActionsStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/MessageBarTitle.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/renderMessageBarTitle.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/useMessageBarTitle.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/useMessageBarTitleStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-motion/lib/slots/presenceMotionSlot.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-motion-components-preview/lib/components/Fade/Fade.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-positioning/lib/utils/mergeArrowOffset.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/FluentProvider.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/createCSSRuleFromTheme.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/renderFluentProvider.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProvider.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderContextValues.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderThemeStyleTag.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-search/lib/components/SearchBox/useSearchBox.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-shared-contexts/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-shared-contexts/lib/OverridesContext/OverridesContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-shared-contexts/lib/ProviderContext/ProviderContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-shared-contexts/lib/ThemeClassNameContext/ThemeClassNameContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-shared-contexts/lib/ThemeContext/ThemeContext.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-shared-contexts/lib/TooltipVisibilityContext/TooltipContext.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-tabster/lib/hooks/useIsNavigatingWithKeyboard.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-timepicker-compat/lib/components/TimePicker/useTimePicker.js +1 -1
- package/dist/cjs/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/Tooltip.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/private/constants.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/renderTooltip.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/useTooltip.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/useTooltipStyles.styles.js +1 -0
- package/dist/cjs/node_modules/@fluentui/react-utilities/lib/ssr/SSRContext.js +1 -1
- package/dist/cjs/node_modules/@fluentui/tokens/lib/alias/lightColor.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/alias/lightColorPalette.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/borderRadius.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/colorPalette.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/colors.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/curves.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/durations.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/fonts.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/spacings.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/global/strokeWidths.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/sharedColorNames.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/statusColorMapping.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/utils/createLightTheme.js +1 -0
- package/dist/cjs/node_modules/@fluentui/tokens/lib/utils/shadows.js +1 -0
- package/dist/cjs/node_modules/@griffel/react/TextDirectionContext.esm.js +1 -1
- package/dist/cjs/node_modules/jsqr/dist/jsQR.js +1 -0
- package/dist/cjs/pages/AppFrame.js +1 -1
- package/dist/cjs/pages/Chat.js +1 -1
- package/dist/cjs/pages/Compose.js +1 -1
- package/dist/cjs/pages/CrmPage.js +1 -1
- package/dist/cjs/pages/CrmPagePersistent.js +1 -1
- package/dist/cjs/pages/Debug.d.ts +4 -0
- package/dist/cjs/pages/Debug.d.ts.map +1 -0
- package/dist/cjs/pages/Debug.js +1 -0
- package/dist/cjs/pages/FormAccept.js +1 -1
- package/dist/cjs/pages/FormInvite.js +1 -1
- package/dist/cjs/pages/FormPage.d.ts +11 -0
- package/dist/cjs/pages/FormPage.d.ts.map +1 -0
- package/dist/cjs/pages/FormPage.js +1 -0
- package/dist/cjs/pages/Help.d.ts +7 -0
- package/dist/cjs/pages/Help.d.ts.map +1 -0
- package/dist/cjs/pages/Help.js +1 -0
- package/dist/cjs/pages/HtmlViewer.js +1 -1
- package/dist/cjs/pages/Login.js +1 -1
- package/dist/cjs/pages/Purchase.js +1 -1
- package/dist/cjs/pages/QrScan.d.ts +12 -0
- package/dist/cjs/pages/QrScan.d.ts.map +1 -0
- package/dist/cjs/pages/QrScan.js +1 -0
- package/dist/cjs/pages/Sales.js +1 -1
- package/dist/cjs/pages/SchemaEditor.d.ts +2 -0
- package/dist/cjs/pages/SchemaEditor.d.ts.map +1 -0
- package/dist/cjs/pages/SchemaEditor.js +1 -0
- package/dist/cjs/pages/Search.js +1 -1
- package/dist/cjs/pages/Snap.js +1 -1
- package/dist/cjs/pages/index.d.ts +5 -0
- package/dist/cjs/pages/index.d.ts.map +1 -1
- package/dist/cjs/services/codicent.d.ts +6 -0
- package/dist/cjs/services/codicent.d.ts.map +1 -1
- package/dist/cjs/services/codicent.js +1 -1
- package/dist/cjs/types/index.d.ts +188 -0
- package/dist/cjs/types/index.d.ts.map +1 -0
- package/dist/cjs/utils/appState.d.ts.map +1 -1
- package/dist/cjs/utils/appState.js +1 -1
- package/dist/esm/_virtual/jsQR.js +1 -0
- package/dist/esm/bootstrap.d.ts +112 -0
- package/dist/esm/bootstrap.d.ts.map +1 -0
- package/dist/esm/bootstrap.js +1 -0
- package/dist/esm/components/AiInput.js +1 -1
- package/dist/esm/components/AudioIcon.js +1 -1
- package/dist/esm/components/BulkUploadDialog.d.ts +16 -0
- package/dist/esm/components/BulkUploadDialog.d.ts.map +1 -0
- package/dist/esm/components/BulkUploadDialog.js +1 -0
- package/dist/esm/components/ChatInput.js +1 -1
- package/dist/esm/components/ChatMessage.js +1 -1
- package/dist/esm/components/CombinedPlaceholderDialog.js +1 -1
- package/dist/esm/components/ErrorBoundary.d.ts +17 -0
- package/dist/esm/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/esm/components/ErrorBoundary.js +1 -0
- package/dist/esm/components/Footer.js +1 -1
- package/dist/esm/components/GenericJsonRenderer.d.ts +20 -0
- package/dist/esm/components/GenericJsonRenderer.d.ts.map +1 -0
- package/dist/esm/components/GenericJsonRenderer.js +1 -0
- package/dist/esm/components/Header.js +1 -1
- package/dist/esm/components/HtmlView.js +1 -1
- package/dist/esm/components/LanguageSelector.d.ts +11 -0
- package/dist/esm/components/LanguageSelector.d.ts.map +1 -0
- package/dist/esm/components/LanguageSelector.js +1 -0
- package/dist/esm/components/ListView.d.ts +39 -0
- package/dist/esm/components/ListView.d.ts.map +1 -0
- package/dist/esm/components/ListView.js +1 -0
- package/dist/esm/components/MessageInput.js +1 -1
- package/dist/esm/components/MessageItem.js +1 -1
- package/dist/esm/components/OfflineMessage.d.ts +6 -0
- package/dist/esm/components/OfflineMessage.d.ts.map +1 -0
- package/dist/esm/components/OfflineMessage.js +1 -0
- package/dist/esm/components/Profile.js +1 -1
- package/dist/esm/components/Prompt.js +1 -1
- package/dist/esm/components/QrScanner.d.ts +12 -0
- package/dist/esm/components/QrScanner.d.ts.map +1 -0
- package/dist/esm/components/QrScanner.js +1 -0
- package/dist/esm/components/RecordModal.d.ts +13 -0
- package/dist/esm/components/RecordModal.d.ts.map +1 -0
- package/dist/esm/components/RecordModal.js +1 -0
- package/dist/esm/components/SnapFooter.js +1 -1
- package/dist/esm/components/TextHeader.js +1 -1
- package/dist/esm/components/TypingIndicator.js +1 -1
- package/dist/esm/components/UploadFile.js +1 -1
- package/dist/esm/components/UrlProcessor.js +1 -1
- package/dist/esm/components/VoiceIcon.js +1 -1
- package/dist/esm/components/index.d.ts +9 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/config/index.d.ts +1 -0
- package/dist/esm/config/index.d.ts.map +1 -1
- package/dist/esm/config/index.js +1 -1
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -1
- package/dist/esm/hooks/useAuthState.d.ts.map +1 -1
- package/dist/esm/hooks/useAuthState.js +1 -1
- package/dist/esm/hooks/useCodicentState.js +1 -1
- package/dist/esm/hooks/useDebugLogs.d.ts +6 -0
- package/dist/esm/hooks/useDebugLogs.d.ts.map +1 -0
- package/dist/esm/hooks/useDebugLogs.js +1 -0
- package/dist/esm/hooks/useObserveDataSchemas.d.ts +42 -0
- package/dist/esm/hooks/useObserveDataSchemas.d.ts.map +1 -0
- package/dist/esm/hooks/useObserveDataSchemas.js +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/@auth0/auth0-react/dist/auth0-react.esm.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-button/lib/contexts/ButtonContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/Checkbox.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/renderCheckbox.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/useCheckbox.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-checkbox/lib/components/Checkbox/useCheckboxStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-combobox/lib/components/Combobox/useCombobox.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/Dialog/Dialog.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/Dialog/renderDialog.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/Dialog/useDialog.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/Dialog/useDialogContextValues.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogActions/DialogActions.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogActions/renderDialogActions.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogActions/useDialogActions.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogActions/useDialogActionsStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogBackdropMotion.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogBody/DialogBody.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogBody/renderDialogBody.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogBody/useDialogBody.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogBody/useDialogBodyStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogContent/DialogContent.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogContent/renderDialogContent.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogContent/useDialogContent.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogContent/useDialogContentStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/DialogSurface.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/renderDialogSurface.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/useDialogSurface.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/useDialogSurfaceContextValues.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogSurfaceMotion.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/DialogTitle.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/renderDialogTitle.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/useDialogTitle.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTitle/useDialogTitleStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTrigger/DialogTrigger.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTrigger/renderDialogTrigger.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/DialogTrigger/useDialogTrigger.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/components/MotionRefForwarder.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/contexts/dialogContext.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/contexts/dialogSurfaceContext.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/utils/useDisableBodyScroll.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/utils/useDisableBodyScroll.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-dialog/lib/utils/useFocusFirstElement.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-icons/lib/contexts/IconDirectionContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-0.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-1.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-14.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-3.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-5.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-6.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-7.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-menu/lib/components/Menu/useMenu.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-menu/lib/components/MenuItem/useMenuItem.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/MessageBarActions.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/renderMessageBarActions.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/useMessageBarActions.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/useMessageBarActionsContextValues.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarActions/useMessageBarActionsStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/MessageBarTitle.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/renderMessageBarTitle.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/useMessageBarTitle.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-message-bar/lib/components/MessageBarTitle/useMessageBarTitleStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-motion/lib/slots/presenceMotionSlot.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-motion-components-preview/lib/components/Fade/Fade.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-positioning/lib/utils/mergeArrowOffset.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/FluentProvider.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/createCSSRuleFromTheme.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/renderFluentProvider.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProvider.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderContextValues.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-provider/lib/components/FluentProvider/useFluentProviderThemeStyleTag.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-search/lib/components/SearchBox/useSearchBox.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-shared-contexts/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-shared-contexts/lib/OverridesContext/OverridesContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-shared-contexts/lib/ProviderContext/ProviderContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-shared-contexts/lib/ThemeClassNameContext/ThemeClassNameContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-shared-contexts/lib/ThemeContext/ThemeContext.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-shared-contexts/lib/TooltipVisibilityContext/TooltipContext.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-tabster/lib/hooks/useIsNavigatingWithKeyboard.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-timepicker-compat/lib/components/TimePicker/useTimePicker.js +1 -1
- package/dist/esm/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/Tooltip.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/private/constants.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/renderTooltip.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/useTooltip.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-tooltip/lib/components/Tooltip/useTooltipStyles.styles.js +1 -0
- package/dist/esm/node_modules/@fluentui/react-utilities/lib/ssr/SSRContext.js +1 -1
- package/dist/esm/node_modules/@fluentui/tokens/lib/alias/lightColor.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/alias/lightColorPalette.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/borderRadius.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/colorPalette.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/colors.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/curves.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/durations.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/fonts.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/spacings.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/global/strokeWidths.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/sharedColorNames.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/statusColorMapping.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/utils/createLightTheme.js +1 -0
- package/dist/esm/node_modules/@fluentui/tokens/lib/utils/shadows.js +1 -0
- package/dist/esm/node_modules/@griffel/react/TextDirectionContext.esm.js +1 -1
- package/dist/esm/node_modules/jsqr/dist/jsQR.js +1 -0
- package/dist/esm/pages/AppFrame.js +1 -1
- package/dist/esm/pages/Chat.js +1 -1
- package/dist/esm/pages/Compose.js +1 -1
- package/dist/esm/pages/CrmPage.js +1 -1
- package/dist/esm/pages/CrmPagePersistent.js +1 -1
- package/dist/esm/pages/Debug.d.ts +4 -0
- package/dist/esm/pages/Debug.d.ts.map +1 -0
- package/dist/esm/pages/Debug.js +1 -0
- package/dist/esm/pages/FormAccept.js +1 -1
- package/dist/esm/pages/FormInvite.js +1 -1
- package/dist/esm/pages/FormPage.d.ts +11 -0
- package/dist/esm/pages/FormPage.d.ts.map +1 -0
- package/dist/esm/pages/FormPage.js +1 -0
- package/dist/esm/pages/Help.d.ts +7 -0
- package/dist/esm/pages/Help.d.ts.map +1 -0
- package/dist/esm/pages/Help.js +1 -0
- package/dist/esm/pages/HtmlViewer.js +1 -1
- package/dist/esm/pages/Login.js +1 -1
- package/dist/esm/pages/Purchase.js +1 -1
- package/dist/esm/pages/QrScan.d.ts +12 -0
- package/dist/esm/pages/QrScan.d.ts.map +1 -0
- package/dist/esm/pages/QrScan.js +1 -0
- package/dist/esm/pages/Sales.js +1 -1
- package/dist/esm/pages/SchemaEditor.d.ts +2 -0
- package/dist/esm/pages/SchemaEditor.d.ts.map +1 -0
- package/dist/esm/pages/SchemaEditor.js +1 -0
- package/dist/esm/pages/Search.js +1 -1
- package/dist/esm/pages/Snap.js +1 -1
- package/dist/esm/pages/index.d.ts +5 -0
- package/dist/esm/pages/index.d.ts.map +1 -1
- package/dist/esm/services/codicent.d.ts +6 -0
- package/dist/esm/services/codicent.d.ts.map +1 -1
- package/dist/esm/services/codicent.js +1 -1
- package/dist/esm/types/index.d.ts +188 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/utils/appState.d.ts.map +1 -1
- package/dist/esm/utils/appState.js +1 -1
- package/dist/index.d.ts +521 -28
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ComponentType, PropsWithChildren, ReactNode, FC } from 'react';
|
|
3
|
+
import React__default, { ComponentType, PropsWithChildren, ReactNode, Component, ErrorInfo, FC } from 'react';
|
|
4
4
|
import { ToolDefinitionType } from '@openai/realtime-api-beta/dist/lib/client';
|
|
5
5
|
import { RedirectLoginOptions, AppState, Auth0ContextInterface } from '@auth0/auth0-react';
|
|
6
|
-
import { State, StateMachine } from 'statechart-lib';
|
|
6
|
+
import { State as State$1, StateMachine } from 'statechart-lib';
|
|
7
7
|
export { State, StateMachine } from 'statechart-lib';
|
|
8
8
|
import { DatePickerProps } from '@fluentui/react-datepicker-compat';
|
|
9
9
|
import { IColorPickerProps } from '@fluentui/react';
|
|
10
10
|
import { TimePickerProps } from '@fluentui/react-timepicker-compat';
|
|
11
11
|
import { BrandVariants, ToastIntent } from '@fluentui/react-components';
|
|
12
|
+
import { Root } from 'react-dom/client';
|
|
12
13
|
|
|
13
14
|
declare const setBaseUrl: (url: string) => void;
|
|
14
15
|
interface UserInfo {
|
|
@@ -35,7 +36,7 @@ interface AppInfo {
|
|
|
35
36
|
title: string;
|
|
36
37
|
logo: string;
|
|
37
38
|
}
|
|
38
|
-
interface Form {
|
|
39
|
+
interface Form$1 {
|
|
39
40
|
name: string;
|
|
40
41
|
prompt: string;
|
|
41
42
|
title: string;
|
|
@@ -59,6 +60,7 @@ interface CodicentServiceOptions {
|
|
|
59
60
|
BUTTON_TAG: string;
|
|
60
61
|
STRIPE_PUBLIC_KEY: string;
|
|
61
62
|
STRIPE_SOURCE?: string;
|
|
63
|
+
STRIPE_TRIAL_PERIOD_DAYS?: number;
|
|
62
64
|
SUBSCRIPTION_NEEDED: boolean;
|
|
63
65
|
USER_PREFIX: string;
|
|
64
66
|
ANONYMOUS_TOKEN?: string;
|
|
@@ -69,6 +71,11 @@ declare class CodicentService {
|
|
|
69
71
|
readOneDataMessage: (id: string) => Promise<DataMessage | null>;
|
|
70
72
|
updateDataMessage: (id: string, data: object, codicent?: string) => Promise<string>;
|
|
71
73
|
deleteDataMessage: (id: string, codicent?: string) => Promise<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Gets the JSON Schema for a given data tag.
|
|
76
|
+
* Schemas are stored as data messages with #schema #tagname tags.
|
|
77
|
+
*/
|
|
78
|
+
getSchema: (tag: string, codicent?: string) => Promise<object | null>;
|
|
72
79
|
codicent: string;
|
|
73
80
|
private options;
|
|
74
81
|
onUnauthorized?: () => void;
|
|
@@ -150,8 +157,8 @@ declare class CodicentService {
|
|
|
150
157
|
* @param pollingInterval - Interval between poll requests in milliseconds (default: 2 seconds)
|
|
151
158
|
*/
|
|
152
159
|
static getMiniChatReply: (message: string, project?: string, messageId?: string, maxPollingTime?: number, pollingInterval?: number) => Promise<string | undefined>;
|
|
153
|
-
getForms: () => Promise<Form[]>;
|
|
154
|
-
getFormById: (id: string) => Promise<Form>;
|
|
160
|
+
getForms: () => Promise<Form$1[]>;
|
|
161
|
+
getFormById: (id: string) => Promise<Form$1>;
|
|
155
162
|
private handleUnauthorized;
|
|
156
163
|
getTodoStatus: (messageId: string) => Promise<"done" | "undone" | "unknown">;
|
|
157
164
|
updateTodoStatus: (messageId: string, status: "done" | "undone") => Promise<boolean>;
|
|
@@ -368,26 +375,26 @@ interface StateContext {
|
|
|
368
375
|
needsValidation?: boolean;
|
|
369
376
|
}
|
|
370
377
|
interface AppStateDefinition {
|
|
371
|
-
initial: State;
|
|
372
|
-
notAuthenticated: State;
|
|
373
|
-
authenticating: State;
|
|
374
|
-
authenticated: State;
|
|
375
|
-
registering: State;
|
|
376
|
-
registered: State;
|
|
377
|
-
checkingPurchase: State;
|
|
378
|
-
needsPurchase: State;
|
|
379
|
-
gettingApps: State;
|
|
380
|
-
checkingAccess: State;
|
|
381
|
-
noAccess: State;
|
|
382
|
-
error: State;
|
|
383
|
-
hasAccess: State;
|
|
384
|
-
loadingUser: State;
|
|
385
|
-
loggingOut: State;
|
|
386
|
-
creatingApp: State;
|
|
387
|
-
checkingCodicentAccess: State;
|
|
388
|
-
anonymous: State;
|
|
389
|
-
restoringFromCache: State;
|
|
390
|
-
validatingCache: State;
|
|
378
|
+
initial: State$1;
|
|
379
|
+
notAuthenticated: State$1;
|
|
380
|
+
authenticating: State$1;
|
|
381
|
+
authenticated: State$1;
|
|
382
|
+
registering: State$1;
|
|
383
|
+
registered: State$1;
|
|
384
|
+
checkingPurchase: State$1;
|
|
385
|
+
needsPurchase: State$1;
|
|
386
|
+
gettingApps: State$1;
|
|
387
|
+
checkingAccess: State$1;
|
|
388
|
+
noAccess: State$1;
|
|
389
|
+
error: State$1;
|
|
390
|
+
hasAccess: State$1;
|
|
391
|
+
loadingUser: State$1;
|
|
392
|
+
loggingOut: State$1;
|
|
393
|
+
creatingApp: State$1;
|
|
394
|
+
checkingCodicentAccess: State$1;
|
|
395
|
+
anonymous: State$1;
|
|
396
|
+
restoringFromCache: State$1;
|
|
397
|
+
validatingCache: State$1;
|
|
391
398
|
}
|
|
392
399
|
declare class AppStateMachine extends StateMachine {
|
|
393
400
|
context: StateContext;
|
|
@@ -569,14 +576,14 @@ declare class CacheManager {
|
|
|
569
576
|
}
|
|
570
577
|
declare const stateMachineCacheManager: CacheManager;
|
|
571
578
|
|
|
572
|
-
interface Message$
|
|
579
|
+
interface Message$2 {
|
|
573
580
|
id: string;
|
|
574
581
|
sender: "user" | "bot";
|
|
575
582
|
content: string;
|
|
576
583
|
isNew?: boolean;
|
|
577
584
|
}
|
|
578
585
|
declare function useChat(state: AppStateMachine, temporaryCodicent?: string): {
|
|
579
|
-
messages: Message$
|
|
586
|
+
messages: Message$2[];
|
|
580
587
|
isBotTyping: boolean;
|
|
581
588
|
handleSend: (text: string, retryCount?: number) => void;
|
|
582
589
|
newChat: () => void;
|
|
@@ -759,6 +766,51 @@ declare const useToaster: () => {
|
|
|
759
766
|
ToasterComponent: () => react_jsx_runtime.JSX.Element;
|
|
760
767
|
};
|
|
761
768
|
|
|
769
|
+
declare const useDebugLogs: () => {
|
|
770
|
+
logs: string[];
|
|
771
|
+
clearLogs: () => void;
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
interface SchemaItem {
|
|
775
|
+
title: string;
|
|
776
|
+
type: string;
|
|
777
|
+
description: string;
|
|
778
|
+
format?: string;
|
|
779
|
+
readonly?: boolean;
|
|
780
|
+
items?: {
|
|
781
|
+
type: string;
|
|
782
|
+
enum?: string[];
|
|
783
|
+
};
|
|
784
|
+
default?: string;
|
|
785
|
+
}
|
|
786
|
+
interface Schema {
|
|
787
|
+
title: string;
|
|
788
|
+
description: string;
|
|
789
|
+
properties: {
|
|
790
|
+
[key: string]: SchemaItem;
|
|
791
|
+
};
|
|
792
|
+
"ui:options"?: {
|
|
793
|
+
backgroundColor?: string;
|
|
794
|
+
icon?: string;
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
interface DataSchemas {
|
|
798
|
+
[mention: string]: {
|
|
799
|
+
[key: string]: Schema;
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Hook to observe data messages tagged with 'schema'
|
|
804
|
+
* @param user - User properties for the query
|
|
805
|
+
* @returns Array of data messages with dataschema tag
|
|
806
|
+
*/
|
|
807
|
+
declare function useObserveDataSchemas({ service }: {
|
|
808
|
+
service: CodicentService;
|
|
809
|
+
}): {
|
|
810
|
+
getSchemas: () => Promise<DataSchemas>;
|
|
811
|
+
createDefaultDataFromSchema: (schema: Schema) => any;
|
|
812
|
+
};
|
|
813
|
+
|
|
762
814
|
interface CombinedPlaceholderDialogProps {
|
|
763
815
|
open: boolean;
|
|
764
816
|
templateVariables: TemplateVariable[];
|
|
@@ -957,6 +1009,123 @@ interface QrCodeDialogProps {
|
|
|
957
1009
|
}
|
|
958
1010
|
declare const QrCodeDialog: React__default.FC<QrCodeDialogProps>;
|
|
959
1011
|
|
|
1012
|
+
interface QrScannerProps {
|
|
1013
|
+
onScan?: (result: string) => void;
|
|
1014
|
+
onError?: (error: string) => void;
|
|
1015
|
+
width?: number;
|
|
1016
|
+
height?: number;
|
|
1017
|
+
facingMode?: "user" | "environment";
|
|
1018
|
+
className?: string;
|
|
1019
|
+
}
|
|
1020
|
+
declare const QrScanner: React__default.FC<QrScannerProps>;
|
|
1021
|
+
|
|
1022
|
+
interface Message$1 {
|
|
1023
|
+
id: string;
|
|
1024
|
+
content: string;
|
|
1025
|
+
parentId?: string;
|
|
1026
|
+
type?: string;
|
|
1027
|
+
createdAt: Date;
|
|
1028
|
+
}
|
|
1029
|
+
interface GenericJsonRendererProps {
|
|
1030
|
+
schema: Schema;
|
|
1031
|
+
item: Message$1;
|
|
1032
|
+
onPhotoUpdate?: (newPhoto: string) => void;
|
|
1033
|
+
onStatusUpdate?: (isOpen: boolean) => void;
|
|
1034
|
+
onUpdated?: (content: string) => void;
|
|
1035
|
+
onSend?: (content: string, parentId?: string) => Promise<string>;
|
|
1036
|
+
}
|
|
1037
|
+
declare const GenericJsonRenderer: React__default.FC<GenericJsonRendererProps>;
|
|
1038
|
+
|
|
1039
|
+
interface Props {
|
|
1040
|
+
children: ReactNode;
|
|
1041
|
+
fallback?: ReactNode;
|
|
1042
|
+
}
|
|
1043
|
+
interface State {
|
|
1044
|
+
hasError: boolean;
|
|
1045
|
+
error: Error | null;
|
|
1046
|
+
}
|
|
1047
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
1048
|
+
constructor(props: Props);
|
|
1049
|
+
static getDerivedStateFromError(error: Error): State;
|
|
1050
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
1051
|
+
render(): ReactNode;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Component to display when the app is offline
|
|
1056
|
+
*/
|
|
1057
|
+
declare const OfflineMessage: () => react_jsx_runtime.JSX.Element;
|
|
1058
|
+
|
|
1059
|
+
interface LanguageOption {
|
|
1060
|
+
key: string;
|
|
1061
|
+
name: string;
|
|
1062
|
+
}
|
|
1063
|
+
interface LanguageSelectorProps {
|
|
1064
|
+
languages?: LanguageOption[];
|
|
1065
|
+
defaultLanguage?: string;
|
|
1066
|
+
}
|
|
1067
|
+
declare const LanguageSelector: React.FC<LanguageSelectorProps>;
|
|
1068
|
+
|
|
1069
|
+
/** Action configuration for a column, similar to app button actions */
|
|
1070
|
+
interface ColumnAction {
|
|
1071
|
+
/** Icon component to display (e.g., from @fluentui/react-icons). Pass the component itself, not a string name. */
|
|
1072
|
+
icon: React__default.ComponentType;
|
|
1073
|
+
/** Tooltip text for the action icon */
|
|
1074
|
+
tooltip?: string;
|
|
1075
|
+
/** Callback when the action icon is clicked, receives the row data as context */
|
|
1076
|
+
onClick: (rowData: Record<string, unknown>) => void;
|
|
1077
|
+
}
|
|
1078
|
+
interface ColumnDefinition {
|
|
1079
|
+
key: string | string[];
|
|
1080
|
+
title?: string;
|
|
1081
|
+
hidden?: boolean;
|
|
1082
|
+
hideOnMobile?: boolean;
|
|
1083
|
+
maxWidth?: number;
|
|
1084
|
+
type?: "file" | "checkbox" | undefined;
|
|
1085
|
+
editable?: boolean;
|
|
1086
|
+
filterable?: boolean;
|
|
1087
|
+
/** Default sort direction for this column. If multiple columns have defaultSort, only the first one is used. */
|
|
1088
|
+
defaultSort?: "asc" | "desc";
|
|
1089
|
+
/** Optional action icon configuration. When set, displays an icon in the cell that triggers the callback with row data. */
|
|
1090
|
+
action?: ColumnAction;
|
|
1091
|
+
/** Optional formatter function to transform the cell value for display. Receives the raw value and returns the formatted string. */
|
|
1092
|
+
format?: (value: unknown) => string;
|
|
1093
|
+
}
|
|
1094
|
+
interface ListViewProps$1 {
|
|
1095
|
+
data: Record<string, unknown>[];
|
|
1096
|
+
columns?: ColumnDefinition[];
|
|
1097
|
+
canEdit?: boolean;
|
|
1098
|
+
onEdit?: (item: Record<string, unknown>, index: number) => void;
|
|
1099
|
+
onDelete?: (item: Record<string, unknown>, index: number) => void;
|
|
1100
|
+
onToggleCheckbox?: (item: Record<string, unknown>, key: string | string[], newValue: boolean, index: number) => void;
|
|
1101
|
+
onFilteredDataChange?: (filteredData: Record<string, unknown>[]) => void;
|
|
1102
|
+
}
|
|
1103
|
+
declare const _default: React__default.NamedExoticComponent<ListViewProps$1>;
|
|
1104
|
+
|
|
1105
|
+
interface RecordModalProps {
|
|
1106
|
+
open: boolean;
|
|
1107
|
+
onClose: () => void;
|
|
1108
|
+
onSave: (data: Record<string, unknown>) => Promise<void>;
|
|
1109
|
+
columns: ColumnDefinition[];
|
|
1110
|
+
initialData?: Record<string, unknown>;
|
|
1111
|
+
title?: string;
|
|
1112
|
+
}
|
|
1113
|
+
declare const RecordModal: React__default.FC<RecordModalProps>;
|
|
1114
|
+
|
|
1115
|
+
interface BulkUploadDialogProps {
|
|
1116
|
+
project: string;
|
|
1117
|
+
hidden: boolean;
|
|
1118
|
+
onDismiss: () => void;
|
|
1119
|
+
sendMessage: (text: string) => Promise<string | undefined>;
|
|
1120
|
+
onUploaded?: () => void;
|
|
1121
|
+
service: CodicentService;
|
|
1122
|
+
tags?: string[];
|
|
1123
|
+
title?: string;
|
|
1124
|
+
description?: string;
|
|
1125
|
+
dropText?: string;
|
|
1126
|
+
}
|
|
1127
|
+
declare const BulkUploadDialog: (props: BulkUploadDialogProps) => react_jsx_runtime.JSX.Element;
|
|
1128
|
+
|
|
960
1129
|
declare class AppConfig {
|
|
961
1130
|
constructor();
|
|
962
1131
|
CHAT_INSTRUCTIONS: string;
|
|
@@ -1071,6 +1240,7 @@ interface AppConfigOptions {
|
|
|
1071
1240
|
STRIPE_PRICE_ID: string;
|
|
1072
1241
|
STRIPE_PUBLIC_KEY: string;
|
|
1073
1242
|
STRIPE_SOURCE: string;
|
|
1243
|
+
STRIPE_TRIAL_PERIOD_DAYS: number;
|
|
1074
1244
|
SUBSCRIPTION_NEEDED: boolean;
|
|
1075
1245
|
THEME_WELCOME: undefined | string;
|
|
1076
1246
|
USER_PREFIX: string | undefined;
|
|
@@ -1176,4 +1346,327 @@ declare const Purchase: ({ state }: {
|
|
|
1176
1346
|
state: CodicentAppState;
|
|
1177
1347
|
}) => react_jsx_runtime.JSX.Element;
|
|
1178
1348
|
|
|
1179
|
-
|
|
1349
|
+
interface HelpProps {
|
|
1350
|
+
content?: string;
|
|
1351
|
+
}
|
|
1352
|
+
declare const Help: FC<HelpProps>;
|
|
1353
|
+
|
|
1354
|
+
declare const Debug: React__default.FC;
|
|
1355
|
+
|
|
1356
|
+
declare function SchemaEditor(): react_jsx_runtime.JSX.Element;
|
|
1357
|
+
|
|
1358
|
+
interface QrScanProps {
|
|
1359
|
+
title?: string;
|
|
1360
|
+
singleShot?: boolean;
|
|
1361
|
+
onScanned: (result: string) => Promise<void>;
|
|
1362
|
+
onBack?: () => void;
|
|
1363
|
+
backgroundImageUrl?: string;
|
|
1364
|
+
audioUrl?: string;
|
|
1365
|
+
}
|
|
1366
|
+
declare const QrScan: FC<QrScanProps>;
|
|
1367
|
+
|
|
1368
|
+
interface FormProps {
|
|
1369
|
+
formId: string;
|
|
1370
|
+
service: CodicentService;
|
|
1371
|
+
appName: string;
|
|
1372
|
+
onFormSubmit?: (messageId: string) => void;
|
|
1373
|
+
}
|
|
1374
|
+
declare const Form: React__default.FC<FormProps>;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* @fileoverview Public TypeScript type definitions for codicent-app-sdk
|
|
1378
|
+
* @module codicent-app-sdk/types
|
|
1379
|
+
* @public
|
|
1380
|
+
*/
|
|
1381
|
+
/**
|
|
1382
|
+
* Configuration for a button in the app navigation
|
|
1383
|
+
* @public
|
|
1384
|
+
*/
|
|
1385
|
+
interface ButtonConfig {
|
|
1386
|
+
/** Button title/label */
|
|
1387
|
+
title: string;
|
|
1388
|
+
/** Target URL or special action (e.g., "voice:...", "mailto:...", "./#/path") */
|
|
1389
|
+
url: string;
|
|
1390
|
+
/** Button type/style variant */
|
|
1391
|
+
type?: string;
|
|
1392
|
+
/** Required claim for button visibility (RBAC) */
|
|
1393
|
+
claim?: string;
|
|
1394
|
+
/** Inverse claim - hide button if user has this claim */
|
|
1395
|
+
notClaim?: string;
|
|
1396
|
+
/** Optional subtitle for compound buttons */
|
|
1397
|
+
subtitle?: string;
|
|
1398
|
+
/** Sub-buttons for multi-option buttons */
|
|
1399
|
+
options?: ButtonConfig[];
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* List definitions keyed by tag name (e.g., "customer2", "offertjson")
|
|
1404
|
+
* @public
|
|
1405
|
+
*/
|
|
1406
|
+
interface ListDefinitions {
|
|
1407
|
+
[tagName: string]: ColumnDefinition[];
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* AI chat instructions configuration
|
|
1411
|
+
* @public
|
|
1412
|
+
*/
|
|
1413
|
+
interface ChatInstructions {
|
|
1414
|
+
/** Text-based chat instructions (system prompt for chat AI) */
|
|
1415
|
+
chat?: string;
|
|
1416
|
+
/** Voice-based chat instructions (system prompt for voice AI) */
|
|
1417
|
+
voice?: string;
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Per-app configuration for multi-app SDK instances
|
|
1421
|
+
* @public
|
|
1422
|
+
*/
|
|
1423
|
+
interface AppButtonsConfig {
|
|
1424
|
+
/** Navigation buttons for this app */
|
|
1425
|
+
buttons: ButtonConfig[];
|
|
1426
|
+
/** Task definitions (legacy, may be deprecated) */
|
|
1427
|
+
tasks: {
|
|
1428
|
+
id: string;
|
|
1429
|
+
title: string;
|
|
1430
|
+
content: string;
|
|
1431
|
+
}[];
|
|
1432
|
+
/** Optional list of suggested questions for chat prompts */
|
|
1433
|
+
questions?: string[];
|
|
1434
|
+
/** Voice AI instructions for this app */
|
|
1435
|
+
voiceInstructions: string;
|
|
1436
|
+
/** Whether to show HTML view in this app */
|
|
1437
|
+
showHtmlView?: boolean;
|
|
1438
|
+
/** Text chat AI instructions for this app */
|
|
1439
|
+
chatInstructions: string;
|
|
1440
|
+
/** List view column definitions per tag */
|
|
1441
|
+
listDefinitions?: ListDefinitions;
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Translation dictionary: { [translationKey: string]: translatedText }
|
|
1445
|
+
* @public
|
|
1446
|
+
*/
|
|
1447
|
+
interface TranslationDictionary {
|
|
1448
|
+
[key: string]: string;
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* Translations map: { [languageCode: string]: TranslationDictionary }
|
|
1452
|
+
* @public
|
|
1453
|
+
*/
|
|
1454
|
+
interface Translations {
|
|
1455
|
+
[languageCode: string]: TranslationDictionary;
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Feature module flags
|
|
1459
|
+
* @public
|
|
1460
|
+
*/
|
|
1461
|
+
interface ModuleFlags {
|
|
1462
|
+
/** Enable sales/CRM module */
|
|
1463
|
+
sales?: boolean;
|
|
1464
|
+
/** Enable voice AI module */
|
|
1465
|
+
voice?: boolean;
|
|
1466
|
+
/** Enable forms module */
|
|
1467
|
+
forms?: boolean;
|
|
1468
|
+
/** Enable search module */
|
|
1469
|
+
search?: boolean;
|
|
1470
|
+
/** Enable QR code scanning module */
|
|
1471
|
+
qr?: boolean;
|
|
1472
|
+
/** Enable snap/camera module */
|
|
1473
|
+
snap?: boolean;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Props for ListView component
|
|
1477
|
+
* @public
|
|
1478
|
+
*/
|
|
1479
|
+
interface ListViewProps {
|
|
1480
|
+
/** Array of data records to display */
|
|
1481
|
+
data: Record<string, unknown>[];
|
|
1482
|
+
/** Column definitions (if omitted, auto-generates from data keys) */
|
|
1483
|
+
columns?: ColumnDefinition[];
|
|
1484
|
+
/** Enable edit action */
|
|
1485
|
+
canEdit?: boolean;
|
|
1486
|
+
/** Edit callback */
|
|
1487
|
+
onEdit?: (item: Record<string, unknown>, index: number) => void;
|
|
1488
|
+
/** Delete callback */
|
|
1489
|
+
onDelete?: (item: Record<string, unknown>, index: number) => void;
|
|
1490
|
+
/** Checkbox toggle callback */
|
|
1491
|
+
onToggleCheckbox?: (item: Record<string, unknown>, key: string | string[], newValue: boolean, index: number) => void;
|
|
1492
|
+
/** Callback when filtered data changes (for parent component to track) */
|
|
1493
|
+
onFilteredDataChange?: (filteredData: Record<string, unknown>[]) => void;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Props for Chat component
|
|
1497
|
+
* @public
|
|
1498
|
+
*/
|
|
1499
|
+
interface ChatProps {
|
|
1500
|
+
/** Codicent/project to chat with */
|
|
1501
|
+
codicent?: string;
|
|
1502
|
+
/** Initial message to send on mount */
|
|
1503
|
+
initialMessage?: string;
|
|
1504
|
+
/** Custom chat instructions (overrides default) */
|
|
1505
|
+
instructions?: string;
|
|
1506
|
+
/** Show/hide message bar */
|
|
1507
|
+
showMessageBar?: boolean;
|
|
1508
|
+
/** Custom placeholder text for input */
|
|
1509
|
+
placeholder?: string;
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* Schema definition for data tags
|
|
1513
|
+
* @public
|
|
1514
|
+
*/
|
|
1515
|
+
interface SchemaDefinition {
|
|
1516
|
+
/** JSON Schema for the tag */
|
|
1517
|
+
schema: object;
|
|
1518
|
+
/** UI hints for form generation */
|
|
1519
|
+
uiSchema?: object;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Data message structure (returned by readDataMessages)
|
|
1524
|
+
* Defined in global.d.ts as part of the Codicent global API
|
|
1525
|
+
* @public
|
|
1526
|
+
*/
|
|
1527
|
+
interface DataMessage$1 {
|
|
1528
|
+
id: string;
|
|
1529
|
+
fileId: string | null;
|
|
1530
|
+
fileIds: string[];
|
|
1531
|
+
data: {
|
|
1532
|
+
[key: string]: string;
|
|
1533
|
+
};
|
|
1534
|
+
createdAt: string;
|
|
1535
|
+
tags: string[];
|
|
1536
|
+
mentions: string[];
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* File information structure
|
|
1540
|
+
* @public
|
|
1541
|
+
*/
|
|
1542
|
+
interface FileInfo$1 {
|
|
1543
|
+
id: string;
|
|
1544
|
+
filename: string;
|
|
1545
|
+
contentType: string;
|
|
1546
|
+
createdAt: string;
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Generic message structure
|
|
1550
|
+
* Note: There's also a Message interface in hooks/useChat that may differ
|
|
1551
|
+
* @public
|
|
1552
|
+
*/
|
|
1553
|
+
interface CodicentMessage {
|
|
1554
|
+
id: string;
|
|
1555
|
+
content: string;
|
|
1556
|
+
parentId?: string;
|
|
1557
|
+
type?: string;
|
|
1558
|
+
createdAt: Date;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* @fileoverview Simplified app bootstrap for codicent-app-sdk v2
|
|
1563
|
+
* @module codicent-app-sdk/bootstrap
|
|
1564
|
+
* @public
|
|
1565
|
+
*/
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Complete app configuration for createCodicentApp()
|
|
1569
|
+
* @public
|
|
1570
|
+
*/
|
|
1571
|
+
interface CreateAppConfig {
|
|
1572
|
+
/** Application name */
|
|
1573
|
+
name: string;
|
|
1574
|
+
/** API base URL (e.g., "https://codicent.com/" or custom domain) */
|
|
1575
|
+
apiBaseUrl: string;
|
|
1576
|
+
/** App-specific URL prefix (used in routing and namespacing) */
|
|
1577
|
+
appPrefix?: string;
|
|
1578
|
+
/** User namespace prefix */
|
|
1579
|
+
userPrefix?: string;
|
|
1580
|
+
/** Navigation buttons */
|
|
1581
|
+
buttons?: ButtonConfig[];
|
|
1582
|
+
/** List view column definitions per tag */
|
|
1583
|
+
listDefinitions?: ListDefinitions;
|
|
1584
|
+
/** i18n translations map */
|
|
1585
|
+
translations?: Translations;
|
|
1586
|
+
/** Default language code (e.g., "en", "sv") */
|
|
1587
|
+
defaultLanguage?: string;
|
|
1588
|
+
/** Feature module flags */
|
|
1589
|
+
modules?: ModuleFlags;
|
|
1590
|
+
/** AI chat instructions */
|
|
1591
|
+
chatInstructions?: string;
|
|
1592
|
+
/** AI voice instructions */
|
|
1593
|
+
voiceInstructions?: string;
|
|
1594
|
+
/** Auth0 configuration */
|
|
1595
|
+
auth0?: {
|
|
1596
|
+
domain: string;
|
|
1597
|
+
clientId: string;
|
|
1598
|
+
audience?: string;
|
|
1599
|
+
};
|
|
1600
|
+
/** Stripe configuration */
|
|
1601
|
+
stripe?: {
|
|
1602
|
+
publicKey: string;
|
|
1603
|
+
priceId?: string;
|
|
1604
|
+
trialDays?: number;
|
|
1605
|
+
};
|
|
1606
|
+
/** Theme/branding configuration */
|
|
1607
|
+
theme?: {
|
|
1608
|
+
headerColor?: string;
|
|
1609
|
+
footerColor?: string;
|
|
1610
|
+
buttonColor?: string;
|
|
1611
|
+
logoUrl?: string;
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* CodicentApp instance returned by createCodicentApp()
|
|
1616
|
+
* @public
|
|
1617
|
+
*/
|
|
1618
|
+
interface CodicentApp {
|
|
1619
|
+
/**
|
|
1620
|
+
* Render the app to a DOM element
|
|
1621
|
+
* @param container - DOM element or selector to render into
|
|
1622
|
+
*/
|
|
1623
|
+
render(container: HTMLElement | string): Root;
|
|
1624
|
+
/**
|
|
1625
|
+
* Unmount the app
|
|
1626
|
+
*/
|
|
1627
|
+
unmount(): void;
|
|
1628
|
+
/**
|
|
1629
|
+
* Get the current configuration
|
|
1630
|
+
*/
|
|
1631
|
+
getConfig(): CreateAppConfig;
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
* Create a Codicent app with the specified configuration.
|
|
1635
|
+
*
|
|
1636
|
+
* This is the recommended way to bootstrap a new Codicent vertical app.
|
|
1637
|
+
* Pass a configuration object and call `.render()` to mount the app.
|
|
1638
|
+
*
|
|
1639
|
+
* @example
|
|
1640
|
+
* ```tsx
|
|
1641
|
+
* import { createCodicentApp } from "codicent-app-sdk";
|
|
1642
|
+
*
|
|
1643
|
+
* const app = createCodicentApp({
|
|
1644
|
+
* name: "My CRM",
|
|
1645
|
+
* apiBaseUrl: "https://codicent.com/",
|
|
1646
|
+
* buttons: [
|
|
1647
|
+
* { title: "Customers", url: "./#/list?tag=customer2" },
|
|
1648
|
+
* { title: "Chat", url: "./#/chat" },
|
|
1649
|
+
* ],
|
|
1650
|
+
* listDefinitions: {
|
|
1651
|
+
* customer2: [
|
|
1652
|
+
* { key: "name", title: "Name", filterable: true },
|
|
1653
|
+
* { key: "email", title: "Email" },
|
|
1654
|
+
* ],
|
|
1655
|
+
* },
|
|
1656
|
+
* translations: {
|
|
1657
|
+
* en: { "Kunder": "Customers" },
|
|
1658
|
+
* sv: { "Customers": "Kunder" },
|
|
1659
|
+
* },
|
|
1660
|
+
* modules: { sales: true, voice: false },
|
|
1661
|
+
* });
|
|
1662
|
+
*
|
|
1663
|
+
* app.render("#root");
|
|
1664
|
+
* ```
|
|
1665
|
+
*
|
|
1666
|
+
* @param config - App configuration
|
|
1667
|
+
* @returns CodicentApp instance with render() method
|
|
1668
|
+
* @public
|
|
1669
|
+
*/
|
|
1670
|
+
declare function createCodicentApp(config: CreateAppConfig): CodicentApp;
|
|
1671
|
+
|
|
1672
|
+
export { AiInput, AppButtonsConfig, AppConfig, AppConfigOptions, AppFrame, AppInfo, AppStateDefinition, AppStateMachine, AudioIcon, AudioRecorder, AudioRecorderState, BulkUploadDialog, Button, ButtonConfig, CacheEntry, CacheManager, CachedUserSession, Chat, ChatInput, ChatInstructions, ChatMessage, ChatProps, CodicentApp, CodicentAppState, CodicentMessage, CodicentService, CodicentServiceOptions, ColorPicker, ColumnAction, ColumnDefinition, CombinedPlaceholderDialog, Compose, CompoundButton, Content, CreateAppConfig, CrmPage, CrmPagePersistent, DataMessage$1 as DataMessage, DataSchemas, DatePicker, Debug, ErrorBoundary, FileInfo$1 as FileInfo, FilePlaceholder, FileThumbnail, Footer, Form$1 as Form, FormAccept, FormInvite, Form as FormPage, GenericJsonRenderer, Header, Help, HtmlView, HtmlViewer, ImageViewer as ImageView, Input, ItemType, Label, LanguageSelector, ListDefinitions, _default as ListView, ListViewProps, Login, Logout, Markdown, MemberInfo, Message$2 as Message, Content$1 as MessageContent, MessageInput, MessageItem, ModuleFlags, OfflineMessage, Page, Profile, Prompt, Purchase, QrCodeDialog, QrScan, QrScanner, RealtimeVoice, RecordModal, RecordModalProps, Sales, Schema, SchemaDefinition, SchemaEditor, SchemaItem, Search, SearchBox, Snap, SnapFooter, Spinner, StateContext, TemplateVariable, Text, TextHeader, Textarea, TimePicker, Title, Tool, ToolMergeStrategy, ToolsConfig, TranslationDictionary, TranslationResponse, Translations, TypingIndicator, UploadFile, UploadFileProps, UploadFileRef, UrlProcessor, UseAuthState, UseCodicentAppOptions, UserInfo, VoiceIcon, VoiceIconProps, WavRecorder, WavStreamPlayer, createAppStateMachine, createCodicentApp, generateBrandVariants, getConfigValue, getGpsLocation, getTimeString, initCodicentApp, isMobileDevice, log, setBaseUrl, stateMachineCacheManager, useAppStyles, useAudioRecorder, useAuthState, useChat, useCodicentApp, useCodicentState, useDebugLogs, useLocalization, useObserveDataSchemas, useRealtimeVoiceAI, useStateWithLocalStorage, useTemplateVariables, useToaster, useTools, withWakeLock };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codicent-app-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "SDK for building AI-powered applications with Codicent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"react-router-dom": "^6.27.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
+
"jsqr": "^1.4.0",
|
|
50
51
|
"lodash": "^4.17.21",
|
|
51
52
|
"nosleep.js": "^0.12.0",
|
|
52
53
|
"react-json-editor-ajrm": "^2.5.14",
|
|
@@ -58,10 +59,10 @@
|
|
|
58
59
|
"@babel/preset-env": "^7.20.2",
|
|
59
60
|
"@babel/preset-react": "^7.18.6",
|
|
60
61
|
"@babel/preset-typescript": "^7.21.0",
|
|
61
|
-
"@fluentui/react-components": "^9.60.0",
|
|
62
|
-
"@fluentui/react-icons": "^2.0.292",
|
|
63
62
|
"@fluentui/react": "^8.123.0",
|
|
63
|
+
"@fluentui/react-components": "^9.60.0",
|
|
64
64
|
"@fluentui/react-datepicker-compat": "^0.6.3",
|
|
65
|
+
"@fluentui/react-icons": "^2.0.292",
|
|
65
66
|
"@fluentui/react-timepicker-compat": "^0.4.3",
|
|
66
67
|
"@openai/realtime-api-beta": "github:izaxon/openai-realtime-api-beta",
|
|
67
68
|
"@rollup/plugin-commonjs": "^24.0.1",
|