@equinor/fusion-framework-module-bookmark 2.1.15 → 2.2.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 +26 -0
- package/dist/esm/BookmarkClient.js +1 -1
- package/dist/esm/index.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/BookmarkClient.d.ts +1 -1
- package/dist/types/BookmarkProvider.actions.d.ts +4 -178
- package/dist/types/BookmarkProvider.d.ts +18 -112
- package/dist/types/BookmarkProvider.reducer.d.ts +3 -90
- package/dist/types/bookmark.schemas.d.ts +2 -126
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +4 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +10 -10
- package/src/BookmarkClient.ts +1 -1
- package/src/index.ts +2 -0
- package/src/types.ts +4 -5
- package/src/version.ts +1 -1
- package/tsconfig.json +2 -2
package/src/BookmarkClient.ts
CHANGED
|
@@ -69,7 +69,7 @@ const parseBookmarkWithoutPayload = (value: unknown): BookmarkWithoutData => {
|
|
|
69
69
|
*
|
|
70
70
|
* Fetching single and all bookmarks will use Query from '@equinor/fusion-query' to cache the results.
|
|
71
71
|
*
|
|
72
|
-
* @
|
|
72
|
+
* @remarks if you wish to implement your own bookmarks API client, you can do so by implementing the {@link IBookmarkClient} interface.
|
|
73
73
|
*/
|
|
74
74
|
export class BookmarkClient implements IBookmarkClient {
|
|
75
75
|
#api: BookmarksApiClient<'json$'>;
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,8 @@ export type {
|
|
|
23
23
|
BookmarkPayloadGenerator,
|
|
24
24
|
} from './BookmarkProvider.interface';
|
|
25
25
|
|
|
26
|
+
export type { BookmarkProviderEventMap as BookmarkProviderEvents } from './BookmarkProvider.events.js';
|
|
27
|
+
|
|
26
28
|
export { enableBookmark } from './enable-bookmark';
|
|
27
29
|
|
|
28
30
|
export * from './types';
|
package/src/types.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type {
|
|
|
6
6
|
bookmarkSourceSystemSchema,
|
|
7
7
|
bookmarksSchema,
|
|
8
8
|
bookmarkUserSchema,
|
|
9
|
-
bookmarkWithDataSchema,
|
|
10
9
|
} from './bookmark.schemas';
|
|
11
10
|
|
|
12
11
|
import type { bookmarkConfigSchema } from './bookmark-config.schema';
|
|
@@ -37,10 +36,10 @@ export type BookmarkWithoutData = z.infer<typeof bookmarkSchema>;
|
|
|
37
36
|
* Represents a bookmark with associated data.
|
|
38
37
|
* @template T - The type of the bookmark data.
|
|
39
38
|
*/
|
|
40
|
-
//
|
|
41
|
-
export type Bookmark<T extends BookmarkData = any> =
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
// biome-ignore lint/suspicious/noExplicitAny: must be any to support all bookmark data types
|
|
40
|
+
export type Bookmark<T extends BookmarkData = any> = BookmarkWithoutData & {
|
|
41
|
+
payload?: T;
|
|
42
|
+
};
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
45
|
* Represents the configuration options for a bookmark module.
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.
|
|
2
|
+
export const version = '2.2.0';
|