@equinor/fusion-framework-react-components-bookmark 1.0.31 → 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.
@@ -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;
@@ -1 +1 @@
1
- export declare const version = "1.0.31";
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.0.31",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -23,28 +23,28 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "rxjs": "^7.8.1",
26
- "@equinor/fusion-framework-react": "^7.4.17",
27
- "@equinor/fusion-observable": "^8.5.1",
28
- "@equinor/fusion-framework-react-module-bookmark": "^5.0.0"
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
- "@equinor/eds-core-react": "^0.48.0",
31
+ "@equinor/eds-core-react": "^0.49.0",
32
32
  "@equinor/eds-icons": "^0.22.0",
33
- "@equinor/eds-tokens": "^0.9.2",
34
- "@equinor/eds-utils": "^0.8.5",
33
+ "@equinor/eds-tokens": "^0.10.0",
34
+ "@equinor/eds-utils": "^0.9.0",
35
35
  "@types/react": "^18.2.50",
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": "^6.1.17",
39
+ "@equinor/fusion-framework-module-app": "^7.0.2",
40
40
  "@equinor/fusion-framework-module-event": "^4.3.7",
41
- "@equinor/fusion-framework-module-bookmark": "^2.2.0"
41
+ "@equinor/fusion-framework-module-bookmark": "^3.0.2"
42
42
  },
43
43
  "peerDependencies": {
44
- "@equinor/eds-core-react": "^0.37.0",
44
+ "@equinor/eds-core-react": "^0.49.0",
45
45
  "@equinor/eds-icons": "^0.22.0",
46
- "@equinor/eds-tokens": "^0.9.2",
47
- "@equinor/eds-utils": "^0.8.3",
46
+ "@equinor/eds-tokens": "^0.10.0",
47
+ "@equinor/eds-utils": "^0.9.0",
48
48
  "@types/react": "^17.0.0 || ^18.0.0",
49
49
  "react": "^17.0.0 || ^18.0.0",
50
50
  "styled-components": "^6.0.7"
@@ -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="name" label="Name" />
69
+ <Label htmlFor={nameId} label="Name" />
67
70
  <Input
68
- id="name"
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="storybook-multiline-three"
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="name" label="Name" />
117
+ <Label htmlFor={nameId} label="Name" />
115
118
  <Input
116
- id="name"
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="storybook-multiline-three"
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.0.31';
2
+ export const version = '1.1.1';