@geotab/zenith 3.17.1-beta.3 → 3.18.0-beta.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 (68) hide show
  1. package/README.md +8 -0
  2. package/dist/chart/pieChart/pieLegendPlugin.js +3 -0
  3. package/dist/chart/pieChart/renderPieLegend.js +6 -4
  4. package/dist/chart/plugins/legend/legendFocus.d.ts +2 -0
  5. package/dist/chart/plugins/legend/legendFocus.js +20 -0
  6. package/dist/chart/plugins/legend/legendPlugin.js +3 -0
  7. package/dist/chart/plugins/legend/renderLegend.js +9 -5
  8. package/dist/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.d.ts +2 -1
  9. package/dist/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.js +1 -0
  10. package/dist/commonHelpers/hooks/useMergedRef.d.ts +6 -0
  11. package/dist/commonHelpers/hooks/useMergedRef.js +37 -0
  12. package/dist/commonStyles/typography/typography.less +9 -0
  13. package/dist/dateInputInner/dateInputInnerReducer.d.ts +1 -0
  14. package/dist/dateInputInner/dateInputInnerReducer.js +18 -0
  15. package/dist/dateInputRaw/types.d.ts +1 -0
  16. package/dist/dateInputRaw/types.js +18 -0
  17. package/dist/datePickerCommon/hooks/useDateRangeRaw/useDateRangeRawCore.d.ts +7 -1
  18. package/dist/datePickerCommon/hooks/useDateRangeRaw/useDateRangeRawCore.js +5 -5
  19. package/dist/dateRangeRaw/types.d.ts +1 -0
  20. package/dist/dateRangeRaw/types.js +18 -0
  21. package/dist/dateRangeRaw/utils/areMapsEqual.d.ts +1 -0
  22. package/dist/dateRangeRaw/utils/areMapsEqual.js +18 -0
  23. package/dist/dateRangeRawNew/hooks/useDateRangeNewParts.d.ts +7 -1
  24. package/dist/dateRangeRawNew/hooks/useDateRangeNewParts.js +24 -15
  25. package/dist/dateRangeRawNew/hooks/useDateRangeRawNew.js +2 -2
  26. package/dist/dateRangeRawNew/hooks/useRangeEntry.js +31 -4
  27. package/dist/index.css +123 -0
  28. package/dist/miniTabs/miniTabs.d.ts +2 -1
  29. package/dist/miniTabs/miniTabs.js +2 -2
  30. package/dist/miniTabs/miniTabsItem.js +1 -1
  31. package/dist/stepperRaw/stepperRaw.js +5 -2
  32. package/dist/textInputRaw/textInputRaw.js +4 -2
  33. package/dist/textareaRaw/textareaRaw.js +4 -2
  34. package/dist/utils/dateInputUtils/useTodayButton.d.ts +1 -0
  35. package/dist/utils/dateInputUtils/useTodayButton.js +18 -0
  36. package/esm/chart/pieChart/pieLegendPlugin.js +3 -0
  37. package/esm/chart/pieChart/renderPieLegend.js +6 -4
  38. package/esm/chart/plugins/legend/legendFocus.d.ts +2 -0
  39. package/esm/chart/plugins/legend/legendFocus.js +15 -0
  40. package/esm/chart/plugins/legend/legendPlugin.js +3 -0
  41. package/esm/chart/plugins/legend/renderLegend.js +9 -5
  42. package/esm/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.d.ts +2 -1
  43. package/esm/commonHelpers/hooks/useFormFieldValues/useFormFieldValues.js +1 -0
  44. package/esm/commonHelpers/hooks/useMergedRef.d.ts +6 -0
  45. package/esm/commonHelpers/hooks/useMergedRef.js +33 -0
  46. package/esm/dateInputInner/dateInputInnerReducer.d.ts +1 -0
  47. package/esm/dateInputInner/dateInputInnerReducer.js +2 -0
  48. package/esm/dateInputRaw/types.d.ts +1 -0
  49. package/esm/dateInputRaw/types.js +2 -0
  50. package/esm/datePickerCommon/hooks/useDateRangeRaw/useDateRangeRawCore.d.ts +7 -1
  51. package/esm/datePickerCommon/hooks/useDateRangeRaw/useDateRangeRawCore.js +5 -5
  52. package/esm/dateRangeRaw/types.d.ts +1 -0
  53. package/esm/dateRangeRaw/types.js +2 -0
  54. package/esm/dateRangeRaw/utils/areMapsEqual.d.ts +1 -0
  55. package/esm/dateRangeRaw/utils/areMapsEqual.js +2 -0
  56. package/esm/dateRangeRawNew/hooks/useDateRangeNewParts.d.ts +7 -1
  57. package/esm/dateRangeRawNew/hooks/useDateRangeNewParts.js +24 -15
  58. package/esm/dateRangeRawNew/hooks/useDateRangeRawNew.js +2 -2
  59. package/esm/dateRangeRawNew/hooks/useRangeEntry.js +31 -4
  60. package/esm/miniTabs/miniTabs.d.ts +2 -1
  61. package/esm/miniTabs/miniTabs.js +2 -2
  62. package/esm/miniTabs/miniTabsItem.js +1 -1
  63. package/esm/stepperRaw/stepperRaw.js +5 -2
  64. package/esm/textInputRaw/textInputRaw.js +4 -2
  65. package/esm/textareaRaw/textareaRaw.js +4 -2
  66. package/esm/utils/dateInputUtils/useTodayButton.d.ts +1 -0
  67. package/esm/utils/dateInputUtils/useTodayButton.js +2 -0
  68. package/package.json +8 -1
@@ -65,28 +65,37 @@ export const useDateRangeNewParts = ({ isOpen, setIsOpen, isMobile, customDate,
65
65
  const { rebaseToDay } = rangeEntry;
66
66
  const handleOptionSelect = useCallback((optionId) => {
67
67
  const before = customDate;
68
- selectOption(optionId);
69
- if (!timeSelect || optionId === CUSTOM_CALENDAR_ID || !before.from || !before.to)
68
+ if (!timeSelect || optionId === CUSTOM_CALENDAR_ID || !before.from || !before.to) {
69
+ selectOption(optionId);
70
70
  return;
71
+ }
71
72
  const { from: timeFrom, to: timeTo } = before;
72
73
  const keepTime = (range) => ({
73
- from: range.from ? rebaseToDay(range.from, timeFrom, false) : range.from,
74
- to: range.to ? rebaseToDay(range.to, timeTo, true) : range.to
74
+ from: new Date(rebaseToDay(range.from.toISOString(), timeFrom, false)),
75
+ to: new Date(rebaseToDay(range.to.toISOString(), timeTo, true))
75
76
  });
76
77
  // Kept times that leave no range (13:00 to 13:00 on a single-day preset, or an end before the start) would make a
77
78
  // range a form cannot take, so the preset keeps its own whole day then.
78
- const isEmpty = (range) => isEndBeforeStart(range.from, range.to) || (!!range.from && range.from === range.to);
79
- setCustomDate(current => {
80
- const kept = keepTime(current);
81
- return isEmpty(kept) ? current : kept;
79
+ const isEmpty = (range) => isEndBeforeStart(range.from.toISOString(), range.to.toISOString()) || range.from.getTime() === range.to.getTime();
80
+ selectOption(optionId, range => {
81
+ const kept = keepTime(range);
82
+ return isEmpty(kept) ? range : kept;
82
83
  });
83
- setSelectedRange(current => {
84
- if (!current)
85
- return current;
86
- const kept = keepTime({ from: current.from.toISOString(), to: current.to.toISOString() });
87
- return isEmpty(kept) ? current : Object.assign(Object.assign({}, current), { from: new Date(kept.from), to: new Date(kept.to) });
88
- });
89
- }, [customDate, rebaseToDay, selectOption, setCustomDate, setSelectedRange, timeSelect]);
84
+ if (hasApplyButton) {
85
+ setCustomDate(current => {
86
+ if (!current.from || !current.to)
87
+ return current;
88
+ const kept = keepTime({ from: new Date(current.from), to: new Date(current.to) });
89
+ return isEmpty(kept) ? current : { from: kept.from.toISOString(), to: kept.to.toISOString() };
90
+ });
91
+ setSelectedRange(current => {
92
+ if (!current)
93
+ return current;
94
+ const kept = keepTime(current);
95
+ return isEmpty(kept) ? current : Object.assign(Object.assign({}, current), { from: kept.from, to: kept.to });
96
+ });
97
+ }
98
+ }, [customDate, hasApplyButton, rebaseToDay, selectOption, setCustomDate, setSelectedRange, timeSelect]);
90
99
  // The new picker only compares the dates: the pills are not a selection of their own, any draft is a custom range.
91
100
  const isDraftUnchanged = useMemo(() => customDate.from === (isDateValid(value === null || value === void 0 ? void 0 : value.from) ? value.from.toISOString() : undefined) &&
92
101
  customDate.to === (isDateValid(value === null || value === void 0 ? void 0 : value.to) ? value.to.toISOString() : undefined), [customDate.from, customDate.to, value === null || value === void 0 ? void 0 : value.from, value === null || value === void 0 ? void 0 : value.to]);
@@ -297,12 +297,12 @@ export const useDateRangeRawNew = props => {
297
297
  // Opened with no value, the draft starts on the default, or on today; Clear puts it back there rather than to nothing.
298
298
  const handleClear = useCallback(() => {
299
299
  handleClearClick();
300
- if (!hasApplyButton || defaultValue || value) return;
300
+ if (!hasApplyButton || defaultValue) return;
301
301
  const fallback = getFallbackRange();
302
302
  if (!fallback) return;
303
303
  setSelectedRange(fallback.labeled);
304
304
  setCustomDate(fallback.draft);
305
- }, [defaultValue, getFallbackRange, handleClearClick, hasApplyButton, setCustomDate, setSelectedRange, value]);
305
+ }, [defaultValue, getFallbackRange, handleClearClick, hasApplyButton, setCustomDate, setSelectedRange]);
306
306
  // The chip's X has no popup to press Apply in. With an Apply button the core only resets the draft, so the X reports the reset itself:
307
307
  // the default, or nothing when the value may be unset. Without one the core already does. The footer's Clear stays staged.
308
308
  const {
@@ -1,4 +1,5 @@
1
1
  import { useCallback, useMemo } from "react";
2
+ import { getValidDatesForEnd, getValidDatesForStart, isDifferentPeriod } from "../../calendar/dateUtils";
2
3
  import { CUSTOM_CALENDAR_ID } from "../../datePickerCommon/utils/customCalendarId";
3
4
  import { toEditableFormat } from "../../datePickerNew/components/dateSegmentInput/utils/toEditableFormat";
4
5
  import { toEditableTimeFormat } from "../../datePickerNew/components/dateSegmentInput/utils/toEditableTimeFormat";
@@ -59,13 +60,39 @@ export const useRangeEntry = ({ customDate, setCustomDate, setSelectedRange, isO
59
60
  }, [customDate, lockEndDate, lockStartDate, markCustom, raiseAdjustment, rebaseToDay, setCustomDate, toLocalDateTime, toReverseOffsetDateTime]);
60
61
  // A range edited by hand, dates typed or a time picked, is put in order and a locked end is kept; the banner says when an end moved.
61
62
  const commitEdited = useCallback((next) => {
63
+ var _a, _b;
62
64
  const { range: ordered, adjusted } = resolveRangeOrder(customDate, pinLockedEnds(next, lockStartDate, lockEndDate), rebaseToDay);
63
65
  const locked = applyRangeLocks(customDate, ordered, lockStartDate, lockEndDate);
64
- setCustomDate(locked);
65
- markCustom(locked);
66
+ const start = locked.from ? new Date(locked.from) : undefined;
67
+ const end = locked.to ? new Date(locked.to) : undefined;
68
+ const crossesDisabledPeriod = start &&
69
+ end &&
70
+ isDifferentPeriod(toReverseOffsetDateTime(start), toReverseOffsetDateTime(end), disableFutureDates, disablePastDates, disableDatesBefore, disableDatesAfter);
71
+ const startChanged = locked.from !== customDate.from;
72
+ const validRange = crossesDisabledPeriod
73
+ ? startChanged && !lockStartDate
74
+ ? getValidDatesForEnd(toReverseOffsetDateTime, end, start, disableFutureDates, disablePastDates, disableDatesBefore, disableDatesAfter)
75
+ : getValidDatesForStart(toReverseOffsetDateTime, start, end, disableFutureDates, disablePastDates, disableDatesBefore, disableDatesAfter)
76
+ : undefined;
77
+ const committed = validRange ? { from: (_a = validRange.start) === null || _a === void 0 ? void 0 : _a.toISOString(), to: (_b = validRange.end) === null || _b === void 0 ? void 0 : _b.toISOString() } : locked;
78
+ setCustomDate(committed);
79
+ markCustom(committed);
66
80
  // The banner says an end moved, so it is raised only for an edit that was kept.
67
- raiseAdjustment(locked === customDate ? undefined : adjusted, locked);
68
- }, [customDate, lockEndDate, lockStartDate, markCustom, raiseAdjustment, rebaseToDay, setCustomDate]);
81
+ raiseAdjustment(committed === customDate ? undefined : adjusted, committed);
82
+ }, [
83
+ customDate,
84
+ disableDatesAfter,
85
+ disableDatesBefore,
86
+ disableFutureDates,
87
+ disablePastDates,
88
+ lockEndDate,
89
+ lockStartDate,
90
+ markCustom,
91
+ raiseAdjustment,
92
+ rebaseToDay,
93
+ setCustomDate,
94
+ toReverseOffsetDateTime
95
+ ]);
69
96
  // A time picked for one end (mobile). Unlike picking a day, the typed time replaces the end's own.
70
97
  const handleTimeSelect = useCallback((field, timeText) => {
71
98
  const current = customDate[field];
@@ -18,6 +18,7 @@ export interface IMiniTabs {
18
18
  onTabChange: (newTabId: string) => void;
19
19
  className?: string;
20
20
  size?: MiniTabsSize;
21
+ fill?: boolean;
21
22
  children: React.ReactElement<typeof MiniTabsItem> | React.ReactElement<typeof MiniTabsItem>[];
22
23
  }
23
- export declare const MiniTabs: ({ activeTabId, onTabChange, children, size, className }: IMiniTabs) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const MiniTabs: ({ activeTabId, onTabChange, children, size, className, fill }: IMiniTabs) => import("react/jsx-runtime").JSX.Element;
@@ -14,7 +14,7 @@ export var MiniTabsSize;
14
14
  MiniTabsSize["Large"] = "large";
15
15
  MiniTabsSize["XLarge"] = "xlarge";
16
16
  })(MiniTabsSize || (MiniTabsSize = {}));
17
- export const MiniTabs = ({ activeTabId, onTabChange, children, size = MiniTabsSize.Medium, className }) => {
17
+ export const MiniTabs = ({ activeTabId, onTabChange, children, size = MiniTabsSize.Medium, className, fill = false }) => {
18
18
  const maxTabsValue = 3;
19
19
  const [tabs, setTabs] = useState([]);
20
20
  const activeButtonRef = useRef(null);
@@ -35,5 +35,5 @@ export const MiniTabs = ({ activeTabId, onTabChange, children, size = MiniTabsSi
35
35
  var _a;
36
36
  (_a = activeButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
37
37
  }, [activeTabId]);
38
- return (_jsx("div", { className: classNames(["zen-mini-tabs", `zen-mini-tabs--${size}`, className ? className : ""]), children: tabs.length ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "zen-mini-tabs__header", role: "tablist", onKeyDown: keyDownHandler, ref: tabsRef, children: tabs.map(tab => (_jsx(MiniTabsHeaderItem, { id: tab.id, isActive: activeTabId === tab.id, handleClick: handleTabItemClick, buttonRef: tab.id === activeTabId ? activeButtonRef : undefined, dataAnalyticsId: tab.dataAnalyticsId, children: tab.name }, tab.id))) }), _jsx("div", { className: "zen-mini-tabs__content", children: tabs.map((props) => (_createElement(MiniTabsItem, Object.assign({}, props, { key: props.id, activeId: activeTabId })))) })] })) : null }));
38
+ return (_jsx("div", { className: classNames(["zen-mini-tabs", `zen-mini-tabs--${size}`, fill ? "zen-mini-tabs--fill" : "", className ? className : ""]), children: tabs.length ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "zen-mini-tabs__header", role: "tablist", onKeyDown: keyDownHandler, ref: tabsRef, children: tabs.map(tab => (_jsx(MiniTabsHeaderItem, { id: tab.id, isActive: activeTabId === tab.id, handleClick: handleTabItemClick, buttonRef: tab.id === activeTabId ? activeButtonRef : undefined, dataAnalyticsId: tab.dataAnalyticsId, children: tab.name }, tab.id))) }), _jsx("div", { className: "zen-mini-tabs__content", children: tabs.map((props) => (_createElement(MiniTabsItem, Object.assign({}, props, { key: props.id, activeId: activeTabId })))) })] })) : null }));
39
39
  };
@@ -1,3 +1,3 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { classNames } from "../commonHelpers/classNames/classNames";
3
- export const MiniTabsItem = ({ id, children, activeId }) => (_jsx("div", { className: "zen-mini-tabs__content", children: _jsx("div", { className: classNames(["zen-mini-tabs__content-wrapper", activeId !== id ? "zen-mini-tabs__content-wrapper--hidden" : ""]), role: "tabpanel", "aria-labelledby": id, tabIndex: 0, id: `panel-${id}`, hidden: activeId && activeId !== id ? true : false, children: children }) }));
3
+ export const MiniTabsItem = ({ id, children, activeId }) => (_jsx("div", { className: classNames(["zen-mini-tabs__content-wrapper", activeId !== id ? "zen-mini-tabs__content-wrapper--hidden" : ""]), role: "tabpanel", "aria-labelledby": id, tabIndex: 0, id: `panel-${id}`, hidden: activeId && activeId !== id ? true : false, children: children }));
@@ -19,6 +19,7 @@ import { ReviewTextControl } from "../formGroup/components/reviewTextControl";
19
19
  import { useFormFieldValues } from "../commonHelpers/hooks/useFormFieldValues/useFormFieldValues";
20
20
  import { useMobile } from "../commonHelpers/hooks/useMobile";
21
21
  import { useMobileClassName } from "../utils/theme/useMobileClassName";
22
+ import { useMergedRef } from "../commonHelpers/hooks/useMergedRef";
22
23
  // according to design
23
24
  injectString("cs", "Increase value", "Zv\xFD\u0161it hodnotu");
24
25
  injectString("da-DK", "Increase value", "For\xF8g v\xE6rdi");
@@ -118,7 +119,8 @@ export const StepperRaw = props => {
118
119
  min = -Infinity,
119
120
  max = Infinity,
120
121
  maxLength,
121
- disabled
122
+ disabled,
123
+ ref: fieldRef
122
124
  } = useFormFieldValues(props.controller, props);
123
125
  const isErrorShown = !disabled && !readonly && isError;
124
126
  const validValue = getValidValue(value, min, max);
@@ -139,6 +141,7 @@ export const StepperRaw = props => {
139
141
  } = useLanguage();
140
142
  const localRef = useRef(null);
141
143
  const currRef = props.ref || localRef;
144
+ const inputRef = useMergedRef(currRef, fieldRef);
142
145
  if (isReadOnly) {
143
146
  return _jsx(ReviewTextControl, {
144
147
  value: String(value)
@@ -150,7 +153,7 @@ export const StepperRaw = props => {
150
153
  className: "zen-stepper-field__input-wrapper",
151
154
  children: [_jsx("input", {
152
155
  id: id,
153
- ref: currRef,
156
+ ref: inputRef,
154
157
  min: min,
155
158
  max: max,
156
159
  value: validValue,
@@ -5,14 +5,16 @@ import { ReviewTextControl } from "../formGroup/components/reviewTextControl";
5
5
  import { useFormFieldValues } from "../commonHelpers/hooks/useFormFieldValues/useFormFieldValues";
6
6
  import { useMobileClassName } from "../utils/theme/useMobileClassName";
7
7
  import { getAriaAttributes } from "../commonHelpers/getAriaAttributes";
8
+ import { useMergedRef } from "../commonHelpers/hooks/useMergedRef";
8
9
  export const TextInputRaw = (props) => {
9
10
  const driveComponentClass = useDriveClassName("zen-text-input");
10
11
  const mobileComponentClass = useMobileClassName("zen-text-input");
11
- const { required, min, max, maxLength, minLength, value = "", onChange, onBlur, disabled, name, pattern } = useFormFieldValues(props.controller, props);
12
+ const { required, min, max, maxLength, minLength, value = "", onChange, onBlur, disabled, name, pattern, ref: fieldRef } = useFormFieldValues(props.controller, props);
13
+ const inputRef = useMergedRef(props.ref, fieldRef);
12
14
  if (props.isReadOnly) {
13
15
  return _jsx(ReviewTextControl, { value: value, password: props.type === "password" });
14
16
  }
15
- return (_jsx("input", Object.assign({ id: props.id, ref: props.ref, type: props.type || "text", className: classNames([
17
+ return (_jsx("input", Object.assign({ id: props.id, ref: inputRef, type: props.type || "text", className: classNames([
16
18
  "zen-text-input",
17
19
  mobileComponentClass || driveComponentClass || "",
18
20
  props.className || "",
@@ -3,14 +3,16 @@ import { classNames } from "../commonHelpers/classNames/classNames";
3
3
  import { useDriveClassName } from "../utils/theme/useDriveClassName";
4
4
  import { useFormFieldValues } from "../commonHelpers/hooks/useFormFieldValues/useFormFieldValues";
5
5
  import { ReviewTextControl } from "../formGroup/components/reviewTextControl";
6
+ import { useMergedRef } from "../commonHelpers/hooks/useMergedRef";
6
7
  export const TextareaRaw = (props) => {
7
8
  const driveComponentClass = useDriveClassName("zen-text-input");
8
9
  const { id, rows = 6, className = "", resize = true, readonly = false, placeholder, isError, ariaLabel, ariaLabelledby, onKeyDown, onFocus, isReadOnly, ref } = props;
9
- const { maxLength, minLength, value = "", onChange, onBlur, disabled, name, required } = useFormFieldValues(props.controller, props);
10
+ const { maxLength, minLength, value = "", onChange, onBlur, disabled, name, required, ref: fieldRef } = useFormFieldValues(props.controller, props);
11
+ const textareaRef = useMergedRef(ref, fieldRef);
10
12
  if (isReadOnly) {
11
13
  return _jsx(ReviewTextControl, { value: value });
12
14
  }
13
- return (_jsx("textarea", { ref: ref, id: id, rows: rows, minLength: minLength, maxLength: maxLength, className: classNames([
15
+ return (_jsx("textarea", { ref: textareaRef, id: id, rows: rows, minLength: minLength, maxLength: maxLength, className: classNames([
14
16
  "zen-textarea",
15
17
  resize ? "" : "zen-textarea--no-resize",
16
18
  driveComponentClass || "",
@@ -0,0 +1 @@
1
+ export * from "../../datePickerCommon/hooks/useDateInputInner/useTodayButton";
@@ -0,0 +1,2 @@
1
+ // Kept so that deep imports of the old path keep working; the module moved to datePickerCommon in 3.17.1.
2
+ export * from "../../datePickerCommon/hooks/useDateInputInner/useTodayButton";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geotab/zenith",
3
- "version": "3.17.1-beta.3",
3
+ "version": "3.18.0-beta.0",
4
4
  "description": "Zenith components library on React",
5
5
  "main": "dist/index.js",
6
6
  "types": "esm/index.d.ts",
@@ -29,6 +29,7 @@
29
29
  "inject-translations": "node build-utils/translations/inject-translations.js",
30
30
  "lint": "npx eslint",
31
31
  "lint-fix": "npm run lint -- --fix",
32
+ "myg-integration": "bash myg-integration.sh",
32
33
  "new": "node newComponent.mjs",
33
34
  "prettier": "npx prettier . --config '.prettierrc' --ignore-path '.prettierignore'",
34
35
  "prettier-check": "npm run prettier -- --check",
@@ -42,6 +43,9 @@
42
43
  "vrt-test": "playwright test --config visual-regression/playwright.config.ts --update-snapshots=missing",
43
44
  "vrt-update": "playwright test --config visual-regression/playwright.config.ts --update-snapshots",
44
45
  "vrt-report": "playwright show-report visual-regression-report",
46
+ "vrt-rtl-test": "playwright test --config visual-regression/rtl/playwright.config.ts --update-snapshots=missing",
47
+ "vrt-rtl-update": "playwright test --config visual-regression/rtl/playwright.config.ts --update-snapshots",
48
+ "vrt-rtl-report": "playwright show-report visual-regression-rtl-report",
45
49
  "test-watch": "npm run clean && npm run test-build && npx tsc -b tsconfig.jestTests.json -w",
46
50
  "check-duplicates": "node build-utils/check-duplicates.mjs",
47
51
  "translations": "node build-utils/translations/translation-integrity.mjs",
@@ -156,5 +160,8 @@
156
160
  "minimatch@<9": {
157
161
  "brace-expansion": "^1.1.18"
158
162
  }
163
+ },
164
+ "publishConfig": {
165
+ "access": "public"
159
166
  }
160
167
  }