@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.2.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`fa89ed8`](https://github.com/equinor/fusion-framework/commit/fa89ed8aeed919950ef6a6775e60eb6904ec7946) Thanks [@odinr](https://github.com/odinr)! - Update EDS (Equinor Design System) packages to latest versions: `@equinor/eds-core-react` to ^2.2.0, `@equinor/eds-icons` to ^1.1.0, `@equinor/eds-tokens` to ^2.1.1, and `@equinor/eds-utils` to ^2.0.0.
|
|
8
|
+
|
|
9
|
+
These are major version updates from the 0.x series. Consumers should verify compatibility with their applications, particularly if using `@equinor/fusion-react-side-sheet` which may require updates to support the new EDS versions.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`f647825`](https://github.com/equinor/fusion-framework/commit/f647825cb5712763b09dafda21fd996211c78b78) Thanks [@odinr](https://github.com/odinr)! - relase next
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`f647825`](https://github.com/equinor/fusion-framework/commit/f647825cb5712763b09dafda21fd996211c78b78)]:
|
|
16
|
+
- @equinor/fusion-framework-react-module-bookmark@5.0.3-next.0
|
|
17
|
+
- @equinor/fusion-observable@8.5.9-next.0
|
|
18
|
+
- @equinor/fusion-framework-react@7.4.21-next.0
|
|
19
|
+
|
|
3
20
|
## 1.1.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,12 +28,41 @@
|
|
|
11
28
|
- @equinor/fusion-framework-react-module-bookmark@5.0.2
|
|
12
29
|
- @equinor/fusion-observable@8.5.8
|
|
13
30
|
|
|
31
|
+
## 2.0.0-next.0
|
|
32
|
+
|
|
33
|
+
### Major Changes
|
|
34
|
+
|
|
35
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`9f7597e`](https://github.com/equinor/fusion-framework/commit/9f7597ee237ef069dc24cbe39c73b5b26db157dd) Thanks [@odinr](https://github.com/odinr)! - Require React 18+ as peer dependency. React 17 is no longer supported.
|
|
36
|
+
|
|
37
|
+
**Migration:** Update your application to React 18+ to continue using these packages.
|
|
38
|
+
|
|
39
|
+
Closes https://github.com/equinor/fusion-framework/issues/3504
|
|
40
|
+
|
|
41
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`75c068f`](https://github.com/equinor/fusion-framework/commit/75c068fea13c32435ac26bd9043cc156482bfaf1) Thanks [@odinr](https://github.com/odinr)! - Upgrade to React 19 and remove support for React versions lower than 18.
|
|
42
|
+
|
|
43
|
+
**Breaking changes:**
|
|
44
|
+
- Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
|
|
45
|
+
- React 16 and 17 are no longer supported
|
|
46
|
+
- Dev dependencies upgraded to React 19.2.1 and @types/react 19.2.7
|
|
47
|
+
|
|
48
|
+
**Migration:**
|
|
49
|
+
- Update your React version to 18.0.0 or higher before upgrading these packages
|
|
50
|
+
- If using React 16 or 17, upgrade to React 18 or 19 first
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b) Thanks [@odinr](https://github.com/odinr)! - relase next
|
|
55
|
+
|
|
56
|
+
- Updated dependencies [[`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b), [`d252b0d`](https://github.com/equinor/fusion-framework/commit/d252b0d442b7c8c1b50bf2768cf9ecbbb55a76f8), [`9f7597e`](https://github.com/equinor/fusion-framework/commit/9f7597ee237ef069dc24cbe39c73b5b26db157dd), [`75c068f`](https://github.com/equinor/fusion-framework/commit/75c068fea13c32435ac26bd9043cc156482bfaf1)]:
|
|
57
|
+
- @equinor/fusion-framework-react-module-bookmark@6.0.0-next.0
|
|
58
|
+
- @equinor/fusion-observable@9.0.0-next.0
|
|
59
|
+
- @equinor/fusion-framework-react@8.0.0-next.0
|
|
60
|
+
|
|
14
61
|
## 1.1.2
|
|
15
62
|
|
|
16
63
|
### Patch Changes
|
|
17
64
|
|
|
18
65
|
- [#3714](https://github.com/equinor/fusion-framework/pull/3714) [`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8) Thanks [@odinr](https://github.com/odinr)! - Fix MSAL v4 compatibility in bookmark SharedIcon component.
|
|
19
|
-
|
|
20
66
|
- Replace deprecated defaultAccount with account property
|
|
21
67
|
- Ensure proper account information access for bookmark sharing logic
|
|
22
68
|
|
|
@@ -32,14 +78,12 @@
|
|
|
32
78
|
- [#3515](https://github.com/equinor/fusion-framework/pull/3515) [`6cb288b`](https://github.com/equinor/fusion-framework/commit/6cb288b9e1ec4fae68ae6899735c176837bb4275) Thanks [@odinr](https://github.com/odinr)! - ## Global Biome Configuration Modernization
|
|
33
79
|
|
|
34
80
|
**Workspace-wide changes:**
|
|
35
|
-
|
|
36
81
|
- Remove 19 rule overrides from `biome.json` to use Biome's strict "error" defaults
|
|
37
82
|
- Enable `correctness/useUniqueElementIds` accessibility rule globally
|
|
38
83
|
- Reduce configuration size by 40% (60+ → ~35 lines)
|
|
39
84
|
- Eliminate all custom linting rule customizations
|
|
40
85
|
|
|
41
86
|
**Package-specific changes:**
|
|
42
|
-
|
|
43
87
|
- Replace static IDs with React `useId()` hooks in bookmark and dev-portal components
|
|
44
88
|
- Fix `suspicious/noAssignInExpressions` violations in context, legacy-interopt, and observable packages
|
|
45
89
|
- Update 11 React components for accessibility compliance
|
|
@@ -59,12 +103,10 @@
|
|
|
59
103
|
- [#3363](https://github.com/equinor/fusion-framework/pull/3363) [`adb5176`](https://github.com/equinor/fusion-framework/commit/adb5176d2e4d14fb4c055ecd43d4c21c751a9a1d) Thanks [@dependabot](https://github.com/apps/dependabot)! - Updated @equinor/eds-utils from 0.8.5 to 0.9.0
|
|
60
104
|
|
|
61
105
|
### Changes
|
|
62
|
-
|
|
63
106
|
- Updated @equinor/eds-utils dependency to latest version
|
|
64
107
|
- Added Firefox detection utility support
|
|
65
108
|
|
|
66
109
|
### Links
|
|
67
|
-
|
|
68
110
|
- [GitHub releases](https://github.com/equinor/design-system/releases)
|
|
69
111
|
- [Changelog](https://github.com/equinor/design-system/blob/develop/packages/eds-utils/CHANGELOG.md)
|
|
70
112
|
|
|
@@ -73,7 +115,6 @@
|
|
|
73
115
|
- [#3400](https://github.com/equinor/fusion-framework/pull/3400) [`aed6c53`](https://github.com/equinor/fusion-framework/commit/aed6c5385df496a86d06dc0af9dacafc255ea605) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump @equinor/eds-core-react from 0.45.1 to 0.49.0
|
|
74
116
|
|
|
75
117
|
### New Features
|
|
76
|
-
|
|
77
118
|
- ✨ Always show "add new option" in Autocomplete when onAddNewOption is provided
|
|
78
119
|
- ✨ Tabs call onChange with provided value if present
|
|
79
120
|
- ✨ Add disabled prop to Tooltip
|
|
@@ -81,7 +122,6 @@
|
|
|
81
122
|
- ✨ Add support for adding new options in Autocomplete
|
|
82
123
|
|
|
83
124
|
### Bug Fixes
|
|
84
|
-
|
|
85
125
|
- 🐛 Autocomplete - Don't call onOptionsChange when clicking "Add new"
|
|
86
126
|
- 🐛 Table - Fix Firefox table header wrapping issue
|
|
87
127
|
- 🐛 Tabs documentation type mismatch - update onChange parameter from number to number | string
|
|
@@ -93,28 +133,24 @@
|
|
|
93
133
|
- 🐛 Menu: Ensure onClose is called when a MenuItem without onClick is clicked
|
|
94
134
|
|
|
95
135
|
### Links
|
|
96
|
-
|
|
97
136
|
- [GitHub releases](https://github.com/equinor/design-system/releases/tag/eds-core-react%400.49.0)
|
|
98
137
|
- [npm changelog](https://www.npmjs.com/package/@equinor/eds-core-react?activeTab=versions)
|
|
99
138
|
|
|
100
139
|
- [#3366](https://github.com/equinor/fusion-framework/pull/3366) [`daa362e`](https://github.com/equinor/fusion-framework/commit/daa362e7d92ad362e46d666c434d0f09687abad5) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update @equinor/eds-core-react from 0.48.0 to 0.49.0
|
|
101
140
|
|
|
102
141
|
### Changes
|
|
103
|
-
|
|
104
142
|
- Updated @equinor/eds-core-react dependency to latest version across all packages
|
|
105
143
|
- Fixed peerDependencies version mismatch in bookmark package
|
|
106
144
|
- Includes bug fixes for Autocomplete and Table components
|
|
107
145
|
- Adds new Autocomplete features for "add new option" functionality
|
|
108
146
|
|
|
109
147
|
### Affected Packages
|
|
110
|
-
|
|
111
148
|
- packages/dev-portal
|
|
112
149
|
- packages/react/components/bookmark
|
|
113
150
|
- cookbooks/app-react-feature-flag
|
|
114
151
|
- cookbooks/app-react-people
|
|
115
152
|
|
|
116
153
|
### Links
|
|
117
|
-
|
|
118
154
|
- [GitHub releases](https://github.com/equinor/design-system/releases)
|
|
119
155
|
- [Full Changelog](https://github.com/equinor/design-system/compare/eds-core-react@0.48.0...eds-core-react@0.49.0)
|
|
120
156
|
|
|
@@ -391,7 +427,6 @@
|
|
|
391
427
|
- [#2410](https://github.com/equinor/fusion-framework/pull/2410) [`9d1cb90`](https://github.com/equinor/fusion-framework/commit/9d1cb9003fa10e7ccaa95c20ef86f0a618034641) Thanks [@odinr](https://github.com/odinr)! - **@equinor/fusion-framework-react-module-bookmark:**
|
|
392
428
|
|
|
393
429
|
Updated the `Bookmark` component to use the `useBookmarkComponentContext` hook for accessing the bookmark provider and state.
|
|
394
|
-
|
|
395
430
|
- Replaced the `useBookmark` hook with `useBookmarkComponentContext` in the `Bookmark` component.
|
|
396
431
|
- Updated the `BookmarkProvider` component to use `createContext` and `useContext` for managing the bookmark provider state.
|
|
397
432
|
- Modified the `CreateBookmarkModal` and `EditBookmarkModal` components to use the `useBookmarkComponentContext` hook.
|
|
@@ -422,12 +457,10 @@
|
|
|
422
457
|
> This will introduce breaking changes to the configuration of `AppConfigurator.client`.
|
|
423
458
|
|
|
424
459
|
**Added**
|
|
425
|
-
|
|
426
460
|
- Introduced `AppClient` class to handle application manifest and configuration queries.
|
|
427
461
|
- Added `zod` to validate the application manifest.
|
|
428
462
|
|
|
429
463
|
**Changed**
|
|
430
|
-
|
|
431
464
|
- Updated `AppModuleProvider` to use `AppClient` for fetching application manifests and configurations.
|
|
432
465
|
- Modified `AppConfigurator` to utilize `AppClient` for client configuration.
|
|
433
466
|
- Updated `useApps` hook with new input parameter for `filterByCurrentUser` in `fusion-framework-react`.
|
|
@@ -545,7 +578,6 @@
|
|
|
545
578
|
- [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file.
|
|
546
579
|
|
|
547
580
|
Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
|
|
548
|
-
|
|
549
581
|
1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
|
|
550
582
|
2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
|
|
551
583
|
3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
|
|
@@ -822,7 +854,6 @@
|
|
|
822
854
|
### Patch Changes
|
|
823
855
|
|
|
824
856
|
- [#1348](https://github.com/equinor/fusion-framework/pull/1348) [`0acc8827`](https://github.com/equinor/fusion-framework/commit/0acc8827e5e2df8b5b2aeac5e1a2cd29c4384e78) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/eds-core-react from 0.32.4 to 0.33.0
|
|
825
|
-
|
|
826
857
|
- support for [styled-components@6](https://styled-components.com/releases#v6.0.0)
|
|
827
858
|
|
|
828
859
|
## 0.2.9
|
|
@@ -916,7 +947,6 @@
|
|
|
916
947
|
- [#1129](https://github.com/equinor/fusion-framework/pull/1129) [`f672d0bb`](https://github.com/equinor/fusion-framework/commit/f672d0bba71a7ea6cd08135778fda67ff38f3ac3) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/eds-core-react from 0.30.0 to 0.32.4
|
|
917
948
|
|
|
918
949
|
- [#1122](https://github.com/equinor/fusion-framework/pull/1122) [`1a055b21`](https://github.com/equinor/fusion-framework/commit/1a055b21e07f84bc5d35cc891586aa9aa0bdf661) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update styled-components to [^6.0.7](https://github.com/styled-components/styled-components/releases/tag/v6.0.7)
|
|
919
|
-
|
|
920
950
|
- upgraded dev deps of `@equinor/fusion-framework-react-components-bookmark` to react 18, see style-components [changelog](https://github.com/styled-components/styled-components/releases/tag/v6.0.0)
|
|
921
951
|
- removed `@types/style-components` from `@equinor/fusion-framework-react-components-bookmark`
|
|
922
952
|
|
|
@@ -955,7 +985,6 @@
|
|
|
955
985
|
### Patch Changes
|
|
956
986
|
|
|
957
987
|
- [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages**
|
|
958
|
-
|
|
959
988
|
- align all versions of typescript
|
|
960
989
|
- update types to build
|
|
961
990
|
- a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future
|
|
@@ -972,7 +1001,6 @@
|
|
|
972
1001
|
the bookmark module might not been enable, which makes the application crash.
|
|
973
1002
|
|
|
974
1003
|
**TODO:**
|
|
975
|
-
|
|
976
1004
|
- [ ] create a simpler hook for using bookmark
|
|
977
1005
|
- [ ] create a hook for exposing the module
|
|
978
1006
|
- [ ] create better documentation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useId, useState } from 'react';
|
|
3
3
|
import { useBookmarkComponentContext } from '../BookmarkProvider';
|
|
4
|
-
import { Button, Checkbox, Dialog, Input, Label,
|
|
4
|
+
import { Button, Checkbox, Dialog, Input, Label, Textarea } from '@equinor/eds-core-react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { from } from 'rxjs';
|
|
7
7
|
// TODO
|
|
@@ -45,7 +45,7 @@ export const CreateBookmarkModal = ({ isOpen, onClose, }) => {
|
|
|
45
45
|
}, [onClose, provider]);
|
|
46
46
|
return (_jsxs(Dialog, { style: { width: '400px' }, open: isOpen, children: [_jsx(Dialog.Header, { children: "Create bookmark" }), _jsxs(StyledContent, { children: [_jsxs("div", { children: [_jsx(Label, { htmlFor: nameId, label: "Name" }), _jsx(Input, { id: nameId, autoComplete: "off", value: state?.name, onChange: (event) => {
|
|
47
47
|
setState((s) => ({ ...s, name: event.target.value }));
|
|
48
|
-
} })] }), _jsx("div", { children: _jsx(
|
|
48
|
+
} })] }), _jsx("div", { children: _jsx(Textarea, { id: descriptionId, label: "Description", rows: 3, rowsMax: 10, onChange: (event) => {
|
|
49
49
|
setState((s) => ({ ...s, description: event.target.value }));
|
|
50
50
|
} }) }), _jsxs("div", { children: [_jsx(Label, { htmlFor: "app", label: "App" }), _jsx(Input, { readOnly: true, value: currentApp?.name || currentApp?.appKey || '' })] }), _jsx("div", { children: _jsx(Checkbox, { label: "Is Shared", checked: state.isShared, onChange: (event) => {
|
|
51
51
|
setState((s) => ({ ...s, isShared: event.target.checked }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateBookmark.js","sourceRoot":"","sources":["../../../../src/components/create-bookmark/CreateBookmark.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGlF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CreateBookmark.js","sourceRoot":"","sources":["../../../../src/components/create-bookmark/CreateBookmark.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGlF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO;AACP,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;;;;CAI3C,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,MAAM,EACN,OAAO,GAIR,EAA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QAAQ,EACvB,QAAQ,EAAE,CAAC,KAAoC,EAAE,EAAE;gCACjD,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;4BAC9D,CAAC,GACD,GACE,IACQ,EAChB,KAAC,MAAM,CAAC,OAAO,cACb,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,aAC3C,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,EAAC,OAAO,uBAE7C,EACT,KAAC,MAAM,IACL,QAAQ,EAAE,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,IAAI,EACpC,OAAO,EAAE,GAAG,EAAE;gCACZ,cAAc,CAAC,KAAK,CAAC,CAAC;4BACxB,CAAC,uBAGM,IACL,GACS,IACV,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { useCallback, useEffect, useId, useMemo, useState } from 'react';
|
|
|
3
3
|
import { EMPTY, from, of } from 'rxjs';
|
|
4
4
|
import { useObservableState } from '@equinor/fusion-observable/react';
|
|
5
5
|
import { useFrameworkModule } from '@equinor/fusion-framework-react';
|
|
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 { useBookmarkComponentContext } from '../BookmarkProvider';
|
|
9
9
|
const Styled = {
|
|
@@ -35,7 +35,7 @@ export const EditBookmarkModal = ({ isOpen, onClose, bookmarkId, }) => {
|
|
|
35
35
|
const descriptionId = useId();
|
|
36
36
|
const [updatePayload, setUpdatePayload] = useState(false);
|
|
37
37
|
const bookmark$ = useMemo(() => from(provider ? provider.getBookmark(bookmarkId) : EMPTY), [provider, bookmarkId]);
|
|
38
|
-
const { value: bookmark
|
|
38
|
+
const { value: bookmark } = useObservableState(bookmark$);
|
|
39
39
|
// set the state when the bookmark is loaded
|
|
40
40
|
useEffect(() => {
|
|
41
41
|
if (bookmark) {
|
|
@@ -68,11 +68,9 @@ export const EditBookmarkModal = ({ isOpen, onClose, bookmarkId, }) => {
|
|
|
68
68
|
// TODO: should this call onUpdated, with the updated bookmark?
|
|
69
69
|
onClose(false);
|
|
70
70
|
}, [onClose, provider, bookmarkId, updatePayload]);
|
|
71
|
-
// TODO - add loading spinner
|
|
72
|
-
isLoadingBookmark;
|
|
73
71
|
return (_jsxs(Styled.Dialog, { open: isOpen, children: [_jsx(Dialog.Header, { children: "Edit bookmark" }), _jsxs(Styled.DialogContent, { children: [_jsxs("div", { children: [_jsx(Label, { htmlFor: nameId, label: "Name" }), _jsx(Input, { id: nameId, autoComplete: "off", value: state?.name, onChange: (event) => {
|
|
74
72
|
setState((s) => ({ ...s, name: event.target.value }));
|
|
75
|
-
} })] }), _jsx("div", { children: _jsx(
|
|
73
|
+
} })] }), _jsx("div", { children: _jsx(Textarea, { id: descriptionId, label: "Description", value: state?.description, rows: 3, rowsMax: 10, onChange: (event) => {
|
|
76
74
|
setState((s) => ({ ...s, description: event.target.value }));
|
|
77
75
|
} }) }), _jsxs("div", { children: [_jsx(Label, { htmlFor: "app", label: "App" }), _jsx(Input, { readOnly: true, value: appName?.displayName || '' })] }), _jsxs(Styled.CheckboxWrapper, { children: [_jsx(Checkbox, { label: "Is Shared", checked: state.isShared, onChange: (changeEvent) => {
|
|
78
76
|
const isShared = changeEvent.target.checked;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditBookmark.js","sourceRoot":"","sources":["../../../../src/components/edit-bookmark/EditBookmark.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAA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IAAI,CACxE,KAAC,QAAQ,IACP,KAAK,EAAC,mCAAmC,EACzC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,GAAG,EAAE;oCACb,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;gCAC9B,CAAC,GACD,CACH,IACsB,IACJ,EACvB,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,MAAM,CAAC,OAAO,eACb,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,EAAC,OAAO,uBAE7C,EACT,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;gCACZ,cAAc,CAAC,KAAK,CAAC,CAAC;4BACxB,CAAC,qBAGM,IACM,GACF,IACH,CACjB,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC"}
|