@seamly/web-ui 24.2.1-beta.1 → 24.3.0-alpha.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/build/dist/lib/index.debug.js +2492 -2189
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +461 -447
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +911 -498
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +5 -3
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +4681 -22580
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -2
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/package.json +19 -19
- package/src/javascripts/{index.ts → core/index.ts} +32 -0
- package/src/javascripts/core/ui/components/layout/icon.tsx +102 -0
- package/src/javascripts/{ui → core/ui}/components/view/index.tsx +1 -1
- package/src/javascripts/{ui → core/ui}/hooks/event-bus-hooks.ts +1 -1
- package/src/javascripts/style-guide/components/app.tsx +8 -5
- package/src/javascripts/style-guide/components/links.tsx +2 -2
- package/src/javascripts/style-guide/components/static-core.tsx +12 -15
- package/src/javascripts/style-guide/components/view.tsx +2 -3
- package/src/javascripts/style-guide/index.ts +5 -0
- package/src/javascripts/style-guide/states.ts +6 -4
- package/src/javascripts/style-guide/style-guide-engine.tsx +1 -2
- package/src/javascripts/style-guide/style-guide-external-api.ts +1 -1
- package/webpack/config.package.js +9 -58
- package/webpack/defaults.js +7 -27
- package/webpack/parts/dev-server.js +3 -3
- package/build/dist/lib/components.js +0 -21127
- package/build/dist/lib/components.js.map +0 -1
- package/build/dist/lib/components.min.js +0 -3
- package/build/dist/lib/components.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/components.min.js.map +0 -1
- package/build/dist/lib/config.js +0 -58
- package/build/dist/lib/config.js.map +0 -1
- package/build/dist/lib/config.min.js +0 -2
- package/build/dist/lib/config.min.js.map +0 -1
- package/build/dist/lib/contexts.js +0 -123
- package/build/dist/lib/contexts.js.map +0 -1
- package/build/dist/lib/contexts.min.js +0 -2
- package/build/dist/lib/contexts.min.js.map +0 -1
- package/build/dist/lib/hooks.js +0 -14045
- package/build/dist/lib/hooks.js.map +0 -1
- package/build/dist/lib/hooks.min.js +0 -3
- package/build/dist/lib/hooks.min.js.LICENSE.txt +0 -9
- package/build/dist/lib/hooks.min.js.map +0 -1
- package/build/dist/lib/standalone.js +0 -22386
- package/build/dist/lib/standalone.js.map +0 -1
- package/build/dist/lib/standalone.min.js +0 -3
- package/build/dist/lib/standalone.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/standalone.min.js.map +0 -1
- package/build/dist/lib/storage.js +0 -269
- package/build/dist/lib/storage.js.map +0 -1
- package/build/dist/lib/storage.min.js +0 -3
- package/build/dist/lib/storage.min.js.LICENSE.txt +0 -1
- package/build/dist/lib/storage.min.js.map +0 -1
- package/build/dist/lib/style-guide.min.js.LICENSE.txt +0 -19
- package/build/dist/lib/utils.js +0 -23303
- package/build/dist/lib/utils.js.map +0 -1
- package/build/dist/lib/utils.min.js +0 -3
- package/build/dist/lib/utils.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/utils.min.js.map +0 -1
- package/src/javascripts/package/components.ts +0 -25
- package/src/javascripts/package/config.ts +0 -1
- package/src/javascripts/package/contexts.ts +0 -7
- package/src/javascripts/package/hooks.ts +0 -31
- package/src/javascripts/package/storage.ts +0 -3
- package/src/javascripts/package/utils.ts +0 -20
- package/src/javascripts/style-guide.ts +0 -5
- package/src/javascripts/ui/components/layout/icon.tsx +0 -102
- /package/src/javascripts/{api → core/api}/api.types.ts +0 -0
- /package/src/javascripts/{api → core/api}/asyncapi.types.ts +0 -0
- /package/src/javascripts/{api → core/api}/channel.types.ts +0 -0
- /package/src/javascripts/{api → core/api}/conversation-connector.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-api-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-base-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-configuration-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-general-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-offline-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-session-expired-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-unauthorized-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/errors/seamly-unavailable-error.ts +0 -0
- /package/src/javascripts/{api → core/api}/index.ts +0 -0
- /package/src/javascripts/{api → core/api}/utils.ts +0 -0
- /package/src/javascripts/{config.ts → core/config.ts} +0 -0
- /package/src/javascripts/{config.types.ts → core/config.types.ts} +0 -0
- /package/src/javascripts/{domains → core/domains}/app/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/app.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/app/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/config/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/errors/index.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/context.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/forms.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/provider.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/forms/utils.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/i18n.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/i18n/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/middleware.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/interrupt/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/options/middleware.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/redux/create-debounced-async-thunk.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/redux/redux.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/index.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/store/store.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-button.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-dialog/index.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-dialog/translation-option.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/options-dialog/translation-options.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/components/translation-status.tsx +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/middleware.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/translations/translations.types.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/actions.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/constants.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/hooks.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/selectors.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/slice.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/utils.ts +0 -0
- /package/src/javascripts/{domains → core/domains}/visibility/visibility.types.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/css.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/debug.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/engine/index.tsx +0 -0
- /package/src/javascripts/{lib → core/lib}/external-api/index.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/external-api/initialize-api.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/id.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/mutex.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/preact-debug.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/split-url-params.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/index.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/app-storage.js +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/app-storage.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/cookie-storage.js +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/cookie-storage.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/session-storage.js +0 -0
- /package/src/javascripts/{lib → core/lib}/store/providers/session-storage.ts +0 -0
- /package/src/javascripts/{lib → core/lib}/url-helpers.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/app-options/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/chat-app.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/chat-status/chat-status-action.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/chat-status/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/component-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/component-filter.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/conversation.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/card-component.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/card-message.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-component/components/controls.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-component/components/pagination.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-component/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-message/components/slide.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/carousel-message/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/chat-scroll/chat-scroll-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/chat-scroll/chat-scroll-provider.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/chat-scroll/unread-messages-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/choice-prompt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/conversation-suggestions.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/cta.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/variants/default.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/variants/new-translation.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/divider/variants/time-indicator.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/event-participant.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/event.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/hooks/use-event-link-click-handler.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/hooks/use-formatted-date.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/image-lightbox.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/image.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/participant.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/splash.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/text.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/translation.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/upload.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event/video.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/event-divider.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/loader.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/message-container.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/conversation/use-chat-scroll.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-activity-event-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-activity-monitor.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-api-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-chat.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-core.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-event-subscriber.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-file-upload-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-file-upload.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-idle-detach-counter.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-initializer.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-instance-functions-loader.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-live-region-context.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-live-region.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-new-notifications.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/core/seamly-read-state.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/abort-transaction-button/abort-transaction-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/entry-container.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/text-entry/hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/text-entry/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/text-entry/text-entry-form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/upload/file-upload-form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/upload/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/entry/upload-toggle.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/error.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/file-input.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/input.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/label.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/form-controls/wrapper.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/agent-info.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/chat-frame.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/chat.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/collapsed-chat-messages.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/continue-chat-messages.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/header.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/interrupt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/pre-chat-messages.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/layout/privacy-disclaimer.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/options-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/options-frame.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/options.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/transcript/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/options/transcript/transcript-form.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/suggestions/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/suggestions/suggestions-item.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/suggestions/suggestions-list.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/translation-proposal/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/app-view.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/inline-view.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/window-view/collapse-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/window-view/index.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/view/window-view/window-open-button.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/warnings/idle-detach-warning.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/warnings/prompt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/warnings/resume-conversation-prompt.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/in-out-transition.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/lightbox.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/modal.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/components/widgets/upload-progress.tsx +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/component-helper-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/file-upload-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/focus-helper-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/live-region-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-api-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-entry-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-option-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/seamly-state-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/sounds/beep.mp3 +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-click-outside.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-debounce.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-event-component-mapping.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-interval.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-notifications.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-actions.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-activity-event-handler.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-chat.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-commands.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-conversation.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-idle-detach-countdown.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-seamly-resume-conversation-prompt.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-session-expired-command.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-single-file-upload.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/use-timeout.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/hooks/utility-hooks.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/form-utils.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/general-utils.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/seamly-utils.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/seamly-utils.types.ts +0 -0
- /package/src/javascripts/{ui → core/ui}/utils/validations.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamly/web-ui",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.3.0-alpha.1",
|
|
4
4
|
"main": "build/dist/lib/index.js",
|
|
5
5
|
"types": "build/src/javascripts/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"webpack/*"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reduxjs/toolkit": "^2.
|
|
24
|
+
"@reduxjs/toolkit": "^2.5.1",
|
|
25
25
|
"@ultraq/icu-message-formatter": "^0.14.3",
|
|
26
|
-
"core-js": "^3.
|
|
27
|
-
"focus-trap": "^7.6.
|
|
26
|
+
"core-js": "^3.40.0",
|
|
27
|
+
"focus-trap": "^7.6.4",
|
|
28
28
|
"include-media": "^2.0.0",
|
|
29
29
|
"js-cookie": "^3.0.5",
|
|
30
30
|
"minivents": "^2.2.1",
|
|
31
|
-
"react-redux": "^9.
|
|
31
|
+
"react-redux": "^9.2.0",
|
|
32
32
|
"reconnecting-websocket": "^4.4.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/core": "^7.26.
|
|
36
|
-
"@babel/preset-env": "^7.26.
|
|
35
|
+
"@babel/core": "^7.26.7",
|
|
36
|
+
"@babel/preset-env": "^7.26.7",
|
|
37
37
|
"@babel/preset-react": "^7.26.3",
|
|
38
38
|
"@babel/preset-typescript": "^7.26.0",
|
|
39
|
-
"@playwright/test": "^1.
|
|
39
|
+
"@playwright/test": "^1.50.1",
|
|
40
40
|
"@seamly/doc-site": "^4.0.0",
|
|
41
41
|
"@seamly/eslint-config": "^3.1.0",
|
|
42
42
|
"@seamly/prettier-config": "^3.1.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@testing-library/preact": "^3.2.4",
|
|
46
46
|
"@types/core-js": "^2.5.8",
|
|
47
47
|
"@types/jest": "^29.5.12",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
49
|
-
"@typescript-eslint/parser": "^8.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
49
|
+
"@typescript-eslint/parser": "^8.23.0",
|
|
50
50
|
"babel-jest": "^29.7.0",
|
|
51
51
|
"babel-loader": "^9.2.1",
|
|
52
52
|
"copy-webpack-plugin": "^12.0.2",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
57
57
|
"eslint-plugin-filenames": "^1.3.2",
|
|
58
58
|
"eslint-plugin-import": "^2.29.1",
|
|
59
|
-
"eslint-plugin-jest": "^28.
|
|
60
|
-
"eslint-plugin-prettier": "^5.2.
|
|
61
|
-
"eslint-plugin-react": "^7.
|
|
59
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
60
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
61
|
+
"eslint-plugin-react": "^7.37.4",
|
|
62
62
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
63
63
|
"file-loader": "^6.2.0",
|
|
64
64
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"prettier": "^3.4.2",
|
|
75
75
|
"rimraf": "^6.0.1",
|
|
76
76
|
"style-loader": "^4.0.0",
|
|
77
|
-
"stylelint": "^16.
|
|
78
|
-
"typescript": "^5.7.
|
|
79
|
-
"webpack": "^5.97.
|
|
77
|
+
"stylelint": "^16.14.1",
|
|
78
|
+
"typescript": "^5.7.3",
|
|
79
|
+
"webpack": "^5.97.1",
|
|
80
80
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
81
|
-
"webpack-cli": "^
|
|
81
|
+
"webpack-cli": "^6.0.1",
|
|
82
82
|
"webpack-dev-server": "^5.1.0",
|
|
83
83
|
"webpack-merge": "^6.0.1"
|
|
84
84
|
},
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"check:eslint": "eslint --ext .js,.ts,.tsx, src/ webpack/",
|
|
111
111
|
"check:prettier": "yarn run check:code && yarn run check:tests && yarn run check:public && yarn run check:webpack",
|
|
112
112
|
"test": "jest",
|
|
113
|
-
"types:generate": "openapi-typescript schema/channel.yaml --output src/javascripts/api/channel.types.ts",
|
|
114
|
-
"types:generate-async": "openapi-typescript schema/asyncapi.yaml --output src/javascripts/api/asyncapi.types.ts",
|
|
113
|
+
"types:generate": "openapi-typescript schema/channel.yaml --output src/javascripts/core/api/channel.types.ts",
|
|
114
|
+
"types:generate-async": "openapi-typescript schema/asyncapi.yaml --output src/javascripts/core/api/asyncapi.types.ts",
|
|
115
115
|
"test:coverage": "yarn run test --coverage",
|
|
116
116
|
"test:e2e": "playwright test",
|
|
117
117
|
"test:e2e:coverage": "yarn nyc report --reporter cobertura --reporter html",
|
|
@@ -40,6 +40,9 @@ export {
|
|
|
40
40
|
} from 'ui/hooks/seamly-hooks'
|
|
41
41
|
// Used by: Demo
|
|
42
42
|
export { default as EventParticipant } from 'ui/components/conversation/event/event-participant'
|
|
43
|
+
export { default as appStorageProvider } from 'lib/store/providers/app-storage'
|
|
44
|
+
export { default as cookieStorageProvider } from 'lib/store/providers/cookie-storage'
|
|
45
|
+
export { default as sessionStorageProvider } from 'lib/store/providers/session-storage'
|
|
43
46
|
|
|
44
47
|
// Used by: Client
|
|
45
48
|
export { default as ComponentFilter } from 'ui/components/conversation/component-filter'
|
|
@@ -64,6 +67,35 @@ export { default as Engine } from 'lib/engine'
|
|
|
64
67
|
export { default as ExternalApi } from 'lib/external-api'
|
|
65
68
|
export { default as SeamlyFileUpload } from 'ui/components/core/seamly-file-upload'
|
|
66
69
|
export { default as SeamlyActivityMonitor } from 'ui/components/core/seamly-activity-monitor'
|
|
70
|
+
export { timeout } from 'ui/hooks/focus-helper-hooks'
|
|
71
|
+
|
|
72
|
+
export { default as appReducer } from 'domains/app/slice'
|
|
73
|
+
export {
|
|
74
|
+
default as configReducer,
|
|
75
|
+
setConfig,
|
|
76
|
+
setPreChatEvents,
|
|
77
|
+
} from 'domains/config/slice'
|
|
78
|
+
export { default as formsReducer } from 'domains/forms/slice'
|
|
79
|
+
export type { I18nState } from 'domains/i18n/i18n.types'
|
|
80
|
+
export {
|
|
81
|
+
default as i18nReducer,
|
|
82
|
+
setInitialLocale,
|
|
83
|
+
setTranslations,
|
|
84
|
+
} from 'domains/i18n/slice'
|
|
85
|
+
export { default as interruptReducer } from 'domains/interrupt/slice'
|
|
86
|
+
export { default as stateReducer, setParticipant } from 'domains/store/slice'
|
|
87
|
+
export type {
|
|
88
|
+
MessageParticipant,
|
|
89
|
+
StoreState,
|
|
90
|
+
ReduxStore,
|
|
91
|
+
} from 'domains/store/store.types'
|
|
92
|
+
export { default as translationReducer } from 'domains/translations/slice'
|
|
93
|
+
export { default as visibilityReducer } from 'domains/visibility/slice'
|
|
94
|
+
export {
|
|
95
|
+
getUrlSearchParams,
|
|
96
|
+
getUrlSearchString,
|
|
97
|
+
getSearchParamsByKeys,
|
|
98
|
+
} from 'lib/url-helpers'
|
|
67
99
|
|
|
68
100
|
// Used by: Client
|
|
69
101
|
export default initializeExternalApi
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { className as classNameFn } from 'lib/css'
|
|
2
|
+
import iconAvatar32 from '../../../../../icons/avatar_bot-32.svg'
|
|
3
|
+
import iconArrowLeft16 from '../../../../../icons/icon_arrow_left-16.svg'
|
|
4
|
+
import iconArrowRight16 from '../../../../../icons/icon_arrow_right-16.svg'
|
|
5
|
+
import iconBalloon32 from '../../../../../icons/icon_balloon-32.svg'
|
|
6
|
+
import iconCheck16 from '../../../../../icons/icon_check-16.svg'
|
|
7
|
+
import iconCheck32 from '../../../../../icons/icon_check-32.svg'
|
|
8
|
+
import iconChevronDown32 from '../../../../../icons/icon_chevron_down-32.svg'
|
|
9
|
+
import iconChevronDown8 from '../../../../../icons/icon_chevron_down-8.svg'
|
|
10
|
+
import iconChevronRight16 from '../../../../../icons/icon_chevron_right-16.svg'
|
|
11
|
+
import iconChevronRight8 from '../../../../../icons/icon_chevron_right-8.svg'
|
|
12
|
+
import iconClose16 from '../../../../../icons/icon_close-16.svg'
|
|
13
|
+
import iconClose8 from '../../../../../icons/icon_close-8.svg'
|
|
14
|
+
import iconDownload16 from '../../../../../icons/icon_download-16.svg'
|
|
15
|
+
import iconEnlarge32 from '../../../../../icons/icon_enlarge-32.svg'
|
|
16
|
+
import iconError16 from '../../../../../icons/icon_error-16.svg'
|
|
17
|
+
import iconFile32 from '../../../../../icons/icon_file-32.svg'
|
|
18
|
+
import iconNewTopic32 from '../../../../../icons/icon_newtopic-32.svg'
|
|
19
|
+
import iconNewTranslation16 from '../../../../../icons/icon_newtranslation-16.svg'
|
|
20
|
+
import iconNewTranslation32 from '../../../../../icons/icon_newtranslation-32.svg'
|
|
21
|
+
import iconOptions32 from '../../../../../icons/icon_options-32.svg'
|
|
22
|
+
import iconSend32 from '../../../../../icons/icon_send-32.svg'
|
|
23
|
+
import iconUpload32 from '../../../../../icons/icon_upload-32.svg'
|
|
24
|
+
|
|
25
|
+
export const ICONS = {
|
|
26
|
+
send: {
|
|
27
|
+
32: iconSend32,
|
|
28
|
+
},
|
|
29
|
+
balloon: {
|
|
30
|
+
32: iconBalloon32,
|
|
31
|
+
},
|
|
32
|
+
newTopic: {
|
|
33
|
+
32: iconNewTopic32,
|
|
34
|
+
},
|
|
35
|
+
newTranslation: {
|
|
36
|
+
16: iconNewTranslation16,
|
|
37
|
+
32: iconNewTranslation32,
|
|
38
|
+
},
|
|
39
|
+
avatar: {
|
|
40
|
+
32: iconAvatar32,
|
|
41
|
+
},
|
|
42
|
+
chevronDown: {
|
|
43
|
+
8: iconChevronDown8,
|
|
44
|
+
32: iconChevronDown32,
|
|
45
|
+
},
|
|
46
|
+
chevronRight: {
|
|
47
|
+
8: iconChevronRight8,
|
|
48
|
+
16: iconChevronRight16,
|
|
49
|
+
},
|
|
50
|
+
close: {
|
|
51
|
+
8: iconClose8,
|
|
52
|
+
16: iconClose16,
|
|
53
|
+
},
|
|
54
|
+
enlarge: {
|
|
55
|
+
32: iconEnlarge32,
|
|
56
|
+
},
|
|
57
|
+
options: {
|
|
58
|
+
32: iconOptions32,
|
|
59
|
+
},
|
|
60
|
+
file: {
|
|
61
|
+
32: iconFile32,
|
|
62
|
+
},
|
|
63
|
+
upload: {
|
|
64
|
+
32: iconUpload32,
|
|
65
|
+
},
|
|
66
|
+
download: {
|
|
67
|
+
16: iconDownload16,
|
|
68
|
+
},
|
|
69
|
+
error: {
|
|
70
|
+
16: iconError16,
|
|
71
|
+
},
|
|
72
|
+
arrowLeft: {
|
|
73
|
+
16: iconArrowLeft16,
|
|
74
|
+
},
|
|
75
|
+
arrowRight: {
|
|
76
|
+
16: iconArrowRight16,
|
|
77
|
+
},
|
|
78
|
+
check: {
|
|
79
|
+
16: iconCheck16,
|
|
80
|
+
32: iconCheck32,
|
|
81
|
+
},
|
|
82
|
+
} as const
|
|
83
|
+
|
|
84
|
+
export type IconProps = {
|
|
85
|
+
name: keyof typeof ICONS | string
|
|
86
|
+
size?: '8' | '16' | '32'
|
|
87
|
+
className?: string
|
|
88
|
+
alt: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const Icon = ({ name, size = '32', className, alt }: IconProps) => (
|
|
92
|
+
<>
|
|
93
|
+
<div
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
className={className || classNameFn('icon')}
|
|
96
|
+
dangerouslySetInnerHTML={{ __html: ICONS[name][size] }}
|
|
97
|
+
/>
|
|
98
|
+
{alt && <span className={classNameFn('visually-hidden')}>{alt}</span>}
|
|
99
|
+
</>
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
export default Icon
|
|
@@ -5,9 +5,9 @@ import { useUserHasResponded } from 'domains/app/hooks'
|
|
|
5
5
|
import { useConfig } from 'domains/config/hooks'
|
|
6
6
|
import { useI18n } from 'domains/i18n/hooks'
|
|
7
7
|
import { selectLastUnreadEvent } from 'domains/store/selectors'
|
|
8
|
+
import { useTranslatedEventData } from 'domains/translations/hooks'
|
|
8
9
|
import { useVisibility } from 'domains/visibility/hooks'
|
|
9
10
|
import { className } from 'lib/css'
|
|
10
|
-
import { useTranslatedEventData } from 'package/hooks'
|
|
11
11
|
import AppView from 'ui/components/view/app-view'
|
|
12
12
|
import InlineView from 'ui/components/view/inline-view'
|
|
13
13
|
import WindowView from 'ui/components/view/window-view'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from 'preact/hooks'
|
|
2
|
-
import { SeamlyEventBusContext } from '
|
|
2
|
+
import { SeamlyEventBusContext } from 'ui/components/core/seamly-api-context'
|
|
3
3
|
|
|
4
4
|
const useSeamlyEventBusContext = () => {
|
|
5
5
|
const eventBus = useContext(SeamlyEventBusContext)
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { FC } from 'preact/compat'
|
|
2
2
|
import { useCallback, useEffect, useState } from 'preact/hooks'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import {
|
|
4
|
+
randomId,
|
|
5
|
+
getSearchParamsByKeys,
|
|
6
|
+
getUrlSearchParams,
|
|
7
|
+
} from '@seamly/web-ui'
|
|
8
|
+
import { getStateObj } from '../states'
|
|
9
|
+
import StyleGuideLinks from './links'
|
|
10
|
+
import StyleGuideView from './view'
|
|
8
11
|
|
|
9
12
|
type HProps = {
|
|
10
13
|
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getUrlSearchParams, getUrlSearchString } from '
|
|
2
|
-
import { categories } from '
|
|
1
|
+
import { getUrlSearchParams, getUrlSearchString } from '@seamly/web-ui'
|
|
2
|
+
import { categories } from '../states'
|
|
3
3
|
|
|
4
4
|
const StyleGuideLinks = ({ setSelectedState, states, headingLevel }) => {
|
|
5
5
|
const CategoryHeading = `h${headingLevel.toString()}`
|
|
@@ -9,28 +9,25 @@ import {
|
|
|
9
9
|
SeamlyStoreProvider,
|
|
10
10
|
SeamlyActivityMonitor,
|
|
11
11
|
SeamlyFileUpload,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
API,
|
|
13
|
+
configReducer,
|
|
14
|
+
appReducer,
|
|
15
15
|
setConfig,
|
|
16
16
|
setPreChatEvents,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import i18nReducer, {
|
|
17
|
+
formsReducer,
|
|
18
|
+
I18nState,
|
|
19
|
+
i18nReducer,
|
|
21
20
|
setInitialLocale,
|
|
22
21
|
setTranslations,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
22
|
+
interruptReducer,
|
|
23
|
+
stateReducer,
|
|
24
|
+
setParticipant,
|
|
27
25
|
MessageParticipant,
|
|
28
26
|
StoreState,
|
|
29
27
|
ReduxStore,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
import type API from 'api'
|
|
28
|
+
translationReducer,
|
|
29
|
+
visibilityReducer,
|
|
30
|
+
} from '@seamly/web-ui'
|
|
34
31
|
|
|
35
32
|
const bareApi = {
|
|
36
33
|
send: () => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'preact/hooks'
|
|
2
|
-
import { View } from '@seamly/web-ui'
|
|
3
|
-
import StyleGuideStaticCore from '
|
|
4
|
-
import { timeout } from 'ui/hooks/focus-helper-hooks'
|
|
2
|
+
import { View, timeout } from '@seamly/web-ui'
|
|
3
|
+
import StyleGuideStaticCore from './static-core'
|
|
5
4
|
|
|
6
5
|
const StyleGuideView = ({
|
|
7
6
|
state,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
visibilityStates,
|
|
3
|
+
SeamlyGeneralError,
|
|
4
|
+
SeamlyOfflineError,
|
|
5
|
+
randomId,
|
|
6
|
+
} from '@seamly/web-ui'
|
|
5
7
|
import { addTranslationData } from './state-helpers/index'
|
|
6
8
|
|
|
7
9
|
const baseState = {
|
|
@@ -57,7 +57,10 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
57
57
|
new ForkTsCheckerWebpackPlugin(),
|
|
58
58
|
],
|
|
59
59
|
resolve: {
|
|
60
|
-
modules: [
|
|
60
|
+
modules: [
|
|
61
|
+
path.resolve(__dirname, '../src/javascripts/core'),
|
|
62
|
+
'node_modules',
|
|
63
|
+
],
|
|
61
64
|
alias: {
|
|
62
65
|
react: 'preact/compat',
|
|
63
66
|
'react-dom/test-utils': 'preact/test-utils',
|
|
@@ -111,7 +114,7 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
111
114
|
|
|
112
115
|
const packageConfig = webpackMerge(baseConfig, {
|
|
113
116
|
entry: {
|
|
114
|
-
index: path.join(SRC_ROOT, 'javascripts/index.ts'),
|
|
117
|
+
index: path.join(SRC_ROOT, 'javascripts/core/index.ts'),
|
|
115
118
|
},
|
|
116
119
|
})
|
|
117
120
|
|
|
@@ -125,60 +128,14 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
125
128
|
|
|
126
129
|
const styleguideConfig = webpackMerge(baseConfig, {
|
|
127
130
|
entry: {
|
|
128
|
-
'style-guide': path.join(SRC_ROOT, 'javascripts/style-guide.ts'),
|
|
131
|
+
'style-guide': path.join(SRC_ROOT, 'javascripts/style-guide/index.ts'),
|
|
129
132
|
},
|
|
130
133
|
externals: [/^@seamly\/web-ui(\/.*)?/i],
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
entry: {
|
|
134
|
-
components: path.join(SRC_ROOT, 'javascripts/package/components.ts'),
|
|
135
|
-
config: path.join(SRC_ROOT, 'javascripts/package/config.ts'),
|
|
136
|
-
contexts: path.join(SRC_ROOT, 'javascripts/package/contexts.ts'),
|
|
137
|
-
hooks: path.join(SRC_ROOT, 'javascripts/package/hooks.ts'),
|
|
138
|
-
storage: path.join(SRC_ROOT, 'javascripts/package/storage.ts'),
|
|
139
|
-
utils: path.join(SRC_ROOT, 'javascripts/package/utils.ts'),
|
|
134
|
+
resolve: {
|
|
135
|
+
...baseConfig.resolve,
|
|
140
136
|
},
|
|
141
|
-
externals: [/^@seamly\/web-ui(\/.*)?/i],
|
|
142
137
|
})
|
|
143
138
|
|
|
144
|
-
const standalonePackageConfig = {
|
|
145
|
-
...packageConfig,
|
|
146
|
-
output: {
|
|
147
|
-
...packageConfig.output,
|
|
148
|
-
library: {
|
|
149
|
-
...packageConfig.output.library,
|
|
150
|
-
type: 'umd',
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
target: `browserslist:${BROWSERS}`,
|
|
154
|
-
entry: {
|
|
155
|
-
standalone: packageConfig.entry.index,
|
|
156
|
-
},
|
|
157
|
-
externals: {},
|
|
158
|
-
module: {
|
|
159
|
-
...packageConfig.module,
|
|
160
|
-
rules: packageConfig.module.rules.map((rule) => {
|
|
161
|
-
if (rule.loader === 'babel-loader') {
|
|
162
|
-
rule = {
|
|
163
|
-
...rule,
|
|
164
|
-
options: {
|
|
165
|
-
sourceType: 'unambiguous',
|
|
166
|
-
plugins: [
|
|
167
|
-
...generateBabelLoaderBrowserPluginsPart(env, argv, implConfig),
|
|
168
|
-
[
|
|
169
|
-
'react-remove-properties',
|
|
170
|
-
{ properties: ['data-testid', 'data-cy'] },
|
|
171
|
-
],
|
|
172
|
-
],
|
|
173
|
-
presets: babelLoaderPresets(BROWSERS),
|
|
174
|
-
},
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return rule
|
|
178
|
-
}),
|
|
179
|
-
},
|
|
180
|
-
}
|
|
181
|
-
|
|
182
139
|
const scssConfig = {
|
|
183
140
|
output: {
|
|
184
141
|
path: path.join(BUILD_ROOT, '/dist/lib'),
|
|
@@ -207,13 +164,7 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
207
164
|
},
|
|
208
165
|
}
|
|
209
166
|
|
|
210
|
-
const configs = [
|
|
211
|
-
packageConfig,
|
|
212
|
-
packageDebugConfig,
|
|
213
|
-
standalonePackageConfig,
|
|
214
|
-
styleguideConfig,
|
|
215
|
-
externalsConfig,
|
|
216
|
-
]
|
|
167
|
+
const configs = [packageConfig, packageDebugConfig, styleguideConfig]
|
|
217
168
|
|
|
218
169
|
const configsMinimized = configs.map((config) =>
|
|
219
170
|
webpackMerge(config, {
|
package/webpack/defaults.js
CHANGED
|
@@ -14,34 +14,10 @@ const PUBLIC_STYLEGUIDE_ROOT = path.join(PUBLIC_ROOT, 'style-guide')
|
|
|
14
14
|
const PUBLIC_PATH = process.env.PUBLIC_PATH || '/'
|
|
15
15
|
|
|
16
16
|
const ALIASSES = {
|
|
17
|
-
'@seamly/web-ui$': path.resolve(SRC_ROOT, 'javascripts'),
|
|
18
|
-
'@seamly/web-ui/components$': path.resolve(
|
|
19
|
-
SRC_ROOT,
|
|
20
|
-
'javascripts/package/components.ts',
|
|
21
|
-
),
|
|
22
|
-
'@seamly/web-ui/config': path.resolve(
|
|
23
|
-
SRC_ROOT,
|
|
24
|
-
'javascripts/package/config.ts',
|
|
25
|
-
),
|
|
26
|
-
'@seamly/web-ui/contexts$': path.resolve(
|
|
27
|
-
SRC_ROOT,
|
|
28
|
-
'javascripts/package/contexts.ts',
|
|
29
|
-
),
|
|
30
|
-
'@seamly/web-ui/hooks$': path.resolve(
|
|
31
|
-
SRC_ROOT,
|
|
32
|
-
'javascripts/package/hooks.ts',
|
|
33
|
-
),
|
|
34
|
-
'@seamly/web-ui/storage$': path.resolve(
|
|
35
|
-
SRC_ROOT,
|
|
36
|
-
'javascripts/package/storage.ts',
|
|
37
|
-
),
|
|
38
|
-
'@seamly/web-ui/utils$': path.resolve(
|
|
39
|
-
SRC_ROOT,
|
|
40
|
-
'javascripts/package/utils.ts',
|
|
41
|
-
),
|
|
17
|
+
'@seamly/web-ui$': path.resolve(SRC_ROOT, 'javascripts/core'),
|
|
42
18
|
'@seamly/web-ui/style-guide$': path.resolve(
|
|
43
19
|
SRC_ROOT,
|
|
44
|
-
'javascripts/style-guide
|
|
20
|
+
'javascripts/style-guide',
|
|
45
21
|
),
|
|
46
22
|
'@seamly/web-ui/src/stylesheets/styles.scss': path.resolve(
|
|
47
23
|
SRC_ROOT,
|
|
@@ -55,7 +31,11 @@ const ALIASSES = {
|
|
|
55
31
|
'stylesheets',
|
|
56
32
|
'style-guide.scss',
|
|
57
33
|
),
|
|
58
|
-
lib: path.resolve(SRC_ROOT, 'javascripts/lib/'),
|
|
34
|
+
lib: path.resolve(SRC_ROOT, 'javascripts/core/lib/'),
|
|
35
|
+
ui: path.resolve(SRC_ROOT, 'javascripts/core/ui/'),
|
|
36
|
+
domains: path.resolve(SRC_ROOT, 'javascripts/core/domains/'),
|
|
37
|
+
api: path.resolve(SRC_ROOT, 'javascripts/core/api/'),
|
|
38
|
+
config: path.resolve(SRC_ROOT, 'javascripts/core/config.ts'),
|
|
59
39
|
react: 'preact/compat',
|
|
60
40
|
'react-dom/test-utils': 'preact/test-utils',
|
|
61
41
|
'react-dom': 'preact/compat', // Must be below test-utils
|
|
@@ -15,9 +15,9 @@ module.exports = (env, argv, { PUBLIC_PATH, SRC_ROOT }) => ({
|
|
|
15
15
|
},
|
|
16
16
|
resolve: {
|
|
17
17
|
alias: {
|
|
18
|
-
api: path.resolve(SRC_ROOT, 'javascripts/api/'),
|
|
19
|
-
domains: path.resolve(SRC_ROOT, 'javascripts/domains/'),
|
|
20
|
-
ui: path.resolve(SRC_ROOT, 'javascripts/ui/'),
|
|
18
|
+
api: path.resolve(SRC_ROOT, 'javascripts/core/api/'),
|
|
19
|
+
domains: path.resolve(SRC_ROOT, 'javascripts/core/domains/'),
|
|
20
|
+
ui: path.resolve(SRC_ROOT, 'javascripts/core/ui/'),
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
})
|