@seamly/web-ui 18.3.0 → 18.3.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 +6 -6
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +10 -10
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +2 -0
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +3 -5
- package/build/dist/lib/style-guide.min.js +1 -1
- package/package.json +2 -1
- package/src/javascripts/ui/components/core/seamly-activity-monitor.js +2 -0
- package/webpack/config.site.js +6 -0
- package/CHANGELOG.md +0 -573
package/build/dist/lib/index.js
CHANGED
|
@@ -13456,12 +13456,12 @@ const useSeamlyStateContext = () => useSelector(seamly_state_hooks_selectState);
|
|
|
13456
13456
|
const selectEvents = createSelector(seamly_state_hooks_selectState, selectConfig, ({
|
|
13457
13457
|
events
|
|
13458
13458
|
}, config) => {
|
|
13459
|
-
var _config$messages
|
|
13459
|
+
var _config$messages;
|
|
13460
13460
|
|
|
13461
13461
|
const {
|
|
13462
13462
|
enabled,
|
|
13463
13463
|
threshold
|
|
13464
|
-
} = (
|
|
13464
|
+
} = (config === null || config === void 0 ? void 0 : (_config$messages = config.messages) === null || _config$messages === void 0 ? void 0 : _config$messages.timeIndicator) ?? {};
|
|
13465
13465
|
|
|
13466
13466
|
if (!enabled) {
|
|
13467
13467
|
return events;
|
|
@@ -15655,9 +15655,7 @@ function updateFormControl(state, formId, name, controlState) {
|
|
|
15655
15655
|
formId,
|
|
15656
15656
|
persistData
|
|
15657
15657
|
}) => {
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
const formState = persistData ? (_state$formId2 = state[formId]) !== null && _state$formId2 !== void 0 ? _state$formId2 : forms_reducer_objectSpread(forms_reducer_objectSpread({}, initialFormState), {}, {
|
|
15658
|
+
const formState = persistData ? state[formId] ?? forms_reducer_objectSpread(forms_reducer_objectSpread({}, initialFormState), {}, {
|
|
15661
15659
|
persistData
|
|
15662
15660
|
}) : forms_reducer_objectSpread(forms_reducer_objectSpread({}, initialFormState), {}, {
|
|
15663
15661
|
persistData
|
|
@@ -15770,8 +15768,8 @@ function validate(values, schema = {}) {
|
|
|
15770
15768
|
validations = [validations];
|
|
15771
15769
|
}
|
|
15772
15770
|
|
|
15773
|
-
for (let i = 0;
|
|
15774
|
-
var
|
|
15771
|
+
for (let i = 0; i < ((_validations = validations) === null || _validations === void 0 ? void 0 : _validations.length) ?? 0; i++) {
|
|
15772
|
+
var _validations;
|
|
15775
15773
|
|
|
15776
15774
|
if (!validations[i].fn(values[key], validations[i].compareValue)) {
|
|
15777
15775
|
errors[key] = validations[i].errorText;
|
|
@@ -17716,7 +17714,7 @@ const AgentInfo = () => {
|
|
|
17716
17714
|
className: css_className('agent-info__body'),
|
|
17717
17715
|
children: [(0,jsx_runtime_namespaceObject.jsx)("p", {
|
|
17718
17716
|
className: css_className('agent-info__heading'),
|
|
17719
|
-
children: title
|
|
17717
|
+
children: title ?? t('header.title')
|
|
17720
17718
|
}), (0,jsx_runtime_namespaceObject.jsx)("p", {
|
|
17721
17719
|
className: css_className('agent-info__text'),
|
|
17722
17720
|
children: displaySubtitle
|
|
@@ -17853,13 +17851,13 @@ const timeFormatOptions = {
|
|
|
17853
17851
|
minute: 'numeric'
|
|
17854
17852
|
};
|
|
17855
17853
|
const useFormattedDate = date => {
|
|
17856
|
-
var _config$context
|
|
17854
|
+
var _config$context;
|
|
17857
17855
|
|
|
17858
17856
|
const {
|
|
17859
17857
|
t
|
|
17860
17858
|
} = useI18n();
|
|
17861
17859
|
const config = useConfig();
|
|
17862
|
-
const locale = (
|
|
17860
|
+
const locale = (config === null || config === void 0 ? void 0 : (_config$context = config.context) === null || _config$context === void 0 ? void 0 : _config$context.locale) ?? [];
|
|
17863
17861
|
const eventDate = new Date(date);
|
|
17864
17862
|
const currentDate = new Date();
|
|
17865
17863
|
const midnight = new Date(currentDate);
|
|
@@ -21907,6 +21905,7 @@ const SeamlyIdleDetachCounter = () => {
|
|
|
21907
21905
|
|
|
21908
21906
|
|
|
21909
21907
|
|
|
21908
|
+
|
|
21910
21909
|
const SeamlyActivityMonitor = ({
|
|
21911
21910
|
children
|
|
21912
21911
|
}) => {
|
|
@@ -21942,6 +21941,7 @@ const SeamlyActivityMonitor = ({
|
|
|
21942
21941
|
// be fired inside the container on the initial focus event.
|
|
21943
21942
|
|
|
21944
21943
|
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
21944
|
+
className: css_className('activity-monitor'),
|
|
21945
21945
|
tabIndex: "-1",
|
|
21946
21946
|
onMouseDown: onActivityHandler,
|
|
21947
21947
|
onKeyUp: onActivityHandler,
|