@equinor/ioc-common-frontend 20.0.2 → 20.0.3
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/{ImageComponent-Cfpxbyhc.js → ImageComponent-D3kjTdkG.js} +25 -25
- package/build/ImageComponent-Dps_JlEd.cjs +1 -0
- package/build/components/DatePicker/CustomDatePickerComponents.d.ts +3 -1
- package/build/components/DatePicker/CustomDatePickerComponents.d.ts.map +1 -1
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/build/components/DatePicker/DateTimePicker.d.ts +1 -1
- package/build/components/DatePicker/DateTimePicker.d.ts.map +1 -1
- package/build/components/DatePicker/TimespanPicker/TimespanPicker.d.ts +1 -1
- package/build/components/DatePicker/TimespanPicker/TimespanPicker.d.ts.map +1 -1
- package/build/components/Editor/plugins/LinkEditor.styles.d.ts.map +1 -1
- package/build/components/Filter/types.d.ts +1 -1
- package/build/components/Filter/types.d.ts.map +1 -1
- package/build/components/HeaderMenu/HeaderMenuStyles.d.ts.map +1 -1
- package/build/components/TabbedTable/TabbedTable.stories.d.ts.map +1 -1
- package/build/components/TabbedTable/TabbedTableProvider.d.ts.map +1 -1
- package/build/components/TabbedTable/TableInsideTabbedHook.d.ts.map +1 -1
- package/build/components/Table/Toolbar/Toolbar.styles.d.ts +1 -1
- package/build/components/TextArea/TextArea.d.ts.map +1 -1
- package/build/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/build/components/Timeline/Timeline.d.ts.map +1 -1
- package/build/{index-JpLVCGra.js → index-BXcyp6S1.js} +21049 -20228
- package/build/index-pdo61Q5p.cjs +658 -0
- package/build/index.esm.js +11 -11
- package/build/index.js +1 -1
- package/package.json +66 -66
- package/build/ImageComponent-Bg_PpvLw.cjs +0 -1
- package/build/index-B39WK-Qz.cjs +0 -656
package/build/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a6 as e, z as n, aS as o, u as t, t as r, x as i, h as c, q as I, r as l, Y as S, ab as b, ax as d, A as u, B as T, V as g, a4 as p, a5 as A, b as m, au as h, aP as F, C as B, a2 as C, d as P, aw as k, af as x, ah as y, ag as D, L as M, D as v, aj as U, w as W, E, a8 as L, aO as R, az as O, ao as f, aq as N, aM as w, aR as G, aY as H, G as q, a3 as z, a9 as j, c as J, e as K, F as Q, aT as V, I as X, a as Y, aK as Z, aU as _, aJ as $, aL as aa, i as sa, j as ea, k as na, l as oa, m as ta, n as ra, M as ia, p as ca, N as Ia, f as la, O as Sa, g as ba, Z as da, P as ua, a1 as Ta, aI as ga, an as pa, ak as Aa, R as ma, av as ha, ad as Fa, H as Ba, J as Ca, K as Pa, a7 as ka, aQ as xa, y as ya, aW as Da, aa as Ma, S as va, aB as Ua, aC as Wa, aA as Ea, aD as La, aE as Ra, aF as Oa, ae as fa, X as Na, aH as wa, aX as Ga, ac as Ha, aN as qa, ai as za, T as ja, Q as Ja, U as Ka, aV as Qa, al as Va, am as Xa, v as Ya, a0 as Za, W as _a, b0 as $a, a$ as as, at as ss, b3 as es, b2 as ns, ay as os, aZ as ts, ar as rs, as as is, b4 as cs, a_ as Is, b1 as ls, ap as Ss, b5 as bs, b6 as ds, aG as us } from "./index-BXcyp6S1.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ASDIcon,
|
|
4
4
|
n as AddToMeetingIcon,
|
|
@@ -29,11 +29,11 @@ export {
|
|
|
29
29
|
D as DateTimePicker,
|
|
30
30
|
M as DecreaseIcon,
|
|
31
31
|
v as DispIcon,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
U as Editor,
|
|
33
|
+
W as EnqIcon,
|
|
34
|
+
E as ErrorBox,
|
|
35
|
+
L as ErrorMessage,
|
|
36
|
+
R as FavoriteStar,
|
|
37
37
|
O as FilterBar,
|
|
38
38
|
f as FilterProvider,
|
|
39
39
|
N as FilterTypes,
|
|
@@ -83,11 +83,11 @@ export {
|
|
|
83
83
|
Da as StatusBar,
|
|
84
84
|
Ma as Switch,
|
|
85
85
|
va as SynergiIcon,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
Ua as TabFactory,
|
|
87
|
+
Wa as TabFactoryInner,
|
|
88
|
+
Ea as TabbedTable,
|
|
89
|
+
La as TabbedTableProvider,
|
|
90
|
+
Ra as TabbedTabs,
|
|
91
91
|
Oa as TabbedToolbar,
|
|
92
92
|
fa as Table,
|
|
93
93
|
Na as TableChartIcon,
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-pdo61Q5p.cjs");exports.ASDIcon=e.ASDIcon,exports.AddToMeetingIcon=e.AddToMeetingIcon,Object.defineProperty(exports,"AlarmLevel",{enumerable:!0,get:function(){return e.AlarmLevel}}),exports.AnnotationArchiveIcon=e.AnnotationArchiveIcon,exports.AnnotationErrorIcon=e.AnnotationErrorIcon,exports.AnnotationIcon=e.AnnotationIcon,exports.AnnotationInProgressIcon=e.AnnotationInProgressIcon,exports.AnnotationNoteIcon=e.AnnotationNoteIcon,exports.AnnotationOnWatchIcon=e.AnnotationOnWatchIcon,exports.ArrowChevronIcon=e.ArrowChevronIcon,exports.AttachmentUpload=e.AttachmentUpload,exports.AutocompleteFilter=e.AutocompleteFilter,exports.AutocompleteSelect=e.AutocompleteSelect,exports.BasicHeaderContent=e.BasicHeaderContent,exports.BlueLightIcon=e.BlueLightIcon,exports.BuildingBlockIcon=e.BuildingBlockIcon,exports.BusinessMapIcon=e.BusinessMapIcon,exports.Button=e.Button,exports.CheckboxFilter=e.CheckboxFilter,exports.ConfirmationDialog=e.ConfirmationDialog,exports.ContextNavButton=e.ContextNavButton,exports.CriticalAlarmIcon=e.CriticalAlarmIcon,exports.CriticalStatusIcon=e.CriticalStatusIcon,exports.DateFilter=e.DateFilter,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.DateTimePicker=e.DateTimePicker,exports.DecreaseIcon=e.DecreaseIcon,exports.DispIcon=e.DispIcon,exports.Editor=e.Editor,exports.EnqIcon=e.EnqIcon,exports.ErrorBox=e.ErrorBox,exports.ErrorMessage=e.ErrorMessage,exports.FavoriteStar=e.FavoriteStar,exports.FilterBar=e.FilterBar,exports.FilterProvider=e.FilterProvider,Object.defineProperty(exports,"FilterTypes",{enumerable:!0,get:function(){return e.FilterTypes}}),exports.FooterSection=e.FooterSection,exports.FunctionStateChart=e.FunctionStateChart,exports.GlobalStyles=e.GlobalStyles,exports.GlobalStylesProvider=e.GlobalStylesProvider,exports.GroupIcon=e.GroupIcon,exports.HeaderMenu=e.HeaderMenu,exports.IconButton=e.IconButton,exports.InProgressStatusIcon=e.InProgressStatusIcon,exports.IncreaseIcon=e.IncreaseIcon,Object.defineProperty(exports,"IndicatorType",{enumerable:!0,get:function(){return e.IndicatorType}}),exports.InfoBox=e.InfoBox,exports.InlineErrorBox=e.InlineErrorBox,exports.InlineLink=e.InlineLink,exports.LineChart=e.LineChart,exports.Link=e.Link,exports.LinkWithIcon=e.LinkWithIcon,exports.M1Icon=e.M1Icon,exports.M2Icon=e.M2Icon,exports.M3Icon=e.M3Icon,exports.M5Icon=e.M5Icon,exports.M6Icon=e.M6Icon,exports.M9Icon=e.M9Icon,exports.MeatballMenuButton=e.MeatballMenuButton,exports.NAIcon=e.NAIcon,exports.NotInScopeStatusIcon=e.NotInScopeStatusIcon,exports.NotReadyStatusIcon=e.NotReadyStatusIcon,exports.OkStatusIcon=e.OkStatusIcon,exports.OpportunityStatusIcon=e.OpportunityStatusIcon,exports.PIDIcon=e.PIDIcon,exports.PeprIcon=e.PeprIcon,exports.PreAlarmIcon=e.PreAlarmIcon,exports.RadioButton=e.RadioButton,exports.ReadWriteContext=e.ReadWriteContext,exports.ReadWriteProvider=e.ReadWriteProvider,exports.RitmIcon=e.RitmIcon,exports.SearchFilter=e.SearchFilter,exports.Select=e.Select,exports.ShutdownIcon=e.ShutdownIcon,exports.SlightDecreaseIcon=e.SlightDecreaseIcon,exports.SlightIncreaseIcon=e.SlightIncreaseIcon,exports.Snackbar=e.Snackbar,exports.Sparkline=e.Sparkline,exports.StarIcon=e.StarIcon,exports.StatusBar=e.StatusBar,exports.Switch=e.Switch,exports.SynergiIcon=e.SynergiIcon,exports.TabFactory=e.TabFactory,exports.TabFactoryInner=e.TabFactoryInner,exports.TabbedTable=e.TabbedTable,exports.TabbedTableProvider=e.TabbedTableProvider,exports.TabbedTabs=e.TabbedTabs,exports.TabbedToolbar=e.TabbedToolbar,exports.Table=e.Table,exports.TableChartIcon=e.TableChartIcon,exports.TableSettings=e.TableSettings,exports.TextArea=e.TextArea,exports.TextField=e.TextField,exports.Timeline=e.TimelineWrapper,exports.TimespanPicker=e.TimespanPicker,exports.TrashOutlinedIcon=e.TrashOutlinedIcon,exports.UnassignedIcon=e.UnassignedIcon,exports.UnavailableStatusIcon=e.UnavailableStatusIcon,exports.UserAccessDenied=e.UserAccessDenied,exports.UserCanReadOnly=e.UserCanReadOnly,exports.UserCanWrite=e.UserCanWrite,exports.WOIcon=e.WOIcon,exports.WarningAlarmIcon=e.WarningAlarmIcon,exports.WarningStatusIcon=e.WarningStatusIcon,exports.baseSpacingUnit=e.baseSpacingUnit,exports.colors=e.colors,exports.defaultSearchFilterFn=e.defaultSearchFilterFn,exports.edsHeadings=e.edsHeadings,exports.fontFamily=e.fontFamily,exports.getDateFromPeriodString=e.getDateFromPeriodString,exports.globalTheme=e.globalTheme,exports.isTimeSpanTense=e.isTimeSpanTense,exports.isTimeSpanUnit=e.isTimeSpanUnit,exports.localStorageExpectedState=e.localStorageExpectedState,exports.primaryPalette=e.primaryPalette,exports.sizes=e.sizes,exports.useFilterContext=e.useFilterContext,exports.useLocalStorage=e.useLocalStorage,exports.useSessionStorage=e.useSessionStorage,exports.useTabbedContext=e.useTabbedContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/ioc-common-frontend",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/equinor/ioc-common-frontend"
|
|
@@ -58,31 +58,31 @@
|
|
|
58
58
|
"styled-components": ">=5.3"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@babel/runtime": "7.28.
|
|
61
|
+
"@babel/runtime": "7.28.6",
|
|
62
62
|
"@emotion/react": "11.14.0",
|
|
63
63
|
"@emotion/styled": "11.14.1",
|
|
64
|
-
"@equinor/eds-core-react": "2.
|
|
65
|
-
"@equinor/eds-icons": "1.
|
|
66
|
-
"@equinor/eds-tokens": "2.
|
|
67
|
-
"@faker-js/faker": "10.
|
|
68
|
-
"@lexical/clipboard": "0.
|
|
69
|
-
"@lexical/html": "0.
|
|
70
|
-
"@lexical/link": "0.
|
|
71
|
-
"@lexical/list": "0.
|
|
72
|
-
"@lexical/mark": "0.
|
|
73
|
-
"@lexical/markdown": "0.
|
|
74
|
-
"@lexical/overflow": "0.
|
|
75
|
-
"@lexical/react": "0.
|
|
76
|
-
"@lexical/selection": "0.
|
|
77
|
-
"@lexical/utils": "0.
|
|
78
|
-
"@mui/icons-material": "7.3.
|
|
79
|
-
"@mui/material": "7.3.
|
|
64
|
+
"@equinor/eds-core-react": "2.3.7",
|
|
65
|
+
"@equinor/eds-icons": "1.3.0",
|
|
66
|
+
"@equinor/eds-tokens": "2.2.0",
|
|
67
|
+
"@faker-js/faker": "10.3.0",
|
|
68
|
+
"@lexical/clipboard": "0.41.0",
|
|
69
|
+
"@lexical/html": "0.41.0",
|
|
70
|
+
"@lexical/link": "0.41.0",
|
|
71
|
+
"@lexical/list": "0.41.0",
|
|
72
|
+
"@lexical/mark": "0.41.0",
|
|
73
|
+
"@lexical/markdown": "0.41.0",
|
|
74
|
+
"@lexical/overflow": "0.41.0",
|
|
75
|
+
"@lexical/react": "0.41.0",
|
|
76
|
+
"@lexical/selection": "0.41.0",
|
|
77
|
+
"@lexical/utils": "0.41.0",
|
|
78
|
+
"@mui/icons-material": "7.3.8",
|
|
79
|
+
"@mui/material": "7.3.8",
|
|
80
80
|
"@mui/styles": "6.5.0",
|
|
81
|
-
"@mui/system": "^7.3.
|
|
82
|
-
"@mui/x-date-pickers": "
|
|
81
|
+
"@mui/system": "^7.3.8",
|
|
82
|
+
"@mui/x-date-pickers": "8.27.2",
|
|
83
83
|
"@tanstack/react-table": "8.21.3",
|
|
84
84
|
"@types/d3": "7.4.3",
|
|
85
|
-
"@types/lodash": "4.17.
|
|
85
|
+
"@types/lodash": "4.17.24",
|
|
86
86
|
"@visx/axis": "^3.12.0",
|
|
87
87
|
"@visx/brush": "3.12.0",
|
|
88
88
|
"@visx/curve": "3.12.0",
|
|
@@ -100,98 +100,98 @@
|
|
|
100
100
|
"d3-scale": "4.0.2",
|
|
101
101
|
"d3-time-format": "^4.1.0",
|
|
102
102
|
"date-fns": "4.1.0",
|
|
103
|
-
"emoji-picker-react": "4.
|
|
103
|
+
"emoji-picker-react": "4.18.0",
|
|
104
104
|
"export-to-csv": "^1.4.0",
|
|
105
|
-
"immer": "11.1.
|
|
106
|
-
"lodash": "4.17.
|
|
105
|
+
"immer": "11.1.4",
|
|
106
|
+
"lodash": "4.17.23",
|
|
107
107
|
"polished": "4.3.1",
|
|
108
108
|
"ramda": "0.32.0",
|
|
109
109
|
"react-spring": "10.0.3",
|
|
110
110
|
"react-virtual": "2.10.4",
|
|
111
|
-
"react-window": "2.2.
|
|
112
|
-
"remeda": "2.33.
|
|
113
|
-
"styled-components": "6.
|
|
111
|
+
"react-window": "2.2.7",
|
|
112
|
+
"remeda": "2.33.6",
|
|
113
|
+
"styled-components": "6.3.11"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@babel/core": "7.
|
|
117
|
-
"@babel/plugin-transform-runtime": "7.
|
|
118
|
-
"@babel/preset-env": "7.
|
|
116
|
+
"@babel/core": "7.29.0",
|
|
117
|
+
"@babel/plugin-transform-runtime": "7.29.0",
|
|
118
|
+
"@babel/preset-env": "7.29.0",
|
|
119
119
|
"@babel/preset-react": "7.28.5",
|
|
120
120
|
"@babel/preset-typescript": "7.28.5",
|
|
121
|
-
"@eslint/compat": "2.0.
|
|
122
|
-
"@rollup/plugin-babel": "
|
|
123
|
-
"@rollup/plugin-commonjs": "29.0.
|
|
121
|
+
"@eslint/compat": "2.0.2",
|
|
122
|
+
"@rollup/plugin-babel": "7.0.0",
|
|
123
|
+
"@rollup/plugin-commonjs": "29.0.1",
|
|
124
124
|
"@rollup/plugin-json": "6.1.0",
|
|
125
125
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
126
|
-
"@rollup/plugin-terser": "0.
|
|
126
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
127
127
|
"@rollup/plugin-typescript": "12.3.0",
|
|
128
128
|
"@rollup/plugin-url": "8.0.2",
|
|
129
129
|
"@semantic-release/changelog": "6.0.3",
|
|
130
130
|
"@semantic-release/git": "10.0.1",
|
|
131
|
-
"@semantic-release/github": "12.0.
|
|
132
|
-
"@semantic-release/npm": "13.1.
|
|
131
|
+
"@semantic-release/github": "12.0.6",
|
|
132
|
+
"@semantic-release/npm": "13.1.5",
|
|
133
133
|
"@semantic-release/release-notes-generator": "14.1.0",
|
|
134
|
-
"@storybook/cli": "10.
|
|
135
|
-
"@storybook/react": "10.
|
|
136
|
-
"@storybook/react-vite": "10.
|
|
134
|
+
"@storybook/cli": "10.2.15",
|
|
135
|
+
"@storybook/react": "10.2.15",
|
|
136
|
+
"@storybook/react-vite": "10.2.15",
|
|
137
137
|
"@testing-library/dom": "10.4.1",
|
|
138
|
-
"@testing-library/react": "16.3.
|
|
138
|
+
"@testing-library/react": "16.3.2",
|
|
139
139
|
"@testing-library/user-event": "14.6.1",
|
|
140
140
|
"@types/d3-time-format": "^4.0.3",
|
|
141
|
-
"@types/node": "25.
|
|
141
|
+
"@types/node": "25.3.3",
|
|
142
142
|
"@types/ramda": "0.31.1",
|
|
143
|
-
"@types/react": "19.2.
|
|
143
|
+
"@types/react": "19.2.14",
|
|
144
144
|
"@types/react-dom": "19.2.3",
|
|
145
145
|
"@types/react-window": "2.0.0",
|
|
146
146
|
"@types/styled-components": "5.1.36",
|
|
147
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
148
|
-
"@typescript-eslint/parser": "8.
|
|
149
|
-
"@vitejs/plugin-react": "5.1.
|
|
150
|
-
"@vitejs/plugin-react-swc": "4.2.
|
|
151
|
-
"@vitest/coverage-istanbul": "4.0.
|
|
152
|
-
"@vitest/ui": "4.0.
|
|
147
|
+
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
148
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
149
|
+
"@vitejs/plugin-react": "5.1.4",
|
|
150
|
+
"@vitejs/plugin-react-swc": "4.2.3",
|
|
151
|
+
"@vitest/coverage-istanbul": "4.0.18",
|
|
152
|
+
"@vitest/ui": "4.0.18",
|
|
153
153
|
"babel-loader": "10.0.0",
|
|
154
154
|
"babel-plugin-macros": "3.1.0",
|
|
155
155
|
"babel-plugin-styled-components": "2.1.4",
|
|
156
156
|
"commitizen": "4.3.1",
|
|
157
157
|
"cz-conventional-changelog": "3.3.0",
|
|
158
|
-
"eslint": "9.39.
|
|
158
|
+
"eslint": "9.39.3",
|
|
159
159
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
160
160
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
161
161
|
"eslint-plugin-import": "2.32.0",
|
|
162
|
-
"eslint-plugin-prettier": "5.5.
|
|
162
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
163
163
|
"eslint-plugin-react": "7.37.5",
|
|
164
164
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
165
|
-
"eslint-plugin-storybook": "10.
|
|
166
|
-
"eslint-plugin-testing-library": "7.
|
|
167
|
-
"happy-dom": "20.
|
|
165
|
+
"eslint-plugin-storybook": "10.2.15",
|
|
166
|
+
"eslint-plugin-testing-library": "7.16.0",
|
|
167
|
+
"happy-dom": "20.8.3",
|
|
168
168
|
"husky": "9.1.7",
|
|
169
|
-
"lexical": "0.
|
|
170
|
-
"lint-staged": "16.2
|
|
169
|
+
"lexical": "0.41.0",
|
|
170
|
+
"lint-staged": "16.3.2",
|
|
171
171
|
"pinst": "3.0.0",
|
|
172
|
-
"postcss": "8.5.
|
|
173
|
-
"prettier": "3.
|
|
174
|
-
"react": "19.2.
|
|
175
|
-
"react-dom": "19.2.
|
|
176
|
-
"react-test-renderer": "19.2.
|
|
172
|
+
"postcss": "8.5.8",
|
|
173
|
+
"prettier": "3.8.1",
|
|
174
|
+
"react": "19.2.4",
|
|
175
|
+
"react-dom": "19.2.4",
|
|
176
|
+
"react-test-renderer": "19.2.4",
|
|
177
177
|
"regenerator-runtime": "0.14.1",
|
|
178
178
|
"rollup-plugin-delete": "3.0.2",
|
|
179
179
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
180
180
|
"rollup-plugin-postcss": "4.0.2",
|
|
181
181
|
"rollup-plugin-typescript-paths": "1.5.0",
|
|
182
|
-
"semantic-release": "25.0.
|
|
183
|
-
"storybook": "10.
|
|
182
|
+
"semantic-release": "25.0.3",
|
|
183
|
+
"storybook": "10.2.15",
|
|
184
184
|
"tslib": "2.8.1",
|
|
185
185
|
"typescript": "5.9.3",
|
|
186
|
-
"vite": "7.3.
|
|
186
|
+
"vite": "7.3.1",
|
|
187
187
|
"vite-plugin-dts": "4.5.4",
|
|
188
188
|
"vite-plugin-lib-inject-css": "2.2.2",
|
|
189
189
|
"vite-plugin-svgr": "4.5.0",
|
|
190
|
-
"vite-tsconfig-paths": "6.
|
|
191
|
-
"vitest": "4.0.
|
|
190
|
+
"vite-tsconfig-paths": "6.1.1",
|
|
191
|
+
"vitest": "4.0.18",
|
|
192
192
|
"vitest-dom": "0.1.1",
|
|
193
193
|
"web-vitals": "5.1.0",
|
|
194
|
-
"webpack": "5.
|
|
194
|
+
"webpack": "5.105.4"
|
|
195
195
|
},
|
|
196
196
|
"importSort": {
|
|
197
197
|
".js, .jsx, .ts, .tsx": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./ImageComponent.css');var c=require("./index-B39WK-Qz.cjs"),d=require("react/jsx-runtime"),e=require("lexical"),a=require("react");function Y(r,M){return r.getEditorState().read(()=>{const f=e.$getNodeByKey(M);return f!==null&&f.isSelected()})}c.styleInject("");var p=new Set,$=e.createCommand("RIGHT_CLICK_IMAGE_COMMAND");function B(r){var M=r.altText,f=r.className,v=r.imageRef,N=r.src,R=r.width,A=r.height,O=r.maxWidth,m=r.onError;return(function(u){if(!p.has(u))throw new Promise(function(S){var _=new Image;_.src=u,_.onload=function(){p.add(u),S(null)},_.onerror=function(){p.add(u)}})})(N),d.jsx("img",{className:f||void 0,src:N,alt:M,ref:v,style:{height:A,maxWidth:O,width:R},onError:m,draggable:"false"})}function U(){return d.jsx("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%203H2v18h20v-2h-2v-2h2v-2h-2v-2h2v-2h-2V9h2V7h-2V5h2V3zm-2%204v2h-2v2h2v2h-2v2h2v2h-2v2H4V5h14v2h2zm-6%202h-2v2h-2v2H8v2H6v2h2v-2h2v-2h2v-2h2v2h2v-2h-2V9zM6%207h2v2H6V7z'%20fill='%23000000'/%3e%3c/svg%3e",style:{height:200,opacity:.2,width:200},draggable:"false"})}exports.RIGHT_CLICK_IMAGE_COMMAND=$,exports.default=function(r){var M=r.src,f=r.altText,v=r.nodeKey,N=r.width,R=r.height,A=r.maxWidth,O=r.showCaption,m=r.caption,u=a.useRef(null),S=a.useRef(null),_=(function(n){const[t]=c.o(),[g,h]=a.useState(()=>Y(t,n));return a.useEffect(()=>{let o=!0;const s=t.registerUpdateListener(()=>{o&&h(Y(t,n))});return()=>{o=!1,s()}},[t,n]),[g,a.useCallback(o=>{t.update(()=>{let s=e.$getSelection();e.$isNodeSelection(s)||(s=e.$createNodeSelection(),e.$setSelection(s)),e.$isNodeSelection(s)&&(o?s.add(n):s.delete(n))})},[t,n]),a.useCallback(()=>{t.update(()=>{const o=e.$getSelection();e.$isNodeSelection(o)&&o.clear()})},[t])]})(v),E=c._slicedToArray(_,3),l=E[0],C=E[1],I=E[2],P=c.o(),i=c._slicedToArray(P,1)[0],G=a.useState(null),w=c._slicedToArray(G,2),L=w[0],j=w[1],y=a.useRef(null),V=a.useState(!1),b=c._slicedToArray(V,2),k=b[0],H=b[1],x=a.useCallback(function(n){if(l&&e.$isNodeSelection(e.$getSelection())){n.preventDefault();var t=e.$getNodeByKey(v);if(c.$isImageNode(t))return t?.remove(),!0}return!1},[l,v]),K=a.useCallback(function(n){var t=e.$getSelection(),g=S.current;if(l&&e.$isNodeSelection(t)&&t.getNodes().length===1){if(O)return e.$setSelection(null),n.preventDefault(),m.focus(),!0;if(g!==null&&g!==document.activeElement)return n.preventDefault(),g.focus(),!0}return!1},[m,l,O]),W=a.useCallback(function(n){return(y.current===m||S.current===n.target)&&(e.$setSelection(null),i.update(function(){C(!0);var t=i.getRootElement();t!==null&&t.focus()}),!0)},[m,i,C]),D=a.useCallback(function(n){var t=n;return t.target===u.current&&(t.shiftKey?C(!l):(I(),C(!0)),!0)},[l,C,I]),T=a.useCallback(function(n){i.getEditorState().read(function(){var t=e.$getSelection();n.target.tagName==="IMG"&&e.$isRangeSelection(t)&&t.getNodes().length===1&&i.dispatchCommand($,n)})},[i]);a.useEffect(function(){var n=!0,t=i.getRootElement(),g=c.U(i.registerUpdateListener(function(h){var o=h.editorState;n&&j(o.read(function(){return e.$getSelection()}))}),i.registerCommand(e.SELECTION_CHANGE_COMMAND,function(h,o){return y.current=o,!1},e.COMMAND_PRIORITY_LOW),i.registerCommand(e.CLICK_COMMAND,D,e.COMMAND_PRIORITY_LOW),i.registerCommand($,D,e.COMMAND_PRIORITY_LOW),i.registerCommand(e.DRAGSTART_COMMAND,function(h){return h.target===u.current&&(h.preventDefault(),!0)},e.COMMAND_PRIORITY_LOW),i.registerCommand(e.KEY_DELETE_COMMAND,x,e.COMMAND_PRIORITY_LOW),i.registerCommand(e.KEY_BACKSPACE_COMMAND,x,e.COMMAND_PRIORITY_LOW),i.registerCommand(e.KEY_ENTER_COMMAND,K,e.COMMAND_PRIORITY_LOW),i.registerCommand(e.KEY_ESCAPE_COMMAND,W,e.COMMAND_PRIORITY_LOW));return t?.addEventListener("contextmenu",T),function(){n=!1,g(),t?.removeEventListener("contextmenu",T)}},[I,i,l,v,x,K,W,D,T,C]);var q=l&&e.$isNodeSelection(L),z=l;return d.jsx(a.Suspense,{fallback:null,children:d.jsx(d.Fragment,{children:d.jsx("div",{draggable:q,children:k?d.jsx(U,{}):d.jsx(B,{className:z?"focused ".concat(e.$isNodeSelection(L)?"draggable":""):null,src:M,altText:f,imageRef:u,width:N,height:R,maxWidth:A,onError:function(){return H(!0)}})})})})};
|