@equinor/fusion-framework-react-components-bookmark 1.1.3 → 1.2.0-next.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.
- package/CHANGELOG.md +47 -19
- package/dist/esm/components/create-bookmark/CreateBookmark.js +2 -2
- package/dist/esm/components/create-bookmark/CreateBookmark.js.map +1 -1
- package/dist/esm/components/edit-bookmark/EditBookmark.js +3 -5
- package/dist/esm/components/edit-bookmark/EditBookmark.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +19 -19
- package/src/components/create-bookmark/CreateBookmark.tsx +3 -4
- package/src/components/edit-bookmark/EditBookmark.tsx +4 -8
- package/src/version.ts +1 -1
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.2.0-next.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-react-components-bookmark",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-next.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"rxjs": "^7.8.1",
|
|
26
|
-
"@equinor/fusion-framework-react": "^7.4.
|
|
27
|
-
"@equinor/fusion-observable": "^8.5.
|
|
28
|
-
"@equinor/fusion-framework-react-module-bookmark": "^5.0.
|
|
26
|
+
"@equinor/fusion-framework-react": "^7.4.21-next.0",
|
|
27
|
+
"@equinor/fusion-observable": "^8.5.9-next.0",
|
|
28
|
+
"@equinor/fusion-framework-react-module-bookmark": "^5.0.3-next.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@equinor/eds-core-react": "^
|
|
32
|
-
"@equinor/eds-icons": "^
|
|
33
|
-
"@equinor/eds-tokens": "^
|
|
34
|
-
"@equinor/eds-utils": "^0.
|
|
35
|
-
"@types/react": "^
|
|
36
|
-
"react": "^
|
|
31
|
+
"@equinor/eds-core-react": "^2.2.0",
|
|
32
|
+
"@equinor/eds-icons": "^1.1.0",
|
|
33
|
+
"@equinor/eds-tokens": "^2.1.1",
|
|
34
|
+
"@equinor/eds-utils": "^2.0.0",
|
|
35
|
+
"@types/react": "^19.2.7",
|
|
36
|
+
"react": "^19.2.1",
|
|
37
37
|
"styled-components": "^6.0.7",
|
|
38
38
|
"typescript": "^5.8.2",
|
|
39
|
-
"@equinor/fusion-framework-module-
|
|
40
|
-
"@equinor/fusion-framework-module-event": "^5.0.
|
|
41
|
-
"@equinor/fusion-framework-module-
|
|
39
|
+
"@equinor/fusion-framework-module-bookmark": "^3.0.7-next.0",
|
|
40
|
+
"@equinor/fusion-framework-module-event": "^5.0.2-next.0",
|
|
41
|
+
"@equinor/fusion-framework-module-app": "^7.4.2-next.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@equinor/eds-core-react": "^
|
|
45
|
-
"@equinor/eds-icons": "^
|
|
46
|
-
"@equinor/eds-tokens": "^
|
|
47
|
-
"@equinor/eds-utils": "^0.
|
|
48
|
-
"@types/react": "^
|
|
49
|
-
"react": "^
|
|
44
|
+
"@equinor/eds-core-react": "^2.2.0",
|
|
45
|
+
"@equinor/eds-icons": "^1.1.0",
|
|
46
|
+
"@equinor/eds-tokens": "^2.1.1",
|
|
47
|
+
"@equinor/eds-utils": "^2.0.0",
|
|
48
|
+
"@types/react": "^18.0.0 || ^19.0.0",
|
|
49
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
50
50
|
"styled-components": "^6.0.7"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
@@ -3,7 +3,7 @@ import { type ChangeEvent, useCallback, useEffect, useId, useState } from 'react
|
|
|
3
3
|
import type { BookmarkCreateArgs } from '@equinor/fusion-framework-module-bookmark';
|
|
4
4
|
import { useBookmarkComponentContext } from '../BookmarkProvider';
|
|
5
5
|
|
|
6
|
-
import { Button, Checkbox, Dialog, Input, Label,
|
|
6
|
+
import { Button, Checkbox, Dialog, Input, Label, Textarea } from '@equinor/eds-core-react';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { from } from 'rxjs';
|
|
9
9
|
|
|
@@ -77,13 +77,12 @@ export const CreateBookmarkModal = ({
|
|
|
77
77
|
/>
|
|
78
78
|
</div>
|
|
79
79
|
<div>
|
|
80
|
-
<
|
|
80
|
+
<Textarea
|
|
81
81
|
id={descriptionId}
|
|
82
82
|
label="Description"
|
|
83
|
-
multiline
|
|
84
83
|
rows={3}
|
|
85
84
|
rowsMax={10}
|
|
86
|
-
onChange={(event: ChangeEvent<
|
|
85
|
+
onChange={(event: ChangeEvent<HTMLTextAreaElement>) => {
|
|
87
86
|
setState((s) => ({ ...s, description: event.target.value }));
|
|
88
87
|
}}
|
|
89
88
|
/>
|
|
@@ -8,7 +8,7 @@ import { useFrameworkModule } from '@equinor/fusion-framework-react';
|
|
|
8
8
|
import type { AppModule } from '@equinor/fusion-framework-module-app';
|
|
9
9
|
import type { BookmarkUpdate } from '@equinor/fusion-framework-module-bookmark';
|
|
10
10
|
|
|
11
|
-
import { Button, Checkbox, Dialog, Input, Label,
|
|
11
|
+
import { Button, Checkbox, Dialog, Input, Label, Textarea } from '@equinor/eds-core-react';
|
|
12
12
|
import styled from 'styled-components';
|
|
13
13
|
|
|
14
14
|
import { useBookmarkComponentContext } from '../BookmarkProvider';
|
|
@@ -59,7 +59,7 @@ export const EditBookmarkModal = ({
|
|
|
59
59
|
[provider, bookmarkId],
|
|
60
60
|
);
|
|
61
61
|
|
|
62
|
-
const { value: bookmark
|
|
62
|
+
const { value: bookmark } = useObservableState(bookmark$);
|
|
63
63
|
|
|
64
64
|
// set the state when the bookmark is loaded
|
|
65
65
|
useEffect(() => {
|
|
@@ -106,9 +106,6 @@ export const EditBookmarkModal = ({
|
|
|
106
106
|
[onClose, provider, bookmarkId, updatePayload],
|
|
107
107
|
);
|
|
108
108
|
|
|
109
|
-
// TODO - add loading spinner
|
|
110
|
-
isLoadingBookmark;
|
|
111
|
-
|
|
112
109
|
return (
|
|
113
110
|
<Styled.Dialog open={isOpen}>
|
|
114
111
|
<Dialog.Header>Edit bookmark</Dialog.Header>
|
|
@@ -125,14 +122,13 @@ export const EditBookmarkModal = ({
|
|
|
125
122
|
/>
|
|
126
123
|
</div>
|
|
127
124
|
<div>
|
|
128
|
-
<
|
|
125
|
+
<Textarea
|
|
129
126
|
id={descriptionId}
|
|
130
127
|
label="Description"
|
|
131
128
|
value={state?.description}
|
|
132
|
-
multiline
|
|
133
129
|
rows={3}
|
|
134
130
|
rowsMax={10}
|
|
135
|
-
onChange={(event: ChangeEvent<
|
|
131
|
+
onChange={(event: ChangeEvent<HTMLTextAreaElement>) => {
|
|
136
132
|
setState((s) => ({ ...s, description: event.target.value }));
|
|
137
133
|
}}
|
|
138
134
|
/>
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.2.0-next.0';
|