@equinor/fusion-framework-module-bookmark 4.1.0-next.0 → 4.1.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 +14 -36
- 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 +10 -10
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,58 +1,36 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 4.1.0
|
|
3
|
+
## 4.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
7
|
+
- f663b46: Add a purpose-built mock, exported from a new `/mock` subpath (`@equinor/fusion-framework-module-bookmark/mock`).
|
|
8
|
+
|
|
9
9
|
`enableBookmarkMock` swaps in an in-memory `IBookmarkClient` behind the real `BookmarkModuleConfigurator`, `BookmarkProvider`, and store flows — create, update, delete, and favourite calls all reach the mock client through the real flow logic, not a stand-in. `BookmarkMockConfigurator` adds a bookmark-domain vocabulary for seeding state:
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
```typescript
|
|
12
|
-
import { enableBookmarkMock } from
|
|
13
|
-
|
|
12
|
+
import { enableBookmarkMock } from '@equinor/fusion-framework-module-bookmark/mock';
|
|
13
|
+
|
|
14
14
|
enableBookmarkMock(configurator, (builder) => {
|
|
15
15
|
builder.setBookmarks([
|
|
16
16
|
{
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
appKey:
|
|
17
|
+
id: 'bookmark-1',
|
|
18
|
+
name: 'My Bookmark',
|
|
19
|
+
appKey: 'my-app',
|
|
20
20
|
payload: {},
|
|
21
21
|
created: new Date(),
|
|
22
|
-
createdBy: { id:
|
|
22
|
+
createdBy: { id: 'mock-user', name: 'Mock User' },
|
|
23
23
|
},
|
|
24
24
|
]);
|
|
25
|
-
builder.setCurrentBookmark(
|
|
26
|
-
builder.setFavorite(
|
|
25
|
+
builder.setCurrentBookmark('bookmark-1');
|
|
26
|
+
builder.setFavorite('bookmark-1', true);
|
|
27
27
|
});
|
|
28
28
|
```
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
The whole real builder API stays available, including `setClient`, so an explicit call to it still replaces the mock client outright. When no real `app`/`context` module is registered alongside the mock, `resolve.application`/`resolve.context` fall back to trivial resolvers automatically, since the module's config schema requires both.
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
Related: equinor/fusion-core-tasks#1667.
|
|
33
33
|
|
|
34
|
-
### Patch Changes
|
|
35
|
-
|
|
36
|
-
- e8aae1f: Internal: publish every package on the `next` pre-release tag so the whole framework can be installed as a coherent set.
|
|
37
|
-
|
|
38
|
-
Packages without their own changes are bumped only to receive a `-next.N` version and the `next` dist-tag on npm. Install with:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
pnpm add @equinor/fusion-framework-react-app@next
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
- Updated dependencies [e8aae1f]
|
|
45
|
-
- Updated dependencies [2836e0b]
|
|
46
|
-
- Updated dependencies [2836e0b]
|
|
47
|
-
- Updated dependencies [2836e0b]
|
|
48
|
-
- Updated dependencies [2836e0b]
|
|
49
|
-
- Updated dependencies [2836e0b]
|
|
50
|
-
- Updated dependencies [2836e0b]
|
|
51
|
-
- @equinor/fusion-framework-module@6.1.3-next.0
|
|
52
|
-
- @equinor/fusion-log@2.0.3-next.0
|
|
53
|
-
- @equinor/fusion-observable@9.1.2-next.0
|
|
54
|
-
- @equinor/fusion-query@7.0.4-next.0
|
|
55
|
-
|
|
56
34
|
## 4.0.4
|
|
57
35
|
|
|
58
36
|
### Patch Changes
|
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,OAAO,CAAC"}
|