@jahia/data-helper 1.1.8 → 1.1.9
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/.autorc +10 -0
- package/.eslintrc +8 -0
- package/CHANGELOG.md +532 -0
- package/build.mjs +9 -0
- package/{esm → dist/esm}/fragments/PredefinedFragments.js +8 -3
- package/dist/esm/fragments/PredefinedFragments.js.map +1 -0
- package/dist/esm/fragments/encodeName.js.map +1 -0
- package/{esm → dist/esm}/fragments/fragments.utils.js +25 -34
- package/dist/esm/fragments/fragments.utils.js.map +1 -0
- package/dist/esm/fragments/getIsNodeTypeFragment.js +26 -0
- package/dist/esm/fragments/getIsNodeTypeFragment.js.map +1 -0
- package/{esm → dist/esm}/fragments/getPermissionFragment.js +5 -10
- package/dist/esm/fragments/getPermissionFragment.js.map +1 -0
- package/dist/esm/fragments/getSubNodesCountFragment.js +24 -0
- package/dist/esm/fragments/getSubNodesCountFragment.js.map +1 -0
- package/dist/esm/fragments/index.js +3 -0
- package/dist/esm/fragments/index.js.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/{esm → dist/esm}/hooks/index.js.map +1 -1
- package/dist/esm/hooks/useContentPreview/index.js +2 -0
- package/dist/esm/hooks/useContentPreview/index.js.map +1 -0
- package/{esm → dist/esm}/hooks/useContentPreview/useContentPreview.gql-queries.js +2 -2
- package/{esm → dist/esm}/hooks/useContentPreview/useContentPreview.gql-queries.js.map +1 -1
- package/{esm → dist/esm}/hooks/useContentPreview/useContentPreview.js +2 -2
- package/dist/esm/hooks/useContentPreview/useContentPreview.js.map +1 -0
- package/dist/esm/hooks/useDeepCompareMemo/index.js +2 -0
- package/dist/esm/hooks/useDeepCompareMemo/index.js.map +1 -0
- package/dist/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +1 -0
- package/{esm → dist/esm}/hooks/useNodeChecks/index.js +1 -1
- package/dist/esm/hooks/useNodeChecks/index.js.map +1 -0
- package/{esm → dist/esm}/hooks/useNodeChecks/useNodeChecks.js +12 -15
- package/dist/esm/hooks/useNodeChecks/useNodeChecks.js.map +1 -0
- package/{esm → dist/esm}/hooks/useNodeInfo/index.js +1 -1
- package/dist/esm/hooks/useNodeInfo/index.js.map +1 -0
- package/dist/esm/hooks/useNodeInfo/useMemoRequest.js +43 -0
- package/dist/esm/hooks/useNodeInfo/useMemoRequest.js.map +1 -0
- package/{esm → dist/esm}/hooks/useNodeInfo/useNodeInfo.gql-queries.js +26 -20
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -0
- package/{esm → dist/esm}/hooks/useNodeInfo/useNodeInfo.js +37 -26
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.js.map +1 -0
- package/{esm → dist/esm}/hooks/useNodeInfo/useNodeInfo.utils.js +3 -10
- package/dist/esm/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -0
- package/dist/esm/hooks/useSchemaFields/index.js +2 -0
- package/dist/esm/hooks/useSchemaFields/index.js.map +1 -0
- package/{esm → dist/esm}/hooks/useSchemaFields/useSchemaFields.gql-queries.js +1 -1
- package/{esm → dist/esm}/hooks/useSchemaFields/useSchemaFields.gql-queries.js.map +1 -1
- package/{esm → dist/esm}/hooks/useSchemaFields/useSchemaFields.js +2 -2
- package/dist/esm/hooks/useSchemaFields/useSchemaFields.js.map +1 -0
- package/{esm → dist/esm}/hooks/useSiteInfo/index.js +1 -1
- package/dist/esm/hooks/useSiteInfo/index.js.map +1 -0
- package/dist/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js +6 -0
- package/dist/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +1 -0
- package/{esm → dist/esm}/hooks/useSiteInfo/useSiteInfo.js +12 -8
- package/dist/esm/hooks/useSiteInfo/useSiteInfo.js.map +1 -0
- package/{esm → dist/esm}/hooks/useTreeEntries/index.js +1 -1
- package/dist/esm/hooks/useTreeEntries/index.js.map +1 -0
- package/{esm → dist/esm}/hooks/useTreeEntries/useTreeEntries.gql-queries.js +2 -2
- package/{esm → dist/esm}/hooks/useTreeEntries/useTreeEntries.gql-queries.js.map +1 -1
- package/{esm → dist/esm}/hooks/useTreeEntries/useTreeEntries.js +8 -24
- package/dist/esm/hooks/useTreeEntries/useTreeEntries.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/{esm → dist/esm}/legacy/Picker.gql-fragments.js +1 -1
- package/{esm → dist/esm}/legacy/Picker.gql-fragments.js.map +1 -1
- package/{esm → dist/esm}/legacy/Picker.js +102 -135
- package/dist/esm/legacy/Picker.js.map +1 -0
- package/dist/esm/legacy/index.js +3 -0
- package/dist/esm/legacy/index.js.map +1 -0
- package/dist/js/fragments/PredefinedFragments.js +171 -0
- package/dist/js/fragments/PredefinedFragments.js.map +1 -0
- package/dist/js/fragments/encodeName.js.map +1 -0
- package/{js → dist/js}/fragments/fragments.utils.js +27 -36
- package/dist/js/fragments/fragments.utils.js.map +1 -0
- package/dist/js/fragments/getIsNodeTypeFragment.js +35 -0
- package/dist/js/fragments/getIsNodeTypeFragment.js.map +1 -0
- package/dist/js/fragments/getPermissionFragment.js +48 -0
- package/dist/js/fragments/getPermissionFragment.js.map +1 -0
- package/dist/js/fragments/getSubNodesCountFragment.js +33 -0
- package/dist/js/fragments/getSubNodesCountFragment.js.map +1 -0
- package/{js → dist/js}/fragments/index.js.map +1 -1
- package/{js → dist/js}/hooks/index.js.map +1 -1
- package/{js → dist/js}/hooks/useContentPreview/index.js.map +1 -1
- package/dist/js/hooks/useContentPreview/useContentPreview.gql-queries.js +14 -0
- package/dist/js/hooks/useContentPreview/useContentPreview.gql-queries.js.map +1 -0
- package/{js → dist/js}/hooks/useContentPreview/useContentPreview.js +2 -2
- package/dist/js/hooks/useContentPreview/useContentPreview.js.map +1 -0
- package/{js → dist/js}/hooks/useDeepCompareMemo/index.js.map +1 -1
- package/{js → dist/js}/hooks/useDeepCompareMemo/useDeepCompareMemo.js +1 -1
- package/dist/js/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +1 -0
- package/{js → dist/js}/hooks/useNodeChecks/index.js.map +1 -1
- package/{js → dist/js}/hooks/useNodeChecks/useNodeChecks.js +15 -17
- package/dist/js/hooks/useNodeChecks/useNodeChecks.js.map +1 -0
- package/{js → dist/js}/hooks/useNodeInfo/index.js.map +1 -1
- package/dist/js/hooks/useNodeInfo/useMemoRequest.js +50 -0
- package/dist/js/hooks/useNodeInfo/useMemoRequest.js.map +1 -0
- package/{js → dist/js}/hooks/useNodeInfo/useNodeInfo.gql-queries.js +24 -18
- package/dist/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -0
- package/{js → dist/js}/hooks/useNodeInfo/useNodeInfo.js +37 -26
- package/dist/js/hooks/useNodeInfo/useNodeInfo.js.map +1 -0
- package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js +57 -0
- package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -0
- package/{js → dist/js}/hooks/useSchemaFields/index.js.map +1 -1
- package/dist/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js +13 -0
- package/dist/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js.map +1 -0
- package/{js → dist/js}/hooks/useSchemaFields/useSchemaFields.js +2 -2
- package/dist/js/hooks/useSchemaFields/useSchemaFields.js.map +1 -0
- package/{js → dist/js}/hooks/useSiteInfo/index.js.map +1 -1
- package/dist/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js +14 -0
- package/dist/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +1 -0
- package/dist/js/hooks/useSiteInfo/useSiteInfo.js +47 -0
- package/dist/js/hooks/useSiteInfo/useSiteInfo.js.map +1 -0
- package/{js → dist/js}/hooks/useTreeEntries/index.js.map +1 -1
- package/dist/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js +14 -0
- package/dist/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js.map +1 -0
- package/dist/js/hooks/useTreeEntries/useTreeEntries.js +102 -0
- package/dist/js/hooks/useTreeEntries/useTreeEntries.js.map +1 -0
- package/{js → dist/js}/index.js.map +1 -1
- package/dist/js/legacy/Picker.gql-fragments.js +29 -0
- package/dist/js/legacy/Picker.gql-fragments.js.map +1 -0
- package/dist/js/legacy/Picker.js +363 -0
- package/dist/js/legacy/Picker.js.map +1 -0
- package/{js → dist/js}/legacy/index.js.map +1 -1
- package/dist/types/fragments/PredefinedFragments.d.ts +32 -0
- package/dist/types/fragments/encodeName.d.ts +1 -0
- package/dist/types/fragments/fragments.utils.d.ts +6 -0
- package/dist/types/fragments/getIsNodeTypeFragment.d.ts +10 -0
- package/dist/types/fragments/getPermissionFragment.d.ts +14 -0
- package/dist/types/fragments/getSubNodesCountFragment.d.ts +8 -0
- package/dist/types/hooks/useContentPreview/useContentPreview.d.ts +25 -0
- package/dist/types/hooks/useContentPreview/useContentPreview.gql-queries.d.ts +1 -0
- package/dist/types/hooks/useDeepCompareMemo/useDeepCompareMemo.d.ts +1 -0
- package/dist/types/hooks/useNodeChecks/useNodeChecks.d.ts +19 -0
- package/dist/types/hooks/useNodeInfo/useMemoRequest.d.ts +6 -0
- package/dist/types/hooks/useNodeInfo/useNodeInfo.d.ts +33 -0
- package/dist/types/hooks/useNodeInfo/useNodeInfo.gql-queries.d.ts +33 -0
- package/dist/types/hooks/useNodeInfo/useNodeInfo.utils.d.ts +12 -0
- package/dist/types/hooks/useSchemaFields/useSchemaFields.d.ts +5 -0
- package/dist/types/hooks/useSchemaFields/useSchemaFields.gql-queries.d.ts +1 -0
- package/dist/types/hooks/useSiteInfo/useSiteInfo.d.ts +63 -0
- package/dist/types/hooks/useSiteInfo/useSiteInfo.gql-queries.d.ts +1 -0
- package/dist/types/hooks/useTreeEntries/useTreeEntries.d.ts +39 -0
- package/dist/types/hooks/useTreeEntries/useTreeEntries.gql-queries.d.ts +1 -0
- package/dist/types/legacy/Picker.d.ts +84 -0
- package/dist/types/legacy/Picker.gql-fragments.d.ts +17 -0
- package/package.json +12 -20
- package/tsconfig.json +27 -0
- package/esm/fragments/PredefinedFragments.js.map +0 -1
- package/esm/fragments/encodeName.js.map +0 -1
- package/esm/fragments/fragments.utils.js.map +0 -1
- package/esm/fragments/getIsNodeTypeFragment.js +0 -30
- package/esm/fragments/getIsNodeTypeFragment.js.map +0 -1
- package/esm/fragments/getPermissionFragment.js.map +0 -1
- package/esm/fragments/index.js +0 -3
- package/esm/fragments/index.js.map +0 -1
- package/esm/hooks/index.js +0 -6
- package/esm/hooks/useContentPreview/index.js +0 -2
- package/esm/hooks/useContentPreview/index.js.map +0 -1
- package/esm/hooks/useContentPreview/useContentPreview.js.map +0 -1
- package/esm/hooks/useContentPreview/useContentPreview.spec.js +0 -35
- package/esm/hooks/useContentPreview/useContentPreview.spec.js.map +0 -1
- package/esm/hooks/useDeepCompareMemo/index.js +0 -2
- package/esm/hooks/useDeepCompareMemo/index.js.map +0 -1
- package/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +0 -1
- package/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js +0 -36
- package/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js.map +0 -1
- package/esm/hooks/useNodeChecks/index.js.map +0 -1
- package/esm/hooks/useNodeChecks/useNodeChecks.js.map +0 -1
- package/esm/hooks/useNodeChecks/useNodeChecks.spec.js +0 -184
- package/esm/hooks/useNodeChecks/useNodeChecks.spec.js.map +0 -1
- package/esm/hooks/useNodeInfo/index.js.map +0 -1
- package/esm/hooks/useNodeInfo/useMemoRequest.js +0 -50
- package/esm/hooks/useNodeInfo/useMemoRequest.js.map +0 -1
- package/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +0 -1
- package/esm/hooks/useNodeInfo/useNodeInfo.js.map +0 -1
- package/esm/hooks/useNodeInfo/useNodeInfo.spec.js +0 -453
- package/esm/hooks/useNodeInfo/useNodeInfo.spec.js.map +0 -1
- package/esm/hooks/useNodeInfo/useNodeInfo.utils.js.map +0 -1
- package/esm/hooks/useSchemaFields/index.js +0 -2
- package/esm/hooks/useSchemaFields/index.js.map +0 -1
- package/esm/hooks/useSchemaFields/useSchemaFields.js.map +0 -1
- package/esm/hooks/useSiteInfo/index.js.map +0 -1
- package/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js +0 -6
- package/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +0 -1
- package/esm/hooks/useSiteInfo/useSiteInfo.js.map +0 -1
- package/esm/hooks/useSiteInfo/useSiteInfo.spec.js +0 -65
- package/esm/hooks/useSiteInfo/useSiteInfo.spec.js.map +0 -1
- package/esm/hooks/useTreeEntries/index.js.map +0 -1
- package/esm/hooks/useTreeEntries/useTreeEntries.js.map +0 -1
- package/esm/hooks/useTreeEntries/useTreeEntries.spec.js +0 -47
- package/esm/hooks/useTreeEntries/useTreeEntries.spec.js.map +0 -1
- package/esm/index.js +0 -4
- package/esm/index.js.map +0 -1
- package/esm/legacy/Picker.js.map +0 -1
- package/esm/legacy/index.js +0 -3
- package/esm/legacy/index.js.map +0 -1
- package/js/fragments/PredefinedFragments.js +0 -165
- package/js/fragments/PredefinedFragments.js.map +0 -1
- package/js/fragments/encodeName.js.map +0 -1
- package/js/fragments/fragments.utils.js.map +0 -1
- package/js/fragments/getIsNodeTypeFragment.js +0 -39
- package/js/fragments/getIsNodeTypeFragment.js.map +0 -1
- package/js/fragments/getPermissionFragment.js +0 -53
- package/js/fragments/getPermissionFragment.js.map +0 -1
- package/js/hooks/useContentPreview/useContentPreview.gql-queries.js +0 -14
- package/js/hooks/useContentPreview/useContentPreview.gql-queries.js.map +0 -1
- package/js/hooks/useContentPreview/useContentPreview.js.map +0 -1
- package/js/hooks/useContentPreview/useContentPreview.spec.js +0 -37
- package/js/hooks/useContentPreview/useContentPreview.spec.js.map +0 -1
- package/js/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +0 -1
- package/js/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js +0 -38
- package/js/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js.map +0 -1
- package/js/hooks/useNodeChecks/useNodeChecks.js.map +0 -1
- package/js/hooks/useNodeChecks/useNodeChecks.spec.js +0 -187
- package/js/hooks/useNodeChecks/useNodeChecks.spec.js.map +0 -1
- package/js/hooks/useNodeInfo/useMemoRequest.js +0 -57
- package/js/hooks/useNodeInfo/useMemoRequest.js.map +0 -1
- package/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +0 -1
- package/js/hooks/useNodeInfo/useNodeInfo.js.map +0 -1
- package/js/hooks/useNodeInfo/useNodeInfo.spec.js +0 -456
- package/js/hooks/useNodeInfo/useNodeInfo.spec.js.map +0 -1
- package/js/hooks/useNodeInfo/useNodeInfo.utils.js +0 -63
- package/js/hooks/useNodeInfo/useNodeInfo.utils.js.map +0 -1
- package/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js +0 -13
- package/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js.map +0 -1
- package/js/hooks/useSchemaFields/useSchemaFields.js.map +0 -1
- package/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js +0 -14
- package/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +0 -1
- package/js/hooks/useSiteInfo/useSiteInfo.js +0 -42
- package/js/hooks/useSiteInfo/useSiteInfo.js.map +0 -1
- package/js/hooks/useSiteInfo/useSiteInfo.spec.js +0 -67
- package/js/hooks/useSiteInfo/useSiteInfo.spec.js.map +0 -1
- package/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js +0 -14
- package/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js.map +0 -1
- package/js/hooks/useTreeEntries/useTreeEntries.js +0 -117
- package/js/hooks/useTreeEntries/useTreeEntries.js.map +0 -1
- package/js/hooks/useTreeEntries/useTreeEntries.spec.js +0 -49
- package/js/hooks/useTreeEntries/useTreeEntries.spec.js.map +0 -1
- package/js/legacy/Picker.gql-fragments.js +0 -29
- package/js/legacy/Picker.gql-fragments.js.map +0 -1
- package/js/legacy/Picker.js +0 -396
- package/js/legacy/Picker.js.map +0 -1
- /package/{esm → dist/esm}/fragments/encodeName.js +0 -0
- /package/{esm → dist/esm}/hooks/useDeepCompareMemo/useDeepCompareMemo.js +0 -0
- /package/{js → dist/js}/fragments/encodeName.js +0 -0
- /package/{js → dist/js}/fragments/index.js +0 -0
- /package/{js → dist/js}/hooks/index.js +0 -0
- /package/{js → dist/js}/hooks/useContentPreview/index.js +0 -0
- /package/{js → dist/js}/hooks/useDeepCompareMemo/index.js +0 -0
- /package/{js → dist/js}/hooks/useNodeChecks/index.js +0 -0
- /package/{js → dist/js}/hooks/useNodeInfo/index.js +0 -0
- /package/{js → dist/js}/hooks/useSchemaFields/index.js +0 -0
- /package/{js → dist/js}/hooks/useSiteInfo/index.js +0 -0
- /package/{js → dist/js}/hooks/useTreeEntries/index.js +0 -0
- /package/{js → dist/js}/index.js +0 -0
- /package/{js → dist/js}/legacy/index.js +0 -0
- /package/{esm → dist/types}/fragments/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useContentPreview/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useDeepCompareMemo/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useNodeChecks/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useNodeInfo/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useSchemaFields/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useSiteInfo/index.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useTreeEntries/index.d.ts +0 -0
- /package/{esm → dist/types}/index.d.ts +0 -0
- /package/{esm → dist/types}/legacy/index.d.ts +0 -0
package/.autorc
ADDED
package/.eslintrc
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
# (Tue Dec 19 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- QA-15005: Add isExternal into useNodeChecks uuid query [#256](https://github.com/Jahia/javascript-components/pull/256) ([@cedmail](https://github.com/cedmail))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Cedric Mailleux ([@cedmail](https://github.com/cedmail))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# (Tue Dec 19 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- QA-15005: Add isExternal into useNodeChecks [#255](https://github.com/Jahia/javascript-components/pull/255) ([@cedmail](https://github.com/cedmail))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Cedric Mailleux ([@cedmail](https://github.com/cedmail))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# (Mon Nov 27 2023)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- BACKLOG-21921: Fixed invalid merge with subNodesCount [#254](https://github.com/Jahia/javascript-components/pull/254) ([@tdraier](https://github.com/tdraier))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# (Fri Nov 17 2023)
|
|
38
|
+
|
|
39
|
+
#### 🐛 Bug Fix
|
|
40
|
+
|
|
41
|
+
- BACKLOG-20677: return languages in their own locale, displayLanguage or newly added uiLanguage if requested [#253](https://github.com/Jahia/javascript-components/pull/253) ([@cedmail](https://github.com/cedmail))
|
|
42
|
+
|
|
43
|
+
#### Authors: 1
|
|
44
|
+
|
|
45
|
+
- Cedric Mailleux ([@cedmail](https://github.com/cedmail))
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
# (Tue Sep 12 2023)
|
|
50
|
+
|
|
51
|
+
#### 🐛 Bug Fix
|
|
52
|
+
|
|
53
|
+
- BACKLOG-21525: fixed query refetch [#252](https://github.com/Jahia/javascript-components/pull/252) ([@tdraier](https://github.com/tdraier))
|
|
54
|
+
|
|
55
|
+
#### Authors: 1
|
|
56
|
+
|
|
57
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# (Tue May 30 2023)
|
|
62
|
+
|
|
63
|
+
#### 🐛 Bug Fix
|
|
64
|
+
|
|
65
|
+
- BACKLOG-21054: Fix legacy picker for vanity urls [#247](https://github.com/Jahia/javascript-components/pull/247) ([@gflores-jahia](https://github.com/gflores-jahia))
|
|
66
|
+
|
|
67
|
+
#### Authors: 1
|
|
68
|
+
|
|
69
|
+
- Geofrey Flores ([@gflores-jahia](https://github.com/gflores-jahia))
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
# (Thu May 25 2023)
|
|
74
|
+
|
|
75
|
+
#### 🐛 Bug Fix
|
|
76
|
+
|
|
77
|
+
- TECH-233: Removed unused dependency [#246](https://github.com/Jahia/javascript-components/pull/246) ([@tdraier](https://github.com/tdraier))
|
|
78
|
+
|
|
79
|
+
#### Authors: 1
|
|
80
|
+
|
|
81
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
# (Wed May 24 2023)
|
|
86
|
+
|
|
87
|
+
#### 🐛 Bug Fix
|
|
88
|
+
|
|
89
|
+
- QA-14773: Return result from cache if available [#245](https://github.com/Jahia/javascript-components/pull/245) ([@tdraier](https://github.com/tdraier))
|
|
90
|
+
|
|
91
|
+
#### Authors: 1
|
|
92
|
+
|
|
93
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
# (Wed May 24 2023)
|
|
98
|
+
|
|
99
|
+
#### 🚀 Enhancement
|
|
100
|
+
|
|
101
|
+
- TECH-233: Convert package to typescript [#243](https://github.com/Jahia/javascript-components/pull/243) ([@tdraier](https://github.com/tdraier))
|
|
102
|
+
|
|
103
|
+
#### Authors: 1
|
|
104
|
+
|
|
105
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
# (Wed May 24 2023)
|
|
110
|
+
|
|
111
|
+
#### 🐛 Bug Fix
|
|
112
|
+
|
|
113
|
+
- QA-14773: ensure we return loading : true if query has changed [#244](https://github.com/Jahia/javascript-components/pull/244) ([@cedmail](https://github.com/cedmail))
|
|
114
|
+
- TECH-233: Convert package to typescript [#237](https://github.com/Jahia/javascript-components/pull/237) ([@tdraier](https://github.com/tdraier))
|
|
115
|
+
|
|
116
|
+
#### Authors: 2
|
|
117
|
+
|
|
118
|
+
- Cedric Mailleux ([@cedmail](https://github.com/cedmail))
|
|
119
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
# (Thu Apr 20 2023)
|
|
124
|
+
|
|
125
|
+
#### 🐛 Bug Fix
|
|
126
|
+
|
|
127
|
+
- Fix linter issues [#234](https://github.com/Jahia/javascript-components/pull/234) ([@cedmail](https://github.com/cedmail))
|
|
128
|
+
- QA-14483: Add mimeTypes into useContentPreview to use when isFile is true [#233](https://github.com/Jahia/javascript-components/pull/233) ([@cedmail](https://github.com/cedmail))
|
|
129
|
+
|
|
130
|
+
#### Authors: 1
|
|
131
|
+
|
|
132
|
+
- Cedric Mailleux ([@cedmail](https://github.com/cedmail))
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
# (Fri Oct 28 2022)
|
|
137
|
+
|
|
138
|
+
#### 🐛 Bug Fix
|
|
139
|
+
|
|
140
|
+
- QA 14194 [#221](https://github.com/Jahia/javascript-components/pull/221) ([@tdraier](https://github.com/tdraier))
|
|
141
|
+
- QA-14194 Cherry pick code and update tests [#220](https://github.com/Jahia/javascript-components/pull/220) ([@tdraier](https://github.com/tdraier) [@AKarmanov](https://github.com/AKarmanov))
|
|
142
|
+
|
|
143
|
+
#### Authors: 2
|
|
144
|
+
|
|
145
|
+
- Alex Karmanov ([@AKarmanov](https://github.com/AKarmanov))
|
|
146
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
# (Tue Sep 06 2022)
|
|
151
|
+
|
|
152
|
+
#### 🐛 Bug Fix
|
|
153
|
+
|
|
154
|
+
- BACKLOG-19919: Remove unnecessary ref [#218](https://github.com/Jahia/javascript-components/pull/218) ([@tdraier](https://github.com/tdraier))
|
|
155
|
+
|
|
156
|
+
#### Authors: 1
|
|
157
|
+
|
|
158
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
# (Mon Sep 05 2022)
|
|
163
|
+
|
|
164
|
+
#### 🐛 Bug Fix
|
|
165
|
+
|
|
166
|
+
- BACKLOG-19919: Use descendants and recursion filter for useTreeEntries [#217](https://github.com/Jahia/javascript-components/pull/217) ([@tdraier](https://github.com/tdraier))
|
|
167
|
+
|
|
168
|
+
#### Authors: 1
|
|
169
|
+
|
|
170
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
# (Mon Mar 28 2022)
|
|
175
|
+
|
|
176
|
+
#### 🐛 Bug Fix
|
|
177
|
+
|
|
178
|
+
- TECH-320: Add missing cache fields [#210](https://github.com/Jahia/javascript-components/pull/210) ([@tdraier](https://github.com/tdraier))
|
|
179
|
+
|
|
180
|
+
#### Authors: 1
|
|
181
|
+
|
|
182
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
# (Thu Apr 29 2021)
|
|
187
|
+
|
|
188
|
+
#### 🐛 Bug Fix
|
|
189
|
+
|
|
190
|
+
- BACKLOG-15786 : Fixed site permission check [#195](https://github.com/Jahia/javascript-components/pull/195) ([@tdraier](https://github.com/tdraier))
|
|
191
|
+
|
|
192
|
+
#### Authors: 1
|
|
193
|
+
|
|
194
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
# (Wed Apr 21 2021)
|
|
199
|
+
|
|
200
|
+
#### 🐛 Bug Fix
|
|
201
|
+
|
|
202
|
+
- BACKLOG-15786: Check site permissions [#194](https://github.com/Jahia/javascript-components/pull/194) ([@tdraier](https://github.com/tdraier))
|
|
203
|
+
|
|
204
|
+
#### Authors: 1
|
|
205
|
+
|
|
206
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
# (Thu Mar 18 2021)
|
|
211
|
+
|
|
212
|
+
#### 🐛 Bug Fix
|
|
213
|
+
|
|
214
|
+
- QA-13567 Add-in the sortby functionality to use Tree Entries. [#191](https://github.com/Jahia/javascript-components/pull/191) ([@XiangYuHe](https://github.com/XiangYuHe))
|
|
215
|
+
|
|
216
|
+
#### Authors: 1
|
|
217
|
+
|
|
218
|
+
- [@XiangYuHe](https://github.com/XiangYuHe)
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
# (Mon Dec 14 2020)
|
|
223
|
+
|
|
224
|
+
#### 💥 Breaking Change
|
|
225
|
+
|
|
226
|
+
- Bump graphql/graphql-tag for webpack5 compilation [#182](https://github.com/Jahia/javascript-components/pull/182) ([@tdraier](https://github.com/tdraier))
|
|
227
|
+
|
|
228
|
+
#### Authors: 1
|
|
229
|
+
|
|
230
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
# (Wed Nov 04 2020)
|
|
235
|
+
|
|
236
|
+
#### 🐛 Bug Fix
|
|
237
|
+
|
|
238
|
+
- QA-13379: Avoid error if site does not exist [#177](https://github.com/Jahia/javascript-components/pull/177) ([@tdraier](https://github.com/tdraier))
|
|
239
|
+
|
|
240
|
+
#### Authors: 1
|
|
241
|
+
|
|
242
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
# (Tue Sep 08 2020)
|
|
247
|
+
|
|
248
|
+
#### 🐛 Bug Fix
|
|
249
|
+
|
|
250
|
+
- QA-13071: Ignore data fetching errors when getting site info [#169](https://github.com/Jahia/javascript-components/pull/169) ([@tdraier](https://github.com/tdraier))
|
|
251
|
+
- QA-13117: Ignore data fetching errors and just return no data [#166](https://github.com/Jahia/javascript-components/pull/166) ([@tdraier](https://github.com/tdraier))
|
|
252
|
+
|
|
253
|
+
#### Authors: 1
|
|
254
|
+
|
|
255
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
# (Wed Jul 29 2020)
|
|
260
|
+
|
|
261
|
+
#### 🐛 Bug Fix
|
|
262
|
+
|
|
263
|
+
- QA-13044 [#155](https://github.com/Jahia/javascript-components/pull/155) ([@Yousria](https://github.com/Yousria))
|
|
264
|
+
- QA-13044 : remove usage of useSchemaFields to increase performances [#152](https://github.com/Jahia/javascript-components/pull/152) ([@Yousria](https://github.com/Yousria))
|
|
265
|
+
|
|
266
|
+
#### Authors: 1
|
|
267
|
+
|
|
268
|
+
- Yousria ([@Yousria](https://github.com/Yousria))
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
# (Wed Jul 22 2020)
|
|
273
|
+
|
|
274
|
+
#### 🐛 Bug Fix
|
|
275
|
+
|
|
276
|
+
- QA-13044 [#155](https://github.com/Jahia/javascript-components/pull/155) ([@Yousria](https://github.com/Yousria))
|
|
277
|
+
|
|
278
|
+
#### Authors: 1
|
|
279
|
+
|
|
280
|
+
- Yousria ([@Yousria](https://github.com/Yousria))
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
# (Tue Jul 21 2020)
|
|
285
|
+
|
|
286
|
+
#### 🐛 Bug Fix
|
|
287
|
+
|
|
288
|
+
- QA-13044 : remove usage of useSchemaFields to increase performances [#152](https://github.com/Jahia/javascript-components/pull/152) ([@Yousria](https://github.com/Yousria))
|
|
289
|
+
|
|
290
|
+
#### Authors: 1
|
|
291
|
+
|
|
292
|
+
- Yousria ([@Yousria](https://github.com/Yousria))
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
# (Fri Jun 12 2020)
|
|
297
|
+
|
|
298
|
+
#### 🐛 Bug Fix
|
|
299
|
+
|
|
300
|
+
- QA-12920 : retrieve property existsInLive in aggregatedPublicationInf… [#148](https://github.com/Jahia/javascript-components/pull/148) ([@Yousria](https://github.com/Yousria))
|
|
301
|
+
|
|
302
|
+
#### Authors: 1
|
|
303
|
+
|
|
304
|
+
- Yousria ([@Yousria](https://github.com/Yousria))
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
# (Fri May 01 2020)
|
|
309
|
+
|
|
310
|
+
#### 🐛 Bug Fix
|
|
311
|
+
|
|
312
|
+
- BACKLOG-13212: correcly set node info options in useNodeChecks hook [#145](https://github.com/Jahia/javascript-components/pull/145) ([@jkevan](https://github.com/jkevan))
|
|
313
|
+
|
|
314
|
+
#### Authors: 1
|
|
315
|
+
|
|
316
|
+
- kevan Jahanshahi ([@jkevan](https://github.com/jkevan))
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
# (Tue Mar 31 2020)
|
|
321
|
+
|
|
322
|
+
#### 🐛 Bug Fix
|
|
323
|
+
|
|
324
|
+
- BACKLOG-13021: Add options in aggregatedPublicationInfo [#136](https://github.com/Jahia/javascript-components/pull/136) ([@tdraier](https://github.com/tdraier))
|
|
325
|
+
|
|
326
|
+
#### Authors: 1
|
|
327
|
+
|
|
328
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
# (Mon Mar 30 2020)
|
|
333
|
+
|
|
334
|
+
#### 🐛 Bug Fix
|
|
335
|
+
|
|
336
|
+
- BACKLOG-12561 : hooks improvement and fixes [#135](https://github.com/Jahia/javascript-components/pull/135) ([@tdraier](https://github.com/tdraier))
|
|
337
|
+
|
|
338
|
+
#### Authors: 1
|
|
339
|
+
|
|
340
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
# (Thu Mar 26 2020)
|
|
345
|
+
|
|
346
|
+
#### 🐛 Bug Fix
|
|
347
|
+
|
|
348
|
+
- BACKLOG-12833 : Avoid recreating queries for same fragments, set unique name on query [#134](https://github.com/Jahia/javascript-components/pull/134) ([@tdraier](https://github.com/tdraier))
|
|
349
|
+
|
|
350
|
+
#### Authors: 1
|
|
351
|
+
|
|
352
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
# (Tue Mar 24 2020)
|
|
357
|
+
|
|
358
|
+
#### 🐛 Bug Fix
|
|
359
|
+
|
|
360
|
+
- BACKLOG-12561 : Different fixes in nodeInfo/nodeChecks [#128](https://github.com/Jahia/javascript-components/pull/128) ([@tdraier](https://github.com/tdraier))
|
|
361
|
+
|
|
362
|
+
#### Authors: 1
|
|
363
|
+
|
|
364
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
# (Mon Mar 23 2020)
|
|
369
|
+
|
|
370
|
+
#### ⚠️ Pushed to master
|
|
371
|
+
|
|
372
|
+
- BACKLOG-12877 : Allow single permission to be passed ([@tdraier](https://github.com/tdraier))
|
|
373
|
+
|
|
374
|
+
#### Authors: 1
|
|
375
|
+
|
|
376
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
377
|
+
|
|
378
|
+
---
|
|
379
|
+
|
|
380
|
+
# (Fri Mar 13 2020)
|
|
381
|
+
|
|
382
|
+
#### 🐛 Bug Fix
|
|
383
|
+
|
|
384
|
+
- BACKLOG-12764 : Make shallow copy of node before modifying it [#117](https://github.com/Jahia/javascript-components/pull/117) ([@tdraier](https://github.com/tdraier))
|
|
385
|
+
|
|
386
|
+
#### Authors: 1
|
|
387
|
+
|
|
388
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
# (Fri Mar 13 2020)
|
|
393
|
+
|
|
394
|
+
#### 🐛 Bug Fix
|
|
395
|
+
|
|
396
|
+
- BACKLOG-12764: Removed duplicate fragments. Improve useNodeInfo for permissions, nodetypes [#115](https://github.com/Jahia/javascript-components/pull/115) ([@tdraier](https://github.com/tdraier))
|
|
397
|
+
|
|
398
|
+
#### Authors: 1
|
|
399
|
+
|
|
400
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
401
|
+
|
|
402
|
+
---
|
|
403
|
+
|
|
404
|
+
# (Tue Mar 10 2020)
|
|
405
|
+
|
|
406
|
+
#### 🐛 Bug Fix
|
|
407
|
+
|
|
408
|
+
- BACKLOG-12327 : Fixed menuPreload, better error handling, execute query when needed [#113](https://github.com/Jahia/javascript-components/pull/113) ([@tdraier](https://github.com/tdraier))
|
|
409
|
+
|
|
410
|
+
#### Authors: 1
|
|
411
|
+
|
|
412
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
# (Mon Mar 09 2020)
|
|
417
|
+
|
|
418
|
+
#### 🐛 Bug Fix
|
|
419
|
+
|
|
420
|
+
- BACKLOG-12327 : Fixed query with multiple nodes [#111](https://github.com/Jahia/javascript-components/pull/111) ([@tdraier](https://github.com/tdraier))
|
|
421
|
+
|
|
422
|
+
#### Authors: 1
|
|
423
|
+
|
|
424
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
# (Mon Mar 09 2020)
|
|
429
|
+
|
|
430
|
+
#### 🐛 Bug Fix
|
|
431
|
+
|
|
432
|
+
- BACKLOG-12327 : added options to get node/nodes by path or ids [#110](https://github.com/Jahia/javascript-components/pull/110) ([@tdraier](https://github.com/tdraier))
|
|
433
|
+
|
|
434
|
+
#### Authors: 1
|
|
435
|
+
|
|
436
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
437
|
+
|
|
438
|
+
---
|
|
439
|
+
|
|
440
|
+
# (Wed Mar 04 2020)
|
|
441
|
+
|
|
442
|
+
#### 🐛 Bug Fix
|
|
443
|
+
|
|
444
|
+
- BACKLOG-12327 : Fixes on useNodeInfo, menuAction, added useDeepCompareMemoize [#106](https://github.com/Jahia/javascript-components/pull/106) ([@tdraier](https://github.com/tdraier))
|
|
445
|
+
|
|
446
|
+
#### Authors: 1
|
|
447
|
+
|
|
448
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
# (Fri Feb 28 2020)
|
|
453
|
+
|
|
454
|
+
#### 🐛 Bug Fix
|
|
455
|
+
|
|
456
|
+
- BACKLOG-12161: Added more site info [#101](https://github.com/Jahia/javascript-components/pull/101) ([@tdraier](https://github.com/tdraier))
|
|
457
|
+
|
|
458
|
+
#### Authors: 1
|
|
459
|
+
|
|
460
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
461
|
+
|
|
462
|
+
---
|
|
463
|
+
|
|
464
|
+
# (Thu Feb 27 2020)
|
|
465
|
+
|
|
466
|
+
#### 🐛 Bug Fix
|
|
467
|
+
|
|
468
|
+
- BACKLOG-12393 : create a new hook useTreeEntries that replaces the controlled part of the Picker [#99](https://github.com/Jahia/javascript-components/pull/99) ([@Yousria](https://github.com/Yousria))
|
|
469
|
+
|
|
470
|
+
#### Authors: 1
|
|
471
|
+
|
|
472
|
+
- Yousria ([@Yousria](https://github.com/Yousria))
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
# (Thu Feb 27 2020)
|
|
477
|
+
|
|
478
|
+
#### 🐛 Bug Fix
|
|
479
|
+
|
|
480
|
+
- BACKLOG-12561 : reorganized hooks, added useNodeInfo and useNodeCheck… [#96](https://github.com/Jahia/javascript-components/pull/96) ([@tdraier](https://github.com/tdraier))
|
|
481
|
+
|
|
482
|
+
#### Authors: 1
|
|
483
|
+
|
|
484
|
+
- Thomas Draier ([@tdraier](https://github.com/tdraier))
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
# (Thu Feb 13 2020)
|
|
489
|
+
|
|
490
|
+
#### 🐛 Bug Fix
|
|
491
|
+
|
|
492
|
+
- BACKLOG-12347: export legacy utils function (case sensitive) [#85](https://github.com/Jahia/javascript-components/pull/85) ([@FBerthelot](https://github.com/FBerthelot))
|
|
493
|
+
|
|
494
|
+
#### Authors: 1
|
|
495
|
+
|
|
496
|
+
- Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
|
|
497
|
+
|
|
498
|
+
---
|
|
499
|
+
|
|
500
|
+
# (Thu Feb 13 2020)
|
|
501
|
+
|
|
502
|
+
#### 🐛 Bug Fix
|
|
503
|
+
|
|
504
|
+
- BACKLOG-12347: export legacy utils function [#83](https://github.com/Jahia/javascript-components/pull/83) ([@FBerthelot](https://github.com/FBerthelot))
|
|
505
|
+
|
|
506
|
+
#### Authors: 1
|
|
507
|
+
|
|
508
|
+
- Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
# (Thu Feb 13 2020)
|
|
513
|
+
|
|
514
|
+
#### 🐛 Bug Fix
|
|
515
|
+
|
|
516
|
+
- BACKLOG-12347: Move logic from react-apollo to data-helper [#80](https://github.com/Jahia/javascript-components/pull/80) ([@FBerthelot](https://github.com/FBerthelot))
|
|
517
|
+
|
|
518
|
+
#### Authors: 1
|
|
519
|
+
|
|
520
|
+
- Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
|
|
521
|
+
|
|
522
|
+
---
|
|
523
|
+
|
|
524
|
+
# (Wed Feb 12 2020)
|
|
525
|
+
|
|
526
|
+
#### 🐛 Bug Fix
|
|
527
|
+
|
|
528
|
+
- BACKLOG-12346: Add new data-helper project [#79](https://github.com/Jahia/javascript-components/pull/79) ([@FBerthelot](https://github.com/FBerthelot))
|
|
529
|
+
|
|
530
|
+
#### Authors: 1
|
|
531
|
+
|
|
532
|
+
- Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
|
package/build.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import babel from '@jahia/scripts/babel.js';
|
|
4
|
+
import config from './babel.build.config.js';
|
|
5
|
+
|
|
6
|
+
console.log('Transpiling for js');
|
|
7
|
+
babel('dist/js', {...config, presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript']});
|
|
8
|
+
console.log('Transpiling for esm');
|
|
9
|
+
babel('dist/esm', config);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
3
3
|
import gql from 'graphql-tag';
|
|
4
4
|
export var displayName = {
|
|
5
5
|
variables: {
|
|
@@ -114,6 +114,10 @@ export var mimeTypes = {
|
|
|
114
114
|
applyFor: 'node',
|
|
115
115
|
gql: gql(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["fragment NodeInfoResourceNode on JCRNode {\n resourceChildren: children(names: [\"jcr:content\"]) {\n nodes {\n ...NodeCacheRequiredFields\n mimeType: property(name: \"jcr:mimeType\") {\n value\n }\n }\n }\n }"])))
|
|
116
116
|
};
|
|
117
|
+
export var isExternal = {
|
|
118
|
+
applyFor: 'node',
|
|
119
|
+
gql: gql(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["fragment External on JCRNode {\n isExternal\n }"])))
|
|
120
|
+
};
|
|
117
121
|
export var PredefinedFragments = {
|
|
118
122
|
displayName: displayName,
|
|
119
123
|
primaryNodeType: primaryNodeType,
|
|
@@ -132,6 +136,7 @@ export var PredefinedFragments = {
|
|
|
132
136
|
nodeCacheRequiredFields: nodeCacheRequiredFields,
|
|
133
137
|
nodeTypeDisplayName: nodeTypeDisplayName,
|
|
134
138
|
nodeTypeSubTypes: nodeTypeSubTypes,
|
|
135
|
-
mimeTypes: mimeTypes
|
|
139
|
+
mimeTypes: mimeTypes,
|
|
140
|
+
isExternal: isExternal
|
|
136
141
|
};
|
|
137
142
|
//# sourceMappingURL=PredefinedFragments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["gql","displayName","variables","language","applyFor","_templateObject","_taggedTemplateLiteral","primaryNodeType","displayLanguage","displayLanguageSet","_templateObject2","parentNode","_templateObject3","aggregatedPublicationInfo","aggregatedPublicationInfoSubNodes","aggregatedPublicationInfoIncludeReference","_templateObject4","aggregatedPublicationInfoWithExistInLive","_templateObject5","operationSupport","_templateObject6","allProperties","_templateObject7","getProperties","getPropertiesNames","_templateObject8","installedModules","_templateObject9","siteLanguages","_templateObject10","displayableNode","_templateObject11","lockInfo","_templateObject12","subNodesCount","subNodesCountTypes","_templateObject13","childNodeTypes","_templateObject14","contentRestrictions","_templateObject15","siteHomePage","_templateObject16","nodeCacheRequiredFields","_templateObject17","nodeTypeDisplayName","_templateObject18","nodeTypeSubTypes","_templateObject19","mimeTypes","_templateObject20","isExternal","_templateObject21","PredefinedFragments"],"sources":["PredefinedFragments.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {DocumentNode} from 'graphql';\n\nexport type Fragment = {\n variables?: {\n [key: string]: string\n },\n applyFor: string\n gql: DocumentNode\n}\n\nexport const displayName: Fragment = {\n variables: {\n language: 'String!'\n },\n applyFor: 'node',\n gql: gql`fragment DisplayName on JCRNode {\n displayName(language:$language)\n }`\n};\n\nexport const primaryNodeType: Fragment = {\n variables: {\n displayLanguage: 'String!',\n displayLanguageSet: 'Boolean!'\n },\n applyFor: 'node',\n gql: gql`fragment NodeInfoPrimaryNodeType on JCRNode {\n primaryNodeType {\n name\n displayName(language: $displayLanguage) @include(if: $displayLanguageSet)\n icon\n }\n }`\n};\n\nexport const parentNode: Fragment = {\n applyFor: 'node',\n gql: gql`fragment ParentNodeInfo on JCRNode {\n parent {\n path\n name\n ...NodeCacheRequiredFields\n }\n }`\n};\n\nexport const aggregatedPublicationInfo: Fragment = {\n variables: {\n language: 'String!',\n aggregatedPublicationInfoSubNodes: 'Boolean',\n aggregatedPublicationInfoIncludeReference: 'Boolean'\n },\n applyFor: 'node',\n gql: gql`fragment AggregatedPublicationInfo on JCRNode {\n aggregatedPublicationInfo(language: $language, subNodes: $aggregatedPublicationInfoSubNodes, references:$aggregatedPublicationInfoIncludeReference) {\n publicationStatus\n }\n }`\n};\n\nexport const aggregatedPublicationInfoWithExistInLive: Fragment = {\n variables: {\n language: 'String!',\n aggregatedPublicationInfoSubNodes: 'Boolean',\n aggregatedPublicationInfoIncludeReference: 'Boolean'\n },\n applyFor: 'node',\n gql: gql`fragment AggregatedPublicationInfoWithExistsInLive on JCRNode {\n aggregatedPublicationInfo(language: $language, subNodes: $aggregatedPublicationInfoSubNodes, references:$aggregatedPublicationInfoIncludeReference) {\n publicationStatus\n existsInLive\n }\n }`\n};\n\nexport const operationSupport: Fragment = {\n applyFor: 'node',\n gql: gql`fragment OperationSupport on JCRNode {\n operationsSupport {\n lock\n markForDeletion\n publication\n }\n }`\n};\n\nexport const allProperties: Fragment = {\n variables: {\n language: 'String!'\n },\n applyFor: 'node',\n gql: gql`fragment NodeAllProperties on JCRNode {\n properties(language:$language) {\n name\n value\n values\n }\n }`\n};\n\nexport const getProperties: Fragment = {\n variables: {\n language: 'String!',\n getPropertiesNames: '[String!]!'\n },\n applyFor: 'node',\n gql: gql`fragment NodeProperties on JCRNode {\n properties(names: $getPropertiesNames, language: $language) {\n name\n value\n values\n }\n }`\n};\n\nexport const installedModules: Fragment = {\n applyFor: 'node',\n gql: gql`fragment SiteInstalledModules on JCRNode {\n site {\n installedModulesWithAllDependencies\n ...NodeCacheRequiredFields\n }\n }`\n};\n\nexport const siteLanguages: Fragment = {\n applyFor: 'node',\n gql: gql`fragment SiteLanguages on JCRNode {\n site {\n defaultLanguage\n ...NodeCacheRequiredFields\n languages {\n displayName\n language\n activeInEdit\n }\n }\n }`\n};\n\nexport const displayableNode: Fragment = {\n applyFor: 'node',\n gql: gql`fragment DisplayableNodePath on JCRNode {\n displayableNode {\n path\n ...NodeCacheRequiredFields\n }\n }`\n};\n\nexport const lockInfo: Fragment = {\n applyFor: 'node',\n gql: gql`fragment LockInfo on JCRNode {\n lockOwner: property(name: \"jcr:lockOwner\") {\n value\n }\n lockTypes: property(name: \"j:lockTypes\") {\n values\n }\n }`\n};\n\nexport const subNodesCount: Fragment = {\n variables: {\n subNodesCountTypes: '[String!]!'\n },\n applyFor: 'node',\n gql: gql`fragment SubNodesCount on JCRNode {\n subNodes: children(typesFilter: {types: $subNodesCountTypes, multi: ANY}) {\n pageInfo {\n totalCount\n }\n }\n }`\n};\n\nexport const childNodeTypes: Fragment = {\n applyFor: 'node',\n gql: gql`fragment AllowedChildNodeType on JCRNode {\n allowedChildNodeTypes(includeSubTypes: false) {\n name\n }\n }`\n};\n\nexport const contentRestrictions: Fragment = {\n applyFor: 'node',\n gql: gql`fragment ContentRestriction on JCRNode {\n contributeTypes: property(name: \"j:contributeTypes\") {\n values\n }\n ancestors(fieldFilter: {filters: {evaluation: NOT_EMPTY, fieldName: \"contributeTypes\"}}) {\n ...NodeCacheRequiredFields\n contributeTypes : property(name: \"j:contributeTypes\") {\n values\n }\n }\n }`\n};\n\nexport const siteHomePage: Fragment = {\n applyFor: 'node',\n gql: gql`fragment NodeSiteHomePage on JCRNode {\n children(typesFilter:{types:[\"jnt:page\"]}, propertiesFilter:{filters:[{property:\"j:isHomePage\", value:\"true\" }]}) {\n nodes {\n path\n ...NodeCacheRequiredFields\n }\n }\n }`\n};\n\nexport const nodeCacheRequiredFields: Fragment = {\n applyFor: 'node',\n gql: gql`fragment NodeCacheRequiredFields on JCRNode {\n uuid\n workspace\n path\n }`\n};\n\nexport const nodeTypeDisplayName: Fragment = {\n variables: {\n language: 'String!'\n },\n applyFor: 'nodeType',\n gql: gql`fragment NodeTypeDisplayName on JCRNodeType {\n displayName(language:$language)\n }`\n};\n\nexport const nodeTypeSubTypes: Fragment = {\n variables: {\n language: 'String!'\n },\n applyFor: 'nodeType',\n gql: gql`fragment NodeTypeSubTypes on JCRNodeType {\n subTypes {\n nodes {\n name\n displayName(language:$language)\n abstract\n mixin\n }\n }\n }`\n};\n\nexport const mimeTypes: Fragment = {\n applyFor: 'node',\n gql: gql`fragment NodeInfoResourceNode on JCRNode {\n resourceChildren: children(names: [\"jcr:content\"]) {\n nodes {\n ...NodeCacheRequiredFields\n mimeType: property(name: \"jcr:mimeType\") {\n value\n }\n }\n }\n }`\n};\n\nexport const isExternal: Fragment = {\n applyFor: 'node',\n gql: gql`fragment External on JCRNode {\n isExternal\n }`\n};\n\nexport const PredefinedFragments: {[key:string]: Fragment} = {\n displayName,\n primaryNodeType,\n parentNode,\n aggregatedPublicationInfo,\n operationSupport,\n allProperties,\n getProperties,\n installedModules,\n siteLanguages,\n displayableNode,\n lockInfo,\n subNodesCount,\n contentRestr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B,GAAG;EAChC/C,QAAQ,EAAE,MAAM;EAChBJ,GAAG,EAAEA,GAAG,CAAAoD,iBAAA,KAAAA,iBAAA,GAAA9C,sBAAA;AAGZ,CAAC;AAED,OAAO,IAAM+C,mBAA6C,GAAG;EACzDpD,WAAW,EAAXA,WAAW;EACXM,eAAe,EAAfA,eAAe;EACfI,UAAU,EAAVA,UAAU;EACVE,yBAAyB,EAAzBA,yBAAyB;EACzBM,gBAAgB,EAAhBA,gBAAgB;EAChBE,aAAa,EAAbA,aAAa;EACbE,aAAa,EAAbA,aAAa;EACbG,gBAAgB,EAAhBA,gBAAgB;EAChBE,aAAa,EAAbA,aAAa;EACbE,eAAe,EAAfA,eAAe;EACfE,QAAQ,EAARA,QAAQ;EACRE,aAAa,EAAbA,aAAa;EACbK,mBAAmB,EAAnBA,mBAAmB;EACnBE,YAAY,EAAZA,YAAY;EACZE,uBAAuB,EAAvBA,uBAAuB;EACvBE,mBAAmB,EAAnBA,mBAAmB;EACnBE,gBAAgB,EAAhBA,gBAAgB;EAChBE,SAAS,EAATA,SAAS;EACTE,UAAU,EAAVA;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["encodeName","name","btoa","replace"],"sources":["encodeName.ts"],"sourcesContent":["export const encodeName = (name: string) => 'encoded_' + btoa(name).replace(/=/g, '');\n"],"mappings":"AAAA,OAAO,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY;EAAA,OAAK,UAAU,GAAGC,IAAI,CAACD,IAAI,CAAC,CAACE,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;AAAA"}
|