@equinor/amplify-component-lib 8.5.0 → 8.5.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/README.md +65 -6
- package/dist/atoms/hooks/index.d.ts +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/utils/auth_environment.d.ts +1 -0
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/errors.js +1 -1
- package/dist/deprecated/CommentField/CommentField.js +3 -3
- package/dist/deprecated/SingleSelectDrawer.js +1 -1
- package/dist/deprecated/Workflow/WorkflowDescription.js +1 -1
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +1 -1
- package/dist/molecules/ApplicationIcon/NoiseShape.js +1 -1
- package/dist/molecules/ApplicationIcon/WaveShape.d.ts +0 -1
- package/dist/molecules/ApplicationIcon/WaveShape.js +1 -1
- package/dist/molecules/Badge/Badge.js +1 -1
- package/dist/molecules/FileProgress/RegularFileProgress.js +1 -1
- package/dist/molecules/InfoElement/InfoElement.js +1 -1
- package/dist/molecules/ListItem/ListItem.js +1 -1
- package/dist/molecules/ListItem/ListItem.utils.js +1 -1
- package/dist/molecules/OptionDrawer/OptionDrawer.styles.d.ts +20 -2
- package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
- package/dist/molecules/Select/Select.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +5 -1
- package/dist/molecules/Select/Select.styles.js +76 -46
- package/dist/molecules/Select/Select.types.d.ts +1 -0
- package/dist/molecules/Select/SelectMenuItem.js +1 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +1 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
- package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
- package/dist/molecules/SelectionControls/SelectionControls.styles.js +5 -1
- package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
- package/dist/molecules/index.d.ts +2 -2
- package/dist/node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js +1 -1
- package/dist/organisms/ErrorPage/Description.js +1 -1
- package/dist/organisms/ErrorPage/Title.js +1 -1
- package/dist/organisms/ErrorPage/collections/PageNotFound.js +1 -1
- package/dist/organisms/ErrorPage/collections/Unauthorized.js +1 -1
- package/dist/organisms/FieldSelector/ChangingField.js +1 -1
- package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +3 -5
- package/dist/organisms/SideBar/MenuItem.styles.js +1 -1
- package/dist/organisms/TopBar/Account/AccountAvatar.js +3 -3
- package/dist/organisms/TopBar/Account/AccountButton.js +3 -3
- package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +2 -2
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUser/CreateNewUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +3 -3
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +1 -1
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +17 -17
- package/dist/organisms/TopBar/Guidelines/Item.js +1 -1
- package/dist/organisms/TopBar/Guidelines/Section.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +8 -8
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -6
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/FilterHeader/FilterHeader.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotes.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesHeader.js +1 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleasePosts/ReleasePosts.js +1 -1
- package/dist/organisms/TopBar/Resources/Resources.js +1 -1
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TransferToAppDialog.js +2 -2
- package/dist/providers/AuthProvider/AuthProvider.d.ts +2 -0
- package/dist/providers/AuthProvider/AuthProvider.js +1 -1
- package/dist/providers/AuthProvider/AuthProviderInner.d.ts +1 -0
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -1
- package/dist/providers/LoadingProvider.d.ts +14 -0
- package/dist/providers/LoadingProvider.js +1 -0
- package/dist/providers/{SnackbarProvider.d.ts → SnackbarProvider/SnackbarProvider.d.ts} +5 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.js +1 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.d.ts +20 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +41 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.d.ts +3 -0
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +1 -0
- package/dist/providers/index.d.ts +2 -1
- package/dist/tests/browserMocks.d.ts +2 -2
- package/package.json +84 -89
- package/dist/providers/SnackbarProvider.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/amplify-component-lib",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.2",
|
|
4
4
|
"description": "Frontend Typescript components for the Amplify team",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,13 +30,11 @@
|
|
|
30
30
|
"test": "vitest watch",
|
|
31
31
|
"test:ci": "vitest run",
|
|
32
32
|
"test:coverage": "vitest run --coverage",
|
|
33
|
-
"precommit": "npx lint-staged",
|
|
34
33
|
"build": "npm run build-components",
|
|
35
34
|
"build-components": "rollup -c && tsc --project tsconfig.build.json && resolve-tspaths --project tsconfig.build.json",
|
|
36
35
|
"build-components:ci": "rm -rf lib dist && npm run build-components",
|
|
37
36
|
"build-and-use": "node tooling/build-and-use.mjs",
|
|
38
|
-
"brute-coverage": "node tooling/brute-coverage.mjs"
|
|
39
|
-
"prepare": "husky"
|
|
37
|
+
"brute-coverage": "node tooling/brute-coverage.mjs"
|
|
40
38
|
},
|
|
41
39
|
"browserslist": {
|
|
42
40
|
"production": [
|
|
@@ -51,123 +49,120 @@
|
|
|
51
49
|
]
|
|
52
50
|
},
|
|
53
51
|
"dependencies": {
|
|
54
|
-
"@azure/msal-browser": "3.
|
|
55
|
-
"@azure/msal-react": "2.0.
|
|
56
|
-
"@equinor/eds-core-react": "0.
|
|
57
|
-
"@equinor/eds-data-grid-react": "^0.
|
|
58
|
-
"@microsoft/signalr": "^8.0.
|
|
59
|
-
"@tiptap/core": "^2.
|
|
60
|
-
"@tiptap/extension-bold": "^2.
|
|
61
|
-
"@tiptap/extension-bullet-list": "^2.
|
|
62
|
-
"@tiptap/extension-code-block": "^2.
|
|
63
|
-
"@tiptap/extension-code-block-lowlight": "^2.
|
|
64
|
-
"@tiptap/extension-color": "^2.
|
|
65
|
-
"@tiptap/extension-document": "^2.
|
|
66
|
-
"@tiptap/extension-dropcursor": "^2.
|
|
67
|
-
"@tiptap/extension-gapcursor": "^2.
|
|
68
|
-
"@tiptap/extension-hard-break": "^2.
|
|
69
|
-
"@tiptap/extension-heading": "^2.
|
|
70
|
-
"@tiptap/extension-highlight": "^2.
|
|
71
|
-
"@tiptap/extension-history": "^2.
|
|
72
|
-
"@tiptap/extension-image": "^2.
|
|
73
|
-
"@tiptap/extension-italic": "^2.
|
|
74
|
-
"@tiptap/extension-link": "^2.
|
|
75
|
-
"@tiptap/extension-list-item": "^2.
|
|
76
|
-
"@tiptap/extension-ordered-list": "^2.
|
|
77
|
-
"@tiptap/extension-paragraph": "^2.
|
|
78
|
-
"@tiptap/extension-placeholder": "^2.
|
|
79
|
-
"@tiptap/extension-table": "^2.
|
|
80
|
-
"@tiptap/extension-table-cell": "^2.
|
|
81
|
-
"@tiptap/extension-table-header": "^2.
|
|
82
|
-
"@tiptap/extension-table-row": "^2.
|
|
83
|
-
"@tiptap/extension-text": "^2.
|
|
84
|
-
"@tiptap/extension-text-align": "^2.
|
|
85
|
-
"@tiptap/extension-text-style": "^2.
|
|
86
|
-
"@tiptap/extension-typography": "^2.
|
|
87
|
-
"@tiptap/pm": "^2.
|
|
88
|
-
"@tiptap/react": "^2.
|
|
89
|
-
"framer-motion": "^11.
|
|
52
|
+
"@azure/msal-browser": "3.21.0",
|
|
53
|
+
"@azure/msal-react": "2.0.22",
|
|
54
|
+
"@equinor/eds-core-react": "0.41.0",
|
|
55
|
+
"@equinor/eds-data-grid-react": "^0.6.1",
|
|
56
|
+
"@microsoft/signalr": "^8.0.7",
|
|
57
|
+
"@tiptap/core": "^2.6.4",
|
|
58
|
+
"@tiptap/extension-bold": "^2.6.4",
|
|
59
|
+
"@tiptap/extension-bullet-list": "^2.6.4",
|
|
60
|
+
"@tiptap/extension-code-block": "^2.6.4",
|
|
61
|
+
"@tiptap/extension-code-block-lowlight": "^2.6.4",
|
|
62
|
+
"@tiptap/extension-color": "^2.6.4",
|
|
63
|
+
"@tiptap/extension-document": "^2.6.4",
|
|
64
|
+
"@tiptap/extension-dropcursor": "^2.6.4",
|
|
65
|
+
"@tiptap/extension-gapcursor": "^2.6.4",
|
|
66
|
+
"@tiptap/extension-hard-break": "^2.6.4",
|
|
67
|
+
"@tiptap/extension-heading": "^2.6.4",
|
|
68
|
+
"@tiptap/extension-highlight": "^2.6.4",
|
|
69
|
+
"@tiptap/extension-history": "^2.6.4",
|
|
70
|
+
"@tiptap/extension-image": "^2.6.4",
|
|
71
|
+
"@tiptap/extension-italic": "^2.6.4",
|
|
72
|
+
"@tiptap/extension-link": "^2.6.4",
|
|
73
|
+
"@tiptap/extension-list-item": "^2.6.4",
|
|
74
|
+
"@tiptap/extension-ordered-list": "^2.6.4",
|
|
75
|
+
"@tiptap/extension-paragraph": "^2.6.4",
|
|
76
|
+
"@tiptap/extension-placeholder": "^2.6.4",
|
|
77
|
+
"@tiptap/extension-table": "^2.6.4",
|
|
78
|
+
"@tiptap/extension-table-cell": "^2.6.4",
|
|
79
|
+
"@tiptap/extension-table-header": "^2.6.4",
|
|
80
|
+
"@tiptap/extension-table-row": "^2.6.4",
|
|
81
|
+
"@tiptap/extension-text": "^2.6.4",
|
|
82
|
+
"@tiptap/extension-text-align": "^2.6.4",
|
|
83
|
+
"@tiptap/extension-text-style": "^2.6.4",
|
|
84
|
+
"@tiptap/extension-typography": "^2.6.4",
|
|
85
|
+
"@tiptap/pm": "^2.6.4",
|
|
86
|
+
"@tiptap/react": "^2.6.4",
|
|
87
|
+
"framer-motion": "^11.3.28",
|
|
90
88
|
"html2canvas": "^1.4.1",
|
|
91
89
|
"jwt-decode": "^4.0.0",
|
|
92
90
|
"lowlight": "^3.1.0",
|
|
93
|
-
"proj4": "^2.
|
|
91
|
+
"proj4": "^2.12.0",
|
|
94
92
|
"react-dropzone": "^14.2.3",
|
|
95
93
|
"react-markdown": "^9.0.1",
|
|
96
94
|
"rehype-raw": "^7.0.0",
|
|
97
|
-
"styled-components": "^6.1.
|
|
95
|
+
"styled-components": "^6.1.12"
|
|
98
96
|
},
|
|
99
97
|
"devDependencies": {
|
|
100
98
|
"@equinor/eds-icons": "^0.21.0",
|
|
101
|
-
"@equinor/subsurface-app-management": "^1.1.
|
|
99
|
+
"@equinor/subsurface-app-management": "^1.1.8",
|
|
102
100
|
"@faker-js/faker": "^8.4.1",
|
|
103
101
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
104
102
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
105
103
|
"@rollup/plugin-terser": "^0.4.4",
|
|
106
104
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
107
|
-
"@storybook/addon-actions": "^8.
|
|
108
|
-
"@storybook/addon-designs": "^8.0.
|
|
109
|
-
"@storybook/addon-docs": "^8.
|
|
110
|
-
"@storybook/addon-essentials": "^8.
|
|
111
|
-
"@storybook/addon-links": "^8.
|
|
112
|
-
"@storybook/addon-mdx-gfm": "^8.
|
|
113
|
-
"@storybook/blocks": "^8.
|
|
114
|
-
"@storybook/components": "^8.
|
|
115
|
-
"@storybook/manager-api": "^8.
|
|
116
|
-
"@storybook/preview-api": "^8.
|
|
117
|
-
"@storybook/react": "^8.
|
|
118
|
-
"@storybook/react-vite": "^8.
|
|
119
|
-
"@tanstack/react-query": "^5.
|
|
120
|
-
"@testing-library/dom": "^
|
|
121
|
-
"@testing-library/jest-dom": "^6.4.
|
|
122
|
-
"@testing-library/react": "^
|
|
105
|
+
"@storybook/addon-actions": "^8.2.9",
|
|
106
|
+
"@storybook/addon-designs": "^8.0.3",
|
|
107
|
+
"@storybook/addon-docs": "^8.2.9",
|
|
108
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
109
|
+
"@storybook/addon-links": "^8.2.9",
|
|
110
|
+
"@storybook/addon-mdx-gfm": "^8.2.9",
|
|
111
|
+
"@storybook/blocks": "^8.2.9",
|
|
112
|
+
"@storybook/components": "^8.2.9",
|
|
113
|
+
"@storybook/manager-api": "^8.2.9",
|
|
114
|
+
"@storybook/preview-api": "^8.2.9",
|
|
115
|
+
"@storybook/react": "^8.2.9",
|
|
116
|
+
"@storybook/react-vite": "^8.2.9",
|
|
117
|
+
"@tanstack/react-query": "^5.51.24",
|
|
118
|
+
"@testing-library/dom": "^10.4.0",
|
|
119
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
120
|
+
"@testing-library/react": "^16.0.0",
|
|
123
121
|
"@testing-library/user-event": "^14.5.2",
|
|
124
122
|
"@types/lodash-es": "^4.17.12",
|
|
125
|
-
"@types/mocha": "^10.0.
|
|
126
|
-
"@types/node": "^
|
|
123
|
+
"@types/mocha": "^10.0.7",
|
|
124
|
+
"@types/node": "^22.4.1",
|
|
127
125
|
"@types/proj4": "^2.5.5",
|
|
128
126
|
"@types/random-seed": "^0.3.5",
|
|
129
|
-
"@types/react": "^18.
|
|
130
|
-
"@types/react-dom": "^18.
|
|
127
|
+
"@types/react": "^18.3.3",
|
|
128
|
+
"@types/react-dom": "^18.3.0",
|
|
131
129
|
"@types/react-router-dom": "^5.3.3",
|
|
132
130
|
"@types/styled-components": "^5.1.34",
|
|
133
|
-
"@types/uuid": "^
|
|
131
|
+
"@types/uuid": "^10.0.0",
|
|
134
132
|
"@types/wicg-file-system-access": "^2023.10.5",
|
|
135
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
136
|
-
"@typescript-eslint/parser": "^
|
|
137
|
-
"@vitejs/plugin-react": "^4.
|
|
138
|
-
"@vitest/coverage-v8": "^
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
|
134
|
+
"@typescript-eslint/parser": "^8.2.0",
|
|
135
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
136
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
139
137
|
"eslint": "^8.56.0",
|
|
140
|
-
"eslint-plugin-react": "^7.
|
|
141
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
142
|
-
"eslint-plugin-simple-import-sort": "^12.
|
|
138
|
+
"eslint-plugin-react": "^7.35.0",
|
|
139
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
140
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
143
141
|
"eslint-plugin-storybook": "^0.8.0",
|
|
144
|
-
"
|
|
142
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
145
143
|
"jest-styled-components": "^7.2.0",
|
|
146
|
-
"
|
|
147
|
-
"lint-staged": "^15.2.2",
|
|
148
|
-
"msw": "^2.3.4",
|
|
144
|
+
"msw": "^2.3.5",
|
|
149
145
|
"msw-storybook-addon": "^2.0.3",
|
|
150
146
|
"ora": "^8.0.1",
|
|
151
|
-
"prettier": "^3.
|
|
152
|
-
"react": "^18.
|
|
153
|
-
"react-dom": "^18.
|
|
154
|
-
"react-router": "^6.
|
|
155
|
-
"react-router-dom": "^6.
|
|
147
|
+
"prettier": "^3.3.3",
|
|
148
|
+
"react": "^18.3.1",
|
|
149
|
+
"react-dom": "^18.3.1",
|
|
150
|
+
"react-router": "^6.26.1",
|
|
151
|
+
"react-router-dom": "^6.26.1",
|
|
156
152
|
"resize-observer-polyfill": "^1.5.1",
|
|
157
153
|
"resolve-tspaths": "^0.8.19",
|
|
158
|
-
"rollup": "^4.
|
|
154
|
+
"rollup": "^4.21.0",
|
|
159
155
|
"rollup-plugin-delete": "^2.0.0",
|
|
160
156
|
"rollup-plugin-import-css": "^3.5.1",
|
|
161
|
-
"storybook": "^8.
|
|
157
|
+
"storybook": "^8.2.9",
|
|
162
158
|
"storybook-addon-data-theme-switcher": "^0.4.2",
|
|
163
|
-
"storybook-addon-react-docgen": "^1.2.44",
|
|
164
159
|
"storybook-addon-remix-react-router": "^3.0.0",
|
|
165
|
-
"typescript": "^5.5.
|
|
166
|
-
"uuid": "^
|
|
167
|
-
"vite": "^5.1
|
|
160
|
+
"typescript": "^5.5.4",
|
|
161
|
+
"uuid": "^10.0.0",
|
|
162
|
+
"vite": "^5.4.1",
|
|
168
163
|
"vite-plugin-svgr": "^4.2.0",
|
|
169
|
-
"vite-tsconfig-paths": "^
|
|
170
|
-
"vitest": "^
|
|
164
|
+
"vite-tsconfig-paths": "^5.0.1",
|
|
165
|
+
"vitest": "^2.0.5"
|
|
171
166
|
},
|
|
172
167
|
"resolutions": {
|
|
173
168
|
"prosemirror-state": "1.4.3",
|
|
@@ -175,7 +170,7 @@
|
|
|
175
170
|
},
|
|
176
171
|
"peerDependencies": {
|
|
177
172
|
"@equinor/eds-icons": "*",
|
|
178
|
-
"@equinor/subsurface-app-management": "^1.1.
|
|
173
|
+
"@equinor/subsurface-app-management": "^1.1.8",
|
|
179
174
|
"@tanstack/react-query": "*",
|
|
180
175
|
"react": "^18.2.0",
|
|
181
176
|
"react-dom": "^18.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{createContext as r,useContext as t,useState as n}from"react";import{Snackbar as i,Button as a}from"@equinor/eds-core-react";const c=r(void 0),d=()=>{const e=t(c);if(void 0===e)throw new Error("useSnackbar must be used within a SnackbarContextProvider");return e},s=r=>{const[t,d]=n(!1),[s,l]=n(""),[u,h]=n(r),[m,b]=n();return e(c.Provider,{value:{showSnackbar:(e,o)=>{l(e),h(o?.customProps??r),b(o?.action??void 0),d(!0)},setActionDisabledState:e=>{b((o=>o?{...o,disabled:e}:o))},hideSnackbar:()=>d(!1)},children:[r.children,e(i,{open:t,onClose:()=>{d(!1),u.onClose&&u.onClose()},autoHideDuration:u.autoHideDuration,placement:u.placement,children:[s,m&&o(i.Action,{children:o(a,{disabled:m.disabled,variant:"ghost",onClick:m.handler,children:m.text})})]})]})};export{s as SnackbarProvider,d as useSnackbar};
|