@seamly/web-ui 19.0.0 → 19.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/package.json +1 -1
  2. package/src/javascripts/api/errors/seamly-base-error.js +10 -0
  3. package/src/javascripts/api/errors/seamly-configuration-error.js +4 -6
  4. package/src/javascripts/api/errors/seamly-general-error.js +4 -6
  5. package/src/javascripts/api/errors/seamly-offline-error.js +4 -6
  6. package/src/javascripts/api/errors/seamly-session-expired-error.js +4 -6
  7. package/src/javascripts/api/errors/seamly-unauthorized-error.js +4 -6
  8. package/src/javascripts/api/errors/seamly-unavailable-error.js +17 -0
  9. package/src/javascripts/api/index.js +10 -11
  10. package/src/javascripts/domains/app/actions.js +27 -17
  11. package/src/javascripts/domains/app/index.js +2 -1
  12. package/src/javascripts/domains/config/reducer.js +1 -0
  13. package/src/javascripts/domains/config/selectors.js +1 -1
  14. package/src/javascripts/domains/errors/index.js +32 -0
  15. package/src/javascripts/domains/i18n/reducer.js +6 -0
  16. package/src/javascripts/domains/interrupt/middleware.js +2 -0
  17. package/src/javascripts/domains/interrupt/reducer.js +10 -9
  18. package/src/javascripts/domains/store/index.js +6 -1
  19. package/src/javascripts/domains/store/state-reducer.js +10 -6
  20. package/src/javascripts/domains/visibility/actions.js +73 -0
  21. package/src/javascripts/domains/visibility/constants.js +8 -0
  22. package/src/javascripts/domains/visibility/hooks.js +24 -0
  23. package/src/javascripts/domains/visibility/index.js +8 -0
  24. package/src/javascripts/domains/visibility/reducer.js +19 -0
  25. package/src/javascripts/domains/visibility/selectors.js +9 -0
  26. package/src/javascripts/domains/visibility/utils.js +42 -0
  27. package/src/javascripts/index.js +3 -12
  28. package/src/javascripts/lib/engine/index.js +1 -0
  29. package/src/javascripts/lib/redux-helpers/index.js +1 -5
  30. package/src/javascripts/style-guide/components/app.js +1 -1
  31. package/src/javascripts/style-guide/components/static-core.js +5 -0
  32. package/src/javascripts/style-guide/states.js +48 -21
  33. package/src/javascripts/ui/components/conversation/conversation.js +2 -2
  34. package/src/javascripts/ui/components/conversation/event/hooks/use-text-rendering.js +1 -8
  35. package/src/javascripts/ui/components/conversation/event/text.js +19 -13
  36. package/src/javascripts/ui/components/core/seamly-core.js +3 -0
  37. package/src/javascripts/ui/components/core/seamly-event-subscriber.js +3 -3
  38. package/src/javascripts/ui/components/core/seamly-initializer.js +2 -6
  39. package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +2 -3
  40. package/src/javascripts/ui/components/core/seamly-new-notifications.js +2 -2
  41. package/src/javascripts/ui/components/core/seamly-read-state.js +2 -2
  42. package/src/javascripts/ui/components/entry/toggle-button.js +2 -2
  43. package/src/javascripts/ui/components/layout/agent-info.js +2 -2
  44. package/src/javascripts/ui/components/layout/app-frame.js +2 -3
  45. package/src/javascripts/ui/components/layout/chat-frame.js +2 -2
  46. package/src/javascripts/ui/components/layout/modal-wrapper.js +3 -6
  47. package/src/javascripts/ui/components/layout/view.js +3 -6
  48. package/src/javascripts/ui/hooks/seamly-hooks.js +0 -2
  49. package/src/javascripts/ui/hooks/use-seamly-chat.js +3 -5
  50. package/src/javascripts/ui/hooks/use-seamly-commands.js +7 -29
  51. package/src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.js +2 -2
  52. package/src/javascripts/ui/utils/general-utils.js +0 -9
  53. package/src/javascripts/ui/utils/seamly-utils.js +0 -66
  54. package/build/dist/lib/components.js +0 -62
  55. package/build/dist/lib/components.min.js +0 -1
  56. package/build/dist/lib/config.js +0 -51
  57. package/build/dist/lib/config.min.js +0 -1
  58. package/build/dist/lib/contexts.js +0 -53
  59. package/build/dist/lib/contexts.min.js +0 -1
  60. package/build/dist/lib/hooks.js +0 -64
  61. package/build/dist/lib/hooks.min.js +0 -1
  62. package/build/dist/lib/index.debug.js +0 -3113
  63. package/build/dist/lib/index.debug.min.js +0 -2
  64. package/build/dist/lib/index.debug.min.js.LICENSE.txt +0 -1099
  65. package/build/dist/lib/index.js +0 -25907
  66. package/build/dist/lib/index.min.js +0 -2
  67. package/build/dist/lib/index.min.js.LICENSE.txt +0 -14
  68. package/build/dist/lib/standalone.js +0 -34806
  69. package/build/dist/lib/standalone.min.js +0 -2
  70. package/build/dist/lib/standalone.min.js.LICENSE.txt +0 -9
  71. package/build/dist/lib/storage.js +0 -275
  72. package/build/dist/lib/storage.min.js +0 -2
  73. package/build/dist/lib/storage.min.js.LICENSE.txt +0 -1
  74. package/build/dist/lib/style-guide.js +0 -8097
  75. package/build/dist/lib/style-guide.min.js +0 -1
  76. package/build/dist/lib/styles.css +0 -1
  77. package/build/dist/lib/styles.js +0 -1
  78. package/build/dist/lib/utils.js +0 -59
  79. package/build/dist/lib/utils.min.js +0 -1
  80. package/src/javascripts/ui/hooks/use-seamly-stored-visibility.js +0 -31
  81. package/src/javascripts/ui/hooks/use-seamly-visibility.js +0 -98
@@ -3,32 +3,24 @@ import {
3
3
  useSeamlyApiContext,
4
4
  useSeamlyHasConversation,
5
5
  } from './seamly-api-hooks'
6
- import {
7
- useSeamlyStateContext,
8
- useSeamlyUnreadCount,
9
- } from './seamly-state-hooks'
6
+ import { useSeamlyUnreadCount } from './seamly-state-hooks'
10
7
  import useSeamlyDispatchContext from './use-seamly-dispatch'
11
8
  import { SeamlyEventBusContext } from '../components/core/seamly-api-context'
12
9
  import { randomId } from '../../lib/id'
13
10
  import { userParticipantId } from '../../config'
14
- import { sanitizeText } from '../utils/general-utils'
15
11
  import { actionTypes, seamlyActions } from '../utils/seamly-utils'
16
12
  import { useStableCallback } from './utility-hooks'
17
13
  import { Actions as InterruptActions } from '../../domains/interrupt'
18
14
  import { useConfig } from '../../domains/config'
19
- import { useUserHasResponded } from '../../domains/app'
15
+ import { useUserHasResponded, Actions as AppActions } from '../../domains/app'
16
+ import { useVisibility } from '../../domains/visibility'
20
17
 
21
18
  const {
22
19
  ADD_EVENT,
23
- CLEAR_EVENTS,
24
20
  SET_IS_LOADING,
25
- CLEAR_PARTICIPANTS,
26
21
  SET_HEADER_SUB_TITLE,
27
22
  SET_INITIAL_STATE,
28
- CLEAR_FEATURES,
29
23
  SET_FEATURES,
30
- RESET_UPLOAD_STATE,
31
- RESET_ENTRY_STATE,
32
24
  } = seamlyActions
33
25
 
34
26
  const useSeamlyCommands = () => {
@@ -39,7 +31,7 @@ const useSeamlyCommands = () => {
39
31
 
40
32
  const hasResponded = useUserHasResponded()
41
33
  const hasConversation = useSeamlyHasConversation()
42
- const { visible: visibility } = useSeamlyStateContext()
34
+ const { visible: visibility } = useVisibility()
43
35
  const unreadMessageCount = useSeamlyUnreadCount()
44
36
 
45
37
  const emitEvent = useCallback(
@@ -75,18 +67,13 @@ const useSeamlyCommands = () => {
75
67
  ])
76
68
 
77
69
  const reset = useCallback(async () => {
70
+ dispatch(AppActions.reset())
78
71
  dispatch(InterruptActions.clear())
79
- dispatch({ type: CLEAR_EVENTS })
72
+
80
73
  dispatch({
81
74
  type: SET_IS_LOADING,
82
75
  isLoading: true,
83
76
  })
84
- dispatch({
85
- type: CLEAR_PARTICIPANTS,
86
- })
87
- dispatch({ type: RESET_UPLOAD_STATE })
88
- dispatch({ type: RESET_ENTRY_STATE })
89
- dispatch({ type: CLEAR_FEATURES })
90
77
 
91
78
  const { agentName } = appConfig.defaults || {}
92
79
 
@@ -143,20 +130,11 @@ const useSeamlyCommands = () => {
143
130
  ...config,
144
131
  }
145
132
 
146
- const sanitizedText = sanitizeText(body)
147
-
148
- const sanitizedMessage = {
149
- ...message,
150
- body: {
151
- text: sanitizedText,
152
- },
153
- }
154
-
155
133
  api.send('message', message)
156
134
  emitEvent('message', message)
157
135
  dispatch({
158
136
  type: ADD_EVENT,
159
- event: { type: 'message', payload: sanitizedMessage },
137
+ event: { type: 'message', payload: message },
160
138
  })
161
139
  },
162
140
  [api, dispatch, emitEvent, getTextMessageBase],
@@ -10,7 +10,7 @@ import {
10
10
  } from '../utils/general-utils'
11
11
  import { actionTypes, seamlyActions } from '../utils/seamly-utils'
12
12
  import { screenReaderDebounceDelaySeconds } from '../../config'
13
- import useSeamlyVisibility from './use-seamly-visibility'
13
+ import { useVisibility } from '../../domains/visibility'
14
14
 
15
15
  const {
16
16
  CLEAR_IDLE_DETACH_COUNTDOWN,
@@ -24,7 +24,7 @@ const useSeamlyIdleDetachCountdown = () => {
24
24
 
25
25
  const { idleDetachCountdown } = useSeamlyStateContext()
26
26
 
27
- const { isOpen: isSeamlyOpen } = useSeamlyVisibility()
27
+ const { isOpen: isSeamlyOpen } = useVisibility()
28
28
 
29
29
  const stableState = useRef({})
30
30
 
@@ -87,15 +87,6 @@ export const microsecondsToMilliseconds = (microseconds) => {
87
87
  return Math.ceil(microseconds / 1000)
88
88
  }
89
89
 
90
- export const sanitizeText = (text) =>
91
- text
92
- .replace(/&/g, '&')
93
- .replace(/</g, '&lt;')
94
- .replace(/>/g, '&gt;')
95
- .replace(/"/g, '&quot;')
96
- .replace(/'/g, '&#39;')
97
- .replace(/\//g, '&#x2F;')
98
-
99
90
  export const getTimeFromSeconds = (seconds) => {
100
91
  const minutes = Math.floor(seconds / 60)
101
92
  const secondsPartial = seconds - minutes * 60
@@ -26,13 +26,6 @@ export const entryTypes = {
26
26
  upload: 'upload',
27
27
  }
28
28
 
29
- export const visibilityStates = {
30
- hidden: 'hidden',
31
- minimized: 'minimized',
32
- open: 'open',
33
- initialize: null,
34
- }
35
-
36
29
  export const readStates = {
37
30
  received: 'received',
38
31
  read: 'read',
@@ -85,7 +78,6 @@ export const seamlyActions = {
85
78
  SET_PARTICIPANT: 'SET_PARTICIPANT',
86
79
  SET_HEADER_TITLE: 'SET_HEADER_TITLE',
87
80
  SET_HEADER_SUB_TITLE: 'SET_HEADER_SUB_TITLE',
88
- SET_VISIBILITY: 'SET_VISIBILITY',
89
81
  RESET_HISTORY_LOADED_FLAG: 'RESET_HISTORY_LOADED_FLAG',
90
82
  SET_ACTIVE_SERVICE: 'SET_ACTIVE_SERVICE',
91
83
  INIT_IDLE_DETACH_COUNTDOWN: 'INIT_IDLE_DETACH_COUNTDOWN',
@@ -114,8 +106,6 @@ export const seamlyActions = {
114
106
  SET_UPLOAD_ERROR: 'SET_UPLOAD_ERROR',
115
107
  CLEAR_UPLOAD: 'CLEAR_UPLOAD',
116
108
  CLEAR_ALL_UPLOADS: 'CLEAR_ALL_UPLOADS',
117
- RESET_UPLOAD_STATE: 'RESET_UPLOAD_STATE',
118
- RESET_ENTRY_STATE: 'RESET_ENTRY_STATE',
119
109
  SET_SEAMLY_CONTAINER_ELEMENT: 'SET_SEAMLY_CONTAINER_ELEMENT',
120
110
  }
121
111
 
@@ -136,7 +126,6 @@ const {
136
126
  SET_PARTICIPANT,
137
127
  SET_HEADER_TITLE,
138
128
  SET_HEADER_SUB_TITLE,
139
- SET_VISIBILITY,
140
129
  RESET_HISTORY_LOADED_FLAG,
141
130
  SET_ACTIVE_SERVICE,
142
131
  INIT_IDLE_DETACH_COUNTDOWN,
@@ -164,8 +153,6 @@ const {
164
153
  SET_UPLOAD_ERROR,
165
154
  CLEAR_UPLOAD,
166
155
  CLEAR_ALL_UPLOADS,
167
- RESET_UPLOAD_STATE,
168
- RESET_ENTRY_STATE,
169
156
  SET_SEAMLY_CONTAINER_ELEMENT,
170
157
  } = seamlyActions
171
158
 
@@ -594,8 +581,6 @@ export const seamlyStateReducer = (state, action) => {
594
581
  ...state,
595
582
  resumeConversationPrompt: false,
596
583
  }
597
- case SET_VISIBILITY:
598
- return { ...state, visible: action.visible }
599
584
  case SET_PARTICIPANT:
600
585
  case CLEAR_PARTICIPANTS:
601
586
  return {
@@ -820,25 +805,6 @@ export const seamlyStateReducer = (state, action) => {
820
805
  ...state,
821
806
  currentUploads: [],
822
807
  }
823
- case RESET_UPLOAD_STATE:
824
- return {
825
- ...state,
826
- showFileUpload: false,
827
- currentUploads: [],
828
- }
829
- case RESET_ENTRY_STATE: {
830
- return {
831
- ...state,
832
- entryMeta: {
833
- default: payloadTypes.text,
834
- active: payloadTypes.text,
835
- userSelected: null,
836
- blockAutoEntrySwitch: false,
837
- options: {},
838
- optionsOverride: {},
839
- },
840
- }
841
- }
842
808
  case SET_SEAMLY_CONTAINER_ELEMENT: {
843
809
  return {
844
810
  ...state,
@@ -849,35 +815,3 @@ export const seamlyStateReducer = (state, action) => {
849
815
  return state
850
816
  }
851
817
  }
852
-
853
- export const calculateVisibility = ({
854
- hasResponded,
855
- previousVisibility,
856
- requestedVisibility,
857
- config,
858
- }) => {
859
- const { defaults, layoutMode, hideOnNoUserResponse } = config
860
-
861
- const { visible: defaultVisibility } = defaults || {}
862
-
863
- // Requesting open should override the responded check.
864
- if (
865
- layoutMode === 'window' &&
866
- hideOnNoUserResponse &&
867
- requestedVisibility !== visibilityStates.open
868
- ) {
869
- return hasResponded
870
- ? requestedVisibility || previousVisibility || visibilityStates.open
871
- : visibilityStates.hidden
872
- }
873
-
874
- const baseVisibility =
875
- layoutMode === 'inline' ? visibilityStates.open : visibilityStates.minimized
876
-
877
- return (
878
- requestedVisibility ||
879
- previousVisibility ||
880
- defaultVisibility ||
881
- baseVisibility
882
- )
883
- }
@@ -1,62 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/define property getters */
8
- /******/ (() => {
9
- /******/ // define getter functions for harmony exports
10
- /******/ __webpack_require__.d = (exports, definition) => {
11
- /******/ for(var key in definition) {
12
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14
- /******/ }
15
- /******/ }
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
- /******/ (() => {
21
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22
- /******/ })();
23
- /******/
24
- /******/ /* webpack/runtime/make namespace object */
25
- /******/ (() => {
26
- /******/ // define __esModule on exports
27
- /******/ __webpack_require__.r = (exports) => {
28
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30
- /******/ }
31
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
32
- /******/ };
33
- /******/ })();
34
- /******/
35
- /************************************************************************/
36
- var __webpack_exports__ = {};
37
- // ESM COMPAT FLAG
38
- __webpack_require__.r(__webpack_exports__);
39
-
40
- // EXPORTS
41
- __webpack_require__.d(__webpack_exports__, {
42
- "AgentInfo": () => (/* reexport */ web_ui_namespaceObject.AgentInfo),
43
- "AppFrame": () => (/* reexport */ web_ui_namespaceObject.AppFrame),
44
- "ChatFrame": () => (/* reexport */ web_ui_namespaceObject.ChatFrame),
45
- "Conversation": () => (/* reexport */ web_ui_namespaceObject.Conversation),
46
- "EntryContainer": () => (/* reexport */ web_ui_namespaceObject.EntryContainer),
47
- "EventParticipant": () => (/* reexport */ web_ui_namespaceObject.EventParticipant),
48
- "Header": () => (/* reexport */ web_ui_namespaceObject.Header),
49
- "Icon": () => (/* reexport */ web_ui_namespaceObject.Icon),
50
- "MessageContainer": () => (/* reexport */ web_ui_namespaceObject.MessageContainer),
51
- "Text": () => (/* reexport */ web_ui_namespaceObject.Text),
52
- "ToggleButton": () => (/* reexport */ web_ui_namespaceObject.ToggleButton),
53
- "View": () => (/* reexport */ web_ui_namespaceObject.View)
54
- });
55
-
56
- ;// CONCATENATED MODULE: external "@seamly/web-ui"
57
- const web_ui_namespaceObject = require("@seamly/web-ui");
58
- ;// CONCATENATED MODULE: ./src/javascripts/package/components.js
59
-
60
- module.exports = __webpack_exports__;
61
- /******/ })()
62
- ;
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AgentInfo:()=>n.AgentInfo,AppFrame:()=>n.AppFrame,ChatFrame:()=>n.ChatFrame,Conversation:()=>n.Conversation,EntryContainer:()=>n.EntryContainer,EventParticipant:()=>n.EventParticipant,Header:()=>n.Header,Icon:()=>n.Icon,MessageContainer:()=>n.MessageContainer,Text:()=>n.Text,ToggleButton:()=>n.ToggleButton,View:()=>n.View});const n=require("@seamly/web-ui");module.exports=t})();
@@ -1,51 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/define property getters */
8
- /******/ (() => {
9
- /******/ // define getter functions for harmony exports
10
- /******/ __webpack_require__.d = (exports, definition) => {
11
- /******/ for(var key in definition) {
12
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14
- /******/ }
15
- /******/ }
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
- /******/ (() => {
21
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22
- /******/ })();
23
- /******/
24
- /******/ /* webpack/runtime/make namespace object */
25
- /******/ (() => {
26
- /******/ // define __esModule on exports
27
- /******/ __webpack_require__.r = (exports) => {
28
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30
- /******/ }
31
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
32
- /******/ };
33
- /******/ })();
34
- /******/
35
- /************************************************************************/
36
- var __webpack_exports__ = {};
37
- // ESM COMPAT FLAG
38
- __webpack_require__.r(__webpack_exports__);
39
-
40
- // EXPORTS
41
- __webpack_require__.d(__webpack_exports__, {
42
- "visibilityStates": () => (/* reexport */ web_ui_namespaceObject.visibilityStates)
43
- });
44
-
45
- ;// CONCATENATED MODULE: external "@seamly/web-ui"
46
- const web_ui_namespaceObject = require("@seamly/web-ui");
47
- ;// CONCATENATED MODULE: ./src/javascripts/package/config.js
48
-
49
- module.exports = __webpack_exports__;
50
- /******/ })()
51
- ;
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{visibilityStates:()=>o.visibilityStates});const o=require("@seamly/web-ui");module.exports=t})();
@@ -1,53 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/define property getters */
8
- /******/ (() => {
9
- /******/ // define getter functions for harmony exports
10
- /******/ __webpack_require__.d = (exports, definition) => {
11
- /******/ for(var key in definition) {
12
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14
- /******/ }
15
- /******/ }
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
- /******/ (() => {
21
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22
- /******/ })();
23
- /******/
24
- /******/ /* webpack/runtime/make namespace object */
25
- /******/ (() => {
26
- /******/ // define __esModule on exports
27
- /******/ __webpack_require__.r = (exports) => {
28
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30
- /******/ }
31
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
32
- /******/ };
33
- /******/ })();
34
- /******/
35
- /************************************************************************/
36
- var __webpack_exports__ = {};
37
- // ESM COMPAT FLAG
38
- __webpack_require__.r(__webpack_exports__);
39
-
40
- // EXPORTS
41
- __webpack_require__.d(__webpack_exports__, {
42
- "SeamlyApiContext": () => (/* reexport */ web_ui_namespaceObject.SeamlyApiContext),
43
- "SeamlyEventBusContext": () => (/* reexport */ web_ui_namespaceObject.SeamlyEventBusContext),
44
- "SeamlyLiveRegionContext": () => (/* reexport */ web_ui_namespaceObject.SeamlyLiveRegionContext)
45
- });
46
-
47
- ;// CONCATENATED MODULE: external "@seamly/web-ui"
48
- const web_ui_namespaceObject = require("@seamly/web-ui");
49
- ;// CONCATENATED MODULE: ./src/javascripts/package/contexts.js
50
-
51
- module.exports = __webpack_exports__;
52
- /******/ })()
53
- ;
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{SeamlyApiContext:()=>o.SeamlyApiContext,SeamlyEventBusContext:()=>o.SeamlyEventBusContext,SeamlyLiveRegionContext:()=>o.SeamlyLiveRegionContext});const o=require("@seamly/web-ui");module.exports=t})();
@@ -1,64 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/define property getters */
8
- /******/ (() => {
9
- /******/ // define getter functions for harmony exports
10
- /******/ __webpack_require__.d = (exports, definition) => {
11
- /******/ for(var key in definition) {
12
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14
- /******/ }
15
- /******/ }
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
- /******/ (() => {
21
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22
- /******/ })();
23
- /******/
24
- /******/ /* webpack/runtime/make namespace object */
25
- /******/ (() => {
26
- /******/ // define __esModule on exports
27
- /******/ __webpack_require__.r = (exports) => {
28
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30
- /******/ }
31
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
32
- /******/ };
33
- /******/ })();
34
- /******/
35
- /************************************************************************/
36
- var __webpack_exports__ = {};
37
- // ESM COMPAT FLAG
38
- __webpack_require__.r(__webpack_exports__);
39
-
40
- // EXPORTS
41
- __webpack_require__.d(__webpack_exports__, {
42
- "useChoicePrompt": () => (/* reexport */ web_ui_namespaceObject.useChoicePrompt),
43
- "useDispatch": () => (/* reexport */ web_ui_namespaceObject.useDispatch),
44
- "useEvents": () => (/* reexport */ web_ui_namespaceObject.useEvents),
45
- "useGeneratedId": () => (/* reexport */ web_ui_namespaceObject.useGeneratedId),
46
- "useI18n": () => (/* reexport */ web_ui_namespaceObject.useI18n),
47
- "useSeamlyChat": () => (/* reexport */ web_ui_namespaceObject.useSeamlyChat),
48
- "useSeamlyCommands": () => (/* reexport */ web_ui_namespaceObject.useSeamlyCommands),
49
- "useSeamlyEventStream": () => (/* reexport */ web_ui_namespaceObject.useSeamlyEventStream),
50
- "useSeamlyIdleDetachCountdown": () => (/* reexport */ web_ui_namespaceObject.useSeamlyIdleDetachCountdown),
51
- "useSeamlyMessageContainerClassNames": () => (/* reexport */ web_ui_namespaceObject.useSeamlyMessageContainerClassNames),
52
- "useSeamlyOptions": () => (/* reexport */ web_ui_namespaceObject.useSeamlyOptions),
53
- "useTranslatedEventData": () => (/* reexport */ web_ui_namespaceObject.useTranslatedEventData),
54
- "useTranslations": () => (/* reexport */ web_ui_namespaceObject.useTranslations),
55
- "useTranslationsContainer": () => (/* reexport */ web_ui_namespaceObject.useTranslationsContainer)
56
- });
57
-
58
- ;// CONCATENATED MODULE: external "@seamly/web-ui"
59
- const web_ui_namespaceObject = require("@seamly/web-ui");
60
- ;// CONCATENATED MODULE: ./src/javascripts/package/hooks.js
61
-
62
- module.exports = __webpack_exports__;
63
- /******/ })()
64
- ;
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e={d:(s,a)=>{for(var t in a)e.o(a,t)&&!e.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:a[t]})},o:(e,s)=>Object.prototype.hasOwnProperty.call(e,s),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},s={};e.r(s),e.d(s,{useChoicePrompt:()=>a.useChoicePrompt,useDispatch:()=>a.useDispatch,useEvents:()=>a.useEvents,useGeneratedId:()=>a.useGeneratedId,useI18n:()=>a.useI18n,useSeamlyChat:()=>a.useSeamlyChat,useSeamlyCommands:()=>a.useSeamlyCommands,useSeamlyEventStream:()=>a.useSeamlyEventStream,useSeamlyIdleDetachCountdown:()=>a.useSeamlyIdleDetachCountdown,useSeamlyMessageContainerClassNames:()=>a.useSeamlyMessageContainerClassNames,useSeamlyOptions:()=>a.useSeamlyOptions,useTranslatedEventData:()=>a.useTranslatedEventData,useTranslations:()=>a.useTranslations,useTranslationsContainer:()=>a.useTranslationsContainer});const a=require("@seamly/web-ui");module.exports=s})();