@equinor/fusion-framework-react-components-bookmark 1.1.0 → 1.1.1
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 +27 -0
- package/dist/esm/components/create-bookmark/CreateBookmark.js +5 -3
- package/dist/esm/components/create-bookmark/CreateBookmark.js.map +1 -1
- package/dist/esm/components/edit-bookmark/EditBookmark.js +5 -3
- package/dist/esm/components/edit-bookmark/EditBookmark.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/hooks/useBookmarkGrouping.d.ts +1 -29
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -7
- package/src/components/create-bookmark/CreateBookmark.tsx +7 -4
- package/src/components/edit-bookmark/EditBookmark.tsx +7 -4
- package/src/version.ts +1 -1
|
@@ -6,35 +6,7 @@ export declare const useBookmarkGrouping: (bookmarks?: Bookmarks) => {
|
|
|
6
6
|
searchText: string | null;
|
|
7
7
|
bookmarkGroups: {
|
|
8
8
|
groupingProperty: string;
|
|
9
|
-
values:
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
appKey: string;
|
|
13
|
-
created: Date;
|
|
14
|
-
createdBy: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
mail?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
isShared?: boolean | undefined;
|
|
21
|
-
updated?: Date | undefined;
|
|
22
|
-
updatedBy?: {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
mail?: string | undefined;
|
|
26
|
-
} | undefined;
|
|
27
|
-
context?: {
|
|
28
|
-
id: string;
|
|
29
|
-
name?: string | undefined;
|
|
30
|
-
type?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
sourceSystem?: {
|
|
33
|
-
identifier: string;
|
|
34
|
-
name?: string | null | undefined;
|
|
35
|
-
subSystem?: string | null | undefined;
|
|
36
|
-
} | null | undefined;
|
|
37
|
-
}[];
|
|
9
|
+
values: BookmarkWithoutData[];
|
|
38
10
|
}[];
|
|
39
11
|
groupingModes: Record<GroupingKeys, (_item: BookmarkWithoutData) => string>;
|
|
40
12
|
groupByKey: GroupingKeys;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.1.
|
|
1
|
+
export declare const version = "1.1.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-react-components-bookmark",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"rxjs": "^7.8.1",
|
|
26
|
-
"@equinor/fusion-framework-react": "^7.4.
|
|
27
|
-
"@equinor/fusion-
|
|
28
|
-
"@equinor/fusion-
|
|
26
|
+
"@equinor/fusion-framework-react": "^7.4.18",
|
|
27
|
+
"@equinor/fusion-observable": "^8.5.5",
|
|
28
|
+
"@equinor/fusion-framework-react-module-bookmark": "^5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@equinor/eds-core-react": "^0.49.0",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"styled-components": "^6.0.7",
|
|
38
38
|
"typescript": "^5.8.2",
|
|
39
|
-
"@equinor/fusion-framework-module-app": "^
|
|
40
|
-
"@equinor/fusion-framework-module-
|
|
41
|
-
"@equinor/fusion-framework-module-
|
|
39
|
+
"@equinor/fusion-framework-module-app": "^7.0.2",
|
|
40
|
+
"@equinor/fusion-framework-module-event": "^4.3.7",
|
|
41
|
+
"@equinor/fusion-framework-module-bookmark": "^3.0.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@equinor/eds-core-react": "^0.49.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChangeEvent, useCallback, useEffect, useState } from 'react';
|
|
1
|
+
import { type ChangeEvent, useCallback, useEffect, useId, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import type { BookmarkCreateArgs } from '@equinor/fusion-framework-module-bookmark';
|
|
4
4
|
import { useBookmarkComponentContext } from '../BookmarkProvider';
|
|
@@ -29,6 +29,9 @@ export const CreateBookmarkModal = ({
|
|
|
29
29
|
isShared: false,
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
+
const nameId = useId();
|
|
33
|
+
const descriptionId = useId();
|
|
34
|
+
|
|
32
35
|
useEffect(() => {
|
|
33
36
|
setState((s) => ({ ...s, appKey: currentApp?.appKey || '' }));
|
|
34
37
|
}, [currentApp]);
|
|
@@ -63,9 +66,9 @@ export const CreateBookmarkModal = ({
|
|
|
63
66
|
<Dialog.Header>Create bookmark</Dialog.Header>
|
|
64
67
|
<StyledContent>
|
|
65
68
|
<div>
|
|
66
|
-
<Label htmlFor=
|
|
69
|
+
<Label htmlFor={nameId} label="Name" />
|
|
67
70
|
<Input
|
|
68
|
-
id=
|
|
71
|
+
id={nameId}
|
|
69
72
|
autoComplete="off"
|
|
70
73
|
value={state?.name}
|
|
71
74
|
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
|
@@ -75,7 +78,7 @@ export const CreateBookmarkModal = ({
|
|
|
75
78
|
</div>
|
|
76
79
|
<div>
|
|
77
80
|
<TextField
|
|
78
|
-
id=
|
|
81
|
+
id={descriptionId}
|
|
79
82
|
label="Description"
|
|
80
83
|
multiline
|
|
81
84
|
rows={3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react';
|
|
1
|
+
import { type ChangeEvent, useCallback, useEffect, useId, useMemo, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import { EMPTY, from, of } from 'rxjs';
|
|
4
4
|
|
|
@@ -49,6 +49,9 @@ export const EditBookmarkModal = ({
|
|
|
49
49
|
isShared: false,
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
+
const nameId = useId();
|
|
53
|
+
const descriptionId = useId();
|
|
54
|
+
|
|
52
55
|
const [updatePayload, setUpdatePayload] = useState(false);
|
|
53
56
|
|
|
54
57
|
const bookmark$ = useMemo(
|
|
@@ -111,9 +114,9 @@ export const EditBookmarkModal = ({
|
|
|
111
114
|
<Dialog.Header>Edit bookmark</Dialog.Header>
|
|
112
115
|
<Styled.DialogContent>
|
|
113
116
|
<div>
|
|
114
|
-
<Label htmlFor=
|
|
117
|
+
<Label htmlFor={nameId} label="Name" />
|
|
115
118
|
<Input
|
|
116
|
-
id=
|
|
119
|
+
id={nameId}
|
|
117
120
|
autoComplete="off"
|
|
118
121
|
value={state?.name}
|
|
119
122
|
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
|
@@ -123,7 +126,7 @@ export const EditBookmarkModal = ({
|
|
|
123
126
|
</div>
|
|
124
127
|
<div>
|
|
125
128
|
<TextField
|
|
126
|
-
id=
|
|
129
|
+
id={descriptionId}
|
|
127
130
|
label="Description"
|
|
128
131
|
value={state?.description}
|
|
129
132
|
multiline
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.1.
|
|
2
|
+
export const version = '1.1.1';
|