@equinor/fusion-framework-module-bookmark 0.0.0-next-20230915111233
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/.turbo/turbo-build.log +4 -0
- package/CHANGELOG.md +135 -0
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/esm/bookmark-config-builder.js +70 -0
- package/dist/esm/bookmark-config-builder.js.map +1 -0
- package/dist/esm/bookmark-provider.js +155 -0
- package/dist/esm/bookmark-provider.js.map +1 -0
- package/dist/esm/client/bookmarkActions.js +10 -0
- package/dist/esm/client/bookmarkActions.js.map +1 -0
- package/dist/esm/client/bookmarkClient.js +253 -0
- package/dist/esm/client/bookmarkClient.js.map +1 -0
- package/dist/esm/client/bookmarkFlows.js +30 -0
- package/dist/esm/client/bookmarkFlows.js.map +1 -0
- package/dist/esm/client/bookmarkReducer.js +29 -0
- package/dist/esm/client/bookmarkReducer.js.map +1 -0
- package/dist/esm/configurator.js +157 -0
- package/dist/esm/configurator.js.map +1 -0
- package/dist/esm/enable-bookmark.js +10 -0
- package/dist/esm/enable-bookmark.js.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/module.js +27 -0
- package/dist/esm/module.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils/handle-url.js +11 -0
- package/dist/esm/utils/handle-url.js.map +1 -0
- package/dist/esm/utils/index.js +2 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/version.js +2 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/bookmark-config-builder.d.ts +25 -0
- package/dist/types/bookmark-provider.d.ts +69 -0
- package/dist/types/client/bookmarkActions.d.ts +27 -0
- package/dist/types/client/bookmarkClient.d.ts +51 -0
- package/dist/types/client/bookmarkFlows.d.ts +22 -0
- package/dist/types/client/bookmarkReducer.d.ts +5 -0
- package/dist/types/configurator.d.ts +45 -0
- package/dist/types/enable-bookmark.d.ts +4 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/module.d.ts +22 -0
- package/dist/types/types.d.ts +61 -0
- package/dist/types/utils/handle-url.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -0
- package/package.json +47 -0
- package/src/bookmark-config-builder.ts +177 -0
- package/src/bookmark-provider.ts +344 -0
- package/src/client/bookmarkActions.ts +44 -0
- package/src/client/bookmarkClient.ts +328 -0
- package/src/client/bookmarkFlows.ts +67 -0
- package/src/client/bookmarkReducer.ts +35 -0
- package/src/configurator.ts +239 -0
- package/src/enable-bookmark.ts +32 -0
- package/src/index.ts +18 -0
- package/src/module.ts +40 -0
- package/src/types.ts +73 -0
- package/src/utils/handle-url.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/version.ts +2 -0
- package/tsconfig.json +36 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## 0.0.0-next-20230915111233
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`8739a5a65`](https://github.com/equinor/fusion-framework/commit/8739a5a65d8aaa46ce9ef56cce013efeeb006e8a)]:
|
|
8
|
+
- @equinor/fusion-query@0.0.0-next-20230915111233
|
|
9
|
+
|
|
10
|
+
## 1.0.10
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`6f64d1aa`](https://github.com/equinor/fusion-framework/commit/6f64d1aa5e44af37f0abd76cef36e87761134760), [`758eaaf4`](https://github.com/equinor/fusion-framework/commit/758eaaf436ae28d180e7d91818b41abe0d9624c4), [`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
|
|
15
|
+
- @equinor/fusion-observable@8.1.1
|
|
16
|
+
- @equinor/fusion-framework-module@4.2.4
|
|
17
|
+
- @equinor/fusion-query@3.0.7
|
|
18
|
+
|
|
19
|
+
## 1.0.9
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`066d843c`](https://github.com/equinor/fusion-framework/commit/066d843c88cb974150f23f4fb9e7d0b066c93594)]:
|
|
24
|
+
- @equinor/fusion-query@3.0.6
|
|
25
|
+
|
|
26
|
+
## 1.0.8
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm
|
|
31
|
+
|
|
32
|
+
conflicts of `@types/react` made random outcomes when using `yarn`
|
|
33
|
+
|
|
34
|
+
this change should not affect consumer of the packages, but might conflict dependent on local package manager.
|
|
35
|
+
|
|
36
|
+
- [#1145](https://github.com/equinor/fusion-framework/pull/1145) [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump rxjs from 7.5.7 to [7.8.1](https://github.com/ReactiveX/rxjs/blob/7.8.1/CHANGELOG.md)
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`2dccccd1`](https://github.com/equinor/fusion-framework/commit/2dccccd124fbe3cdde2132c29c27d3da9fc6f1f5), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
|
|
39
|
+
- @equinor/fusion-observable@8.1.0
|
|
40
|
+
- @equinor/fusion-framework-module@4.2.3
|
|
41
|
+
- @equinor/fusion-query@3.0.5
|
|
42
|
+
|
|
43
|
+
## 1.0.7
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- [#946](https://github.com/equinor/fusion-framework/pull/946) [`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352) Thanks [@odinr](https://github.com/odinr)! - Build/update typescript to 5
|
|
48
|
+
|
|
49
|
+
All notable changes to this project will be documented in this file.
|
|
50
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
51
|
+
|
|
52
|
+
## [1.0.6](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-bookmark@1.0.5...@equinor/fusion-framework-module-bookmark@1.0.6) (2023-05-23)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
55
|
+
|
|
56
|
+
## 1.0.5 (2023-05-22)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
59
|
+
|
|
60
|
+
## [1.0.4](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-bookmark@1.0.3...@equinor/fusion-framework-module-bookmark@1.0.4) (2023-05-05)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
63
|
+
|
|
64
|
+
## 1.0.3 (2023-04-24)
|
|
65
|
+
|
|
66
|
+
### Bug Fixes
|
|
67
|
+
|
|
68
|
+
- **bookmark-module:** favorites now updates the bookmarks state when adding and removing bookmarks ([0e43cb1](https://github.com/equinor/fusion-framework/commit/0e43cb1a4e2f9b8fe3fcff4df053846f585cca3d))
|
|
69
|
+
- **bookmark-module:** get the last event from get all bookmarks, and added onBookmarksChange dispatch ([4b53fc3](https://github.com/equinor/fusion-framework/commit/4b53fc37c0d072604c336490dc82beca2310cd51))
|
|
70
|
+
|
|
71
|
+
## 1.0.2 (2023-04-18)
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
74
|
+
|
|
75
|
+
## 1.0.1 (2023-04-17)
|
|
76
|
+
|
|
77
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
78
|
+
|
|
79
|
+
## 1.0.0 (2023-04-16)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
82
|
+
|
|
83
|
+
## 0.2.4 (2023-04-14)
|
|
84
|
+
|
|
85
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
86
|
+
|
|
87
|
+
## 0.2.3 (2023-04-14)
|
|
88
|
+
|
|
89
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
90
|
+
|
|
91
|
+
## 0.2.2 (2023-04-14)
|
|
92
|
+
|
|
93
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
94
|
+
|
|
95
|
+
## [0.2.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-bookmark@0.2.0...@equinor/fusion-framework-module-bookmark@0.2.1) (2023-04-13)
|
|
96
|
+
|
|
97
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
98
|
+
|
|
99
|
+
## 0.2.0 (2023-04-11)
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
- **bookmark-module:** added functionality fro bookmark favorites ([0d66c30](https://github.com/equinor/fusion-framework/commit/0d66c301dd5d938c5e327273a6a48275bf29d5e1))
|
|
104
|
+
|
|
105
|
+
## [0.1.4](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-bookmark@0.1.3...@equinor/fusion-framework-module-bookmark@0.1.4) (2023-03-28)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
108
|
+
|
|
109
|
+
## 0.1.3 (2023-03-27)
|
|
110
|
+
|
|
111
|
+
**Note:** Version bump only for package @equinor/fusion-framework-module-bookmark
|
|
112
|
+
|
|
113
|
+
## [0.1.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-bookmark@0.1.1...@equinor/fusion-framework-module-bookmark@0.1.2) (2023-03-24)
|
|
114
|
+
|
|
115
|
+
### Bug Fixes
|
|
116
|
+
|
|
117
|
+
- **bookmark-module:** invalidate cache for query by id ([24d6ca5](https://github.com/equinor/fusion-framework/commit/24d6ca5a59ce3e2a17291ddd65f0adb9f605e995))
|
|
118
|
+
|
|
119
|
+
## 0.1.1 (2023-03-24)
|
|
120
|
+
|
|
121
|
+
### Bug Fixes
|
|
122
|
+
|
|
123
|
+
- **bookmark-module:** remove navigation provider resolver sins it not in use ([851a46b](https://github.com/equinor/fusion-framework/commit/851a46bb48cd01a51f630bc8b2e405660855152e))
|
|
124
|
+
|
|
125
|
+
## 0.1.0 (2023-03-22)
|
|
126
|
+
|
|
127
|
+
### Features
|
|
128
|
+
|
|
129
|
+
- fusion bookmark module ([3f8259e](https://github.com/equinor/fusion-framework/commit/3f8259e47ea52637375d24ba3566c6ee1019c149))
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
- **bookmarks:** await dispatch of change event ([89c350a](https://github.com/equinor/fusion-framework/commit/89c350a6b26d036df8431064fd6641b6e546d324))
|
|
134
|
+
- create example ([9a524ac](https://github.com/equinor/fusion-framework/commit/9a524ac354cd62ba084f05b456a2da857ed24575))
|
|
135
|
+
- **pr:** Fixing pr comments ([4ee3fb3](https://github.com/equinor/fusion-framework/commit/4ee3fb3b509c7b7560378e18ee51d9c1759a8685))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Equinor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _BookmarkConfigBuilder_init;
|
|
13
|
+
export class BookmarkConfigBuilder {
|
|
14
|
+
constructor(init, config = {}) {
|
|
15
|
+
this.config = config;
|
|
16
|
+
_BookmarkConfigBuilder_init.set(this, void 0);
|
|
17
|
+
__classPrivateFieldSet(this, _BookmarkConfigBuilder_init, init, "f");
|
|
18
|
+
}
|
|
19
|
+
requireInstance(module) {
|
|
20
|
+
return __classPrivateFieldGet(this, _BookmarkConfigBuilder_init, "f").requireInstance(module);
|
|
21
|
+
}
|
|
22
|
+
setSourceSystem(sourceSystem) {
|
|
23
|
+
this.config.sourceSystem = sourceSystem;
|
|
24
|
+
}
|
|
25
|
+
setBookmarkIdResolver(fn) {
|
|
26
|
+
this.config.resolveBookmarkId = fn;
|
|
27
|
+
}
|
|
28
|
+
serCustomBookmarkApiClient(client) {
|
|
29
|
+
if (this.config.clientConfiguration) {
|
|
30
|
+
this.config.clientConfiguration.client = client;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
setContextIdResolver(fn) {
|
|
34
|
+
this.config.getContextId = fn;
|
|
35
|
+
}
|
|
36
|
+
setCurrentAppIdResolver(fn) {
|
|
37
|
+
this.config.getCurrentAppIdentification = fn;
|
|
38
|
+
}
|
|
39
|
+
setEventProvider(provider) {
|
|
40
|
+
this.config.event = provider;
|
|
41
|
+
}
|
|
42
|
+
setBookmarkQueryClient(client) {
|
|
43
|
+
const expire = 1 * 60 * 1000;
|
|
44
|
+
if (this.config.clientConfiguration) {
|
|
45
|
+
this.config.clientConfiguration.queryClientConfig = {
|
|
46
|
+
getAllBookmarks: typeof client.getAllBookmarks === 'function'
|
|
47
|
+
? {
|
|
48
|
+
key: () => 'all-bookmarks',
|
|
49
|
+
client: {
|
|
50
|
+
fn: client.getAllBookmarks,
|
|
51
|
+
},
|
|
52
|
+
validate: ({ args }) => args.isValid,
|
|
53
|
+
}
|
|
54
|
+
: client.getAllBookmarks,
|
|
55
|
+
getBookmarkById: typeof client.getBookmarkById === 'function'
|
|
56
|
+
? {
|
|
57
|
+
key: ({ id }) => id,
|
|
58
|
+
client: {
|
|
59
|
+
fn: client.getBookmarkById,
|
|
60
|
+
},
|
|
61
|
+
expire,
|
|
62
|
+
validate: () => false,
|
|
63
|
+
}
|
|
64
|
+
: client.getBookmarkById,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
_BookmarkConfigBuilder_init = new WeakMap();
|
|
70
|
+
//# sourceMappingURL=bookmark-config-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookmark-config-builder.js","sourceRoot":"","sources":["../../src/bookmark-config-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;AA0BA,MAAM,OAAO,qBAAqB;IAS9B,YACI,IAAW,EACJ,SAAwC,EAAE;QAA1C,WAAM,GAAN,MAAM,CAAoC;QAHrD,8CAAa;QAKT,uBAAA,IAAI,+BAAS,IAAI,MAAA,CAAC;IACtB,CAAC;IASD,eAAe,CAAC,MAAc;QAC1B,OAAO,uBAAA,IAAI,mCAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAiBD,eAAe,CAAC,YAA0B;QACtC,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;IAC5C,CAAC;IAQD,qBAAqB,CAAC,EAAuB;QACzC,IAAI,CAAC,MAAM,CAAC,iBAAiB,GAAG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AK;qBACxB;oBACH,CAAC,CAAC,MAAM,CAAC,eAAe;aACnC,CAAC;SACL;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
14
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15
|
+
};
|
|
16
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
17
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
18
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
|
+
};
|
|
21
|
+
var _BookmarkModuleProvider_instances, _BookmarkModuleProvider_event, _BookmarkModuleProvider_subscriptions, _BookmarkModuleProvider_clearStateCreators, _BookmarkModuleProvider_createPayload, _BookmarkModuleProvider_getAppKey;
|
|
22
|
+
import { BookmarkClient } from './client/bookmarkClient';
|
|
23
|
+
import { Subscription } from 'rxjs';
|
|
24
|
+
export class BookmarkModuleProvider {
|
|
25
|
+
get currentBookmark$() {
|
|
26
|
+
return this._bookmarkClient.currentBookmark$;
|
|
27
|
+
}
|
|
28
|
+
get bookmarks$() {
|
|
29
|
+
return this._bookmarkClient.bookmarks$;
|
|
30
|
+
}
|
|
31
|
+
constructor(config, ref) {
|
|
32
|
+
_BookmarkModuleProvider_instances.add(this);
|
|
33
|
+
_BookmarkModuleProvider_event.set(this, void 0);
|
|
34
|
+
_BookmarkModuleProvider_subscriptions.set(this, new Subscription());
|
|
35
|
+
this.bookmarkCreators = {};
|
|
36
|
+
_BookmarkModuleProvider_clearStateCreators.set(this, () => {
|
|
37
|
+
this.bookmarkCreators = {};
|
|
38
|
+
});
|
|
39
|
+
this.config = config;
|
|
40
|
+
__classPrivateFieldSet(this, _BookmarkModuleProvider_event, config.event, "f");
|
|
41
|
+
this._bookmarkClient = ref
|
|
42
|
+
? ref._bookmarkClient
|
|
43
|
+
: new BookmarkClient(config.clientConfiguration, config.sourceSystem, config.event);
|
|
44
|
+
const initialBookmarkId = config.resolveBookmarkId && config.resolveBookmarkId();
|
|
45
|
+
if (initialBookmarkId) {
|
|
46
|
+
this._bookmarkClient.setCurrentBookmark(initialBookmarkId);
|
|
47
|
+
}
|
|
48
|
+
if (__classPrivateFieldGet(this, _BookmarkModuleProvider_event, "f")) {
|
|
49
|
+
__classPrivateFieldGet(this, _BookmarkModuleProvider_subscriptions, "f").add(__classPrivateFieldGet(this, _BookmarkModuleProvider_event, "f").addEventListener('onCurrentAppChanged', __classPrivateFieldGet(this, _BookmarkModuleProvider_clearStateCreators, "f")));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
getBookmarkById(bookmarkId) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return yield this._bookmarkClient.getBookmarkById(bookmarkId);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
setCurrentBookmark(idOrItem) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
this._bookmarkClient.setCurrentBookmark(idOrItem);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
getAllBookmarks() {
|
|
63
|
+
return this._bookmarkClient.getAllBookmarks();
|
|
64
|
+
}
|
|
65
|
+
getAllBookmarksAsync() {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return this._bookmarkClient.getAllBookmarksAsync();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
updateBookmark(bookmark) {
|
|
71
|
+
return this._bookmarkClient.updateBookmark(bookmark);
|
|
72
|
+
}
|
|
73
|
+
updateBookmarkAsync(bookmark, options) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (__classPrivateFieldGet(this, _BookmarkModuleProvider_instances, "m", _BookmarkModuleProvider_getAppKey).call(this) !== bookmark.appKey) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (options === null || options === void 0 ? void 0 : options.updatePayload) {
|
|
79
|
+
const payload = (yield __classPrivateFieldGet(this, _BookmarkModuleProvider_instances, "m", _BookmarkModuleProvider_createPayload).call(this));
|
|
80
|
+
bookmark = Object.assign(Object.assign({}, bookmark), { payload });
|
|
81
|
+
}
|
|
82
|
+
return this._bookmarkClient.updateBookmarkAsync(bookmark);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
deleteBookmarkById(bookmarkId) {
|
|
86
|
+
return this._bookmarkClient.deleteBookmarkById(bookmarkId);
|
|
87
|
+
}
|
|
88
|
+
deleteBookmarkByIdAsync(bookmarkId) {
|
|
89
|
+
return this._bookmarkClient.deleteBookmarkByIdAsync(bookmarkId);
|
|
90
|
+
}
|
|
91
|
+
addBookmarkFavoriteAsync(bookmarkId) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
yield this._bookmarkClient.addBookmarkFavoriteAsync(bookmarkId);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
removeBookmarkFavoriteAsync(bookmarkId) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
yield this._bookmarkClient.removeBookmarkFavoriteAsync(bookmarkId);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
verifyBookmarkFavoriteAsync(bookmarkId) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(bookmarkId);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
addStateCreator(cb, key) {
|
|
107
|
+
var _a;
|
|
108
|
+
const bookmarkCreatorKey = key ? key : '#creator';
|
|
109
|
+
if (__classPrivateFieldGet(this, _BookmarkModuleProvider_event, "f")) {
|
|
110
|
+
(_a = __classPrivateFieldGet(this, _BookmarkModuleProvider_event, "f")) === null || _a === void 0 ? void 0 : _a.dispatchEvent('onAddCreator', {
|
|
111
|
+
source: this,
|
|
112
|
+
canBubble: true,
|
|
113
|
+
detail: { key, cb },
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
this.bookmarkCreators[bookmarkCreatorKey] = cb;
|
|
117
|
+
return () => {
|
|
118
|
+
delete this.bookmarkCreators[bookmarkCreatorKey];
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
createBookmark(args) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const payload = yield __classPrivateFieldGet(this, _BookmarkModuleProvider_instances, "m", _BookmarkModuleProvider_createPayload).call(this);
|
|
124
|
+
const contextId = this.config.getContextId && this.config.getContextId();
|
|
125
|
+
const appKey = __classPrivateFieldGet(this, _BookmarkModuleProvider_instances, "m", _BookmarkModuleProvider_getAppKey).call(this);
|
|
126
|
+
const bookmark = Object.assign(Object.assign({}, args), { appKey,
|
|
127
|
+
contextId, sourceSystem: this.config.sourceSystem, payload });
|
|
128
|
+
return this._bookmarkClient.createBookmarkAsync(bookmark);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
dispose() {
|
|
132
|
+
__classPrivateFieldGet(this, _BookmarkModuleProvider_subscriptions, "f").unsubscribe();
|
|
133
|
+
this._bookmarkClient.dispose();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
_BookmarkModuleProvider_event = new WeakMap(), _BookmarkModuleProvider_subscriptions = new WeakMap(), _BookmarkModuleProvider_clearStateCreators = new WeakMap(), _BookmarkModuleProvider_instances = new WeakSet(), _BookmarkModuleProvider_createPayload = function _BookmarkModuleProvider_createPayload() {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const creator = this.bookmarkCreators;
|
|
139
|
+
if (!creator || Object.keys(creator).length === 0) {
|
|
140
|
+
throw Error('No creator registered on this BookmarkProvider');
|
|
141
|
+
}
|
|
142
|
+
if (typeof creator['#creator'] === 'function') {
|
|
143
|
+
return creator['#creator']();
|
|
144
|
+
}
|
|
145
|
+
return yield Object.entries(creator).reduce((cur, [key, fn]) => __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
return Object.assign(yield cur, { [key]: yield fn() });
|
|
147
|
+
}), Promise.resolve({}));
|
|
148
|
+
});
|
|
149
|
+
}, _BookmarkModuleProvider_getAppKey = function _BookmarkModuleProvider_getAppKey() {
|
|
150
|
+
const appKey = this.config.getCurrentAppIdentification && this.config.getCurrentAppIdentification();
|
|
151
|
+
if (!appKey)
|
|
152
|
+
throw new Error(`There is noe current application selected, can't create bookmark.`);
|
|
153
|
+
return appKey;
|
|
154
|
+
};
|
|
155
|
+
//# sourceMappingURL=bookmark-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookmark-provider.js","sourceRoot":"","sources":["../../src/bookmark-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA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AAA;IA+BM,OAAO;QACV,uBAAA,IAAI,6CAAe,CAAC,WAAW,EAAE,CAAC;QAClC,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IACnC,CAAC;CACJ;;;QA5BO,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtC,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;YAC/C,MAAM,KAAK,CAAC,gDAAgD,CAAC,CAAC;SACjE;QAED,IAAI,OAAO,OAAO,CAAC,UAAU,CAAC,KAAK,UAAU,EAAE;YAC3C,OAAO,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;SAChC;QAED,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAO,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACjE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAA,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC;;IAGG,MAAM,MAAM,GACR,IAAI,CAAC,MAAM,CAAC,2BAA2B,IAAI,IAAI,CAAC,MAAM,CAAC,2BAA2B,EAAE,CAAC;IAEzF,IAAI,CAAC,MAAM;QACP,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IAEzF,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createAsyncAction } from '@equinor/fusion-observable';
|
|
2
|
+
export const actions = {
|
|
3
|
+
getAll: createAsyncAction('getAll', (isValid) => ({ payload: isValid }), (bookmarks) => ({ payload: bookmarks }), (err) => ({ payload: err })),
|
|
4
|
+
delete: createAsyncAction('delete', (id) => ({ payload: id }), (id) => ({ payload: id })),
|
|
5
|
+
addFavorite: createAsyncAction('addFavorite', (bookmark) => ({ payload: bookmark }), (bookmark) => ({ payload: bookmark })),
|
|
6
|
+
removeFavorite: createAsyncAction('removeFavorite', (id) => ({ payload: id }), (id) => ({ payload: id })),
|
|
7
|
+
update: createAsyncAction('update', (bookmark) => ({ payload: bookmark }), (bookmark) => ({ payload: bookmark })),
|
|
8
|
+
create: createAsyncAction('create', (bookmark) => ({ payload: bookmark }), (bookmark) => ({ payload: bookmark }), (err) => ({ payload: err })),
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=bookmarkActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookmarkActions.js","sourceRoot":"","sources":["../../../src/client/bookmarkActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkC,MAAM,4BAA4B,CAAC;AAI/F,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,MAAM,EAAE,iBAAiB,CACrB,QAAQ,EACR,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAC5C,CAAC,SAAqB,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EACnD,CAAC,GAAY,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CACvC;IACD,MAAM,EAAE,iBAAiB,CACrB,QAAQ,EACR,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EACjC,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACpC;IACD,WAAW,EAAE,iBAAiB,CAC1B,aAAa,EACb,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAC/C,CAAC,QAAkB,EAAE,EAAE,CAA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