@seamly/web-ui 23.0.1 → 23.0.2
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 +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +1 -1
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +12 -11
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/utils.js +1 -1
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/style-guide/components/static-core.tsx +15 -15
- package/src/javascripts/style-guide/components/view.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { configureStore } from '@reduxjs/toolkit'
|
|
2
2
|
import { FC } from 'preact/compat'
|
|
3
3
|
import { useMemo, useRef } from 'preact/hooks'
|
|
4
|
-
import {
|
|
5
|
-
API,
|
|
6
|
-
ComponentFilter,
|
|
7
|
-
SeamlyApiContext,
|
|
8
|
-
SeamlyEventBusContext,
|
|
9
|
-
SeamlyLiveRegionContext,
|
|
10
|
-
SeamlyStoreProvider,
|
|
11
|
-
} from '@seamly/web-ui'
|
|
4
|
+
import { Provider } from 'react-redux'
|
|
12
5
|
import appReducer from 'domains/app/slice'
|
|
13
6
|
import configReducer, {
|
|
14
7
|
setConfig,
|
|
@@ -25,8 +18,15 @@ import stateReducer, { setParticipant } from 'domains/store/slice'
|
|
|
25
18
|
import { MessageParticipant } from 'domains/store/store.types'
|
|
26
19
|
import translationReducer from 'domains/translations/slice'
|
|
27
20
|
import visibilityReducer from 'domains/visibility/slice'
|
|
21
|
+
import ComponentFilter from 'ui/components/conversation/component-filter'
|
|
28
22
|
import SeamlyActivityMonitor from 'ui/components/core/seamly-activity-monitor'
|
|
23
|
+
import {
|
|
24
|
+
SeamlyApiContext,
|
|
25
|
+
SeamlyEventBusContext,
|
|
26
|
+
} from 'ui/components/core/seamly-api-context'
|
|
29
27
|
import SeamlyFileUpload from 'ui/components/core/seamly-file-upload'
|
|
28
|
+
import { SeamlyLiveRegionContext } from 'ui/components/core/seamly-live-region-context'
|
|
29
|
+
import type { API } from 'api'
|
|
30
30
|
|
|
31
31
|
const bareApi = {
|
|
32
32
|
send: () => {
|
|
@@ -150,20 +150,20 @@ const SeamlyStaticCore: FC<StaticCoreProps> = ({
|
|
|
150
150
|
|
|
151
151
|
return (
|
|
152
152
|
state && (
|
|
153
|
-
<
|
|
153
|
+
<Provider store={store}>
|
|
154
154
|
<SeamlyEventBusContext.Provider value={eventBusRef.current}>
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<
|
|
155
|
+
{/* @ts-ignore */}
|
|
156
|
+
<SeamlyApiContext.Provider value={bareApi}>
|
|
157
|
+
<SeamlyLiveRegionContext.Provider value={liveMsgRef.current}>
|
|
158
158
|
<ComponentFilter>
|
|
159
159
|
<SeamlyActivityMonitor>
|
|
160
160
|
<SeamlyFileUpload>{children}</SeamlyFileUpload>
|
|
161
161
|
</SeamlyActivityMonitor>
|
|
162
162
|
</ComponentFilter>
|
|
163
|
-
</
|
|
164
|
-
</
|
|
163
|
+
</SeamlyLiveRegionContext.Provider>
|
|
164
|
+
</SeamlyApiContext.Provider>
|
|
165
165
|
</SeamlyEventBusContext.Provider>
|
|
166
|
-
</
|
|
166
|
+
</Provider>
|
|
167
167
|
)
|
|
168
168
|
)
|
|
169
169
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'preact/hooks'
|
|
2
|
-
import { View } from '@seamly/web-ui'
|
|
3
2
|
import StyleGuideStaticCore from 'style-guide/components/static-core'
|
|
3
|
+
import View from 'ui/components/view'
|
|
4
4
|
import { timeout } from 'ui/hooks/focus-helper-hooks'
|
|
5
5
|
|
|
6
6
|
const StyleGuideView = ({
|