@pristy/pristy-libvue 1.19.1 → 1.19.3
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/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +2954 -2844
- package/dist/pristy-libvue.es.js.map +1 -1
- package/dist/pristy-libvue.umd.js +11 -11
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/AlfrescoApi.d.ts +2 -1
- package/dist/src/AlfrescoApi.d.ts.map +1 -1
- package/dist/src/httpClientPatch.d.ts +29 -0
- package/dist/src/httpClientPatch.d.ts.map +1 -0
- package/dist/src/stores/favorites.d.ts +25 -0
- package/dist/src/stores/favorites.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlfrescoApi, ContentApi, UploadApi, RenditionsApi, NodesApi, SitesApi, SearchApi, PeopleApi, FavoritesApi, TrashcanApi, GroupsApi, SharedlinksApi, VersionsApi, ActionsApi, CategoriesApi, CommentsApi, DownloadsApi, TagsApi, AspectsApi, TypesApi, WebscriptApi, ActivitiesApi, DiscoveryApi, AuthenticationApi } from '@alfresco/js-api';
|
|
1
|
+
import { AlfrescoApi, ContentApi, UploadApi, RenditionsApi, NodesApi, SitesApi, SearchApi, PeopleApi, PreferencesApi, FavoritesApi, TrashcanApi, GroupsApi, SharedlinksApi, VersionsApi, ActionsApi, CategoriesApi, CommentsApi, DownloadsApi, TagsApi, AspectsApi, TypesApi, WebscriptApi, ActivitiesApi, DiscoveryApi, AuthenticationApi } from '@alfresco/js-api';
|
|
2
2
|
export const alfrescoApi: AlfrescoApi;
|
|
3
3
|
export const contentApi: ContentApi;
|
|
4
4
|
export const uploadApi: UploadApi;
|
|
@@ -7,6 +7,7 @@ export const nodesApi: NodesApi;
|
|
|
7
7
|
export const sitesApi: SitesApi;
|
|
8
8
|
export const searchApi: SearchApi;
|
|
9
9
|
export const peopleApi: PeopleApi;
|
|
10
|
+
export const preferencesApi: PreferencesApi;
|
|
10
11
|
export const favoritesApi: FavoritesApi;
|
|
11
12
|
export const trashcanApi: TrashcanApi;
|
|
12
13
|
export const groupsApi: GroupsApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlfrescoApi.d.ts","sourceRoot":"","sources":["../../src/AlfrescoApi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlfrescoApi.d.ts","sourceRoot":"","sources":["../../src/AlfrescoApi.js"],"names":[],"mappings":"AA6CA,sCAA6C;AAQ7C,oCAAsD;AAEtD,kCAAoD;AAEpD,0CAA4D;AAE5D,gCAAkD;AAElD,gCAAkD;AAElD,kCAAoD;AAEpD,kCAAoD;AAEpD,4CAA8D;AAE9D,wCAA0D;AAE1D,sCAAwD;AAExD,kCAAoD;AAEpD,4CAA8D;AAE9D,sCAAwD;AAExD,oCAAsD;AAEtD,0CAA4D;AAE5D,sCAAwD;AAExD,wCAA0D;AAE1D,8BAAgD;AAEhD,oCAAsD;AAEtD,gCAAkD;AAElD,wCAA0D;AAE1D,0CAA4D;AAE5D,wCAA0D;AAE1D,kDAAoE;4BAzD7D,kBAAkB;2BAAlB,kBAAkB;0BAAlB,kBAAkB;8BAAlB,kBAAkB;yBAAlB,kBAAkB;yBAAlB,kBAAkB;0BAAlB,kBAAkB;0BAAlB,kBAAkB;+BAAlB,kBAAkB;6BAAlB,kBAAkB;4BAAlB,kBAAkB;0BAAlB,kBAAkB;+BAAlB,kBAAkB;4BAAlB,kBAAkB;2BAAlB,kBAAkB;8BAAlB,kBAAkB;4BAAlB,kBAAkB;6BAAlB,kBAAkB;wBAAlB,kBAAkB;2BAAlB,kBAAkB;yBAAlB,kBAAkB;6BAAlB,kBAAkB;8BAAlB,kBAAkB;6BAAlB,kBAAkB;kCAAlB,kBAAkB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a request body is raw binary that must be sent as-is.
|
|
3
|
+
*
|
|
4
|
+
* fetch() and XMLHttpRequest.send() both accept Blob/File, ArrayBuffer and
|
|
5
|
+
* typed arrays (ArrayBuffer views) natively, so these must never be serialized.
|
|
6
|
+
*
|
|
7
|
+
* @param {*} bodyParam - The candidate request body.
|
|
8
|
+
* @returns {boolean} true when bodyParam is a binary payload.
|
|
9
|
+
*/
|
|
10
|
+
export function isBinaryBody(bodyParam: any): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Patch a @alfresco/js-api FetchHttpClient so binary request bodies survive.
|
|
13
|
+
*
|
|
14
|
+
* FetchHttpClient.buildBody() serializes every non-string body with
|
|
15
|
+
* JSON.stringify(). A binary File/Blob has no enumerable own properties, so it
|
|
16
|
+
* becomes the string "{}" and the uploaded content is destroyed. This bug is
|
|
17
|
+
* present up to @alfresco/js-api 9.5.0 (and the 10.1.0 pre-releases) and breaks
|
|
18
|
+
* PUT /nodes/{id}/content (updateNodeContent), i.e. uploading a new version of
|
|
19
|
+
* a file. A plain multipart upload is unaffected because it goes through the
|
|
20
|
+
* multipart/form-data branch instead.
|
|
21
|
+
*
|
|
22
|
+
* We wrap buildBody so binary bodies are returned untouched while every other
|
|
23
|
+
* case is delegated to the original implementation.
|
|
24
|
+
*
|
|
25
|
+
* @param {object} httpClient - The client exposing buildBody (alfrescoApi.httpClient).
|
|
26
|
+
* @returns {object} The same client, patched in place.
|
|
27
|
+
*/
|
|
28
|
+
export function passBinaryBodyThrough(httpClient: object): object;
|
|
29
|
+
//# sourceMappingURL=httpClientPatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpClientPatch.d.ts","sourceRoot":"","sources":["../../src/httpClientPatch.js"],"names":[],"mappings":"AAiBA;;;;;;;;GAQG;AACH,wCAHW,GAAC,GACC,OAAO,CAcnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,kDAHW,MAAM,GACJ,MAAM,CAclB"}
|
|
@@ -3,33 +3,47 @@ export const useFavoritesStore: StoreDefinition<"FavoritesStore", {
|
|
|
3
3
|
favorites: any[];
|
|
4
4
|
loaded: boolean;
|
|
5
5
|
loading: boolean;
|
|
6
|
+
loadError: boolean;
|
|
7
|
+
repairableGuid: any;
|
|
6
8
|
}, {
|
|
7
9
|
siteFavorites: (state: {
|
|
8
10
|
favorites: any[];
|
|
9
11
|
loaded: boolean;
|
|
10
12
|
loading: boolean;
|
|
13
|
+
loadError: boolean;
|
|
14
|
+
repairableGuid: any;
|
|
11
15
|
} & PiniaCustomStateProperties<{
|
|
12
16
|
favorites: any[];
|
|
13
17
|
loaded: boolean;
|
|
14
18
|
loading: boolean;
|
|
19
|
+
loadError: boolean;
|
|
20
|
+
repairableGuid: any;
|
|
15
21
|
}>) => any[];
|
|
16
22
|
fileFavorites: (state: {
|
|
17
23
|
favorites: any[];
|
|
18
24
|
loaded: boolean;
|
|
19
25
|
loading: boolean;
|
|
26
|
+
loadError: boolean;
|
|
27
|
+
repairableGuid: any;
|
|
20
28
|
} & PiniaCustomStateProperties<{
|
|
21
29
|
favorites: any[];
|
|
22
30
|
loaded: boolean;
|
|
23
31
|
loading: boolean;
|
|
32
|
+
loadError: boolean;
|
|
33
|
+
repairableGuid: any;
|
|
24
34
|
}>) => any[];
|
|
25
35
|
folderFavorites: (state: {
|
|
26
36
|
favorites: any[];
|
|
27
37
|
loaded: boolean;
|
|
28
38
|
loading: boolean;
|
|
39
|
+
loadError: boolean;
|
|
40
|
+
repairableGuid: any;
|
|
29
41
|
} & PiniaCustomStateProperties<{
|
|
30
42
|
favorites: any[];
|
|
31
43
|
loaded: boolean;
|
|
32
44
|
loading: boolean;
|
|
45
|
+
loadError: boolean;
|
|
46
|
+
repairableGuid: any;
|
|
33
47
|
}>) => any[];
|
|
34
48
|
}, {
|
|
35
49
|
/**
|
|
@@ -39,6 +53,17 @@ export const useFavoritesStore: StoreDefinition<"FavoritesStore", {
|
|
|
39
53
|
* @returns {Promise<Array>} The favorites array
|
|
40
54
|
*/
|
|
41
55
|
loadFavorites(force?: boolean): Promise<any[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Remove favorites whose target node no longer resolves (e.g. deleted),
|
|
58
|
+
* which otherwise make the all-or-nothing list endpoint return 400.
|
|
59
|
+
*
|
|
60
|
+
* The endpoint stops at the first bad favorite, so orphans are discovered
|
|
61
|
+
* one at a time: delete the known one, reload, and repeat while a new
|
|
62
|
+
* repairable guid surfaces. Bounded by MAX_REPAIR_ITERATIONS.
|
|
63
|
+
*
|
|
64
|
+
* @returns {Promise<number>} The number of orphan favorites removed
|
|
65
|
+
*/
|
|
66
|
+
repairOrphanFavorites(): Promise<number>;
|
|
42
67
|
/**
|
|
43
68
|
* Add a favorite entry to the local cache after a successful API create.
|
|
44
69
|
* @param {Object} entry - The favorite entry returned by the API
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../../src/stores/favorites.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../../src/stores/favorites.js"],"names":[],"mappings":";AAmGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;;;;;OAKG;0BAFQ,OAAO,GACL,OAAO,OAAO;IA0E3B;;;;;;;;;OASG;6BADU,OAAO,CAAC,MAAM,CAAC;IAyC5B;;;OAGG;;IAKH;;;OAGG;wCADQ,MAAM;IAQjB;;OAEG;;GAUJ"}
|