@seamly/web-ui 21.0.2-beta.1 → 21.0.2-beta.4
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 +3 -3
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +17 -5
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +21 -8
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +23 -17
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/utils.js +15 -5
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/api/index.ts +1 -1
- package/src/javascripts/index.ts +1 -0
- package/src/javascripts/lib/external-api/index.js +17 -4
- package/src/javascripts/style-guide/components/static-core.js +8 -11
|
@@ -7113,7 +7113,7 @@ class API {
|
|
|
7113
7113
|
(_a = this.conversation) === null || _a === void 0 ? void 0 : _a.onConnection(connectionState => {
|
|
7114
7114
|
const connected = connectionState === 'join_channel_succeeded';
|
|
7115
7115
|
const ready = connectionState === 'attach_channel_succeeded';
|
|
7116
|
-
if (
|
|
7116
|
+
if (connected || ready) {
|
|
7117
7117
|
this.send(command, payload, waitForReady);
|
|
7118
7118
|
}
|
|
7119
7119
|
});
|
|
@@ -7211,7 +7211,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
|
|
|
7211
7211
|
return {
|
|
7212
7212
|
clientName: "@seamly/web-ui",
|
|
7213
7213
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
7214
|
-
clientVersion: "21.0.2-beta.
|
|
7214
|
+
clientVersion: "21.0.2-beta.4",
|
|
7215
7215
|
currentUrl: window.location.toString(),
|
|
7216
7216
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
7217
7217
|
timezone: getTimeZone(),
|
|
@@ -21965,7 +21965,19 @@ class ExternalApi {
|
|
|
21965
21965
|
}
|
|
21966
21966
|
});
|
|
21967
21967
|
}
|
|
21968
|
+
instanceInitializing(namespace) {
|
|
21969
|
+
const instances = Object.keys(this._instances);
|
|
21970
|
+
return !namespace && instances.length > 0 || instances.includes(namespace);
|
|
21971
|
+
}
|
|
21968
21972
|
setContext(action, args) {
|
|
21973
|
+
const {
|
|
21974
|
+
instance: namespace
|
|
21975
|
+
} = args;
|
|
21976
|
+
// Do not set this action in context if we are already initializing.
|
|
21977
|
+
// If we do, it will not be sent to the server anymore (because it gets marked as 'handled').
|
|
21978
|
+
if (this.instanceInitializing(namespace)) {
|
|
21979
|
+
return false;
|
|
21980
|
+
}
|
|
21969
21981
|
switch (action) {
|
|
21970
21982
|
case 'setTopic':
|
|
21971
21983
|
const {
|
|
@@ -22034,9 +22046,7 @@ class ExternalApi {
|
|
|
22034
22046
|
|
|
22035
22047
|
// results will be an array containing the results of wether an instance has
|
|
22036
22048
|
// handled the action or not
|
|
22037
|
-
const results = instances.map(instance =>
|
|
22038
|
-
return !namespace || instance.namespace === namespace ? instance.execFunction(action, ...args) : false;
|
|
22039
|
-
});
|
|
22049
|
+
const results = instances.map(instance => !namespace || instance.namespace === namespace ? instance.execFunction(action, ...args) : false);
|
|
22040
22050
|
|
|
22041
22051
|
// test if any of the instances has handled the action
|
|
22042
22052
|
return results.some(Boolean);
|
|
@@ -24394,6 +24404,8 @@ const StyleGuideLinks = ({
|
|
|
24394
24404
|
});
|
|
24395
24405
|
};
|
|
24396
24406
|
/* harmony default export */ const links = (StyleGuideLinks);
|
|
24407
|
+
;// CONCATENATED MODULE: external "@seamly/web-ui"
|
|
24408
|
+
const web_ui_namespaceObject = require("@seamly/web-ui");
|
|
24397
24409
|
;// CONCATENATED MODULE: ./src/javascripts/style-guide/components/static-core.js
|
|
24398
24410
|
const static_core_excluded = ["translations", "interrupt", "config", "visibility"];
|
|
24399
24411
|
function static_core_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = static_core_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -24410,10 +24422,6 @@ function static_core_objectWithoutPropertiesLoose(source, excluded) { if (source
|
|
|
24410
24422
|
|
|
24411
24423
|
|
|
24412
24424
|
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
24425
|
const bareApi = {
|
|
24418
24426
|
send: () => {
|
|
24419
24427
|
// do nothing
|
|
@@ -24501,18 +24509,16 @@ const SeamlyStaticCore = ({
|
|
|
24501
24509
|
});
|
|
24502
24510
|
return newStore;
|
|
24503
24511
|
}, [participants, state, translations]);
|
|
24504
|
-
return state && (0,jsx_runtime_namespaceObject.jsx)(
|
|
24512
|
+
return state && (0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyStoreProvider, {
|
|
24505
24513
|
store: store,
|
|
24506
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(SeamlyEventBusContext.Provider, {
|
|
24514
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyEventBusContext.Provider, {
|
|
24507
24515
|
value: eventBusRef.current,
|
|
24508
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(SeamlyLiveRegionContext.Provider, {
|
|
24516
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyLiveRegionContext.Provider, {
|
|
24509
24517
|
value: liveMsgRef.current,
|
|
24510
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(SeamlyApiContext.Provider, {
|
|
24518
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyApiContext.Provider, {
|
|
24511
24519
|
value: bareApi,
|
|
24512
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(
|
|
24513
|
-
children:
|
|
24514
|
-
children: children
|
|
24515
|
-
})
|
|
24520
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.ComponentFilter, {
|
|
24521
|
+
children: children
|
|
24516
24522
|
})
|
|
24517
24523
|
})
|
|
24518
24524
|
})
|