@equinor/fusion-framework-react-components-bookmark 1.1.3-msal-v5.1 → 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 +49 -29
- 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,30 +1,68 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
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.
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [#
|
|
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
|
|
8
14
|
|
|
9
|
-
- Updated dependencies [[`
|
|
10
|
-
- @equinor/fusion-framework-react@
|
|
11
|
-
- @equinor/fusion-
|
|
12
|
-
- @equinor/fusion-
|
|
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
|
|
13
19
|
|
|
14
|
-
## 1.1.3
|
|
20
|
+
## 1.1.3
|
|
15
21
|
|
|
16
22
|
### Patch Changes
|
|
17
23
|
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
- [#4157](https://github.com/equinor/fusion-framework/pull/4157) [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581) Thanks [@Noggling](https://github.com/Noggling)! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
|
|
27
|
+
- @equinor/fusion-framework-react@7.4.20
|
|
28
|
+
- @equinor/fusion-framework-react-module-bookmark@5.0.2
|
|
29
|
+
- @equinor/fusion-observable@8.5.8
|
|
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
|
|
21
60
|
|
|
22
61
|
## 1.1.2
|
|
23
62
|
|
|
24
63
|
### Patch Changes
|
|
25
64
|
|
|
26
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.
|
|
27
|
-
|
|
28
66
|
- Replace deprecated defaultAccount with account property
|
|
29
67
|
- Ensure proper account information access for bookmark sharing logic
|
|
30
68
|
|
|
@@ -40,14 +78,12 @@
|
|
|
40
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
|
|
41
79
|
|
|
42
80
|
**Workspace-wide changes:**
|
|
43
|
-
|
|
44
81
|
- Remove 19 rule overrides from `biome.json` to use Biome's strict "error" defaults
|
|
45
82
|
- Enable `correctness/useUniqueElementIds` accessibility rule globally
|
|
46
83
|
- Reduce configuration size by 40% (60+ → ~35 lines)
|
|
47
84
|
- Eliminate all custom linting rule customizations
|
|
48
85
|
|
|
49
86
|
**Package-specific changes:**
|
|
50
|
-
|
|
51
87
|
- Replace static IDs with React `useId()` hooks in bookmark and dev-portal components
|
|
52
88
|
- Fix `suspicious/noAssignInExpressions` violations in context, legacy-interopt, and observable packages
|
|
53
89
|
- Update 11 React components for accessibility compliance
|
|
@@ -67,12 +103,10 @@
|
|
|
67
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
|
|
68
104
|
|
|
69
105
|
### Changes
|
|
70
|
-
|
|
71
106
|
- Updated @equinor/eds-utils dependency to latest version
|
|
72
107
|
- Added Firefox detection utility support
|
|
73
108
|
|
|
74
109
|
### Links
|
|
75
|
-
|
|
76
110
|
- [GitHub releases](https://github.com/equinor/design-system/releases)
|
|
77
111
|
- [Changelog](https://github.com/equinor/design-system/blob/develop/packages/eds-utils/CHANGELOG.md)
|
|
78
112
|
|
|
@@ -81,7 +115,6 @@
|
|
|
81
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
|
|
82
116
|
|
|
83
117
|
### New Features
|
|
84
|
-
|
|
85
118
|
- ✨ Always show "add new option" in Autocomplete when onAddNewOption is provided
|
|
86
119
|
- ✨ Tabs call onChange with provided value if present
|
|
87
120
|
- ✨ Add disabled prop to Tooltip
|
|
@@ -89,7 +122,6 @@
|
|
|
89
122
|
- ✨ Add support for adding new options in Autocomplete
|
|
90
123
|
|
|
91
124
|
### Bug Fixes
|
|
92
|
-
|
|
93
125
|
- 🐛 Autocomplete - Don't call onOptionsChange when clicking "Add new"
|
|
94
126
|
- 🐛 Table - Fix Firefox table header wrapping issue
|
|
95
127
|
- 🐛 Tabs documentation type mismatch - update onChange parameter from number to number | string
|
|
@@ -101,28 +133,24 @@
|
|
|
101
133
|
- 🐛 Menu: Ensure onClose is called when a MenuItem without onClick is clicked
|
|
102
134
|
|
|
103
135
|
### Links
|
|
104
|
-
|
|
105
136
|
- [GitHub releases](https://github.com/equinor/design-system/releases/tag/eds-core-react%400.49.0)
|
|
106
137
|
- [npm changelog](https://www.npmjs.com/package/@equinor/eds-core-react?activeTab=versions)
|
|
107
138
|
|
|
108
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
|
|
109
140
|
|
|
110
141
|
### Changes
|
|
111
|
-
|
|
112
142
|
- Updated @equinor/eds-core-react dependency to latest version across all packages
|
|
113
143
|
- Fixed peerDependencies version mismatch in bookmark package
|
|
114
144
|
- Includes bug fixes for Autocomplete and Table components
|
|
115
145
|
- Adds new Autocomplete features for "add new option" functionality
|
|
116
146
|
|
|
117
147
|
### Affected Packages
|
|
118
|
-
|
|
119
148
|
- packages/dev-portal
|
|
120
149
|
- packages/react/components/bookmark
|
|
121
150
|
- cookbooks/app-react-feature-flag
|
|
122
151
|
- cookbooks/app-react-people
|
|
123
152
|
|
|
124
153
|
### Links
|
|
125
|
-
|
|
126
154
|
- [GitHub releases](https://github.com/equinor/design-system/releases)
|
|
127
155
|
- [Full Changelog](https://github.com/equinor/design-system/compare/eds-core-react@0.48.0...eds-core-react@0.49.0)
|
|
128
156
|
|
|
@@ -399,7 +427,6 @@
|
|
|
399
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:**
|
|
400
428
|
|
|
401
429
|
Updated the `Bookmark` component to use the `useBookmarkComponentContext` hook for accessing the bookmark provider and state.
|
|
402
|
-
|
|
403
430
|
- Replaced the `useBookmark` hook with `useBookmarkComponentContext` in the `Bookmark` component.
|
|
404
431
|
- Updated the `BookmarkProvider` component to use `createContext` and `useContext` for managing the bookmark provider state.
|
|
405
432
|
- Modified the `CreateBookmarkModal` and `EditBookmarkModal` components to use the `useBookmarkComponentContext` hook.
|
|
@@ -430,12 +457,10 @@
|
|
|
430
457
|
> This will introduce breaking changes to the configuration of `AppConfigurator.client`.
|
|
431
458
|
|
|
432
459
|
**Added**
|
|
433
|
-
|
|
434
460
|
- Introduced `AppClient` class to handle application manifest and configuration queries.
|
|
435
461
|
- Added `zod` to validate the application manifest.
|
|
436
462
|
|
|
437
463
|
**Changed**
|
|
438
|
-
|
|
439
464
|
- Updated `AppModuleProvider` to use `AppClient` for fetching application manifests and configurations.
|
|
440
465
|
- Modified `AppConfigurator` to utilize `AppClient` for client configuration.
|
|
441
466
|
- Updated `useApps` hook with new input parameter for `filterByCurrentUser` in `fusion-framework-react`.
|
|
@@ -553,7 +578,6 @@
|
|
|
553
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.
|
|
554
579
|
|
|
555
580
|
Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
|
|
556
|
-
|
|
557
581
|
1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
|
|
558
582
|
2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
|
|
559
583
|
3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
|
|
@@ -830,7 +854,6 @@
|
|
|
830
854
|
### Patch Changes
|
|
831
855
|
|
|
832
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
|
|
833
|
-
|
|
834
857
|
- support for [styled-components@6](https://styled-components.com/releases#v6.0.0)
|
|
835
858
|
|
|
836
859
|
## 0.2.9
|
|
@@ -924,7 +947,6 @@
|
|
|
924
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
|
|
925
948
|
|
|
926
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)
|
|
927
|
-
|
|
928
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)
|
|
929
951
|
- removed `@types/style-components` from `@equinor/fusion-framework-react-components-bookmark`
|
|
930
952
|
|
|
@@ -963,7 +985,6 @@
|
|
|
963
985
|
### Patch Changes
|
|
964
986
|
|
|
965
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**
|
|
966
|
-
|
|
967
988
|
- align all versions of typescript
|
|
968
989
|
- update types to build
|
|
969
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
|
|
@@ -980,7 +1001,6 @@
|
|
|
980
1001
|
the bookmark module might not been enable, which makes the application crash.
|
|
981
1002
|
|
|
982
1003
|
**TODO:**
|
|
983
|
-
|
|
984
1004
|
- [ ] create a simpler hook for using bookmark
|
|
985
1005
|
- [ ] create a hook for exposing the module
|
|
986
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.t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, 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,CAAC;AAE3F,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAIrE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,
|
|
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,CAAC;AAE3F,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAIrE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,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,IAAI,EAAE,GAAI,IACxD,EAEN,MAAC,MAAM,CAAC,eAAe,eACrB,KAAC,QAAQ,IACP,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,KAAK,CAAC,QAAQ,EACvB,QAAQ,EAAE,CAAC,WAA0C,EAAE,EAAE;oCACvD,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;oCAC5C,IAAI,QAAQ,EAAE,CAAC;wCACb,sBAAsB,CAAC,UAAU,CAAC,CAAC;oCACrC,CAAC;oCACD,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;gCACxC,CAAC,GACD,EAED,QAAQ,EAAE,MAAM,KAAK,UAAU,EAAE,IAAI,IAAI,QAAQ,EAAE,kBAAkB,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"}
|