@jahia/data-helper 1.1.17 → 1.1.19
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 +8 -0
- package/dist/esm/fragments/PredefinedFragments.js +13 -13
- package/dist/esm/fragments/PredefinedFragments.js.map +1 -1
- package/dist/esm/hooks/useNodeChecks/useNodeChecks.js +18 -5
- package/dist/esm/hooks/useNodeChecks/useNodeChecks.js.map +1 -1
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js +1 -1
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -1
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.js +7 -2
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.js.map +1 -1
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.utils.js +6 -4
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -1
- package/dist/esm/legacy/Picker.js +9 -63
- package/dist/esm/legacy/Picker.js.map +1 -1
- package/dist/js/fragments/PredefinedFragments.js +13 -13
- package/dist/js/fragments/PredefinedFragments.js.map +1 -1
- package/dist/js/hooks/useNodeChecks/useNodeChecks.js +18 -5
- package/dist/js/hooks/useNodeChecks/useNodeChecks.js.map +1 -1
- package/dist/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js +1 -1
- package/dist/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -1
- package/dist/js/hooks/useNodeInfo/useNodeInfo.js +7 -2
- package/dist/js/hooks/useNodeInfo/useNodeInfo.js.map +1 -1
- package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js +4 -4
- package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -1
- package/dist/js/legacy/Picker.js +9 -63
- package/dist/js/legacy/Picker.js.map +1 -1
- package/dist/types/hooks/useContentPreview/useContentPreview.d.ts +1 -9
- package/dist/types/hooks/useNodeChecks/useNodeChecks.d.ts +1 -0
- package/dist/types/hooks/useNodeInfo/useNodeInfo.d.ts +2 -2
- package/dist/types/hooks/useNodeInfo/useNodeInfo.gql-queries.d.ts +1 -0
- package/dist/types/hooks/useSchemaFields/useSchemaFields.d.ts +1 -3
- package/dist/types/hooks/useSiteInfo/useSiteInfo.d.ts +10 -44
- package/dist/types/hooks/useTreeEntries/useTreeEntries.d.ts +6 -5
- package/dist/types/legacy/Picker.d.ts +2 -2
- package/package.json +1 -1
|
@@ -15,23 +15,24 @@ export type UseTreeEntriesArgs = Partial<{
|
|
|
15
15
|
sortBy: string;
|
|
16
16
|
}>;
|
|
17
17
|
export declare const useTreeEntries: ({ fragments, rootPaths, openPaths, selectedPaths, openableTypes, selectableTypes, recursionTypesFilter, queryVariables, hideRoot, sortBy }: UseTreeEntriesArgs, queryOptions: QueryHookOptions) => {
|
|
18
|
+
called: boolean;
|
|
18
19
|
client: import("@apollo/client").ApolloClient<any>;
|
|
19
20
|
observable: import("@apollo/client").ObservableQuery<any, import("@apollo/client").OperationVariables>;
|
|
20
21
|
previousData?: any;
|
|
21
22
|
error?: import("@apollo/client").ApolloError;
|
|
23
|
+
errors?: ReadonlyArray<import("graphql").GraphQLFormattedError>;
|
|
22
24
|
loading: boolean;
|
|
23
25
|
networkStatus: import("@apollo/client").NetworkStatus;
|
|
24
|
-
called: boolean;
|
|
25
|
-
variables: import("@apollo/client").OperationVariables;
|
|
26
26
|
startPolling: (pollInterval: number) => void;
|
|
27
27
|
stopPolling: () => void;
|
|
28
|
-
subscribeToMore:
|
|
29
|
-
updateQuery:
|
|
28
|
+
subscribeToMore: import("@apollo/client").SubscribeToMoreFunction<any, import("@apollo/client").OperationVariables>;
|
|
29
|
+
updateQuery: (mapFn: import("@apollo/client").UpdateQueryMapFn<any, import("@apollo/client").OperationVariables>) => void;
|
|
30
30
|
refetch: (variables?: Partial<import("@apollo/client").OperationVariables>) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
31
31
|
reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("@apollo/client").OperationVariables, any>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
32
|
+
variables: import("@apollo/client").OperationVariables;
|
|
32
33
|
fetchMore: <TFetchData = any, TFetchVars extends import("@apollo/client").OperationVariables = import("@apollo/client").OperationVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
33
34
|
updateQuery?: (previousQueryResult: any, options: {
|
|
34
|
-
fetchMoreResult: TFetchData
|
|
35
|
+
fetchMoreResult: import("@apollo/client").Unmasked<TFetchData>;
|
|
35
36
|
variables: TFetchVars;
|
|
36
37
|
}) => any;
|
|
37
38
|
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Fragment } from '../fragments';
|
|
3
3
|
import { DocumentNode } from 'graphql';
|
|
4
|
-
type PropType = {
|
|
4
|
+
type PropType = Readonly<{
|
|
5
5
|
/**
|
|
6
6
|
* Optional set of fragments to add to the graphQL query. Can be a string that identify a predefinedFragment or a fragment definition
|
|
7
7
|
*/
|
|
@@ -53,7 +53,7 @@ type PropType = {
|
|
|
53
53
|
*/
|
|
54
54
|
setRefetch: (p: any) => void;
|
|
55
55
|
children: (p: any) => React.ReactElement;
|
|
56
|
-
}
|
|
56
|
+
}>;
|
|
57
57
|
type StateType = {
|
|
58
58
|
isOpenControlled?: boolean;
|
|
59
59
|
isSelectControlled?: boolean;
|