@openmrs/esm-styleguide 10.0.1-pre.5753 → 11.0.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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 117 files, copied 171 files with swc (181.61ms)
1
+ [0] Successfully compiled: 117 files, copied 171 files with swc (191.04ms)
2
2
  [0] swc --strip-leading-paths --copy-files src -d dist && svgo -rf dist --quiet exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
File without changes
@@ -0,0 +1,129 @@
1
+
2
+  RUN  v4.1.2 /home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide
3
+
4
+ ✓ src/workspaces2/exported-workspace.test.tsx (16 tests) 687ms
5
+ ✓ src/location-picker/location-picker.test.tsx (13 tests) 1675ms
6
+ ✓ should display a message and not display locations when search results are empty  343ms
7
+ stderr | src/datepicker/datepicker.test.tsx > OpenmrsDatePicker > calendar popover > should open the calendar popover when the calendar button is clicked
8
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
9
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
10
+
11
+ stderr | src/datepicker/datepicker.test.tsx > OpenmrsDatePicker > calendar popover > should clamp previous-month navigation at the default minDate floor when minDate is omitted
12
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
13
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
14
+
15
+ stderr | src/datepicker/datepicker.test.tsx > OpenmrsDatePicker > calendar popover > should respect maxDate and disable next-month navigation at the max boundary
16
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
17
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
18
+
19
+ ✓ src/workspaces2/workspace2.test.ts (25 tests) 36ms
20
+ stderr | src/datepicker/datepicker.test.tsx > OpenmrsDatePicker > calendar popover > should select a date and call onChange
21
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
22
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
23
+
24
+ stderr | src/datepicker/datepicker.test.tsx > OpenmrsDatePicker > calendar popover > should select a date and call onChange
25
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
26
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
27
+
28
+ ✓ src/datepicker/datepicker.test.tsx (34 tests) 5009ms
29
+ ✓ uses dd/mm/yyyy for english by default  343ms
30
+ ✓ should open the calendar popover when the calendar button is clicked  778ms
31
+ ✓ should clamp previous-month navigation at the default minDate floor when minDate is omitted  456ms
32
+ ✓ should respect maxDate and disable next-month navigation at the max boundary  372ms
33
+ ✓ should select a date and call onChange  696ms
34
+ ✓ src/workspaces2/active-workspace-window.test.tsx (9 tests) 132ms
35
+ stderr | src/modals/modals.test.ts > modals > tears the modal down even though unmounting failed
36
+ The modal 'another-modal' failed to unmount Error: parcel not mounted
37
+ at /home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide/src/modals/modals.test.ts:146:74
38
+ at file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:302:11
39
+ at file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:1893:26
40
+ at file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:2316:20
41
+ at new Promise (<anonymous>)
42
+ at runWithCancel (file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:2313:10)
43
+ at file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:2295:20
44
+ at new Promise (<anonymous>)
45
+ at runWithTimeout (file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:2262:10)
46
+ at file:///home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/@vitest/runner/dist/chunk-artifact.js:2945:64
47
+
48
+ ✓ src/modals/modals.test.ts (12 tests) 142ms
49
+ ✓ src/numeric-observation/numeric-observation.test.tsx (18 tests) 137ms
50
+ ✓ src/workspaces2/scope-utils.test.ts (29 tests) 30ms
51
+ stderr | src/datepicker/date-range-picker.test.tsx > OpenmrsDateRangePicker > calendar popover > should open the calendar popover when the calendar button is clicked
52
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
53
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
54
+
55
+ stderr | src/datepicker/date-range-picker.test.tsx > OpenmrsDateRangePicker > calendar popover > should clamp previous-month navigation at the default minDate floor when minDate is omitted
56
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
57
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
58
+
59
+ stderr | src/datepicker/date-range-picker.test.tsx > OpenmrsDateRangePicker > calendar popover > should select a range and call onChange
60
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
61
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
62
+
63
+ stderr | src/datepicker/date-range-picker.test.tsx > OpenmrsDateRangePicker > calendar popover > should select a range and call onChange
64
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
65
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
66
+
67
+ stderr | src/datepicker/date-range-picker.test.tsx > OpenmrsDateRangePicker > calendar popover > should select a range and call onChange
68
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
69
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
70
+
71
+ stderr | src/datepicker/date-range-picker.test.tsx > OpenmrsDateRangePicker > calendar popover > should select a range and call onChange
72
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
73
+ If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility
74
+
75
+ ✓ src/datepicker/date-range-picker.test.tsx (21 tests) 3416ms
76
+ ✓ should open the calendar popover when the calendar button is clicked  594ms
77
+ ✓ should clamp previous-month navigation at the default minDate floor when minDate is omitted  376ms
78
+ ✓ should select a range and call onChange  620ms
79
+ ✓ src/patient-banner/contact-details/patient-banner-contact-details.test.tsx (3 tests) 220ms
80
+ ✓ src/diagnosis-tags/diagnosis-tags.test.tsx (10 tests) 1350ms
81
+ ✓ names a truncated provisional diagnosis as provisional for assistive technology  369ms
82
+ ✓ src/patient-photo/patient-photo.test.tsx (5 tests) 103ms
83
+ ✓ src/numeric-observation/interpretation-utils.test.ts (24 tests) 13ms
84
+ stderr | src/custom-overflow-menu/custom-overflow-menu.test.tsx > CustomOverflowMenu > should render
85
+ Warning: React does not recognize the `closeMenu` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `closemenu` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
86
+ at li
87
+ at ul
88
+ at div
89
+ at div
90
+ at CustomOverflowMenu (/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide/src/custom-overflow-menu/custom-overflow-menu.component.tsx:30:31)
91
+ Warning: React does not recognize the `handleOverflowMenuItemFocus` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `handleoverflowmenuitemfocus` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
92
+ at li
93
+ at ul
94
+ at div
95
+ at div
96
+ at CustomOverflowMenu (/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide/src/custom-overflow-menu/custom-overflow-menu.component.tsx:30:31)
97
+
98
+ stderr | src/custom-overflow-menu/custom-overflow-menu.test.tsx > useCustomOverflowMenu > should throw error when used outside CustomOverflowMenu
99
+ The above error occurred in the <TestComponent> component:
100
+
101
+ at TestComponent (/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide/src/custom-overflow-menu/custom-overflow-menu.test.tsx:320:51)
102
+
103
+ Consider adding an error boundary to your tree to customize error handling behavior.
104
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
105
+
106
+ ✓ src/custom-overflow-menu/custom-overflow-menu.test.tsx (12 tests) 518ms
107
+ ✓ src/datepicker/utils.test.ts (18 tests) 81ms
108
+ ✓ src/workspaces2/workspace2-close-prompt.modal.test.tsx (5 tests) 425ms
109
+ ✓ src/workspaces2/workspace-window-actions.test.ts (4 tests) 67ms
110
+ ✓ src/patient-banner/patient-info/patient-banner-patient-info.test.tsx (2 tests) 268ms
111
+ ✓ src/snackbars/snackbar.test.tsx (4 tests) 195ms
112
+ ✓ src/pagination/pagination.test.tsx (10 tests) 720ms
113
+ ✓ src/numeric-observation/use-concept-reference-range.test.ts (4 tests) 125ms
114
+ ✓ src/patient-banner/patient-info/patient-banner-patient-identifiers.test.tsx (4 tests) 197ms
115
+ stderr | src/dashboard-extension/dashboard.test.tsx > DashboardExtension > Basic Rendering > renders with required props (path and title)
116
+ ⚠️ React Router Future Flag Warning: React Router will begin wrapping state updates in `React.startTransition` in v7. You can use the `v7_startTransition` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition.
117
+ ⚠️ React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the `v7_relativeSplatPath` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
118
+
119
+ ✓ src/dashboard-extension/dashboard.test.tsx (7 tests) 247ms
120
+ ✓ src/page-header/page-header.test.tsx (5 tests) 263ms
121
+ ✓ src/workspaces2/workspace2.component.test.tsx (3 tests) 48ms
122
+ ✓ src/empty-card/empty-card.test.tsx (7 tests) 173ms
123
+ ✓ src/error-state/error-state.test.tsx (4 tests) 131ms
124
+
125
+  Test Files  27 passed (27)
126
+  Tests  308 passed (308)
127
+  Start at  17:23:29
128
+  Duration  38.36s (transform 7.47s, setup 12.08s, import 49.67s, tests 16.41s, environment 22.20s)
129
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-styleguide",
3
- "version": "10.0.1-pre.5753",
3
+ "version": "11.0.0",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The styleguide for OpenMRS SPA",
6
6
  "module": "dist/internal.js",
@@ -79,18 +79,18 @@
79
79
  "uuid": "^11.1.1"
80
80
  },
81
81
  "peerDependencies": {
82
- "@openmrs/esm-api": "^10.0.1-pre.5753",
83
- "@openmrs/esm-config": "^10.0.1-pre.5753",
84
- "@openmrs/esm-emr-api": "^10.0.1-pre.5753",
85
- "@openmrs/esm-error-handling": "^10.0.1-pre.5753",
86
- "@openmrs/esm-extensions": "^10.0.1-pre.5753",
87
- "@openmrs/esm-globals": "^10.0.1-pre.5753",
88
- "@openmrs/esm-navigation": "^10.0.1-pre.5753",
89
- "@openmrs/esm-react-utils": "^10.0.1-pre.5753",
90
- "@openmrs/esm-routes": "^10.0.1-pre.5753",
91
- "@openmrs/esm-state": "^10.0.1-pre.5753",
92
- "@openmrs/esm-translations": "^10.0.1-pre.5753",
93
- "@openmrs/esm-utils": "^10.0.1-pre.5753",
82
+ "@openmrs/esm-api": "^11.0.0",
83
+ "@openmrs/esm-config": "^11.0.0",
84
+ "@openmrs/esm-emr-api": "^11.0.0",
85
+ "@openmrs/esm-error-handling": "^11.0.0",
86
+ "@openmrs/esm-extensions": "^11.0.0",
87
+ "@openmrs/esm-globals": "^11.0.0",
88
+ "@openmrs/esm-navigation": "^11.0.0",
89
+ "@openmrs/esm-react-utils": "^11.0.0",
90
+ "@openmrs/esm-routes": "^11.0.0",
91
+ "@openmrs/esm-state": "^11.0.0",
92
+ "@openmrs/esm-translations": "^11.0.0",
93
+ "@openmrs/esm-utils": "^11.0.0",
94
94
  "dayjs": "1.x",
95
95
  "i18next": "25.x",
96
96
  "react": "18.x",
@@ -99,18 +99,18 @@
99
99
  "swr": "2.x"
100
100
  },
101
101
  "devDependencies": {
102
- "@openmrs/esm-api": "10.0.1-pre.5753",
103
- "@openmrs/esm-config": "10.0.1-pre.5753",
104
- "@openmrs/esm-emr-api": "10.0.1-pre.5753",
105
- "@openmrs/esm-error-handling": "10.0.1-pre.5753",
106
- "@openmrs/esm-extensions": "10.0.1-pre.5753",
107
- "@openmrs/esm-globals": "10.0.1-pre.5753",
108
- "@openmrs/esm-navigation": "10.0.1-pre.5753",
109
- "@openmrs/esm-react-utils": "10.0.1-pre.5753",
110
- "@openmrs/esm-routes": "10.0.1-pre.5753",
111
- "@openmrs/esm-state": "10.0.1-pre.5753",
112
- "@openmrs/esm-translations": "10.0.1-pre.5753",
113
- "@openmrs/esm-utils": "10.0.1-pre.5753",
102
+ "@openmrs/esm-api": "11.0.0",
103
+ "@openmrs/esm-config": "11.0.0",
104
+ "@openmrs/esm-emr-api": "11.0.0",
105
+ "@openmrs/esm-error-handling": "11.0.0",
106
+ "@openmrs/esm-extensions": "11.0.0",
107
+ "@openmrs/esm-globals": "11.0.0",
108
+ "@openmrs/esm-navigation": "11.0.0",
109
+ "@openmrs/esm-react-utils": "11.0.0",
110
+ "@openmrs/esm-routes": "11.0.0",
111
+ "@openmrs/esm-state": "11.0.0",
112
+ "@openmrs/esm-translations": "11.0.0",
113
+ "@openmrs/esm-utils": "11.0.0",
114
114
  "@swc/cli": "0.8.1",
115
115
  "@swc/core": "1.15.21",
116
116
  "@types/geopattern": "^1.2.9",
@@ -126,6 +126,5 @@
126
126
  "swr": "2.5.1",
127
127
  "typescript": "^5.8.3",
128
128
  "vitest": "^4.1.2"
129
- },
130
- "stableVersion": "10.0.0"
129
+ }
131
130
  }