@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.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/esm/fragments/PredefinedFragments.js +13 -13
  3. package/dist/esm/fragments/PredefinedFragments.js.map +1 -1
  4. package/dist/esm/hooks/useNodeChecks/useNodeChecks.js +18 -5
  5. package/dist/esm/hooks/useNodeChecks/useNodeChecks.js.map +1 -1
  6. package/dist/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js +1 -1
  7. package/dist/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -1
  8. package/dist/esm/hooks/useNodeInfo/useNodeInfo.js +7 -2
  9. package/dist/esm/hooks/useNodeInfo/useNodeInfo.js.map +1 -1
  10. package/dist/esm/hooks/useNodeInfo/useNodeInfo.utils.js +6 -4
  11. package/dist/esm/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -1
  12. package/dist/esm/legacy/Picker.js +9 -63
  13. package/dist/esm/legacy/Picker.js.map +1 -1
  14. package/dist/js/fragments/PredefinedFragments.js +13 -13
  15. package/dist/js/fragments/PredefinedFragments.js.map +1 -1
  16. package/dist/js/hooks/useNodeChecks/useNodeChecks.js +18 -5
  17. package/dist/js/hooks/useNodeChecks/useNodeChecks.js.map +1 -1
  18. package/dist/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js +1 -1
  19. package/dist/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -1
  20. package/dist/js/hooks/useNodeInfo/useNodeInfo.js +7 -2
  21. package/dist/js/hooks/useNodeInfo/useNodeInfo.js.map +1 -1
  22. package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js +4 -4
  23. package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -1
  24. package/dist/js/legacy/Picker.js +9 -63
  25. package/dist/js/legacy/Picker.js.map +1 -1
  26. package/dist/types/hooks/useContentPreview/useContentPreview.d.ts +1 -9
  27. package/dist/types/hooks/useNodeChecks/useNodeChecks.d.ts +1 -0
  28. package/dist/types/hooks/useNodeInfo/useNodeInfo.d.ts +2 -2
  29. package/dist/types/hooks/useNodeInfo/useNodeInfo.gql-queries.d.ts +1 -0
  30. package/dist/types/hooks/useSchemaFields/useSchemaFields.d.ts +1 -3
  31. package/dist/types/hooks/useSiteInfo/useSiteInfo.d.ts +10 -44
  32. package/dist/types/hooks/useTreeEntries/useTreeEntries.d.ts +6 -5
  33. package/dist/types/legacy/Picker.d.ts +2 -2
  34. 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: <TSubscriptionData = any, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("@apollo/client").OperationVariables>(options: import("@apollo/client").SubscribeToMoreOptions<any, TSubscriptionVariables, TSubscriptionData>) => () => void;
29
- updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("@apollo/client").OperationVariables>(mapFn: (previousQueryResult: any, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, any>, "variables">) => any) => void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/data-helper",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "scripts": {
5
5
  "build": "yarn tsc && node ./build.mjs",
6
6
  "test": "run --top-level jest --coverage"