@jahia/data-helper 1.1.7 → 1.1.8

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 (265) hide show
  1. package/{dist/esm → esm}/fragments/PredefinedFragments.js +1 -1
  2. package/esm/fragments/PredefinedFragments.js.map +1 -0
  3. package/esm/fragments/encodeName.js.map +1 -0
  4. package/{dist/esm → esm}/fragments/fragments.utils.js +34 -25
  5. package/esm/fragments/fragments.utils.js.map +1 -0
  6. package/esm/fragments/getIsNodeTypeFragment.js +30 -0
  7. package/esm/fragments/getIsNodeTypeFragment.js.map +1 -0
  8. package/{dist/esm → esm}/fragments/getPermissionFragment.js +10 -5
  9. package/esm/fragments/getPermissionFragment.js.map +1 -0
  10. package/esm/fragments/index.js +3 -0
  11. package/esm/fragments/index.js.map +1 -0
  12. package/esm/hooks/index.js +6 -0
  13. package/{dist/esm → esm}/hooks/index.js.map +1 -1
  14. package/esm/hooks/useContentPreview/index.js +2 -0
  15. package/esm/hooks/useContentPreview/index.js.map +1 -0
  16. package/{dist/esm → esm}/hooks/useContentPreview/useContentPreview.gql-queries.js +2 -2
  17. package/{dist/esm → esm}/hooks/useContentPreview/useContentPreview.gql-queries.js.map +1 -1
  18. package/{dist/esm → esm}/hooks/useContentPreview/useContentPreview.js +2 -2
  19. package/esm/hooks/useContentPreview/useContentPreview.js.map +1 -0
  20. package/esm/hooks/useContentPreview/useContentPreview.spec.js +35 -0
  21. package/esm/hooks/useContentPreview/useContentPreview.spec.js.map +1 -0
  22. package/esm/hooks/useDeepCompareMemo/index.js +2 -0
  23. package/esm/hooks/useDeepCompareMemo/index.js.map +1 -0
  24. package/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +1 -0
  25. package/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js +36 -0
  26. package/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js.map +1 -0
  27. package/{dist/esm → esm}/hooks/useNodeChecks/index.js +1 -1
  28. package/esm/hooks/useNodeChecks/index.js.map +1 -0
  29. package/{dist/esm → esm}/hooks/useNodeChecks/useNodeChecks.js +14 -10
  30. package/esm/hooks/useNodeChecks/useNodeChecks.js.map +1 -0
  31. package/esm/hooks/useNodeChecks/useNodeChecks.spec.js +184 -0
  32. package/esm/hooks/useNodeChecks/useNodeChecks.spec.js.map +1 -0
  33. package/{dist/esm → esm}/hooks/useNodeInfo/index.js +1 -1
  34. package/esm/hooks/useNodeInfo/index.js.map +1 -0
  35. package/esm/hooks/useNodeInfo/useMemoRequest.js +50 -0
  36. package/esm/hooks/useNodeInfo/useMemoRequest.js.map +1 -0
  37. package/{dist/esm → esm}/hooks/useNodeInfo/useNodeInfo.gql-queries.js +16 -22
  38. package/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -0
  39. package/{dist/esm → esm}/hooks/useNodeInfo/useNodeInfo.js +26 -37
  40. package/esm/hooks/useNodeInfo/useNodeInfo.js.map +1 -0
  41. package/esm/hooks/useNodeInfo/useNodeInfo.spec.js +453 -0
  42. package/esm/hooks/useNodeInfo/useNodeInfo.spec.js.map +1 -0
  43. package/{dist/esm → esm}/hooks/useNodeInfo/useNodeInfo.utils.js +10 -3
  44. package/esm/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -0
  45. package/esm/hooks/useSchemaFields/index.js +2 -0
  46. package/esm/hooks/useSchemaFields/index.js.map +1 -0
  47. package/{dist/esm → esm}/hooks/useSchemaFields/useSchemaFields.gql-queries.js +1 -1
  48. package/{dist/esm → esm}/hooks/useSchemaFields/useSchemaFields.gql-queries.js.map +1 -1
  49. package/{dist/esm → esm}/hooks/useSchemaFields/useSchemaFields.js +2 -2
  50. package/esm/hooks/useSchemaFields/useSchemaFields.js.map +1 -0
  51. package/{dist/esm → esm}/hooks/useSiteInfo/index.js +1 -1
  52. package/esm/hooks/useSiteInfo/index.js.map +1 -0
  53. package/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js +6 -0
  54. package/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +1 -0
  55. package/{dist/esm → esm}/hooks/useSiteInfo/useSiteInfo.js +8 -12
  56. package/esm/hooks/useSiteInfo/useSiteInfo.js.map +1 -0
  57. package/esm/hooks/useSiteInfo/useSiteInfo.spec.js +65 -0
  58. package/esm/hooks/useSiteInfo/useSiteInfo.spec.js.map +1 -0
  59. package/{dist/esm → esm}/hooks/useTreeEntries/index.js +1 -1
  60. package/esm/hooks/useTreeEntries/index.js.map +1 -0
  61. package/{dist/esm → esm}/hooks/useTreeEntries/useTreeEntries.gql-queries.js +2 -2
  62. package/{dist/esm → esm}/hooks/useTreeEntries/useTreeEntries.gql-queries.js.map +1 -1
  63. package/{dist/esm → esm}/hooks/useTreeEntries/useTreeEntries.js +24 -8
  64. package/esm/hooks/useTreeEntries/useTreeEntries.js.map +1 -0
  65. package/esm/hooks/useTreeEntries/useTreeEntries.spec.js +47 -0
  66. package/esm/hooks/useTreeEntries/useTreeEntries.spec.js.map +1 -0
  67. package/esm/index.js +4 -0
  68. package/esm/index.js.map +1 -0
  69. package/{dist/esm → esm}/legacy/Picker.gql-fragments.js +1 -1
  70. package/{dist/esm → esm}/legacy/Picker.gql-fragments.js.map +1 -1
  71. package/{dist/esm → esm}/legacy/Picker.js +135 -102
  72. package/esm/legacy/Picker.js.map +1 -0
  73. package/esm/legacy/index.js +3 -0
  74. package/esm/legacy/index.js.map +1 -0
  75. package/{dist/js → js}/fragments/PredefinedFragments.js +22 -22
  76. package/js/fragments/PredefinedFragments.js.map +1 -0
  77. package/js/fragments/encodeName.js.map +1 -0
  78. package/{dist/js → js}/fragments/fragments.utils.js +36 -27
  79. package/js/fragments/fragments.utils.js.map +1 -0
  80. package/js/fragments/getIsNodeTypeFragment.js +39 -0
  81. package/js/fragments/getIsNodeTypeFragment.js.map +1 -0
  82. package/js/fragments/getPermissionFragment.js +53 -0
  83. package/js/fragments/getPermissionFragment.js.map +1 -0
  84. package/{dist/js → js}/fragments/index.js.map +1 -1
  85. package/{dist/js → js}/hooks/index.js.map +1 -1
  86. package/{dist/js → js}/hooks/useContentPreview/index.js.map +1 -1
  87. package/js/hooks/useContentPreview/useContentPreview.gql-queries.js +14 -0
  88. package/js/hooks/useContentPreview/useContentPreview.gql-queries.js.map +1 -0
  89. package/{dist/js → js}/hooks/useContentPreview/useContentPreview.js +2 -2
  90. package/js/hooks/useContentPreview/useContentPreview.js.map +1 -0
  91. package/js/hooks/useContentPreview/useContentPreview.spec.js +37 -0
  92. package/js/hooks/useContentPreview/useContentPreview.spec.js.map +1 -0
  93. package/{dist/js → js}/hooks/useDeepCompareMemo/index.js.map +1 -1
  94. package/{dist/js → js}/hooks/useDeepCompareMemo/useDeepCompareMemo.js +1 -1
  95. package/js/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +1 -0
  96. package/js/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js +38 -0
  97. package/js/hooks/useDeepCompareMemo/useDeepCompareMemo.spec.js.map +1 -0
  98. package/{dist/js → js}/hooks/useNodeChecks/index.js.map +1 -1
  99. package/{dist/js → js}/hooks/useNodeChecks/useNodeChecks.js +16 -13
  100. package/js/hooks/useNodeChecks/useNodeChecks.js.map +1 -0
  101. package/js/hooks/useNodeChecks/useNodeChecks.spec.js +187 -0
  102. package/js/hooks/useNodeChecks/useNodeChecks.spec.js.map +1 -0
  103. package/{dist/js → js}/hooks/useNodeInfo/index.js.map +1 -1
  104. package/js/hooks/useNodeInfo/useMemoRequest.js +57 -0
  105. package/js/hooks/useNodeInfo/useMemoRequest.js.map +1 -0
  106. package/{dist/js → js}/hooks/useNodeInfo/useNodeInfo.gql-queries.js +18 -24
  107. package/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +1 -0
  108. package/{dist/js → js}/hooks/useNodeInfo/useNodeInfo.js +26 -37
  109. package/js/hooks/useNodeInfo/useNodeInfo.js.map +1 -0
  110. package/js/hooks/useNodeInfo/useNodeInfo.spec.js +456 -0
  111. package/js/hooks/useNodeInfo/useNodeInfo.spec.js.map +1 -0
  112. package/js/hooks/useNodeInfo/useNodeInfo.utils.js +63 -0
  113. package/js/hooks/useNodeInfo/useNodeInfo.utils.js.map +1 -0
  114. package/{dist/js → js}/hooks/useSchemaFields/index.js.map +1 -1
  115. package/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js +13 -0
  116. package/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js.map +1 -0
  117. package/{dist/js → js}/hooks/useSchemaFields/useSchemaFields.js +2 -2
  118. package/js/hooks/useSchemaFields/useSchemaFields.js.map +1 -0
  119. package/{dist/js → js}/hooks/useSiteInfo/index.js.map +1 -1
  120. package/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js +14 -0
  121. package/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +1 -0
  122. package/js/hooks/useSiteInfo/useSiteInfo.js +42 -0
  123. package/js/hooks/useSiteInfo/useSiteInfo.js.map +1 -0
  124. package/js/hooks/useSiteInfo/useSiteInfo.spec.js +67 -0
  125. package/js/hooks/useSiteInfo/useSiteInfo.spec.js.map +1 -0
  126. package/{dist/js → js}/hooks/useTreeEntries/index.js.map +1 -1
  127. package/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js +14 -0
  128. package/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js.map +1 -0
  129. package/js/hooks/useTreeEntries/useTreeEntries.js +117 -0
  130. package/js/hooks/useTreeEntries/useTreeEntries.js.map +1 -0
  131. package/js/hooks/useTreeEntries/useTreeEntries.spec.js +49 -0
  132. package/js/hooks/useTreeEntries/useTreeEntries.spec.js.map +1 -0
  133. package/{dist/js → js}/index.js.map +1 -1
  134. package/js/legacy/Picker.gql-fragments.js +29 -0
  135. package/js/legacy/Picker.gql-fragments.js.map +1 -0
  136. package/js/legacy/Picker.js +396 -0
  137. package/js/legacy/Picker.js.map +1 -0
  138. package/{dist/js → js}/legacy/index.js.map +1 -1
  139. package/package.json +20 -12
  140. package/.autorc +0 -10
  141. package/.eslintrc +0 -8
  142. package/CHANGELOG.md +0 -508
  143. package/build.mjs +0 -9
  144. package/dist/esm/fragments/PredefinedFragments.js.map +0 -1
  145. package/dist/esm/fragments/encodeName.js.map +0 -1
  146. package/dist/esm/fragments/fragments.utils.js.map +0 -1
  147. package/dist/esm/fragments/getIsNodeTypeFragment.js +0 -26
  148. package/dist/esm/fragments/getIsNodeTypeFragment.js.map +0 -1
  149. package/dist/esm/fragments/getPermissionFragment.js.map +0 -1
  150. package/dist/esm/fragments/getSubNodesCountFragment.js +0 -24
  151. package/dist/esm/fragments/getSubNodesCountFragment.js.map +0 -1
  152. package/dist/esm/fragments/index.js +0 -3
  153. package/dist/esm/fragments/index.js.map +0 -1
  154. package/dist/esm/hooks/index.js +0 -6
  155. package/dist/esm/hooks/useContentPreview/index.js +0 -2
  156. package/dist/esm/hooks/useContentPreview/index.js.map +0 -1
  157. package/dist/esm/hooks/useContentPreview/useContentPreview.js.map +0 -1
  158. package/dist/esm/hooks/useDeepCompareMemo/index.js +0 -2
  159. package/dist/esm/hooks/useDeepCompareMemo/index.js.map +0 -1
  160. package/dist/esm/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +0 -1
  161. package/dist/esm/hooks/useNodeChecks/index.js.map +0 -1
  162. package/dist/esm/hooks/useNodeChecks/useNodeChecks.js.map +0 -1
  163. package/dist/esm/hooks/useNodeInfo/index.js.map +0 -1
  164. package/dist/esm/hooks/useNodeInfo/useMemoRequest.js +0 -43
  165. package/dist/esm/hooks/useNodeInfo/useMemoRequest.js.map +0 -1
  166. package/dist/esm/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +0 -1
  167. package/dist/esm/hooks/useNodeInfo/useNodeInfo.js.map +0 -1
  168. package/dist/esm/hooks/useNodeInfo/useNodeInfo.utils.js.map +0 -1
  169. package/dist/esm/hooks/useSchemaFields/index.js +0 -2
  170. package/dist/esm/hooks/useSchemaFields/index.js.map +0 -1
  171. package/dist/esm/hooks/useSchemaFields/useSchemaFields.js.map +0 -1
  172. package/dist/esm/hooks/useSiteInfo/index.js.map +0 -1
  173. package/dist/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js +0 -6
  174. package/dist/esm/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +0 -1
  175. package/dist/esm/hooks/useSiteInfo/useSiteInfo.js.map +0 -1
  176. package/dist/esm/hooks/useTreeEntries/index.js.map +0 -1
  177. package/dist/esm/hooks/useTreeEntries/useTreeEntries.js.map +0 -1
  178. package/dist/esm/index.js +0 -4
  179. package/dist/esm/index.js.map +0 -1
  180. package/dist/esm/legacy/Picker.js.map +0 -1
  181. package/dist/esm/legacy/index.js +0 -3
  182. package/dist/esm/legacy/index.js.map +0 -1
  183. package/dist/js/fragments/PredefinedFragments.js.map +0 -1
  184. package/dist/js/fragments/encodeName.js.map +0 -1
  185. package/dist/js/fragments/fragments.utils.js.map +0 -1
  186. package/dist/js/fragments/getIsNodeTypeFragment.js +0 -35
  187. package/dist/js/fragments/getIsNodeTypeFragment.js.map +0 -1
  188. package/dist/js/fragments/getPermissionFragment.js +0 -48
  189. package/dist/js/fragments/getPermissionFragment.js.map +0 -1
  190. package/dist/js/fragments/getSubNodesCountFragment.js +0 -33
  191. package/dist/js/fragments/getSubNodesCountFragment.js.map +0 -1
  192. package/dist/js/hooks/useContentPreview/useContentPreview.gql-queries.js +0 -14
  193. package/dist/js/hooks/useContentPreview/useContentPreview.gql-queries.js.map +0 -1
  194. package/dist/js/hooks/useContentPreview/useContentPreview.js.map +0 -1
  195. package/dist/js/hooks/useDeepCompareMemo/useDeepCompareMemo.js.map +0 -1
  196. package/dist/js/hooks/useNodeChecks/useNodeChecks.js.map +0 -1
  197. package/dist/js/hooks/useNodeInfo/useMemoRequest.js +0 -50
  198. package/dist/js/hooks/useNodeInfo/useMemoRequest.js.map +0 -1
  199. package/dist/js/hooks/useNodeInfo/useNodeInfo.gql-queries.js.map +0 -1
  200. package/dist/js/hooks/useNodeInfo/useNodeInfo.js.map +0 -1
  201. package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js +0 -57
  202. package/dist/js/hooks/useNodeInfo/useNodeInfo.utils.js.map +0 -1
  203. package/dist/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js +0 -13
  204. package/dist/js/hooks/useSchemaFields/useSchemaFields.gql-queries.js.map +0 -1
  205. package/dist/js/hooks/useSchemaFields/useSchemaFields.js.map +0 -1
  206. package/dist/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js +0 -14
  207. package/dist/js/hooks/useSiteInfo/useSiteInfo.gql-queries.js.map +0 -1
  208. package/dist/js/hooks/useSiteInfo/useSiteInfo.js +0 -47
  209. package/dist/js/hooks/useSiteInfo/useSiteInfo.js.map +0 -1
  210. package/dist/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js +0 -14
  211. package/dist/js/hooks/useTreeEntries/useTreeEntries.gql-queries.js.map +0 -1
  212. package/dist/js/hooks/useTreeEntries/useTreeEntries.js +0 -102
  213. package/dist/js/hooks/useTreeEntries/useTreeEntries.js.map +0 -1
  214. package/dist/js/legacy/Picker.gql-fragments.js +0 -29
  215. package/dist/js/legacy/Picker.gql-fragments.js.map +0 -1
  216. package/dist/js/legacy/Picker.js +0 -363
  217. package/dist/js/legacy/Picker.js.map +0 -1
  218. package/dist/types/fragments/PredefinedFragments.d.ts +0 -31
  219. package/dist/types/fragments/encodeName.d.ts +0 -1
  220. package/dist/types/fragments/fragments.utils.d.ts +0 -6
  221. package/dist/types/fragments/getIsNodeTypeFragment.d.ts +0 -10
  222. package/dist/types/fragments/getPermissionFragment.d.ts +0 -14
  223. package/dist/types/fragments/getSubNodesCountFragment.d.ts +0 -8
  224. package/dist/types/hooks/useContentPreview/useContentPreview.d.ts +0 -25
  225. package/dist/types/hooks/useContentPreview/useContentPreview.gql-queries.d.ts +0 -1
  226. package/dist/types/hooks/useDeepCompareMemo/useDeepCompareMemo.d.ts +0 -1
  227. package/dist/types/hooks/useNodeChecks/useNodeChecks.d.ts +0 -18
  228. package/dist/types/hooks/useNodeInfo/useMemoRequest.d.ts +0 -6
  229. package/dist/types/hooks/useNodeInfo/useNodeInfo.d.ts +0 -33
  230. package/dist/types/hooks/useNodeInfo/useNodeInfo.gql-queries.d.ts +0 -33
  231. package/dist/types/hooks/useNodeInfo/useNodeInfo.utils.d.ts +0 -12
  232. package/dist/types/hooks/useSchemaFields/useSchemaFields.d.ts +0 -5
  233. package/dist/types/hooks/useSchemaFields/useSchemaFields.gql-queries.d.ts +0 -1
  234. package/dist/types/hooks/useSiteInfo/useSiteInfo.d.ts +0 -63
  235. package/dist/types/hooks/useSiteInfo/useSiteInfo.gql-queries.d.ts +0 -1
  236. package/dist/types/hooks/useTreeEntries/useTreeEntries.d.ts +0 -39
  237. package/dist/types/hooks/useTreeEntries/useTreeEntries.gql-queries.d.ts +0 -1
  238. package/dist/types/legacy/Picker.d.ts +0 -84
  239. package/dist/types/legacy/Picker.gql-fragments.d.ts +0 -17
  240. package/tsconfig.json +0 -27
  241. /package/{dist/esm → esm}/fragments/encodeName.js +0 -0
  242. /package/{dist/types → esm}/fragments/index.d.ts +0 -0
  243. /package/{dist/types → esm}/hooks/index.d.ts +0 -0
  244. /package/{dist/types → esm}/hooks/useContentPreview/index.d.ts +0 -0
  245. /package/{dist/types → esm}/hooks/useDeepCompareMemo/index.d.ts +0 -0
  246. /package/{dist/esm → esm}/hooks/useDeepCompareMemo/useDeepCompareMemo.js +0 -0
  247. /package/{dist/types → esm}/hooks/useNodeChecks/index.d.ts +0 -0
  248. /package/{dist/types → esm}/hooks/useNodeInfo/index.d.ts +0 -0
  249. /package/{dist/types → esm}/hooks/useSchemaFields/index.d.ts +0 -0
  250. /package/{dist/types → esm}/hooks/useSiteInfo/index.d.ts +0 -0
  251. /package/{dist/types → esm}/hooks/useTreeEntries/index.d.ts +0 -0
  252. /package/{dist/types → esm}/index.d.ts +0 -0
  253. /package/{dist/types → esm}/legacy/index.d.ts +0 -0
  254. /package/{dist/js → js}/fragments/encodeName.js +0 -0
  255. /package/{dist/js → js}/fragments/index.js +0 -0
  256. /package/{dist/js → js}/hooks/index.js +0 -0
  257. /package/{dist/js → js}/hooks/useContentPreview/index.js +0 -0
  258. /package/{dist/js → js}/hooks/useDeepCompareMemo/index.js +0 -0
  259. /package/{dist/js → js}/hooks/useNodeChecks/index.js +0 -0
  260. /package/{dist/js → js}/hooks/useNodeInfo/index.js +0 -0
  261. /package/{dist/js → js}/hooks/useSchemaFields/index.js +0 -0
  262. /package/{dist/js → js}/hooks/useSiteInfo/index.js +0 -0
  263. /package/{dist/js → js}/hooks/useTreeEntries/index.js +0 -0
  264. /package/{dist/js → js}/index.js +0 -0
  265. /package/{dist/js → js}/legacy/index.js +0 -0
package/CHANGELOG.md DELETED
@@ -1,508 +0,0 @@
1
- # (Mon Nov 27 2023)
2
-
3
- #### 🐛 Bug Fix
4
-
5
- - BACKLOG-21921: Fixed invalid merge with subNodesCount [#254](https://github.com/Jahia/javascript-components/pull/254) ([@tdraier](https://github.com/tdraier))
6
-
7
- #### Authors: 1
8
-
9
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
10
-
11
- ---
12
-
13
- # (Fri Nov 17 2023)
14
-
15
- #### 🐛 Bug Fix
16
-
17
- - 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))
18
-
19
- #### Authors: 1
20
-
21
- - Cedric Mailleux ([@cedmail](https://github.com/cedmail))
22
-
23
- ---
24
-
25
- # (Tue Sep 12 2023)
26
-
27
- #### 🐛 Bug Fix
28
-
29
- - BACKLOG-21525: fixed query refetch [#252](https://github.com/Jahia/javascript-components/pull/252) ([@tdraier](https://github.com/tdraier))
30
-
31
- #### Authors: 1
32
-
33
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
34
-
35
- ---
36
-
37
- # (Tue May 30 2023)
38
-
39
- #### 🐛 Bug Fix
40
-
41
- - BACKLOG-21054: Fix legacy picker for vanity urls [#247](https://github.com/Jahia/javascript-components/pull/247) ([@gflores-jahia](https://github.com/gflores-jahia))
42
-
43
- #### Authors: 1
44
-
45
- - Geofrey Flores ([@gflores-jahia](https://github.com/gflores-jahia))
46
-
47
- ---
48
-
49
- # (Thu May 25 2023)
50
-
51
- #### 🐛 Bug Fix
52
-
53
- - TECH-233: Removed unused dependency [#246](https://github.com/Jahia/javascript-components/pull/246) ([@tdraier](https://github.com/tdraier))
54
-
55
- #### Authors: 1
56
-
57
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
58
-
59
- ---
60
-
61
- # (Wed May 24 2023)
62
-
63
- #### 🐛 Bug Fix
64
-
65
- - QA-14773: Return result from cache if available [#245](https://github.com/Jahia/javascript-components/pull/245) ([@tdraier](https://github.com/tdraier))
66
-
67
- #### Authors: 1
68
-
69
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
70
-
71
- ---
72
-
73
- # (Wed May 24 2023)
74
-
75
- #### 🚀 Enhancement
76
-
77
- - TECH-233: Convert package to typescript [#243](https://github.com/Jahia/javascript-components/pull/243) ([@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: ensure we return loading : true if query has changed [#244](https://github.com/Jahia/javascript-components/pull/244) ([@cedmail](https://github.com/cedmail))
90
- - TECH-233: Convert package to typescript [#237](https://github.com/Jahia/javascript-components/pull/237) ([@tdraier](https://github.com/tdraier))
91
-
92
- #### Authors: 2
93
-
94
- - Cedric Mailleux ([@cedmail](https://github.com/cedmail))
95
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
96
-
97
- ---
98
-
99
- # (Thu Apr 20 2023)
100
-
101
- #### 🐛 Bug Fix
102
-
103
- - Fix linter issues [#234](https://github.com/Jahia/javascript-components/pull/234) ([@cedmail](https://github.com/cedmail))
104
- - 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))
105
-
106
- #### Authors: 1
107
-
108
- - Cedric Mailleux ([@cedmail](https://github.com/cedmail))
109
-
110
- ---
111
-
112
- # (Fri Oct 28 2022)
113
-
114
- #### 🐛 Bug Fix
115
-
116
- - QA 14194 [#221](https://github.com/Jahia/javascript-components/pull/221) ([@tdraier](https://github.com/tdraier))
117
- - 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))
118
-
119
- #### Authors: 2
120
-
121
- - Alex Karmanov ([@AKarmanov](https://github.com/AKarmanov))
122
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
123
-
124
- ---
125
-
126
- # (Tue Sep 06 2022)
127
-
128
- #### 🐛 Bug Fix
129
-
130
- - BACKLOG-19919: Remove unnecessary ref [#218](https://github.com/Jahia/javascript-components/pull/218) ([@tdraier](https://github.com/tdraier))
131
-
132
- #### Authors: 1
133
-
134
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
135
-
136
- ---
137
-
138
- # (Mon Sep 05 2022)
139
-
140
- #### 🐛 Bug Fix
141
-
142
- - BACKLOG-19919: Use descendants and recursion filter for useTreeEntries [#217](https://github.com/Jahia/javascript-components/pull/217) ([@tdraier](https://github.com/tdraier))
143
-
144
- #### Authors: 1
145
-
146
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
147
-
148
- ---
149
-
150
- # (Mon Mar 28 2022)
151
-
152
- #### 🐛 Bug Fix
153
-
154
- - TECH-320: Add missing cache fields [#210](https://github.com/Jahia/javascript-components/pull/210) ([@tdraier](https://github.com/tdraier))
155
-
156
- #### Authors: 1
157
-
158
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
159
-
160
- ---
161
-
162
- # (Thu Apr 29 2021)
163
-
164
- #### 🐛 Bug Fix
165
-
166
- - BACKLOG-15786 : Fixed site permission check [#195](https://github.com/Jahia/javascript-components/pull/195) ([@tdraier](https://github.com/tdraier))
167
-
168
- #### Authors: 1
169
-
170
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
171
-
172
- ---
173
-
174
- # (Wed Apr 21 2021)
175
-
176
- #### 🐛 Bug Fix
177
-
178
- - BACKLOG-15786: Check site permissions [#194](https://github.com/Jahia/javascript-components/pull/194) ([@tdraier](https://github.com/tdraier))
179
-
180
- #### Authors: 1
181
-
182
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
183
-
184
- ---
185
-
186
- # (Thu Mar 18 2021)
187
-
188
- #### 🐛 Bug Fix
189
-
190
- - 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))
191
-
192
- #### Authors: 1
193
-
194
- - [@XiangYuHe](https://github.com/XiangYuHe)
195
-
196
- ---
197
-
198
- # (Mon Dec 14 2020)
199
-
200
- #### 💥 Breaking Change
201
-
202
- - Bump graphql/graphql-tag for webpack5 compilation [#182](https://github.com/Jahia/javascript-components/pull/182) ([@tdraier](https://github.com/tdraier))
203
-
204
- #### Authors: 1
205
-
206
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
207
-
208
- ---
209
-
210
- # (Wed Nov 04 2020)
211
-
212
- #### 🐛 Bug Fix
213
-
214
- - QA-13379: Avoid error if site does not exist [#177](https://github.com/Jahia/javascript-components/pull/177) ([@tdraier](https://github.com/tdraier))
215
-
216
- #### Authors: 1
217
-
218
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
219
-
220
- ---
221
-
222
- # (Tue Sep 08 2020)
223
-
224
- #### 🐛 Bug Fix
225
-
226
- - QA-13071: Ignore data fetching errors when getting site info [#169](https://github.com/Jahia/javascript-components/pull/169) ([@tdraier](https://github.com/tdraier))
227
- - 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))
228
-
229
- #### Authors: 1
230
-
231
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
232
-
233
- ---
234
-
235
- # (Wed Jul 29 2020)
236
-
237
- #### 🐛 Bug Fix
238
-
239
- - QA-13044 [#155](https://github.com/Jahia/javascript-components/pull/155) ([@Yousria](https://github.com/Yousria))
240
- - QA-13044 : remove usage of useSchemaFields to increase performances [#152](https://github.com/Jahia/javascript-components/pull/152) ([@Yousria](https://github.com/Yousria))
241
-
242
- #### Authors: 1
243
-
244
- - Yousria ([@Yousria](https://github.com/Yousria))
245
-
246
- ---
247
-
248
- # (Wed Jul 22 2020)
249
-
250
- #### 🐛 Bug Fix
251
-
252
- - QA-13044 [#155](https://github.com/Jahia/javascript-components/pull/155) ([@Yousria](https://github.com/Yousria))
253
-
254
- #### Authors: 1
255
-
256
- - Yousria ([@Yousria](https://github.com/Yousria))
257
-
258
- ---
259
-
260
- # (Tue Jul 21 2020)
261
-
262
- #### 🐛 Bug Fix
263
-
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
- # (Fri Jun 12 2020)
273
-
274
- #### 🐛 Bug Fix
275
-
276
- - QA-12920 : retrieve property existsInLive in aggregatedPublicationInf… [#148](https://github.com/Jahia/javascript-components/pull/148) ([@Yousria](https://github.com/Yousria))
277
-
278
- #### Authors: 1
279
-
280
- - Yousria ([@Yousria](https://github.com/Yousria))
281
-
282
- ---
283
-
284
- # (Fri May 01 2020)
285
-
286
- #### 🐛 Bug Fix
287
-
288
- - BACKLOG-13212: correcly set node info options in useNodeChecks hook [#145](https://github.com/Jahia/javascript-components/pull/145) ([@jkevan](https://github.com/jkevan))
289
-
290
- #### Authors: 1
291
-
292
- - kevan Jahanshahi ([@jkevan](https://github.com/jkevan))
293
-
294
- ---
295
-
296
- # (Tue Mar 31 2020)
297
-
298
- #### 🐛 Bug Fix
299
-
300
- - BACKLOG-13021: Add options in aggregatedPublicationInfo [#136](https://github.com/Jahia/javascript-components/pull/136) ([@tdraier](https://github.com/tdraier))
301
-
302
- #### Authors: 1
303
-
304
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
305
-
306
- ---
307
-
308
- # (Mon Mar 30 2020)
309
-
310
- #### 🐛 Bug Fix
311
-
312
- - BACKLOG-12561 : hooks improvement and fixes [#135](https://github.com/Jahia/javascript-components/pull/135) ([@tdraier](https://github.com/tdraier))
313
-
314
- #### Authors: 1
315
-
316
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
317
-
318
- ---
319
-
320
- # (Thu Mar 26 2020)
321
-
322
- #### 🐛 Bug Fix
323
-
324
- - 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))
325
-
326
- #### Authors: 1
327
-
328
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
329
-
330
- ---
331
-
332
- # (Tue Mar 24 2020)
333
-
334
- #### 🐛 Bug Fix
335
-
336
- - BACKLOG-12561 : Different fixes in nodeInfo/nodeChecks [#128](https://github.com/Jahia/javascript-components/pull/128) ([@tdraier](https://github.com/tdraier))
337
-
338
- #### Authors: 1
339
-
340
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
341
-
342
- ---
343
-
344
- # (Mon Mar 23 2020)
345
-
346
- #### ⚠️ Pushed to master
347
-
348
- - BACKLOG-12877 : Allow single permission to be passed ([@tdraier](https://github.com/tdraier))
349
-
350
- #### Authors: 1
351
-
352
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
353
-
354
- ---
355
-
356
- # (Fri Mar 13 2020)
357
-
358
- #### 🐛 Bug Fix
359
-
360
- - BACKLOG-12764 : Make shallow copy of node before modifying it [#117](https://github.com/Jahia/javascript-components/pull/117) ([@tdraier](https://github.com/tdraier))
361
-
362
- #### Authors: 1
363
-
364
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
365
-
366
- ---
367
-
368
- # (Fri Mar 13 2020)
369
-
370
- #### 🐛 Bug Fix
371
-
372
- - BACKLOG-12764: Removed duplicate fragments. Improve useNodeInfo for permissions, nodetypes [#115](https://github.com/Jahia/javascript-components/pull/115) ([@tdraier](https://github.com/tdraier))
373
-
374
- #### Authors: 1
375
-
376
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
377
-
378
- ---
379
-
380
- # (Tue Mar 10 2020)
381
-
382
- #### 🐛 Bug Fix
383
-
384
- - 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))
385
-
386
- #### Authors: 1
387
-
388
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
389
-
390
- ---
391
-
392
- # (Mon Mar 09 2020)
393
-
394
- #### 🐛 Bug Fix
395
-
396
- - BACKLOG-12327 : Fixed query with multiple nodes [#111](https://github.com/Jahia/javascript-components/pull/111) ([@tdraier](https://github.com/tdraier))
397
-
398
- #### Authors: 1
399
-
400
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
401
-
402
- ---
403
-
404
- # (Mon Mar 09 2020)
405
-
406
- #### 🐛 Bug Fix
407
-
408
- - 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))
409
-
410
- #### Authors: 1
411
-
412
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
413
-
414
- ---
415
-
416
- # (Wed Mar 04 2020)
417
-
418
- #### 🐛 Bug Fix
419
-
420
- - BACKLOG-12327 : Fixes on useNodeInfo, menuAction, added useDeepCompareMemoize [#106](https://github.com/Jahia/javascript-components/pull/106) ([@tdraier](https://github.com/tdraier))
421
-
422
- #### Authors: 1
423
-
424
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
425
-
426
- ---
427
-
428
- # (Fri Feb 28 2020)
429
-
430
- #### 🐛 Bug Fix
431
-
432
- - BACKLOG-12161: Added more site info [#101](https://github.com/Jahia/javascript-components/pull/101) ([@tdraier](https://github.com/tdraier))
433
-
434
- #### Authors: 1
435
-
436
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
437
-
438
- ---
439
-
440
- # (Thu Feb 27 2020)
441
-
442
- #### 🐛 Bug Fix
443
-
444
- - 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))
445
-
446
- #### Authors: 1
447
-
448
- - Yousria ([@Yousria](https://github.com/Yousria))
449
-
450
- ---
451
-
452
- # (Thu Feb 27 2020)
453
-
454
- #### 🐛 Bug Fix
455
-
456
- - BACKLOG-12561 : reorganized hooks, added useNodeInfo and useNodeCheck… [#96](https://github.com/Jahia/javascript-components/pull/96) ([@tdraier](https://github.com/tdraier))
457
-
458
- #### Authors: 1
459
-
460
- - Thomas Draier ([@tdraier](https://github.com/tdraier))
461
-
462
- ---
463
-
464
- # (Thu Feb 13 2020)
465
-
466
- #### 🐛 Bug Fix
467
-
468
- - BACKLOG-12347: export legacy utils function (case sensitive) [#85](https://github.com/Jahia/javascript-components/pull/85) ([@FBerthelot](https://github.com/FBerthelot))
469
-
470
- #### Authors: 1
471
-
472
- - Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
473
-
474
- ---
475
-
476
- # (Thu Feb 13 2020)
477
-
478
- #### 🐛 Bug Fix
479
-
480
- - BACKLOG-12347: export legacy utils function [#83](https://github.com/Jahia/javascript-components/pull/83) ([@FBerthelot](https://github.com/FBerthelot))
481
-
482
- #### Authors: 1
483
-
484
- - Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
485
-
486
- ---
487
-
488
- # (Thu Feb 13 2020)
489
-
490
- #### 🐛 Bug Fix
491
-
492
- - BACKLOG-12347: Move logic from react-apollo to data-helper [#80](https://github.com/Jahia/javascript-components/pull/80) ([@FBerthelot](https://github.com/FBerthelot))
493
-
494
- #### Authors: 1
495
-
496
- - Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
497
-
498
- ---
499
-
500
- # (Wed Feb 12 2020)
501
-
502
- #### 🐛 Bug Fix
503
-
504
- - BACKLOG-12346: Add new data-helper project [#79](https://github.com/Jahia/javascript-components/pull/79) ([@FBerthelot](https://github.com/FBerthelot))
505
-
506
- #### Authors: 1
507
-
508
- - Florent Berthelot ([@FBerthelot](https://github.com/FBerthelot))
package/build.mjs DELETED
@@ -1,9 +0,0 @@
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 +0,0 @@
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","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 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 contentRestrictions,\n siteHomePage,\n nodeCacheRequiredFields,\n nodeTypeDisplayName,\n nodeTypeSubTypes,\n mimeTypes\n};\n"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,aAAa;AAW7B,OAAO,IAAMC,WAAqB,GAAG;EACjCC,SAAS,EAAE;IACPC,QAAQ,EAAE;EACd,CAAC;EACDC,QAAQ,EAAE,MAAM;EAChBJ,GAAG,EAAEA,GAAG,CAAAK,eAAA,KAAAA,eAAA,GAAAC,sBAAA;AAGZ,CAAC;AAED,OAAO,IAAMC,eAAyB,GAAG;EACrCL,SAAS,EAAE;IACPM,eAAe,EAAE,SAAS;IAC1BC,k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uB,EAAvBA,uBAAuB;EACvBE,mBAAmB,EAAnBA,mBAAmB;EACnBE,gBAAgB,EAAhBA,gBAAgB;EAChBE,SAAS,EAATA;AACJ,CAAC"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["parseType","PredefinedFragments","rfdc","clone","findParametersInDocument","doc","definitions","flatMap","def","findParametersInSelectionSet","selectionSet","queryCache","replaceFragmentsInDocument","fragments","key","name","value","map","f","gql","sort","join","clonedQuery","forEach","replaceFragmentsInSelectionSet","operationDefinition","selections","sel","arguments","filter","arg","kind","concat","findFragmentsInSelectionSet","document","_ref3","newFragmentsSpreads","removedFragmentSpreads","existing","find","definition","push","applyableFragments","frag","applyFor","fragment","newSpread","allVariables","reduce","result","n","_objectSpread","variables","Object","entries","_ref","_ref2","_slicedToArray","variableDefinitions","variableDef","variable","type","noLocation","indexOf","apply"],"sources":["fragments.utils.ts"],"sourcesContent":["import {\n DefinitionNode,\n DocumentNode,\n FragmentSpreadNode,\n NameNode,\n parseType,\n SelectionNode,\n SelectionSetNode,\n VariableDefinitionNode\n} from 'graphql';\nimport {Fragment, PredefinedFragments} from '../fragments';\nimport {ExecutableDefinitionNode, FragmentDefinitionNode, OperationDefinitionNode} from 'graphql/language/ast';\nimport rfdc from 'rfdc';\n\nconst clone = rfdc();\n\ntype Mutable<T> = {\n -readonly [P in keyof T]: T[P]\n};\n\nfunction findParametersInDocument(doc: DocumentNode): string[] {\n if (doc && doc.definitions) {\n return doc.definitions.flatMap(def => 'selectionSet' in def ? findParametersInSelectionSet(def.selectionSet) : []);\n }\n\n return [];\n}\n\nconst queryCache: {[key:string]: DocumentNode} = {};\n\nfunction replaceFragmentsInDocument(doc: DocumentNode, fragments: (string|Fragment)[]) {\n if (!fragments) {\n fragments = [];\n }\n\n const key = (doc.definitions[0] as ExecutableDefinitionNode).name.value + '__' + fragments\n .map(f => (typeof f === 'string') ? PredefinedFragments[f] : f)\n .map(f => (f.gql.definitions[0] as FragmentDefinitionNode).name.value)\n .sort()\n .join('_');\n\n if (queryCache[key]) {\n return queryCache[key];\n }\n\n let clonedQuery: DocumentNode = null;\n if (doc && doc.definitions) {\n clonedQuery = clone(doc);\n clonedQuery.definitions.forEach(def => 'selectionSet' in def && replaceFragmentsInSelectionSet(def.selectionSet, fragments, def, clonedQuery));\n const operationDefinition = clonedQuery.definitions[0] as OperationDefinitionNode;\n (operationDefinition.name as Mutable<NameNode>).value = key;\n }\n\n queryCache[key] = clonedQuery;\n\n return clonedQuery;\n}\n\nfunction findParametersInSelectionSet(selectionSet: SelectionSetNode): string[] {\n if (selectionSet && selectionSet.selections) {\n return selectionSet.selections.flatMap(sel => 'arguments' in sel &&\n sel.arguments.filter(arg => (arg.value.kind === 'Variable')).flatMap(arg => 'name' in arg.value ? arg.value.name.value : [])\n .concat(findParametersInSelectionSet(sel.selectionSet))\n .filter(f => typeof f !== 'undefined')\n );\n }\n\n return [];\n}\n\nfunction findFragmentsInSelectionSet(selectionSet: SelectionSetNode): string[] {\n if (selectionSet && selectionSet.selections) {\n return selectionSet.selections\n .filter<FragmentSpreadNode>((sel): sel is FragmentSpreadNode => sel.kind === 'FragmentSpread').map(sel => sel.name.value)\n .concat(selectionSet.selections.flatMap(sel => findFragmentsInSelectionSet('selectionSet' in sel && sel.selectionSet)));\n }\n\n return [];\n}\n\nfunction replaceFragmentsInSelectionSet(selectionSet: SelectionSetNode, fragments: (string|Fragment)[], def: ExecutableDefinitionNode, document: Mutable<DocumentNode>) {\n if (selectionSet && selectionSet.selections) {\n const newFragmentsSpreads: FragmentSpreadNode[] = [];\n const removedFragmentSpreads: FragmentSpreadNode[] = [];\n // Look for all existing fragment spreads in selection set\n selectionSet.selections.filter<FragmentSpreadNode>((sel): sel is FragmentSpreadNode => sel.kind === 'FragmentSpread').forEach(sel => {\n // Handle only named fragments\n if (sel.name.value) {\n // Check if spread exists in current doc - if not, we replace or remove it\n const existing = document.definitions.find(definition => definition.kind === 'FragmentDefinition' && definition.name.value === sel.name.value);\n\n if (!existing) {\n // First remove the spread, as it has no match in document\n removedFragmentSpreads.push(sel);\n\n // Check if a replacement is provided for this pseudo-fragment, then insert spreads and definitions\n if (fragments) {\n const applyableFragments = fragments\n .map(frag => (typeof frag === 'string') ? PredefinedFragments[frag] : frag)\n .filter(frag => frag.applyFor === sel.name.value);\n\n applyableFragments.flatMap((fragment:Fragment) => fragment.gql.definitions).forEach((frag: FragmentDefinitionNode) => {\n const newSpread = clone(sel);\n (newSpread.name as Mutable<NameNode>).value = (frag as FragmentDefinitionNode).name.value;\n newFragmentsSpreads.push(newSpread);\n\n // Add the new fragment definition in document if it has not already been added\n if (!document.definitions.find(definition => definition.kind === 'FragmentDefinition' && definition.name.value === frag.name.value)) {\n (document.definitions as Array<DefinitionNode>).push(frag);\n }\n });\n\n // Adds the associated variables to the query\n const allVariables = applyableFragments.reduce((result:{[key: string]:string}, n) => ({...result, ...n.variables}), {});\n Object.entries(allVariables).forEach(([name, value]) => {\n if (!def.variableDefinitions.find(variableDef => variableDef.variable.name.value === name)) {\n const type = parseType(value, {noLocation: true});\n (def.variableDefinitions as Array<VariableDefinitionNode>).push({\n kind: 'VariableDefinition',\n variable: {\n kind: 'Variable',\n name: {\n kind: 'Name',\n value: name\n }\n },\n type\n });\n }\n });\n }\n }\n }\n });\n\n // Removed replaced spreads\n selectionSet.selections = selectionSet.selections.filter(sel => sel.kind !== 'FragmentSpread' || removedFragmentSpreads.indexOf(sel) === -1);\n\n // Add all new spreads\n (selectionSet.selections as Array<SelectionNode>).push(...newFragmentsSpreads);\n\n // Recursively call on sub-selections set\n selectionSet.selections.forEach(sel => 'selectionSet' in sel && replaceFragmentsInSelectionSet(sel.selectionSet, fragments, def, document));\n }\n}\n\nexport {replaceFragmentsInDocument, findParametersInDocument, findFragmentsInSelectionSet};\n"],"mappings":";;;;AAAA,SAKIA,SAAS,QAIN,SAAS;AAChB,SAAkBC,mBAAmB;AAErC,OAAOC,IAAI,MAAM,MAAM;AAEvB,IAAMC,KAAK,GAAGD,IAAI,CAAC,CAAC;AAMpB,SAASE,wBAAwBA,CAACC,GAAiB,EAAY;EAC3D,IAAIA,GAAG,IAAIA,GAAG,CAACC,WAAW,EAAE;IACxB,OAAOD,GAAG,CAACC,WAAW,CAACC,OAAO,CAAC,UAAAC,GAAG;MAAA,OAAI,cAAc,IAAIA,GAAG,GAAGC,4BAA4B,CAACD,GAAG,CAACE,YAAY,CAAC,GAAG,EAAE;IAAA,EAAC;EACtH;EAEA,OAAO,EAAE;AACb;AAEA,IAAMC,UAAwC,GAAG,CAAC,CAAC;AAEnD,SAASC,0BAA0BA,CAACP,GAAiB,EAAEQ,SAA8B,EAAE;EACnF,IAAI,CAACA,SAAS,EAAE;IACZA,SAAS,GAAG,EAAE;EAClB;EAEA,IAAMC,GAAG,GAAIT,GAAG,CAACC,WAAW,CAAC,CAAC,CAAC,CAA8BS,IAAI,CAACC,KAAK,GAAG,IAAI,GAAGH,SAAS,CACrFI,GAAG,CAAC,UAAAC,CAAC;IAAA,OAAK,OAAOA,CAAC,KAAK,QAAQ,GAAIjB,mBAAmB,CAACiB,CAAC,CAAC,GAAGA,CAAC;EAAA,EAAC,CAC9DD,GAAG,CAAC,UAAAC,CAAC;IAAA,OAAKA,CAAC,CAACC,GAAG,CAACb,WAAW,CAAC,CAAC,CAAC,CAA4BS,IAAI,CAACC,KAAK;EAAA,EAAC,CACrEI,IAAI,CAAC,CAAC,CACNC,IAAI,CAAC,GAAG,CAAC;EAEd,IAAIV,UAAU,CAACG,GAAG,CAAC,EAAE;IACjB,OA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GAAG,EAAE0B,QAAQ,CAAC;IAAA,EAAC;EAC/I;AACJ;AAEA,SAAQtB,0BAA0B,EAAER,wBAAwB,EAAE6B,2BAA2B"}
@@ -1,26 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- var _templateObject;
4
- import gql from 'graphql-tag';
5
- import { encodeName } from "./encodeName";
6
- var fragments = {};
7
- export var getNodeTypeFragment = function getNodeTypeFragment(name) {
8
- var encodedName = getEncodedNodeTypeName(name);
9
- if (!fragments[encodedName]) {
10
- fragments[encodedName] = {
11
- applyFor: 'node',
12
- variables: _defineProperty({}, encodedName, 'InputNodeTypesInput!'),
13
- gql: gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["fragment NodeType_", " on JCRNode {\n ", ":isNodeType(type: $", ")\n }"])), encodedName, encodedName, encodedName)
14
- };
15
- }
16
- return {
17
- fragment: fragments[encodedName],
18
- variables: _defineProperty({}, encodedName, {
19
- types: name
20
- })
21
- };
22
- };
23
- export var getEncodedNodeTypeName = function getEncodedNodeTypeName(name) {
24
- return 'nodeType_' + encodeName(name);
25
- };
26
- //# sourceMappingURL=getIsNodeTypeFragment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["gql","encodeName","fragments","getNodeTypeFragment","name","encodedName","getEncodedNodeTypeName","applyFor","variables","_defineProperty","_templateObject","_taggedTemplateLiteral","fragment","types"],"sources":["getIsNodeTypeFragment.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {encodeName} from './encodeName';\nimport {Fragment} from '~/fragments/PredefinedFragments';\n\nconst fragments:{[key:string]: Fragment} = {};\n\nexport const getNodeTypeFragment = (name: string) => {\n const encodedName = getEncodedNodeTypeName(name);\n if (!fragments[encodedName]) {\n fragments[encodedName] = {\n applyFor: 'node',\n variables: {\n [encodedName]: 'InputNodeTypesInput!'\n },\n gql: gql`fragment NodeType_${encodedName} on JCRNode {\n ${encodedName}:isNodeType(type: $${encodedName})\n }`\n };\n }\n\n return {\n fragment: fragments[encodedName],\n variables: {\n [encodedName]: {\n types: name\n }\n }\n };\n};\n\nexport const getEncodedNodeTypeName = (name:string) => 'nodeType_' + encodeName(name);\n"],"mappings":";;;AAAA,OAAOA,GAAG,MAAM,aAAa;AAC7B,SAAQC,UAAU;AAGlB,IAAMC,SAAkC,GAAG,CAAC,CAAC;AAE7C,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,IAAY,EAAK;EACjD,IAAMC,WAAW,GAAGC,sBAAsB,CAACF,IAAI,CAAC;EAChD,IAAI,CAACF,SAAS,CAACG,WAAW,CAAC,EAAE;IACzBH,SAAS,CAACG,WAAW,CAAC,GAAG;MACrBE,QAAQ,EAAE,MAAM;MAChBC,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAG,sBAAsB,CACxC;MACDL,GAAG,EAAEA,GAAG,CAAAU,eAAA,KAAAA,eAAA,GAAAC,sBAAA,yGAAqBN,WAAW,EAClCA,WAAW,EAAsBA,WAAW;IAEtD,CAAC;EACL;EAEA,OAAO;IACHO,QAAQ,EAAEV,SAAS,CAACG,WAAW,CAAC;IAChCG,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAG;MACXQ,KAAK,EAAET;IACX,CAAC;EAET,CAAC;AACL,CAAC;AAED,OAAO,IAAME,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIF,IAAW;EAAA,OAAK,WAAW,GAAGH,UAAU,CAACG,IAAI,CAAC;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["gql","encodeName","fragments","getPermissionFragment","name","encodedName","getEncodedPermissionName","applyFor","variables","_defineProperty","_templateObject","_taggedTemplateLiteral","fragment","getSitePermissionFragment","_templateObject2"],"sources":["getPermissionFragment.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {encodeName} from './encodeName';\nimport {Fragment} from '~/fragments/PredefinedFragments';\n\nconst fragments:{[key:string]: Fragment} = {};\n\nexport const getPermissionFragment = (name: string) => {\n const encodedName = getEncodedPermissionName(name);\n if (!fragments[encodedName]) {\n fragments[encodedName] = {\n applyFor: 'node',\n variables: {\n [encodedName]: 'String!'\n },\n gql: gql`fragment NodePermission_${encodedName} on JCRNode {\n ${encodedName}:hasPermission(permissionName: $${encodedName})\n }`\n };\n }\n\n return {\n fragment: fragments[encodedName],\n variables: {\n [encodedName]: name\n }\n };\n};\n\nexport const getSitePermissionFragment = (name: string) => {\n const encodedName = getEncodedPermissionName(name);\n if (!fragments['site_' + encodedName]) {\n fragments['site_' + encodedName] = {\n applyFor: 'node',\n variables: {\n [encodedName]: 'String!'\n },\n gql: gql`fragment SiteNodePermission_${encodedName} on JCRNode {\n site {\n ...NodeCacheRequiredFields\n ${encodedName}:hasPermission(permissionName: $${encodedName})\n }\n }`\n };\n }\n\n return {\n fragment: fragments['site_' + encodedName],\n variables: {\n [encodedName]: name\n }\n };\n};\n\nexport const getEncodedPermissionName = (name: string) => 'permission_' + encodeName(name);\n"],"mappings":";;;AAAA,OAAOA,GAAG,MAAM,aAAa;AAC7B,SAAQC,UAAU;AAGlB,IAAMC,SAAkC,GAAG,CAAC,CAAC;AAE7C,OAAO,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,IAAY,EAAK;EACnD,IAAMC,WAAW,GAAGC,wBAAwB,CAACF,IAAI,CAAC;EAClD,IAAI,CAACF,SAAS,CAACG,WAAW,CAAC,EAAE;IACzBH,SAAS,CAACG,WAAW,CAAC,GAAG;MACrBE,QAAQ,EAAE,MAAM;MAChBC,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAG,SAAS,CAC3B;MACDL,GAAG,EAAEA,GAAG,CAAAU,eAAA,KAAAA,eAAA,GAAAC,sBAAA,4HAA2BN,WAAW,EACxCA,WAAW,EAAmCA,WAAW;IAEnE,CAAC;EACL;EAEA,OAAO;IACHO,QAAQ,EAAEV,SAAS,CAACG,WAAW,CAAC;IAChCG,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAGD,IAAI;EAE3B,CAAC;AACL,CAAC;AAED,OAAO,IAAMS,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAIT,IAAY,EAAK;EACvD,IAAMC,WAAW,GAAGC,wBAAwB,CAACF,IAAI,CAAC;EAClD,IAAI,CAACF,SAAS,CAAC,OAAO,GAAGG,WAAW,CAAC,EAAE;IACnCH,SAAS,CAAC,OAAO,GAAGG,WAAW,CAAC,GAAG;MAC/BE,QAAQ,EAAE,MAAM;MAChBC,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAG,SAAS,CAC3B;MACDL,GAAG,EAAEA,GAAG,CAAAc,gBAAA,KAAAA,gBAAA,GAAAH,sBAAA,+NAA+BN,WAAW,EAGxCA,WAAW,EAAmCA,WAAW;IAGvE,CAAC;EACL;EAEA,OAAO;IACHO,QAAQ,EAAEV,SAAS,CAAC,OAAO,GAAGG,WAAW,CAAC;IAC1CG,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAGD,IAAI;EAE3B,CAAC;AACL,CAAC;AAED,OAAO,IAAME,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIF,IAAY;EAAA,OAAK,aAAa,GAAGH,UAAU,CAACG,IAAI,CAAC;AAAA"}
@@ -1,24 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- var _templateObject;
4
- import gql from 'graphql-tag';
5
- import { encodeName } from "./encodeName";
6
- var fragments = {};
7
- export var getSubNodesCountFragment = function getSubNodesCountFragment(name) {
8
- var encodedName = getEncodedSubNodesCountName(name);
9
- if (!fragments[encodedName]) {
10
- fragments[encodedName] = {
11
- applyFor: 'node',
12
- variables: _defineProperty({}, encodedName, '[String!]!'),
13
- gql: gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["fragment SubNodesCount_", " on JCRNode {\n ", ": children(typesFilter: {types: $", "}) {\n pageInfo {\n totalCount\n }\n }\n }"])), encodedName, encodedName, encodedName)
14
- };
15
- }
16
- return {
17
- fragment: fragments[encodedName],
18
- variables: _defineProperty({}, encodedName, [name])
19
- };
20
- };
21
- export var getEncodedSubNodesCountName = function getEncodedSubNodesCountName(name) {
22
- return 'subNodesCount_' + encodeName(name);
23
- };
24
- //# sourceMappingURL=getSubNodesCountFragment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["gql","encodeName","fragments","getSubNodesCountFragment","name","encodedName","getEncodedSubNodesCountName","applyFor","variables","_defineProperty","_templateObject","_taggedTemplateLiteral","fragment"],"sources":["getSubNodesCountFragment.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport {encodeName} from './encodeName';\nimport {Fragment} from '~/fragments/PredefinedFragments';\n\nconst fragments:{[key:string]: Fragment} = {};\n\nexport const getSubNodesCountFragment = (name: string) => {\n const encodedName = getEncodedSubNodesCountName(name);\n if (!fragments[encodedName]) {\n fragments[encodedName] = {\n applyFor: 'node',\n variables: {\n [encodedName]: '[String!]!'\n },\n gql: gql`fragment SubNodesCount_${encodedName} on JCRNode {\n ${encodedName}: children(typesFilter: {types: $${encodedName}}) {\n pageInfo {\n totalCount\n }\n }\n }`\n };\n }\n\n return {\n fragment: fragments[encodedName],\n variables: {\n [encodedName]: [name]\n }\n };\n};\n\nexport const getEncodedSubNodesCountName = (name:string) => 'subNodesCount_' + encodeName(name);\n"],"mappings":";;;AAAA,OAAOA,GAAG,MAAM,aAAa;AAC7B,SAAQC,UAAU;AAGlB,IAAMC,SAAkC,GAAG,CAAC,CAAC;AAE7C,OAAO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,IAAY,EAAK;EACtD,IAAMC,WAAW,GAAGC,2BAA2B,CAACF,IAAI,CAAC;EACrD,IAAI,CAACF,SAAS,CAACG,WAAW,CAAC,EAAE;IACzBH,SAAS,CAACG,WAAW,CAAC,GAAG;MACrBE,QAAQ,EAAE,MAAM;MAChBC,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAG,YAAY,CAC9B;MACDL,GAAG,EAAEA,GAAG,CAAAU,eAAA,KAAAA,eAAA,GAAAC,sBAAA,6OAA0BN,WAAW,EACvCA,WAAW,EAAoCA,WAAW;IAMpE,CAAC;EACL;EAEA,OAAO;IACHO,QAAQ,EAAEV,SAAS,CAACG,WAAW,CAAC;IAChCG,SAAS,EAAAC,eAAA,KACJJ,WAAW,EAAG,CAACD,IAAI,CAAC;EAE7B,CAAC;AACL,CAAC;AAED,OAAO,IAAME,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAIF,IAAW;EAAA,OAAK,gBAAgB,GAAGH,UAAU,CAACG,IAAI,CAAC;AAAA"}
@@ -1,3 +0,0 @@
1
- export * from "./PredefinedFragments";
2
- export * from "./fragments.utils";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './PredefinedFragments';\nexport * from './fragments.utils';\n"],"mappings":"AAAA;AACA"}
@@ -1,6 +0,0 @@
1
- export * from "./useContentPreview";
2
- export * from "./useNodeChecks";
3
- export * from "./useNodeInfo";
4
- export * from "./useSiteInfo";
5
- export * from "./useTreeEntries";
6
- //# sourceMappingURL=index.js.map