@gooddata/sdk-ui 9.0.0-alpha.9 → 9.0.0-beta.1

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 (593) hide show
  1. package/esm/base/errors/GoodDataSdkError.js +1 -1
  2. package/esm/base/errors/GoodDataSdkError.js.map +1 -1
  3. package/esm/base/errors/errorHandling.d.ts +1 -1
  4. package/esm/base/errors/errorHandling.d.ts.map +1 -1
  5. package/esm/base/errors/errorHandling.js +2 -2
  6. package/esm/base/errors/errorHandling.js.map +1 -1
  7. package/esm/base/headerMatching/HeaderPredicate.d.ts +2 -2
  8. package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
  9. package/esm/base/headerMatching/HeaderPredicateFactory.d.ts +1 -1
  10. package/esm/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
  11. package/esm/base/headerMatching/HeaderPredicateFactory.js +1 -1
  12. package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
  13. package/esm/base/headerMatching/MappingHeader.d.ts +4 -4
  14. package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
  15. package/esm/base/headerMatching/MappingHeader.js +3 -3
  16. package/esm/base/headerMatching/MappingHeader.js.map +1 -1
  17. package/esm/base/index.d.ts +58 -58
  18. package/esm/base/index.d.ts.map +1 -1
  19. package/esm/base/index.js +48 -48
  20. package/esm/base/index.js.map +1 -1
  21. package/esm/base/localization/IntlStore.d.ts +1 -1
  22. package/esm/base/localization/IntlStore.d.ts.map +1 -1
  23. package/esm/base/localization/IntlStore.js +3 -3
  24. package/esm/base/localization/IntlStore.js.map +1 -1
  25. package/esm/base/localization/IntlWrapper.js +3 -3
  26. package/esm/base/localization/IntlWrapper.js.map +1 -1
  27. package/esm/base/localization/TranslationsCustomizationProvider/Context.js +2 -2
  28. package/esm/base/localization/TranslationsCustomizationProvider/Context.js.map +1 -1
  29. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +4 -4
  30. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
  31. package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts +3 -3
  32. package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts.map +1 -1
  33. package/esm/base/localization/TranslationsCustomizationProvider/index.js +3 -3
  34. package/esm/base/localization/TranslationsCustomizationProvider/index.js.map +1 -1
  35. package/esm/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +1 -1
  36. package/esm/base/localization/TranslationsCustomizationProvider/utils.js +6 -1
  37. package/esm/base/localization/TranslationsCustomizationProvider/utils.js.map +1 -1
  38. package/esm/base/localization/TranslationsProvider.js +2 -2
  39. package/esm/base/localization/TranslationsProvider.js.map +1 -1
  40. package/esm/base/localization/bundles/en-US.json +1 -1
  41. package/esm/base/localization/intlUtils.d.ts +2 -2
  42. package/esm/base/localization/intlUtils.d.ts.map +1 -1
  43. package/esm/base/localization/intlUtils.js +3 -3
  44. package/esm/base/localization/intlUtils.js.map +1 -1
  45. package/esm/base/measureFormats/fillMissingFormats.js +1 -1
  46. package/esm/base/measureFormats/fillMissingFormats.js.map +1 -1
  47. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +2 -2
  48. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
  49. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +2 -2
  50. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
  51. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +2 -2
  52. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
  53. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +3 -3
  54. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
  55. package/esm/base/measureTitles/fillMissingTitles.d.ts +1 -1
  56. package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
  57. package/esm/base/measureTitles/fillMissingTitles.js +3 -3
  58. package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
  59. package/esm/base/react/BackendContext.js +2 -2
  60. package/esm/base/react/BackendContext.js.map +1 -1
  61. package/esm/base/react/CancelablePromise.js +1 -1
  62. package/esm/base/react/CancelablePromise.js.map +1 -1
  63. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +3 -3
  64. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
  65. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +6 -6
  66. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
  67. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +1 -1
  68. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +1 -1
  69. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +2 -2
  70. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
  71. package/esm/base/react/PromiseCache.js +2 -2
  72. package/esm/base/react/PromiseCache.js.map +1 -1
  73. package/esm/base/react/WorkspaceContext.js +2 -2
  74. package/esm/base/react/WorkspaceContext.js.map +1 -1
  75. package/esm/base/react/legacy/availableDrillTargets.d.ts +2 -2
  76. package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
  77. package/esm/base/react/legacy/availableDrillTargets.js +2 -2
  78. package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
  79. package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
  80. package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
  81. package/esm/base/react/legacy/withEntireDataView.js +8 -8
  82. package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
  83. package/esm/base/react/placeholders/aliases.d.ts +1 -1
  84. package/esm/base/react/placeholders/aliases.d.ts.map +1 -1
  85. package/esm/base/react/placeholders/base.js +1 -1
  86. package/esm/base/react/placeholders/base.js.map +1 -1
  87. package/esm/base/react/placeholders/context.d.ts +1 -1
  88. package/esm/base/react/placeholders/context.d.ts.map +1 -1
  89. package/esm/base/react/placeholders/context.js +1 -1
  90. package/esm/base/react/placeholders/context.js.map +1 -1
  91. package/esm/base/react/placeholders/factory.d.ts +1 -1
  92. package/esm/base/react/placeholders/factory.d.ts.map +1 -1
  93. package/esm/base/react/placeholders/factory.js +2 -2
  94. package/esm/base/react/placeholders/factory.js.map +1 -1
  95. package/esm/base/react/placeholders/hooks.d.ts +1 -1
  96. package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
  97. package/esm/base/react/placeholders/hooks.js +4 -4
  98. package/esm/base/react/placeholders/hooks.js.map +1 -1
  99. package/esm/base/react/placeholders/resolve.d.ts +2 -2
  100. package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
  101. package/esm/base/react/placeholders/resolve.js +2 -2
  102. package/esm/base/react/placeholders/resolve.js.map +1 -1
  103. package/esm/base/react/useCancelablePromise.js +4 -4
  104. package/esm/base/react/useCancelablePromise.js.map +1 -1
  105. package/esm/base/react/useCancelablePromiseUtils.d.ts +1 -1
  106. package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
  107. package/esm/base/react/useCancelablePromiseUtils.js +2 -2
  108. package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
  109. package/esm/base/react/usePagedResource.js +1 -1
  110. package/esm/base/react/usePagedResource.js.map +1 -1
  111. package/esm/base/react/usePromiseCache.js +1 -1
  112. package/esm/base/react/usePromiseCache.js.map +1 -1
  113. package/esm/base/react/withContexts.js +4 -4
  114. package/esm/base/react/withContexts.js.map +1 -1
  115. package/esm/base/results/dataAccess.d.ts +2 -11
  116. package/esm/base/results/dataAccess.d.ts.map +1 -1
  117. package/esm/base/results/dataAccessConfig.d.ts +3 -3
  118. package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
  119. package/esm/base/results/dataAccessConfig.js +6 -6
  120. package/esm/base/results/dataAccessConfig.js.map +1 -1
  121. package/esm/base/results/facade.d.ts +5 -5
  122. package/esm/base/results/facade.d.ts.map +1 -1
  123. package/esm/base/results/facade.js +4 -4
  124. package/esm/base/results/facade.js.map +1 -1
  125. package/esm/base/results/internal/dataAccessDigest.js +2 -2
  126. package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
  127. package/esm/base/results/internal/dataAccessImpl.d.ts +3 -3
  128. package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
  129. package/esm/base/results/internal/dataAccessImpl.js +7 -7
  130. package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
  131. package/esm/base/results/internal/dataAccessMethods.d.ts +2 -2
  132. package/esm/base/results/internal/dataAccessMethods.d.ts.map +1 -1
  133. package/esm/base/results/internal/dataAccessMethods.js +2 -2
  134. package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
  135. package/esm/base/results/internal/definitionMethods.js +1 -1
  136. package/esm/base/results/internal/definitionMethods.js.map +1 -1
  137. package/esm/base/results/internal/lazyInitArray.js +1 -1
  138. package/esm/base/results/internal/lazyInitArray.js.map +1 -1
  139. package/esm/base/results/internal/resultDataMethods.js +2 -2
  140. package/esm/base/results/internal/resultDataMethods.js.map +1 -1
  141. package/esm/base/results/internal/resultMetaMethods.js +2 -2
  142. package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
  143. package/esm/base/vis/DrillEvents.d.ts +2 -2
  144. package/esm/base/vis/DrillEvents.d.ts.map +1 -1
  145. package/esm/base/vis/DrillEvents.js +2 -2
  146. package/esm/base/vis/DrillEvents.js.map +1 -1
  147. package/esm/base/vis/Events.d.ts +13 -4
  148. package/esm/base/vis/Events.d.ts.map +1 -1
  149. package/esm/base/vis/VisualizationProps.d.ts +4 -4
  150. package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
  151. package/esm/base/vis/drilling.d.ts +4 -4
  152. package/esm/base/vis/drilling.d.ts.map +1 -1
  153. package/esm/base/vis/drilling.js +3 -3
  154. package/esm/base/vis/drilling.js.map +1 -1
  155. package/esm/base/vis/export.d.ts +2 -2
  156. package/esm/base/vis/export.d.ts.map +1 -1
  157. package/esm/base/vis/export.js +1 -1
  158. package/esm/base/vis/export.js.map +1 -1
  159. package/esm/execution/DataViewLoader.d.ts +2 -2
  160. package/esm/execution/DataViewLoader.d.ts.map +1 -1
  161. package/esm/execution/DataViewLoader.js +3 -3
  162. package/esm/execution/DataViewLoader.js.map +1 -1
  163. package/esm/execution/Execute.d.ts +3 -3
  164. package/esm/execution/Execute.d.ts.map +1 -1
  165. package/esm/execution/Execute.js +4 -4
  166. package/esm/execution/Execute.js.map +1 -1
  167. package/esm/execution/ExecuteInsight.d.ts +2 -2
  168. package/esm/execution/ExecuteInsight.d.ts.map +1 -1
  169. package/esm/execution/ExecuteInsight.js +4 -4
  170. package/esm/execution/ExecuteInsight.js.map +1 -1
  171. package/esm/execution/RawExecute.d.ts +2 -2
  172. package/esm/execution/RawExecute.d.ts.map +1 -1
  173. package/esm/execution/RawExecute.js +2 -2
  174. package/esm/execution/RawExecute.js.map +1 -1
  175. package/esm/execution/createExecution.js +3 -3
  176. package/esm/execution/createExecution.js.map +1 -1
  177. package/esm/execution/index.d.ts +10 -10
  178. package/esm/execution/index.d.ts.map +1 -1
  179. package/esm/execution/index.js +9 -9
  180. package/esm/execution/index.js.map +1 -1
  181. package/esm/execution/interfaces.d.ts +1 -1
  182. package/esm/execution/interfaces.d.ts.map +1 -1
  183. package/esm/execution/useDataExport.d.ts +1 -1
  184. package/esm/execution/useDataExport.d.ts.map +1 -1
  185. package/esm/execution/useDataExport.js +1 -1
  186. package/esm/execution/useDataExport.js.map +1 -1
  187. package/esm/execution/useExecutionDataView.d.ts +2 -2
  188. package/esm/execution/useExecutionDataView.d.ts.map +1 -1
  189. package/esm/execution/useExecutionDataView.js +3 -3
  190. package/esm/execution/useExecutionDataView.js.map +1 -1
  191. package/esm/execution/useInsight.d.ts +1 -1
  192. package/esm/execution/useInsight.d.ts.map +1 -1
  193. package/esm/execution/useInsight.js +1 -1
  194. package/esm/execution/useInsight.js.map +1 -1
  195. package/esm/execution/useInsightDataView.d.ts +2 -2
  196. package/esm/execution/useInsightDataView.d.ts.map +1 -1
  197. package/esm/execution/useInsightDataView.js +3 -3
  198. package/esm/execution/useInsightDataView.js.map +1 -1
  199. package/esm/execution/withExecution.d.ts +1 -1
  200. package/esm/execution/withExecution.d.ts.map +1 -1
  201. package/esm/execution/withExecution.js +2 -2
  202. package/esm/execution/withExecution.js.map +1 -1
  203. package/esm/execution/withExecutionLoading.d.ts +1 -1
  204. package/esm/execution/withExecutionLoading.d.ts.map +1 -1
  205. package/esm/execution/withExecutionLoading.js +2 -2
  206. package/esm/execution/withExecutionLoading.js.map +1 -1
  207. package/esm/index.d.ts +3 -3
  208. package/esm/index.d.ts.map +1 -1
  209. package/esm/index.js +3 -3
  210. package/esm/index.js.map +1 -1
  211. package/esm/kpi/FormattedNumber.d.ts +2 -2
  212. package/esm/kpi/FormattedNumber.d.ts.map +1 -1
  213. package/esm/kpi/FormattedNumber.js +3 -3
  214. package/esm/kpi/FormattedNumber.js.map +1 -1
  215. package/esm/kpi/Kpi.d.ts +4 -4
  216. package/esm/kpi/Kpi.d.ts.map +1 -1
  217. package/esm/kpi/Kpi.js +7 -7
  218. package/esm/kpi/Kpi.js.map +1 -1
  219. package/esm/kpi/KpiError.d.ts +1 -1
  220. package/esm/kpi/KpiError.d.ts.map +1 -1
  221. package/esm/kpi/index.d.ts +1 -1
  222. package/esm/kpi/index.d.ts.map +1 -1
  223. package/esm/kpi/index.js +1 -1
  224. package/esm/kpi/index.js.map +1 -1
  225. package/{dist → esm}/sdk-ui.d.ts +21 -20
  226. package/esm/tsdoc-metadata.json +1 -1
  227. package/package.json +29 -39
  228. package/dist/base/constants/bucketNames.d.ts +0 -33
  229. package/dist/base/constants/bucketNames.d.ts.map +0 -1
  230. package/dist/base/constants/bucketNames.js +0 -47
  231. package/dist/base/constants/bucketNames.js.map +0 -1
  232. package/dist/base/constants/colorPalette.d.ts +0 -7
  233. package/dist/base/constants/colorPalette.d.ts.map +0 -1
  234. package/dist/base/constants/colorPalette.js +0 -90
  235. package/dist/base/constants/colorPalette.js.map +0 -1
  236. package/dist/base/errors/GoodDataSdkError.d.ts +0 -245
  237. package/dist/base/errors/GoodDataSdkError.d.ts.map +0 -1
  238. package/dist/base/errors/GoodDataSdkError.js +0 -346
  239. package/dist/base/errors/GoodDataSdkError.js.map +0 -1
  240. package/dist/base/errors/errorHandling.d.ts +0 -46
  241. package/dist/base/errors/errorHandling.d.ts.map +0 -1
  242. package/dist/base/errors/errorHandling.js +0 -115
  243. package/dist/base/errors/errorHandling.js.map +0 -1
  244. package/dist/base/headerMatching/HeaderPredicate.d.ts +0 -26
  245. package/dist/base/headerMatching/HeaderPredicate.d.ts.map +0 -1
  246. package/dist/base/headerMatching/HeaderPredicate.js +0 -12
  247. package/dist/base/headerMatching/HeaderPredicate.js.map +0 -1
  248. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +0 -79
  249. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +0 -1
  250. package/dist/base/headerMatching/HeaderPredicateFactory.js +0 -276
  251. package/dist/base/headerMatching/HeaderPredicateFactory.js.map +0 -1
  252. package/dist/base/headerMatching/MappingHeader.d.ts +0 -55
  253. package/dist/base/headerMatching/MappingHeader.d.ts.map +0 -1
  254. package/dist/base/headerMatching/MappingHeader.js +0 -125
  255. package/dist/base/headerMatching/MappingHeader.js.map +0 -1
  256. package/dist/base/helpers/logging.d.ts +0 -5
  257. package/dist/base/helpers/logging.d.ts.map +0 -1
  258. package/dist/base/helpers/logging.js +0 -12
  259. package/dist/base/helpers/logging.js.map +0 -1
  260. package/dist/base/index.d.ts +0 -59
  261. package/dist/base/index.d.ts.map +0 -1
  262. package/dist/base/index.js +0 -219
  263. package/dist/base/index.js.map +0 -1
  264. package/dist/base/interfaces/OverTimeComparison.d.ts +0 -13
  265. package/dist/base/interfaces/OverTimeComparison.d.ts.map +0 -1
  266. package/dist/base/interfaces/OverTimeComparison.js +0 -13
  267. package/dist/base/interfaces/OverTimeComparison.js.map +0 -1
  268. package/dist/base/localization/IntlStore.d.ts +0 -21
  269. package/dist/base/localization/IntlStore.d.ts.map +0 -1
  270. package/dist/base/localization/IntlStore.js +0 -46
  271. package/dist/base/localization/IntlStore.js.map +0 -1
  272. package/dist/base/localization/IntlWrapper.d.ts +0 -13
  273. package/dist/base/localization/IntlWrapper.d.ts.map +0 -1
  274. package/dist/base/localization/IntlWrapper.js +0 -25
  275. package/dist/base/localization/IntlWrapper.js.map +0 -1
  276. package/dist/base/localization/Locale.d.ts +0 -25
  277. package/dist/base/localization/Locale.d.ts.map +0 -1
  278. package/dist/base/localization/Locale.js +0 -37
  279. package/dist/base/localization/Locale.js.map +0 -1
  280. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +0 -27
  281. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +0 -1
  282. package/dist/base/localization/TranslationsCustomizationProvider/Context.js +0 -40
  283. package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +0 -1
  284. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +0 -54
  285. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +0 -1
  286. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +0 -49
  287. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +0 -1
  288. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts +0 -4
  289. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts.map +0 -1
  290. package/dist/base/localization/TranslationsCustomizationProvider/index.js +0 -16
  291. package/dist/base/localization/TranslationsCustomizationProvider/index.js.map +0 -1
  292. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +0 -24
  293. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +0 -1
  294. package/dist/base/localization/TranslationsCustomizationProvider/utils.js +0 -74
  295. package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +0 -1
  296. package/dist/base/localization/TranslationsProvider.d.ts +0 -33
  297. package/dist/base/localization/TranslationsProvider.d.ts.map +0 -1
  298. package/dist/base/localization/TranslationsProvider.js +0 -31
  299. package/dist/base/localization/TranslationsProvider.js.map +0 -1
  300. package/dist/base/localization/bundles/de-DE.json +0 -374
  301. package/dist/base/localization/bundles/en-US.json +0 -1964
  302. package/dist/base/localization/bundles/es-ES.json +0 -374
  303. package/dist/base/localization/bundles/fr-FR.json +0 -374
  304. package/dist/base/localization/bundles/ja-JP.json +0 -374
  305. package/dist/base/localization/bundles/nl-NL.json +0 -374
  306. package/dist/base/localization/bundles/pt-BR.json +0 -374
  307. package/dist/base/localization/bundles/pt-PT.json +0 -374
  308. package/dist/base/localization/bundles/ru-RU.json +0 -374
  309. package/dist/base/localization/bundles/zh-Hans.json +0 -374
  310. package/dist/base/localization/intlUtils.d.ts +0 -33
  311. package/dist/base/localization/intlUtils.d.ts.map +0 -1
  312. package/dist/base/localization/intlUtils.js +0 -65
  313. package/dist/base/localization/intlUtils.js.map +0 -1
  314. package/dist/base/localization/messagesMap.d.ts +0 -13
  315. package/dist/base/localization/messagesMap.d.ts.map +0 -1
  316. package/dist/base/localization/messagesMap.js +0 -32
  317. package/dist/base/localization/messagesMap.js.map +0 -1
  318. package/dist/base/measureFormats/fillMissingFormat.d.ts +0 -12
  319. package/dist/base/measureFormats/fillMissingFormat.d.ts.map +0 -1
  320. package/dist/base/measureFormats/fillMissingFormat.js +0 -27
  321. package/dist/base/measureFormats/fillMissingFormat.js.map +0 -1
  322. package/dist/base/measureFormats/fillMissingFormats.d.ts +0 -12
  323. package/dist/base/measureFormats/fillMissingFormats.d.ts.map +0 -1
  324. package/dist/base/measureFormats/fillMissingFormats.js +0 -20
  325. package/dist/base/measureFormats/fillMissingFormats.js.map +0 -1
  326. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +0 -32
  327. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +0 -1
  328. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +0 -69
  329. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +0 -1
  330. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +0 -28
  331. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +0 -1
  332. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +0 -49
  333. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +0 -1
  334. package/dist/base/measureTitles/MeasureTitle.d.ts +0 -21
  335. package/dist/base/measureTitles/MeasureTitle.d.ts.map +0 -1
  336. package/dist/base/measureTitles/MeasureTitle.js +0 -3
  337. package/dist/base/measureTitles/MeasureTitle.js.map +0 -1
  338. package/dist/base/measureTitles/fillMissingTitles.d.ts +0 -23
  339. package/dist/base/measureTitles/fillMissingTitles.d.ts.map +0 -1
  340. package/dist/base/measureTitles/fillMissingTitles.js +0 -157
  341. package/dist/base/measureTitles/fillMissingTitles.js.map +0 -1
  342. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts +0 -14
  343. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts.map +0 -1
  344. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +0 -32
  345. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +0 -1
  346. package/dist/base/react/BackendContext.d.ts +0 -78
  347. package/dist/base/react/BackendContext.d.ts.map +0 -1
  348. package/dist/base/react/BackendContext.js +0 -89
  349. package/dist/base/react/BackendContext.js.map +0 -1
  350. package/dist/base/react/CancelablePromise.d.ts +0 -38
  351. package/dist/base/react/CancelablePromise.d.ts.map +0 -1
  352. package/dist/base/react/CancelablePromise.js +0 -82
  353. package/dist/base/react/CancelablePromise.js.map +0 -1
  354. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +0 -116
  355. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +0 -1
  356. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +0 -134
  357. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +0 -1
  358. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +0 -35
  359. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +0 -1
  360. package/dist/base/react/ClientWorkspaceContext/interfaces.js +0 -4
  361. package/dist/base/react/ClientWorkspaceContext/interfaces.js.map +0 -1
  362. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +0 -17
  363. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +0 -1
  364. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +0 -76
  365. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +0 -1
  366. package/dist/base/react/ErrorComponent.d.ts +0 -35
  367. package/dist/base/react/ErrorComponent.d.ts.map +0 -1
  368. package/dist/base/react/ErrorComponent.js +0 -90
  369. package/dist/base/react/ErrorComponent.js.map +0 -1
  370. package/dist/base/react/LoadingComponent.d.ts +0 -28
  371. package/dist/base/react/LoadingComponent.d.ts.map +0 -1
  372. package/dist/base/react/LoadingComponent.js +0 -81
  373. package/dist/base/react/LoadingComponent.js.map +0 -1
  374. package/dist/base/react/PromiseCache.d.ts +0 -21
  375. package/dist/base/react/PromiseCache.d.ts.map +0 -1
  376. package/dist/base/react/PromiseCache.js +0 -66
  377. package/dist/base/react/PromiseCache.js.map +0 -1
  378. package/dist/base/react/WorkspaceContext.d.ts +0 -77
  379. package/dist/base/react/WorkspaceContext.d.ts.map +0 -1
  380. package/dist/base/react/WorkspaceContext.js +0 -89
  381. package/dist/base/react/WorkspaceContext.js.map +0 -1
  382. package/dist/base/react/legacy/availableDrillTargets.d.ts +0 -12
  383. package/dist/base/react/legacy/availableDrillTargets.d.ts.map +0 -1
  384. package/dist/base/react/legacy/availableDrillTargets.js +0 -49
  385. package/dist/base/react/legacy/availableDrillTargets.js.map +0 -1
  386. package/dist/base/react/legacy/withEntireDataView.d.ts +0 -51
  387. package/dist/base/react/legacy/withEntireDataView.d.ts.map +0 -1
  388. package/dist/base/react/legacy/withEntireDataView.js +0 -171
  389. package/dist/base/react/legacy/withEntireDataView.js.map +0 -1
  390. package/dist/base/react/placeholders/aliases.d.ts +0 -92
  391. package/dist/base/react/placeholders/aliases.d.ts.map +0 -1
  392. package/dist/base/react/placeholders/aliases.js +0 -3
  393. package/dist/base/react/placeholders/aliases.js.map +0 -1
  394. package/dist/base/react/placeholders/base.d.ts +0 -279
  395. package/dist/base/react/placeholders/base.d.ts.map +0 -1
  396. package/dist/base/react/placeholders/base.js +0 -33
  397. package/dist/base/react/placeholders/base.js.map +0 -1
  398. package/dist/base/react/placeholders/context.d.ts +0 -36
  399. package/dist/base/react/placeholders/context.d.ts.map +0 -1
  400. package/dist/base/react/placeholders/context.js +0 -47
  401. package/dist/base/react/placeholders/context.js.map +0 -1
  402. package/dist/base/react/placeholders/factory.d.ts +0 -34
  403. package/dist/base/react/placeholders/factory.d.ts.map +0 -1
  404. package/dist/base/react/placeholders/factory.js +0 -45
  405. package/dist/base/react/placeholders/factory.js.map +0 -1
  406. package/dist/base/react/placeholders/hooks.d.ts +0 -70
  407. package/dist/base/react/placeholders/hooks.d.ts.map +0 -1
  408. package/dist/base/react/placeholders/hooks.js +0 -150
  409. package/dist/base/react/placeholders/hooks.js.map +0 -1
  410. package/dist/base/react/placeholders/resolve.d.ts +0 -30
  411. package/dist/base/react/placeholders/resolve.d.ts.map +0 -1
  412. package/dist/base/react/placeholders/resolve.js +0 -82
  413. package/dist/base/react/placeholders/resolve.js.map +0 -1
  414. package/dist/base/react/safeSerialize.d.ts +0 -9
  415. package/dist/base/react/safeSerialize.d.ts.map +0 -1
  416. package/dist/base/react/safeSerialize.js +0 -21
  417. package/dist/base/react/safeSerialize.js.map +0 -1
  418. package/dist/base/react/useCancelablePromise.d.ts +0 -99
  419. package/dist/base/react/useCancelablePromise.d.ts.map +0 -1
  420. package/dist/base/react/useCancelablePromise.js +0 -112
  421. package/dist/base/react/useCancelablePromise.js.map +0 -1
  422. package/dist/base/react/useCancelablePromiseUtils.d.ts +0 -48
  423. package/dist/base/react/useCancelablePromiseUtils.d.ts.map +0 -1
  424. package/dist/base/react/useCancelablePromiseUtils.js +0 -107
  425. package/dist/base/react/useCancelablePromiseUtils.js.map +0 -1
  426. package/dist/base/react/usePagedResource.d.ts +0 -21
  427. package/dist/base/react/usePagedResource.d.ts.map +0 -1
  428. package/dist/base/react/usePagedResource.js +0 -44
  429. package/dist/base/react/usePagedResource.js.map +0 -1
  430. package/dist/base/react/usePrevious.d.ts +0 -8
  431. package/dist/base/react/usePrevious.d.ts.map +0 -1
  432. package/dist/base/react/usePrevious.js +0 -20
  433. package/dist/base/react/usePrevious.js.map +0 -1
  434. package/dist/base/react/usePromiseCache.d.ts +0 -18
  435. package/dist/base/react/usePromiseCache.d.ts.map +0 -1
  436. package/dist/base/react/usePromiseCache.js +0 -61
  437. package/dist/base/react/usePromiseCache.js.map +0 -1
  438. package/dist/base/react/withContexts.d.ts +0 -11
  439. package/dist/base/react/withContexts.d.ts.map +0 -1
  440. package/dist/base/react/withContexts.js +0 -18
  441. package/dist/base/react/withContexts.js.map +0 -1
  442. package/dist/base/react/wrapDisplayName.d.ts +0 -7
  443. package/dist/base/react/wrapDisplayName.d.ts.map +0 -1
  444. package/dist/base/react/wrapDisplayName.js +0 -24
  445. package/dist/base/react/wrapDisplayName.js.map +0 -1
  446. package/dist/base/results/dataAccess.d.ts +0 -381
  447. package/dist/base/results/dataAccess.d.ts.map +0 -1
  448. package/dist/base/results/dataAccess.js +0 -3
  449. package/dist/base/results/dataAccess.js.map +0 -1
  450. package/dist/base/results/dataAccessConfig.d.ts +0 -42
  451. package/dist/base/results/dataAccessConfig.d.ts.map +0 -1
  452. package/dist/base/results/dataAccessConfig.js +0 -38
  453. package/dist/base/results/dataAccessConfig.js.map +0 -1
  454. package/dist/base/results/facade.d.ts +0 -95
  455. package/dist/base/results/facade.d.ts.map +0 -1
  456. package/dist/base/results/facade.js +0 -158
  457. package/dist/base/results/facade.js.map +0 -1
  458. package/dist/base/results/internal/dataAccessDigest.d.ts +0 -113
  459. package/dist/base/results/internal/dataAccessDigest.d.ts.map +0 -1
  460. package/dist/base/results/internal/dataAccessDigest.js +0 -143
  461. package/dist/base/results/internal/dataAccessDigest.js.map +0 -1
  462. package/dist/base/results/internal/dataAccessImpl.d.ts +0 -37
  463. package/dist/base/results/internal/dataAccessImpl.d.ts.map +0 -1
  464. package/dist/base/results/internal/dataAccessImpl.js +0 -384
  465. package/dist/base/results/internal/dataAccessImpl.js.map +0 -1
  466. package/dist/base/results/internal/dataAccessMethods.d.ts +0 -8
  467. package/dist/base/results/internal/dataAccessMethods.d.ts.map +0 -1
  468. package/dist/base/results/internal/dataAccessMethods.js +0 -122
  469. package/dist/base/results/internal/dataAccessMethods.js.map +0 -1
  470. package/dist/base/results/internal/definitionMethods.d.ts +0 -90
  471. package/dist/base/results/internal/definitionMethods.d.ts.map +0 -1
  472. package/dist/base/results/internal/definitionMethods.js +0 -82
  473. package/dist/base/results/internal/definitionMethods.js.map +0 -1
  474. package/dist/base/results/internal/lazyInitArray.d.ts +0 -15
  475. package/dist/base/results/internal/lazyInitArray.d.ts.map +0 -1
  476. package/dist/base/results/internal/lazyInitArray.js +0 -48
  477. package/dist/base/results/internal/lazyInitArray.js.map +0 -1
  478. package/dist/base/results/internal/resultDataMethods.d.ts +0 -82
  479. package/dist/base/results/internal/resultDataMethods.d.ts.map +0 -1
  480. package/dist/base/results/internal/resultDataMethods.js +0 -85
  481. package/dist/base/results/internal/resultDataMethods.js.map +0 -1
  482. package/dist/base/results/internal/resultMetaMethods.d.ts +0 -89
  483. package/dist/base/results/internal/resultMetaMethods.d.ts.map +0 -1
  484. package/dist/base/results/internal/resultMetaMethods.js +0 -145
  485. package/dist/base/results/internal/resultMetaMethods.js.map +0 -1
  486. package/dist/base/results/internal/utils.d.ts +0 -30
  487. package/dist/base/results/internal/utils.d.ts.map +0 -1
  488. package/dist/base/results/internal/utils.js +0 -54
  489. package/dist/base/results/internal/utils.js.map +0 -1
  490. package/dist/base/typings/subtract.d.ts +0 -5
  491. package/dist/base/typings/subtract.d.ts.map +0 -1
  492. package/dist/base/typings/subtract.js +0 -3
  493. package/dist/base/typings/subtract.js.map +0 -1
  494. package/dist/base/vis/DrillEvents.d.ts +0 -191
  495. package/dist/base/vis/DrillEvents.d.ts.map +0 -1
  496. package/dist/base/vis/DrillEvents.js +0 -42
  497. package/dist/base/vis/DrillEvents.js.map +0 -1
  498. package/dist/base/vis/Events.d.ts +0 -85
  499. package/dist/base/vis/Events.d.ts.map +0 -1
  500. package/dist/base/vis/Events.js +0 -3
  501. package/dist/base/vis/Events.js.map +0 -1
  502. package/dist/base/vis/VisualizationProps.d.ts +0 -94
  503. package/dist/base/vis/VisualizationProps.d.ts.map +0 -1
  504. package/dist/base/vis/VisualizationProps.js +0 -4
  505. package/dist/base/vis/VisualizationProps.js.map +0 -1
  506. package/dist/base/vis/drilling.d.ts +0 -30
  507. package/dist/base/vis/drilling.d.ts.map +0 -1
  508. package/dist/base/vis/drilling.js +0 -102
  509. package/dist/base/vis/drilling.js.map +0 -1
  510. package/dist/base/vis/export.d.ts +0 -21
  511. package/dist/base/vis/export.d.ts.map +0 -1
  512. package/dist/base/vis/export.js +0 -47
  513. package/dist/base/vis/export.js.map +0 -1
  514. package/dist/base/vis/visualizationTypes.d.ts +0 -76
  515. package/dist/base/vis/visualizationTypes.d.ts.map +0 -1
  516. package/dist/base/vis/visualizationTypes.js +0 -46
  517. package/dist/base/vis/visualizationTypes.js.map +0 -1
  518. package/dist/execution/DataViewLoader.d.ts +0 -70
  519. package/dist/execution/DataViewLoader.d.ts.map +0 -1
  520. package/dist/execution/DataViewLoader.js +0 -102
  521. package/dist/execution/DataViewLoader.js.map +0 -1
  522. package/dist/execution/Execute.d.ts +0 -134
  523. package/dist/execution/Execute.d.ts.map +0 -1
  524. package/dist/execution/Execute.js +0 -99
  525. package/dist/execution/Execute.js.map +0 -1
  526. package/dist/execution/ExecuteInsight.d.ts +0 -136
  527. package/dist/execution/ExecuteInsight.d.ts.map +0 -1
  528. package/dist/execution/ExecuteInsight.js +0 -99
  529. package/dist/execution/ExecuteInsight.js.map +0 -1
  530. package/dist/execution/RawExecute.d.ts +0 -86
  531. package/dist/execution/RawExecute.d.ts.map +0 -1
  532. package/dist/execution/RawExecute.js +0 -76
  533. package/dist/execution/RawExecute.js.map +0 -1
  534. package/dist/execution/createExecution.d.ts +0 -61
  535. package/dist/execution/createExecution.d.ts.map +0 -1
  536. package/dist/execution/createExecution.js +0 -57
  537. package/dist/execution/createExecution.js.map +0 -1
  538. package/dist/execution/index.d.ts +0 -11
  539. package/dist/execution/index.d.ts.map +0 -1
  540. package/dist/execution/index.js +0 -23
  541. package/dist/execution/index.js.map +0 -1
  542. package/dist/execution/interfaces.d.ts +0 -23
  543. package/dist/execution/interfaces.d.ts.map +0 -1
  544. package/dist/execution/interfaces.js +0 -3
  545. package/dist/execution/interfaces.js.map +0 -1
  546. package/dist/execution/useDataExport.d.ts +0 -27
  547. package/dist/execution/useDataExport.d.ts.map +0 -1
  548. package/dist/execution/useDataExport.js +0 -35
  549. package/dist/execution/useDataExport.js.map +0 -1
  550. package/dist/execution/useExecutionDataView.d.ts +0 -94
  551. package/dist/execution/useExecutionDataView.d.ts.map +0 -1
  552. package/dist/execution/useExecutionDataView.js +0 -79
  553. package/dist/execution/useExecutionDataView.js.map +0 -1
  554. package/dist/execution/useInsight.d.ts +0 -32
  555. package/dist/execution/useInsight.d.ts.map +0 -1
  556. package/dist/execution/useInsight.js +0 -22
  557. package/dist/execution/useInsight.js.map +0 -1
  558. package/dist/execution/useInsightDataView.d.ts +0 -88
  559. package/dist/execution/useInsightDataView.d.ts.map +0 -1
  560. package/dist/execution/useInsightDataView.js +0 -54
  561. package/dist/execution/useInsightDataView.js.map +0 -1
  562. package/dist/execution/withExecution.d.ts +0 -59
  563. package/dist/execution/withExecution.d.ts.map +0 -1
  564. package/dist/execution/withExecution.js +0 -46
  565. package/dist/execution/withExecution.js.map +0 -1
  566. package/dist/execution/withExecutionLoading.d.ts +0 -145
  567. package/dist/execution/withExecutionLoading.d.ts.map +0 -1
  568. package/dist/execution/withExecutionLoading.js +0 -157
  569. package/dist/execution/withExecutionLoading.js.map +0 -1
  570. package/dist/index.d.ts +0 -22
  571. package/dist/index.d.ts.map +0 -1
  572. package/dist/index.js +0 -22
  573. package/dist/index.js.map +0 -1
  574. package/dist/kpi/FormattedNumber.d.ts +0 -16
  575. package/dist/kpi/FormattedNumber.d.ts.map +0 -1
  576. package/dist/kpi/FormattedNumber.js +0 -18
  577. package/dist/kpi/FormattedNumber.js.map +0 -1
  578. package/dist/kpi/Kpi.d.ts +0 -65
  579. package/dist/kpi/Kpi.d.ts.map +0 -1
  580. package/dist/kpi/Kpi.js +0 -72
  581. package/dist/kpi/Kpi.js.map +0 -1
  582. package/dist/kpi/KpiError.d.ts +0 -7
  583. package/dist/kpi/KpiError.d.ts.map +0 -1
  584. package/dist/kpi/KpiError.js +0 -23
  585. package/dist/kpi/KpiError.js.map +0 -1
  586. package/dist/kpi/index.d.ts +0 -2
  587. package/dist/kpi/index.d.ts.map +0 -1
  588. package/dist/kpi/index.js +0 -7
  589. package/dist/kpi/index.js.map +0 -1
  590. package/dist/locales.d.ts +0 -3
  591. package/dist/locales.d.ts.map +0 -1
  592. package/dist/locales.js +0 -22
  593. package/dist/locales.js.map +0 -1
@@ -1,89 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withBackend = exports.useBackendStrict = exports.useBackend = exports.BackendProvider = void 0;
4
- const tslib_1 = require("tslib");
5
- // (C) 2019-2022 GoodData Corporation
6
- const react_1 = tslib_1.__importDefault(require("react"));
7
- const wrapDisplayName_1 = require("./wrapDisplayName");
8
- const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
9
- const BackendContext = react_1.default.createContext(undefined);
10
- BackendContext.displayName = "BackendContext";
11
- /**
12
- * BackendProvider can be used to inject analytical backend instance to all ui-sdk components in your app.
13
- *
14
- * @public
15
- */
16
- const BackendProvider = ({ children, backend }) => {
17
- return react_1.default.createElement(BackendContext.Provider, { value: backend }, children);
18
- };
19
- exports.BackendProvider = BackendProvider;
20
- /**
21
- * Hook to get analytical backend instance provided to {@link BackendProvider}.
22
- *
23
- * @remarks
24
- * You can set a backend override that will be returned if defined.
25
- * This makes the usage more ergonomic (see the following example).
26
- *
27
- * Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useBackendStrict} hook.
28
- *
29
- * @example
30
- * ```
31
- * // instead of
32
- * const fromContext = useBackend();
33
- * const effectiveBackend = fromArguments ?? fromContext.
34
- * // you can write
35
- * const backend = useBackend(fromArguments);
36
- *```
37
- *
38
- * @param backend - backend to use instead of context value. If undefined, the context value is used.
39
- * @public
40
- */
41
- const useBackend = (backend) => {
42
- const backendFromContext = react_1.default.useContext(BackendContext);
43
- return backend !== null && backend !== void 0 ? backend : backendFromContext;
44
- };
45
- exports.useBackend = useBackend;
46
- /**
47
- * Hook to get analytical backend instance provided to {@link BackendProvider}.
48
- *
49
- * @remarks
50
- * You can set a backend override that will be returned if defined.
51
- * This makes the usage more ergonomic (see the following example).
52
- *
53
- * Note: If you do not provide an {@link @gooddata/sdk-backend-spi#IAnalyticalBackend} instance to {@link BackendProvider} or as a parameter for this hook,
54
- * an invariant error is raised.
55
- *
56
- * @example
57
- * ```
58
- * // instead of
59
- * const fromContext = useBackendStrict();
60
- * const effectiveBackend = fromArguments ?? fromContext.
61
- * // you can write
62
- * const backend = useBackendStrict(fromArguments);
63
- *```
64
- *
65
- * @param backend - backend to use instead of context value. If undefined, the context value is used.
66
- * @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
67
- * @public
68
- */
69
- const useBackendStrict = (backend, context = "useBackendStrict") => {
70
- const backendFromContext = react_1.default.useContext(BackendContext);
71
- const effectiveBackend = backend !== null && backend !== void 0 ? backend : backendFromContext;
72
- (0, ts_invariant_1.default)(effectiveBackend, `${context}: IAnalyticalBackend must be defined. Either pass it as a parameter or make sure there is a BackendProvider up the component tree.`);
73
- return effectiveBackend;
74
- };
75
- exports.useBackendStrict = useBackendStrict;
76
- /**
77
- * Wraps component into a BackendContext consumer - injecting an instance of backend from context into the
78
- * backend prop.
79
- *
80
- * @internal
81
- */
82
- function withBackend(Component) {
83
- const ComponentWithInjectedBackend = (props) => {
84
- return (react_1.default.createElement(BackendContext.Consumer, null, (backend) => { var _a; return react_1.default.createElement(Component, Object.assign({}, props, { backend: (_a = props.backend) !== null && _a !== void 0 ? _a : backend })); }));
85
- };
86
- return (0, wrapDisplayName_1.wrapDisplayName)("withBackend", Component)(ComponentWithInjectedBackend);
87
- }
88
- exports.withBackend = withBackend;
89
- //# sourceMappingURL=BackendContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackendContext.js","sourceRoot":"","sources":["../../../src/base/react/BackendContext.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAE1B,uDAAoD;AACpD,wEAAqC;AAErC,MAAM,cAAc,GAAG,eAAK,CAAC,aAAa,CAAiC,SAAS,CAAC,CAAC;AACtF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAkB9C;;;;GAIG;AACI,MAAM,eAAe,GAAoC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACtF,OAAO,8BAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAA2B,CAAC;AACzF,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,MAAM,UAAU,GAAG,CAAC,OAA4B,EAAkC,EAAE;IACvF,MAAM,kBAAkB,GAAG,eAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAC5D,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,kBAAkB,CAAC;AACzC,CAAC,CAAC;AAHW,QAAA,UAAU,cAGrB;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACI,MAAM,gBAAgB,GAAG,CAC5B,OAA4B,EAC5B,OAAO,GAAG,kBAAkB,EACV,EAAE;IACpB,MAAM,kBAAkB,GAAG,eAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAC5D,MAAM,gBAAgB,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,kBAAkB,CAAC;IACvD,IAAA,sBAAS,EACL,gBAAgB,EAChB,GAAG,OAAO,oIAAoI,CACjJ,CAAC;IACF,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AAXW,QAAA,gBAAgB,oBAW3B;AAEF;;;;;GAKG;AACH,SAAgB,WAAW,CACvB,SAAiC;IAEjC,MAAM,4BAA4B,GAAgB,CAAC,KAAK,EAAE,EAAE;QACxD,OAAO,CACH,8BAAC,cAAc,CAAC,QAAQ,QACnB,CAAC,OAAO,EAAE,EAAE,WAAC,OAAA,8BAAC,SAAS,oBAAK,KAAK,IAAE,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,OAAO,IAAI,CAAA,EAAA,CACnD,CAC7B,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,IAAA,iCAAe,EAAC,aAAa,EAAE,SAAS,CAAC,CAAC,4BAA4B,CAAC,CAAC;AACnF,CAAC;AAZD,kCAYC"}
@@ -1,38 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export interface ICancelablePromise<T> {
5
- promise: Promise<T>;
6
- cancel: (reason?: string) => void;
7
- getHasFulfilled: () => boolean;
8
- getHasCanceled: () => boolean;
9
- }
10
- /**
11
- * @internal
12
- */
13
- export declare class CancelError extends Error {
14
- reason?: string | undefined;
15
- constructor(reason?: string | undefined);
16
- /**
17
- * Underlying cause of this error (if any).
18
- */
19
- getReason(): string | undefined;
20
- }
21
- /**
22
- * @internal
23
- */
24
- export declare const isCancelError: (obj: unknown) => obj is CancelError;
25
- /**
26
- * !!! USE WITH CAUTION !!! Opinionated utility to wrap promise and make it cancelable
27
- *
28
- * - It does not stop original promise execution after canceling, it just does not care about it's results anymore
29
- * (for example when react component unmounts)
30
- * - This is not meant to be universal solution to make promises cancelable, it's not easily composable,
31
- * and it's not good to solve more complex async logic
32
- * - For cancelable async operations, there are much better abstractions than promises, for example Tasks,
33
- * however there is no standard for this in JavaScript
34
- *
35
- * @internal
36
- */
37
- export declare function makeCancelable<T>(promise: Promise<T>): ICancelablePromise<T>;
38
- //# sourceMappingURL=CancelablePromise.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CancelablePromise.d.ts","sourceRoot":"","sources":["../../../src/base/react/CancelablePromise.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,MAAM,OAAO,CAAC;IAC/B,cAAc,EAAE,MAAM,OAAO,CAAC;CACjC;AAOD;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACf,MAAM,CAAC;gBAAP,MAAM,CAAC,oBAAQ;IAOlC;;OAEG;IACI,SAAS,IAAI,MAAM,GAAG,SAAS;CAGzC;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,QAAS,OAAO,uBAEzC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAmC5E"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeCancelable = exports.isCancelError = exports.CancelError = void 0;
4
- const tslib_1 = require("tslib");
5
- // (C) 2019-2021 GoodData Corporation
6
- const isError_1 = tslib_1.__importDefault(require("lodash/isError"));
7
- /**
8
- * @internal
9
- */
10
- const CANCEL_ERROR_MESSAGE = "Canceled";
11
- /**
12
- * @internal
13
- */
14
- class CancelError extends Error {
15
- constructor(reason) {
16
- super(CANCEL_ERROR_MESSAGE);
17
- this.reason = reason;
18
- // https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
19
- Object.setPrototypeOf(this, CancelError.prototype);
20
- }
21
- /**
22
- * Underlying cause of this error (if any).
23
- */
24
- getReason() {
25
- return this.reason;
26
- }
27
- }
28
- exports.CancelError = CancelError;
29
- /**
30
- * @internal
31
- */
32
- const isCancelError = (obj) => {
33
- return (0, isError_1.default)(obj) && obj.message === CANCEL_ERROR_MESSAGE;
34
- };
35
- exports.isCancelError = isCancelError;
36
- /**
37
- * !!! USE WITH CAUTION !!! Opinionated utility to wrap promise and make it cancelable
38
- *
39
- * - It does not stop original promise execution after canceling, it just does not care about it's results anymore
40
- * (for example when react component unmounts)
41
- * - This is not meant to be universal solution to make promises cancelable, it's not easily composable,
42
- * and it's not good to solve more complex async logic
43
- * - For cancelable async operations, there are much better abstractions than promises, for example Tasks,
44
- * however there is no standard for this in JavaScript
45
- *
46
- * @internal
47
- */
48
- function makeCancelable(promise) {
49
- let cancelReason;
50
- let hasCanceled = false;
51
- let hasFulfilled = false;
52
- const wrappedPromise = new Promise((resolve, reject) => {
53
- promise.then((value) => {
54
- if (hasCanceled) {
55
- reject(new CancelError(cancelReason));
56
- }
57
- else {
58
- hasFulfilled = true;
59
- resolve(value);
60
- }
61
- }, (error) => {
62
- if (hasCanceled) {
63
- reject(new CancelError(cancelReason));
64
- }
65
- else {
66
- hasFulfilled = true;
67
- reject(error);
68
- }
69
- });
70
- });
71
- return {
72
- promise: wrappedPromise,
73
- cancel: (reason) => {
74
- hasCanceled = true;
75
- cancelReason = reason;
76
- },
77
- getHasCanceled: () => hasCanceled,
78
- getHasFulfilled: () => hasFulfilled,
79
- };
80
- }
81
- exports.makeCancelable = makeCancelable;
82
- //# sourceMappingURL=CancelablePromise.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CancelablePromise.js","sourceRoot":"","sources":["../../../src/base/react/CancelablePromise.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,qEAAqC;AAYrC;;GAEG;AACH,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAExC;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK;IAClC,YAAmB,MAAe;QAC9B,KAAK,CAAC,oBAAoB,CAAC,CAAC;QADb,WAAM,GAAN,MAAM,CAAS;QAG9B,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACI,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAdD,kCAcC;AAED;;GAEG;AACI,MAAM,aAAa,GAAG,CAAC,GAAY,EAAsB,EAAE;IAC9D,OAAO,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,GAAG,CAAC,OAAO,KAAK,oBAAoB,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAI,OAAmB;IACjD,IAAI,YAAgC,CAAC;IACrC,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,MAAM,cAAc,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtD,OAAO,CAAC,IAAI,CACR,CAAC,KAAK,EAAE,EAAE;YACN,IAAI,WAAW,EAAE;gBACb,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;aACzC;iBAAM;gBACH,YAAY,GAAG,IAAI,CAAC;gBACpB,OAAO,CAAC,KAAK,CAAC,CAAC;aAClB;QACL,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;YACN,IAAI,WAAW,EAAE;gBACb,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;aACzC;iBAAM;gBACH,YAAY,GAAG,IAAI,CAAC;gBACpB,MAAM,CAAC,KAAK,CAAC,CAAC;aACjB;QACL,CAAC,CACJ,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO;QACH,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,CAAC,MAAe,EAAE,EAAE;YACxB,WAAW,GAAG,IAAI,CAAC;YACnB,YAAY,GAAG,MAAM,CAAC;QAC1B,CAAC;QACD,cAAc,EAAE,GAAG,EAAE,CAAC,WAAW;QACjC,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;KACtC,CAAC;AACN,CAAC;AAnCD,wCAmCC"}
@@ -1,116 +0,0 @@
1
- import React from "react";
2
- import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
3
- import { UseCancelablePromiseState, UseCancelablePromiseStatus } from "../useCancelablePromise";
4
- import { GoodDataSdkError } from "../../errors/GoodDataSdkError";
5
- import { IClientWorkspaceIdentifiers, IClientWorkspaceStatus } from "./interfaces";
6
- /**
7
- * @alpha
8
- */
9
- export type IClientWorkspaceContext = UseCancelablePromiseState<IClientWorkspaceIdentifiers, GoodDataSdkError> & IClientWorkspaceStatus;
10
- /**
11
- * Common props of the {@link ClientWorkspaceProvider}.
12
- *
13
- * @alpha
14
- */
15
- export interface IClientWorkspaceProviderCoreProps {
16
- /**
17
- * Specify an instance of the analytical backend instance to work with.
18
- *
19
- * @remarks
20
- * Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
21
- */
22
- backend?: IAnalyticalBackend;
23
- /**
24
- * Wrapped React components that will have access to the LCMWorkspace context.
25
- */
26
- children: React.ReactNode;
27
- }
28
- /**
29
- * @alpha
30
- */
31
- export interface IClientWorkspaceProviderWithWorkspaceProps extends IClientWorkspaceProviderCoreProps {
32
- /**
33
- * Specify the workspace to use to obtain the LCM context.
34
- *
35
- * @remarks
36
- * Note: another option is to specify dataProduct and client props, and then workspace will be resolved from them.
37
- */
38
- workspace: string;
39
- }
40
- /**
41
- * @alpha
42
- */
43
- export interface IClientWorkspaceProviderWithClientAndDataProductProps extends IClientWorkspaceProviderCoreProps {
44
- /**
45
- * Specify the data product identifier to use to obtain the LCM context.
46
- *
47
- * @remarks
48
- * Note: another option is to specify workspace prop, and then data product identifier will be resolved from it.
49
- */
50
- dataProduct: string;
51
- /**
52
- * Specify the client identifier to use to obtain the LCM context.
53
- *
54
- * Note: another option is to specify workspace prop, and then client identifier will be resolved from it.
55
- */
56
- client: string;
57
- }
58
- /**
59
- * Props of the {@link ClientWorkspaceProvider} component.
60
- * @alpha
61
- */
62
- export type IClientWorkspaceProviderProps = IClientWorkspaceProviderWithWorkspaceProps | IClientWorkspaceProviderWithClientAndDataProductProps;
63
- /**
64
- * ClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider},
65
- * if you want to work with the workspace in LCM context.
66
- *
67
- * It allows you to:
68
- * - Use dataProduct and client identifier as a replacement of the workspace identifier.
69
- * Workspace identifier is resolved and provided to the {@link WorkspaceProvider} automatically.
70
- *
71
- * - Use workspace identifier to obtain dataProduct, client and segment identifiers by the {@link useClientWorkspaceIdentifiers} hooks.
72
- *
73
- * If the backend does not support clientId / dataProduct LCM provisioning,
74
- * or the workspace is not provisioned via LCM, segment / client / dataProduct values will be undefined.
75
- *
76
- * To read more details about LCM, see: {@link https://help.gooddata.com/pages/viewpage.action?pageId=86796865}
77
- *
78
- * @alpha
79
- */
80
- export declare const ClientWorkspaceProvider: React.FC<IClientWorkspaceProviderProps>;
81
- /**
82
- * ResolvedClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider}, if you are accessing
83
- * workspace in LCM context.
84
- *
85
- * This provider expects that the client workspace is already resolved on input to the provider. The provider
86
- * will then establish a client workspace and workspace contexts so that the resolved information can
87
- * be accessed by the children.
88
- *
89
- * Note: check out the {@link ClientWorkspaceProvider} for version of provider that performs the resolution of
90
- * client workspace identifiers to workspace.
91
- *
92
- * @alpha
93
- */
94
- export declare const ResolvedClientWorkspaceProvider: React.FC<IClientWorkspaceIdentifiers>;
95
- /**
96
- * Hook to obtain loading status of the {@link ClientWorkspaceProvider} - "success", "error", "loading" or "pending".
97
- * @alpha
98
- */
99
- export declare const useClientWorkspaceStatus: () => UseCancelablePromiseStatus;
100
- /**
101
- * Hook to obtain loading error of the {@link ClientWorkspaceProvider}.
102
- * @alpha
103
- */
104
- export declare const useClientWorkspaceError: () => GoodDataSdkError | undefined;
105
- /**
106
- * Hook to obtain all resolved identifiers from the {@link ClientWorkspaceProvider} - workspace, segment, dataProduct and client.
107
- * @alpha
108
- */
109
- export declare const useClientWorkspaceIdentifiers: () => IClientWorkspaceIdentifiers;
110
- /**
111
- * Hook to check if client workspace is initialized.
112
- *
113
- * @alpha
114
- */
115
- export declare const useClientWorkspaceInitialized: () => boolean;
116
- //# sourceMappingURL=ClientWorkspaceContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientWorkspaceContext.d.ts","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/ClientWorkspaceContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAEH,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAInF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,CAC3D,2BAA2B,EAC3B,gBAAgB,CACnB,GACG,sBAAsB,CAAC;AAU3B;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,0CAA2C,SAAQ,iCAAiC;IACjG;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qDACb,SAAQ,iCAAiC;IACzC;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GACnC,0CAA0C,GAC1C,qDAAqD,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAoB3E,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAiBjF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAO,0BAG3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,gBAAgB,GAAG,SAG7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,2BAGhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,QAAO,OAGhD,CAAC"}
@@ -1,134 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useClientWorkspaceInitialized = exports.useClientWorkspaceIdentifiers = exports.useClientWorkspaceError = exports.useClientWorkspaceStatus = exports.ResolvedClientWorkspaceProvider = exports.ClientWorkspaceProvider = void 0;
4
- const tslib_1 = require("tslib");
5
- // (C) 2019-2022 GoodData Corporation
6
- const react_1 = tslib_1.__importDefault(require("react"));
7
- const BackendContext_1 = require("../BackendContext");
8
- const useCancelablePromise_1 = require("../useCancelablePromise");
9
- const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
10
- const resolveLCMWorkspaceIdentifiers_1 = require("./resolveLCMWorkspaceIdentifiers");
11
- const WorkspaceContext_1 = require("../WorkspaceContext");
12
- const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
13
- const ClientWorkspaceContext = react_1.default.createContext({
14
- status: "pending",
15
- error: undefined,
16
- result: undefined,
17
- isInitialized: false,
18
- });
19
- ClientWorkspaceContext.displayName = "ClientWorkspace";
20
- /**
21
- * ClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider},
22
- * if you want to work with the workspace in LCM context.
23
- *
24
- * It allows you to:
25
- * - Use dataProduct and client identifier as a replacement of the workspace identifier.
26
- * Workspace identifier is resolved and provided to the {@link WorkspaceProvider} automatically.
27
- *
28
- * - Use workspace identifier to obtain dataProduct, client and segment identifiers by the {@link useClientWorkspaceIdentifiers} hooks.
29
- *
30
- * If the backend does not support clientId / dataProduct LCM provisioning,
31
- * or the workspace is not provisioned via LCM, segment / client / dataProduct values will be undefined.
32
- *
33
- * To read more details about LCM, see: {@link https://help.gooddata.com/pages/viewpage.action?pageId=86796865}
34
- *
35
- * @alpha
36
- */
37
- const ClientWorkspaceProvider = (props) => {
38
- var _a;
39
- const { children, backend: customBackend } = props;
40
- const { client, dataProduct, workspace: customWorkspace } = getInputLCMIdentifiersFromProps(props);
41
- const backend = (0, BackendContext_1.useBackendStrict)(customBackend, "ClientWorkspaceProvider");
42
- const workspace = (0, WorkspaceContext_1.useWorkspace)(customWorkspace);
43
- const lcmIdentifiers = (0, useCancelablePromise_1.useCancelablePromise)({
44
- promise: () => (0, resolveLCMWorkspaceIdentifiers_1.resolveLCMWorkspaceIdentifiers)(backend, { client, dataProduct, workspace }),
45
- }, [client, dataProduct, workspace, backend]);
46
- const ws = (_a = lcmIdentifiers.result) === null || _a === void 0 ? void 0 : _a.workspace;
47
- return (react_1.default.createElement(ClientWorkspaceContext.Provider, { value: Object.assign(Object.assign({}, lcmIdentifiers), { isInitialized: true }) },
48
- react_1.default.createElement(WorkspaceContext_1.WorkspaceProvider, { workspace: ws }, children)));
49
- };
50
- exports.ClientWorkspaceProvider = ClientWorkspaceProvider;
51
- /**
52
- * ResolvedClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider}, if you are accessing
53
- * workspace in LCM context.
54
- *
55
- * This provider expects that the client workspace is already resolved on input to the provider. The provider
56
- * will then establish a client workspace and workspace contexts so that the resolved information can
57
- * be accessed by the children.
58
- *
59
- * Note: check out the {@link ClientWorkspaceProvider} for version of provider that performs the resolution of
60
- * client workspace identifiers to workspace.
61
- *
62
- * @alpha
63
- */
64
- const ResolvedClientWorkspaceProvider = (props) => {
65
- (0, ts_invariant_1.default)(props.dataProduct);
66
- (0, ts_invariant_1.default)(props.client);
67
- (0, ts_invariant_1.default)(props.workspace);
68
- const context = {
69
- status: "success",
70
- result: props,
71
- error: undefined,
72
- isInitialized: true,
73
- };
74
- return (react_1.default.createElement(ClientWorkspaceContext.Provider, { value: context },
75
- react_1.default.createElement(WorkspaceContext_1.WorkspaceProvider, { workspace: props.workspace }, props.children)));
76
- };
77
- exports.ResolvedClientWorkspaceProvider = ResolvedClientWorkspaceProvider;
78
- /**
79
- * Hook to obtain loading status of the {@link ClientWorkspaceProvider} - "success", "error", "loading" or "pending".
80
- * @alpha
81
- */
82
- const useClientWorkspaceStatus = () => {
83
- const context = react_1.default.useContext(ClientWorkspaceContext);
84
- return context.status;
85
- };
86
- exports.useClientWorkspaceStatus = useClientWorkspaceStatus;
87
- /**
88
- * Hook to obtain loading error of the {@link ClientWorkspaceProvider}.
89
- * @alpha
90
- */
91
- const useClientWorkspaceError = () => {
92
- const context = react_1.default.useContext(ClientWorkspaceContext);
93
- return context.error;
94
- };
95
- exports.useClientWorkspaceError = useClientWorkspaceError;
96
- /**
97
- * Hook to obtain all resolved identifiers from the {@link ClientWorkspaceProvider} - workspace, segment, dataProduct and client.
98
- * @alpha
99
- */
100
- const useClientWorkspaceIdentifiers = () => {
101
- var _a;
102
- const context = react_1.default.useContext(ClientWorkspaceContext);
103
- return (_a = context.result) !== null && _a !== void 0 ? _a : {};
104
- };
105
- exports.useClientWorkspaceIdentifiers = useClientWorkspaceIdentifiers;
106
- /**
107
- * Hook to check if client workspace is initialized.
108
- *
109
- * @alpha
110
- */
111
- const useClientWorkspaceInitialized = () => {
112
- const context = react_1.default.useContext(ClientWorkspaceContext);
113
- return context.isInitialized;
114
- };
115
- exports.useClientWorkspaceInitialized = useClientWorkspaceInitialized;
116
- //
117
- //
118
- //
119
- function hasWorkspaceProp(obj) {
120
- return !(0, isEmpty_1.default)(obj) && !!obj.workspace;
121
- }
122
- function getInputLCMIdentifiersFromProps(props) {
123
- if (hasWorkspaceProp(props)) {
124
- return {
125
- workspace: props.workspace,
126
- };
127
- }
128
- (0, ts_invariant_1.default)(props.client && props.dataProduct, "ClientWorkspaceProvider: You must specify either - the workspace identifier, or the client and dataProduct identifier.");
129
- return {
130
- client: props.client,
131
- dataProduct: props.dataProduct,
132
- };
133
- }
134
- //# sourceMappingURL=ClientWorkspaceContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientWorkspaceContext.js","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/ClientWorkspaceContext.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAE1B,sDAAqD;AACrD,kEAIiC;AAEjC,qEAAqC;AACrC,qFAAkF;AAElF,0DAAsE;AACtE,wEAAqC;AAWrC,MAAM,sBAAsB,GAAG,eAAK,CAAC,aAAa,CAA0B;IACxE,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,aAAa,EAAE,KAAK;CACvB,CAAC,CAAC;AACH,sBAAsB,CAAC,W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,CAAI,GAAM;IAC/B,OAAO,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,CAAC,CAAE,GAA2B,CAAC,SAAS,CAAC;AACrE,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAoC;IACzE,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;QACzB,OAAO;YACH,SAAS,EAAE,KAAK,CAAC,SAAS;SAC7B,CAAC;KACL;IAED,IAAA,sBAAS,EACL,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,WAAW,EACjC,wHAAwH,CAC3H,CAAC;IACF,OAAO;QACH,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;KACjC,CAAC;AACN,CAAC"}
@@ -1,35 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * Resolved LCM identifiers of the workspace.
4
- *
5
- * @alpha
6
- */
7
- export interface IClientWorkspaceIdentifiers {
8
- /**
9
- * Data product identifier.
10
- */
11
- dataProduct?: string;
12
- /**
13
- * Client identifier.
14
- */
15
- client?: string;
16
- /**
17
- * Segment identifier.
18
- */
19
- segment?: string;
20
- /**
21
- * Workspace identifier.
22
- */
23
- workspace?: string;
24
- /**
25
- * React children
26
- */
27
- children?: React.ReactNode;
28
- }
29
- /**
30
- * @internal
31
- */
32
- export interface IClientWorkspaceStatus {
33
- isInitialized: boolean;
34
- }
35
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/interfaces.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,aAAa,EAAE,OAAO,CAAC;CAC1B"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // (C) 2019-2022 GoodData Corporation
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/interfaces.ts"],"names":[],"mappings":";AAAA,qCAAqC"}
@@ -1,17 +0,0 @@
1
- import { IClientWorkspaceIdentifiers } from "./interfaces";
2
- /**
3
- * Resolves LCM workspace identifiers. This function will use the data product and client information
4
- * and consult the backend in order to obtain identifier of workspace contains analytics for that
5
- * data product & client combination.
6
- *
7
- * Note that at the moment only the bear Analytical Backend supports the workspace identification using
8
- * LCM workspace identifiers. Attempting to use this function for other backends will yield empty
9
- * result.
10
- *
11
- * @param backend - analytical backend to resolve client workspace identifiers on
12
- * @param clientWorkspace - client workspace identifiers; must contain data product and client identifier
13
- * @returns resolved IClientWorkspaceIdentifiers or an empty object if resolution is not possible
14
- * @alpha
15
- */
16
- export declare function resolveLCMWorkspaceIdentifiers(backend: any, { client, dataProduct, workspace }: IClientWorkspaceIdentifiers): Promise<IClientWorkspaceIdentifiers>;
17
- //# sourceMappingURL=resolveLCMWorkspaceIdentifiers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveLCMWorkspaceIdentifiers.d.ts","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAsB,8BAA8B,CAEhD,OAAO,EAAE,GAAG,EACZ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,2BAA2B,GAChE,OAAO,CAAC,2BAA2B,CAAC,CAQtC"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- // (C) 2019-2022 GoodData Corporation
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.resolveLCMWorkspaceIdentifiers = void 0;
5
- const tslib_1 = require("tslib");
6
- const partial_1 = tslib_1.__importDefault(require("lodash/partial"));
7
- const last_1 = tslib_1.__importDefault(require("lodash/last"));
8
- /**
9
- * Resolves LCM workspace identifiers. This function will use the data product and client information
10
- * and consult the backend in order to obtain identifier of workspace contains analytics for that
11
- * data product & client combination.
12
- *
13
- * Note that at the moment only the bear Analytical Backend supports the workspace identification using
14
- * LCM workspace identifiers. Attempting to use this function for other backends will yield empty
15
- * result.
16
- *
17
- * @param backend - analytical backend to resolve client workspace identifiers on
18
- * @param clientWorkspace - client workspace identifiers; must contain data product and client identifier
19
- * @returns resolved IClientWorkspaceIdentifiers or an empty object if resolution is not possible
20
- * @alpha
21
- */
22
- async function resolveLCMWorkspaceIdentifiers(
23
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
24
- backend, { client, dataProduct, workspace }) {
25
- const projectLcmIdentifiers = await getProjectLcmIdentifiers(backend, workspace, dataProduct, client);
26
- if (!projectLcmIdentifiers) {
27
- return {};
28
- }
29
- return getLCMWorkspaceIdentifiersFromProjectLcmIdentifiers(projectLcmIdentifiers);
30
- }
31
- exports.resolveLCMWorkspaceIdentifiers = resolveLCMWorkspaceIdentifiers;
32
- function emptyPromise() {
33
- return Promise.resolve();
34
- }
35
- function unwrapDecoratedBackend(backend) {
36
- if (backend === null || backend === void 0 ? void 0 : backend.decorated) {
37
- return unwrapDecoratedBackend(backend.decorated);
38
- }
39
- return backend;
40
- }
41
- function getBackendAuthApiCallPrivateMethod(backend) {
42
- var _a;
43
- return (_a = backend.authApiCall) !== null && _a !== void 0 ? _a : emptyPromise;
44
- }
45
- async function extractDomainIdFromPrincipal(getPrincipal) {
46
- var _a, _b, _c, _d;
47
- const principal = await getPrincipal();
48
- const domainLink = (_c = (_b = (_a = principal.userMeta) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.domain) !== null && _c !== void 0 ? _c : "";
49
- return (_d = (0, last_1.default)(domainLink.split("/"))) !== null && _d !== void 0 ? _d : null;
50
- }
51
- async function getBearClientProjectLcmIdentifiersMethod(client, getPrincipal) {
52
- var _a;
53
- const method = (_a = client === null || client === void 0 ? void 0 : client.project) === null || _a === void 0 ? void 0 : _a.getProjectLcmIdentifiers.bind(client === null || client === void 0 ? void 0 : client.project);
54
- const domainId = getPrincipal ? await extractDomainIdFromPrincipal(getPrincipal) : null;
55
- const methodWithSetDomain = (0, partial_1.default)(method, domainId);
56
- return methodWithSetDomain !== null && methodWithSetDomain !== void 0 ? methodWithSetDomain : emptyPromise;
57
- }
58
- async function getProjectLcmIdentifiers(backend, projectId, productId, clientId) {
59
- const unwrappedBackend = unwrapDecoratedBackend(backend);
60
- const authApiCall = getBackendAuthApiCallPrivateMethod(unwrappedBackend);
61
- return authApiCall(async (client, { getPrincipal }) => {
62
- const getProjectLcmIdentifiers = await getBearClientProjectLcmIdentifiersMethod(client, getPrincipal);
63
- return getProjectLcmIdentifiers(projectId, productId, clientId);
64
- });
65
- }
66
- function getLCMWorkspaceIdentifiersFromProjectLcmIdentifiers(projectLcmResponse) {
67
- var _a;
68
- const { clientId: client, dataProductId: dataProduct, segmentId: segment, projectId: workspace, } = (_a = projectLcmResponse === null || projectLcmResponse === void 0 ? void 0 : projectLcmResponse.projectLcm) !== null && _a !== void 0 ? _a : {};
69
- return {
70
- dataProduct,
71
- client,
72
- segment,
73
- workspace,
74
- };
75
- }
76
- //# sourceMappingURL=resolveLCMWorkspaceIdentifiers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveLCMWorkspaceIdentifiers.js","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.ts"],"names":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