@axinom/mosaic-managed-workflow-integration 0.32.0-rc.4 → 0.32.0-rc.5

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 (259) hide show
  1. package/dist/cjs/common/default-extension-value.d.ts.map +1 -0
  2. package/dist/cjs/common/index.d.ts.map +1 -0
  3. package/dist/cjs/common/types/index.d.ts.map +1 -0
  4. package/dist/cjs/common/types/models.d.ts.map +1 -0
  5. package/dist/cjs/enums/index.d.ts.map +1 -0
  6. package/dist/cjs/enums/tile-names.d.ts.map +1 -0
  7. package/dist/cjs/hosting/get-object-storages.d.ts.map +1 -0
  8. package/dist/cjs/hosting/hosting-extensions.d.ts +4 -0
  9. package/dist/cjs/hosting/hosting-extensions.d.ts.map +1 -0
  10. package/dist/cjs/hosting/index.d.ts.map +1 -0
  11. package/dist/{hosting → cjs/hosting}/types/azure-hosting-storage-selector.d.ts +2 -2
  12. package/dist/cjs/hosting/types/azure-hosting-storage-selector.d.ts.map +1 -0
  13. package/dist/{hosting → cjs/hosting}/types/hosting-extensions.d.ts +1 -1
  14. package/dist/cjs/hosting/types/hosting-extensions.d.ts.map +1 -0
  15. package/dist/cjs/hosting/types/index.d.ts.map +1 -0
  16. package/dist/{image → cjs/image}/image-extensions.d.ts +2 -2
  17. package/dist/cjs/image/image-extensions.d.ts.map +1 -0
  18. package/dist/cjs/image/image-station-names.d.ts.map +1 -0
  19. package/dist/cjs/image/index.d.ts.map +1 -0
  20. package/dist/{image → cjs/image}/thumbnail-renderer.d.ts +2 -2
  21. package/dist/cjs/image/thumbnail-renderer.d.ts.map +1 -0
  22. package/dist/cjs/image/types/image-cover-extension.d.ts.map +1 -0
  23. package/dist/{image → cjs/image}/types/image-explorer-extension.d.ts +2 -2
  24. package/dist/cjs/image/types/image-explorer-extension.d.ts.map +1 -0
  25. package/dist/cjs/image/types/image-extensions.d.ts +13 -0
  26. package/dist/cjs/image/types/image-extensions.d.ts.map +1 -0
  27. package/dist/{image → cjs/image}/types/image-preview-extension.d.ts +1 -1
  28. package/dist/cjs/image/types/image-preview-extension.d.ts.map +1 -0
  29. package/dist/cjs/image/types/image-route-resolvers.d.ts.map +1 -0
  30. package/dist/{image → cjs/image}/types/image-select-field-extension.d.ts +2 -2
  31. package/dist/cjs/image/types/image-select-field-extension.d.ts.map +1 -0
  32. package/dist/cjs/image/types/index.d.ts.map +1 -0
  33. package/dist/{image → cjs/image}/types/single-image-select-field-extension.d.ts +2 -2
  34. package/dist/cjs/image/types/single-image-select-field-extension.d.ts.map +1 -0
  35. package/dist/cjs/image/types/thumbnail-renderer.d.ts.map +1 -0
  36. package/dist/cjs/index.d.ts.map +1 -0
  37. package/dist/cjs/index.js +264 -0
  38. package/dist/cjs/index.js.map +1 -0
  39. package/dist/{initialize.d.ts → cjs/initialize.d.ts} +1 -1
  40. package/dist/cjs/initialize.d.ts.map +1 -0
  41. package/dist/cjs/localization/helpers/index.d.ts.map +1 -0
  42. package/dist/{localization → cjs/localization}/helpers/localization-generator.d.ts +1 -1
  43. package/dist/cjs/localization/helpers/localization-generator.d.ts.map +1 -0
  44. package/dist/cjs/localization/index.d.ts.map +1 -0
  45. package/dist/cjs/localization/types/index.d.ts.map +1 -0
  46. package/dist/cjs/localization/types/localization-generator.d.ts.map +1 -0
  47. package/dist/cjs/package.json +1 -0
  48. package/dist/{piral-extensions.d.ts → cjs/piral-extensions.d.ts} +1 -1
  49. package/dist/cjs/piral-extensions.d.ts.map +1 -0
  50. package/dist/cjs/state.d.ts +13 -0
  51. package/dist/cjs/state.d.ts.map +1 -0
  52. package/dist/esm/common/default-extension-value.d.ts +7 -0
  53. package/dist/esm/common/default-extension-value.d.ts.map +1 -0
  54. package/dist/esm/common/index.d.ts +3 -0
  55. package/dist/esm/common/index.d.ts.map +1 -0
  56. package/dist/esm/common/types/index.d.ts +2 -0
  57. package/dist/esm/common/types/index.d.ts.map +1 -0
  58. package/dist/esm/common/types/models.d.ts +18 -0
  59. package/dist/esm/common/types/models.d.ts.map +1 -0
  60. package/dist/esm/enums/index.d.ts +2 -0
  61. package/dist/esm/enums/index.d.ts.map +1 -0
  62. package/dist/esm/enums/tile-names.d.ts +21 -0
  63. package/dist/esm/enums/tile-names.d.ts.map +1 -0
  64. package/dist/esm/hosting/get-object-storages.d.ts +13 -0
  65. package/dist/esm/hosting/get-object-storages.d.ts.map +1 -0
  66. package/dist/esm/hosting/hosting-extensions.d.ts +4 -0
  67. package/dist/esm/hosting/hosting-extensions.d.ts.map +1 -0
  68. package/dist/esm/hosting/index.d.ts +4 -0
  69. package/dist/esm/hosting/index.d.ts.map +1 -0
  70. package/dist/esm/hosting/types/azure-hosting-storage-selector.d.ts +17 -0
  71. package/dist/esm/hosting/types/azure-hosting-storage-selector.d.ts.map +1 -0
  72. package/dist/esm/hosting/types/hosting-extensions.d.ts +8 -0
  73. package/dist/esm/hosting/types/hosting-extensions.d.ts.map +1 -0
  74. package/dist/esm/hosting/types/index.d.ts +3 -0
  75. package/dist/esm/hosting/types/index.d.ts.map +1 -0
  76. package/dist/esm/image/image-extensions.d.ts +7 -0
  77. package/dist/esm/image/image-extensions.d.ts.map +1 -0
  78. package/dist/esm/image/image-station-names.d.ts +8 -0
  79. package/dist/esm/image/image-station-names.d.ts.map +1 -0
  80. package/dist/esm/image/index.d.ts +5 -0
  81. package/dist/esm/image/index.d.ts.map +1 -0
  82. package/dist/{image/thumbnail-renderer.js → esm/image/thumbnail-renderer.d.ts} +4 -21
  83. package/dist/esm/image/thumbnail-renderer.d.ts.map +1 -0
  84. package/dist/esm/image/types/image-cover-extension.d.ts +5 -0
  85. package/dist/esm/image/types/image-cover-extension.d.ts.map +1 -0
  86. package/dist/esm/image/types/image-explorer-extension.d.ts +46 -0
  87. package/dist/esm/image/types/image-explorer-extension.d.ts.map +1 -0
  88. package/dist/esm/image/types/image-extensions.d.ts +13 -0
  89. package/dist/esm/image/types/image-extensions.d.ts.map +1 -0
  90. package/dist/esm/image/types/image-preview-extension.d.ts +8 -0
  91. package/dist/esm/image/types/image-preview-extension.d.ts.map +1 -0
  92. package/dist/esm/image/types/image-route-resolvers.d.ts +4 -0
  93. package/dist/esm/image/types/image-route-resolvers.d.ts.map +1 -0
  94. package/dist/esm/image/types/image-select-field-extension.d.ts +25 -0
  95. package/dist/esm/image/types/image-select-field-extension.d.ts.map +1 -0
  96. package/dist/esm/image/types/index.d.ts +9 -0
  97. package/dist/esm/image/types/index.d.ts.map +1 -0
  98. package/dist/esm/image/types/single-image-select-field-extension.d.ts +7 -0
  99. package/dist/esm/image/types/single-image-select-field-extension.d.ts.map +1 -0
  100. package/dist/esm/image/types/thumbnail-renderer.d.ts +40 -0
  101. package/dist/esm/image/types/thumbnail-renderer.d.ts.map +1 -0
  102. package/dist/esm/index.d.ts +8 -0
  103. package/dist/esm/index.d.ts.map +1 -0
  104. package/dist/esm/index.js +246 -0
  105. package/dist/esm/index.js.map +1 -0
  106. package/dist/esm/initialize.d.ts +8 -0
  107. package/dist/esm/initialize.d.ts.map +1 -0
  108. package/dist/esm/localization/helpers/index.d.ts +2 -0
  109. package/dist/esm/localization/helpers/index.d.ts.map +1 -0
  110. package/dist/{localization/helpers/localization-generator.js → esm/localization/helpers/localization-generator.d.ts} +16 -31
  111. package/dist/esm/localization/helpers/localization-generator.d.ts.map +1 -0
  112. package/dist/esm/localization/index.d.ts +3 -0
  113. package/dist/esm/localization/index.d.ts.map +1 -0
  114. package/dist/esm/localization/types/index.d.ts +2 -0
  115. package/dist/esm/localization/types/index.d.ts.map +1 -0
  116. package/dist/esm/localization/types/localization-generator.d.ts +38 -0
  117. package/dist/esm/localization/types/localization-generator.d.ts.map +1 -0
  118. package/dist/esm/package.json +1 -0
  119. package/dist/esm/piral-extensions.d.ts +10 -0
  120. package/dist/esm/piral-extensions.d.ts.map +1 -0
  121. package/dist/esm/state.d.ts +13 -0
  122. package/dist/esm/state.d.ts.map +1 -0
  123. package/package.json +23 -8
  124. package/src/common/types/models.ts +1 -0
  125. package/src/hosting/get-object-storages.tsx +2 -2
  126. package/src/hosting/hosting-extensions.tsx +3 -3
  127. package/src/hosting/types/azure-hosting-storage-selector.ts +2 -2
  128. package/src/hosting/types/hosting-extensions.ts +1 -1
  129. package/src/image/image-extensions.tsx +2 -2
  130. package/src/image/thumbnail-renderer.tsx +11 -7
  131. package/src/image/types/image-explorer-extension.ts +2 -2
  132. package/src/image/types/image-extensions.ts +5 -5
  133. package/src/image/types/image-preview-extension.ts +1 -1
  134. package/src/image/types/image-select-field-extension.ts +2 -2
  135. package/src/image/types/single-image-select-field-extension.ts +2 -2
  136. package/src/initialize.ts +7 -3
  137. package/src/localization/helpers/localization-generator.ts +12 -6
  138. package/src/piral-extensions.ts +1 -1
  139. package/src/state.ts +55 -0
  140. package/dist/common/default-extension-value.d.ts.map +0 -1
  141. package/dist/common/default-extension-value.js +0 -22
  142. package/dist/common/default-extension-value.js.map +0 -1
  143. package/dist/common/index.d.ts.map +0 -1
  144. package/dist/common/index.js +0 -19
  145. package/dist/common/index.js.map +0 -1
  146. package/dist/common/types/index.d.ts.map +0 -1
  147. package/dist/common/types/index.js +0 -18
  148. package/dist/common/types/index.js.map +0 -1
  149. package/dist/common/types/models.d.ts.map +0 -1
  150. package/dist/common/types/models.js +0 -3
  151. package/dist/common/types/models.js.map +0 -1
  152. package/dist/enums/index.d.ts.map +0 -1
  153. package/dist/enums/index.js +0 -18
  154. package/dist/enums/index.js.map +0 -1
  155. package/dist/enums/tile-names.d.ts.map +0 -1
  156. package/dist/enums/tile-names.js +0 -25
  157. package/dist/enums/tile-names.js.map +0 -1
  158. package/dist/hosting/get-object-storages.d.ts.map +0 -1
  159. package/dist/hosting/get-object-storages.js +0 -25
  160. package/dist/hosting/get-object-storages.js.map +0 -1
  161. package/dist/hosting/hosting-extensions.d.ts +0 -4
  162. package/dist/hosting/hosting-extensions.d.ts.map +0 -1
  163. package/dist/hosting/hosting-extensions.js +0 -16
  164. package/dist/hosting/hosting-extensions.js.map +0 -1
  165. package/dist/hosting/index.d.ts.map +0 -1
  166. package/dist/hosting/index.js +0 -20
  167. package/dist/hosting/index.js.map +0 -1
  168. package/dist/hosting/types/azure-hosting-storage-selector.d.ts.map +0 -1
  169. package/dist/hosting/types/azure-hosting-storage-selector.js +0 -3
  170. package/dist/hosting/types/azure-hosting-storage-selector.js.map +0 -1
  171. package/dist/hosting/types/hosting-extensions.d.ts.map +0 -1
  172. package/dist/hosting/types/hosting-extensions.js +0 -3
  173. package/dist/hosting/types/hosting-extensions.js.map +0 -1
  174. package/dist/hosting/types/index.d.ts.map +0 -1
  175. package/dist/hosting/types/index.js +0 -19
  176. package/dist/hosting/types/index.js.map +0 -1
  177. package/dist/image/image-extensions.d.ts.map +0 -1
  178. package/dist/image/image-extensions.js +0 -27
  179. package/dist/image/image-extensions.js.map +0 -1
  180. package/dist/image/image-station-names.d.ts.map +0 -1
  181. package/dist/image/image-station-names.js +0 -12
  182. package/dist/image/image-station-names.js.map +0 -1
  183. package/dist/image/index.d.ts.map +0 -1
  184. package/dist/image/index.js +0 -21
  185. package/dist/image/index.js.map +0 -1
  186. package/dist/image/thumbnail-renderer.d.ts.map +0 -1
  187. package/dist/image/thumbnail-renderer.js.map +0 -1
  188. package/dist/image/types/image-cover-extension.d.ts.map +0 -1
  189. package/dist/image/types/image-cover-extension.js +0 -3
  190. package/dist/image/types/image-cover-extension.js.map +0 -1
  191. package/dist/image/types/image-explorer-extension.d.ts.map +0 -1
  192. package/dist/image/types/image-explorer-extension.js +0 -3
  193. package/dist/image/types/image-explorer-extension.js.map +0 -1
  194. package/dist/image/types/image-extensions.d.ts +0 -13
  195. package/dist/image/types/image-extensions.d.ts.map +0 -1
  196. package/dist/image/types/image-extensions.js +0 -3
  197. package/dist/image/types/image-extensions.js.map +0 -1
  198. package/dist/image/types/image-preview-extension.d.ts.map +0 -1
  199. package/dist/image/types/image-preview-extension.js +0 -3
  200. package/dist/image/types/image-preview-extension.js.map +0 -1
  201. package/dist/image/types/image-route-resolvers.d.ts.map +0 -1
  202. package/dist/image/types/image-route-resolvers.js +0 -3
  203. package/dist/image/types/image-route-resolvers.js.map +0 -1
  204. package/dist/image/types/image-select-field-extension.d.ts.map +0 -1
  205. package/dist/image/types/image-select-field-extension.js +0 -3
  206. package/dist/image/types/image-select-field-extension.js.map +0 -1
  207. package/dist/image/types/index.d.ts.map +0 -1
  208. package/dist/image/types/index.js +0 -25
  209. package/dist/image/types/index.js.map +0 -1
  210. package/dist/image/types/single-image-select-field-extension.d.ts.map +0 -1
  211. package/dist/image/types/single-image-select-field-extension.js +0 -3
  212. package/dist/image/types/single-image-select-field-extension.js.map +0 -1
  213. package/dist/image/types/thumbnail-renderer.d.ts.map +0 -1
  214. package/dist/image/types/thumbnail-renderer.js +0 -3
  215. package/dist/image/types/thumbnail-renderer.js.map +0 -1
  216. package/dist/index.d.ts.map +0 -1
  217. package/dist/index.js +0 -26
  218. package/dist/index.js.map +0 -1
  219. package/dist/initialize.d.ts.map +0 -1
  220. package/dist/initialize.js +0 -13
  221. package/dist/initialize.js.map +0 -1
  222. package/dist/localization/helpers/index.d.ts.map +0 -1
  223. package/dist/localization/helpers/index.js +0 -18
  224. package/dist/localization/helpers/index.js.map +0 -1
  225. package/dist/localization/helpers/localization-generator.d.ts.map +0 -1
  226. package/dist/localization/helpers/localization-generator.js.map +0 -1
  227. package/dist/localization/index.d.ts.map +0 -1
  228. package/dist/localization/index.js +0 -19
  229. package/dist/localization/index.js.map +0 -1
  230. package/dist/localization/types/index.d.ts.map +0 -1
  231. package/dist/localization/types/index.js +0 -18
  232. package/dist/localization/types/index.js.map +0 -1
  233. package/dist/localization/types/localization-generator.d.ts.map +0 -1
  234. package/dist/localization/types/localization-generator.js +0 -3
  235. package/dist/localization/types/localization-generator.js.map +0 -1
  236. package/dist/piral-extensions.d.ts.map +0 -1
  237. package/dist/piral-extensions.js +0 -3
  238. package/dist/piral-extensions.js.map +0 -1
  239. package/dist/tsconfig.tsbuildinfo +0 -1
  240. /package/dist/{common → cjs/common}/default-extension-value.d.ts +0 -0
  241. /package/dist/{common → cjs/common}/index.d.ts +0 -0
  242. /package/dist/{common → cjs/common}/types/index.d.ts +0 -0
  243. /package/dist/{common → cjs/common}/types/models.d.ts +0 -0
  244. /package/dist/{enums → cjs/enums}/index.d.ts +0 -0
  245. /package/dist/{enums → cjs/enums}/tile-names.d.ts +0 -0
  246. /package/dist/{hosting → cjs/hosting}/get-object-storages.d.ts +0 -0
  247. /package/dist/{hosting → cjs/hosting}/index.d.ts +0 -0
  248. /package/dist/{hosting → cjs/hosting}/types/index.d.ts +0 -0
  249. /package/dist/{image → cjs/image}/image-station-names.d.ts +0 -0
  250. /package/dist/{image → cjs/image}/index.d.ts +0 -0
  251. /package/dist/{image → cjs/image}/types/image-cover-extension.d.ts +0 -0
  252. /package/dist/{image → cjs/image}/types/image-route-resolvers.d.ts +0 -0
  253. /package/dist/{image → cjs/image}/types/index.d.ts +0 -0
  254. /package/dist/{image → cjs/image}/types/thumbnail-renderer.d.ts +0 -0
  255. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  256. /package/dist/{localization → cjs/localization}/helpers/index.d.ts +0 -0
  257. /package/dist/{localization → cjs/localization}/index.d.ts +0 -0
  258. /package/dist/{localization → cjs/localization}/types/index.d.ts +0 -0
  259. /package/dist/{localization → cjs/localization}/types/localization-generator.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-extension-value.d.ts","sourceRoot":"","sources":["../../../src/common/default-extension-value.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,QAAO,GAAG,CAAC,OAE5C,CAAC;AAEF,eAAO,MAAM,6BAA6B;AACxC;;GAEG;AACH,SAAS,MAAM,KACd,CAAC,MAAM,GAAG,CAAC,OAAO,CAQpB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/common/types/models.ts"],"names":[],"mappings":"AACA,qEAAqE;AACrE,UAAU,OAAO;IACf,qGAAqG;IACrG,IAAI,EAAE,GAAG,CAAC;IACV,mFAAmF;IACnF,QAAQ,EAAE,GAAG,CAAC;IACd;;;OAGG;IACH,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAEjC,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tile-names.d.ts","sourceRoot":"","sources":["../../../src/enums/tile-names.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,gBAAgB,qBAAqB;IACrC,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;IACvD,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,0BAA0B,+BAA+B;IACzD,yBAAyB,8BAA8B;IACvD,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAC3C,6BAA6B,kCAAkC;IAC/D,2BAA2B,gCAAgC;CAC5D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-object-storages.d.ts","sourceRoot":"","sources":["../../../src/hosting/get-object-storages.tsx"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAChD,aAAa,EAAE,GAAG,SAAS,CAS5B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PiletApi } from '@axinom/mosaic-portal';
2
+ import type { HostingExtensions } from './types/hosting-extensions';
3
+ export declare const bindHostingExtensions: (app: PiletApi) => HostingExtensions;
4
+ //# sourceMappingURL=hosting-extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosting-extensions.d.ts","sourceRoot":"","sources":["../../../src/hosting/hosting-extensions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,eAAO,MAAM,qBAAqB,GAAI,KAAK,QAAQ,KAAG,iBAYrD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hosting/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
- import { BaseFormControl, BaseInputEvents } from '@axinom/mosaic-ui';
2
- import { ObjectStorage } from '../get-object-storages';
1
+ import type { BaseFormControl, BaseInputEvents } from '@axinom/mosaic-ui';
2
+ import type { ObjectStorage } from '../get-object-storages';
3
3
  export interface AzureStorageSelectorProps extends BaseFormControl, BaseInputEvents {
4
4
  /** Current value the form control has */
5
5
  value?: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azure-hosting-storage-selector.d.ts","sourceRoot":"","sources":["../../../../src/hosting/types/azure-hosting-storage-selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,yBACf,SAAQ,eAAe,EACrB,eAAe;IACjB,yCAAyC;IACzC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,wCAAwC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,gDAAgD;IAChD,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -1,4 +1,4 @@
1
- import { AzureStorageSelectorProps } from './azure-hosting-storage-selector';
1
+ import type { AzureStorageSelectorProps } from './azure-hosting-storage-selector';
2
2
  /**
3
3
  * Hosting Service related extensions
4
4
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosting-extensions.d.ts","sourceRoot":"","sources":["../../../../src/hosting/types/hosting-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;CAC3D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hosting/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { PiletApi } from '@axinom/mosaic-portal';
2
- import { ImageExtensions } from './types';
1
+ import type { PiletApi } from '@axinom/mosaic-portal';
2
+ import type { ImageExtensions } from './types';
3
3
  /**
4
4
  * Returns an object containing Extension components for the shared extensions provided by the image service.
5
5
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-extensions.d.ts","sourceRoot":"","sources":["../../../src/image/image-extensions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,KAAK,EAEV,eAAe,EAKhB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,KAAK,QAAQ,KAAG,eAkDnD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-station-names.d.ts","sourceRoot":"","sources":["../../../src/image/image-station-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,YAAY,kBAAkB;CAC/B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/image/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ColumnMap, ColumnRenderer, Data } from '@axinom/mosaic-ui';
2
- import { ThumbnailProperty, ThumbnailResolver, ThumbnailResolverType } from './types';
1
+ import type { ColumnMap, ColumnRenderer, Data } from '@axinom/mosaic-ui';
2
+ import type { ThumbnailProperty, ThumbnailResolver, ThumbnailResolverType } from './types';
3
3
  /**
4
4
  * This function simplifies access to the shared functionality provided by the image workflow in the PiletApi object.
5
5
  * In case the shared functionality is not available, a fallback renderer is returned.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thumbnail-renderer.d.ts","sourceRoot":"","sources":["../../../src/image/thumbnail-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGzE,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,IAAI,EAC5D,6BAA6B,iBAAiB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,EACxE,WAAW,SAAS,EACpB,eAAe,qBAAqB,KACnC,cAAc,CAAC,CAAC,CAiBlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-cover-extension.d.ts","sourceRoot":"","sources":["../../../../src/image/types/image-cover-extension.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,eAAe;IACf,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -1,5 +1,5 @@
1
- import { FilterValues } from '@axinom/mosaic-ui';
2
- import { BigFloat, Datetime, ID } from '../../common';
1
+ import type { FilterValues } from '@axinom/mosaic-ui';
2
+ import type { BigFloat, Datetime, ID } from '../../common';
3
3
  export interface ImageSelectExplorerProps {
4
4
  /** Optional Title shown in page header (default: 'Images') */
5
5
  title?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-explorer-extension.d.ts","sourceRoot":"","sources":["../../../../src/image/types/image-explorer-extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2GAA2G;IAC3G,YAAY,CAAC,EAAE,EAAE,EAAE,CAAC;IACpB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qIAAqI;IACrI,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,sBAAsB,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjD;;;OAGG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,IAAI,CAAC;IAClC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,EAAE,CAAC;IACP,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,QAAQ,CAAC;IACtB,WAAW,EAAE,QAAQ,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,13 @@
1
+ import type { ImageCoverProps } from './image-cover-extension';
2
+ import type { ImageSelectExplorerProps } from './image-explorer-extension';
3
+ import type { ImagePreviewProps } from './image-preview-extension';
4
+ import type { ImageSelectFieldProps } from './image-select-field-extension';
5
+ import type { SingleImageSelectFieldProps } from './single-image-select-field-extension';
6
+ export interface ImageExtensions {
7
+ ImageCover: React.FC<ImageCoverProps>;
8
+ ImagePreview: React.FC<ImagePreviewProps>;
9
+ ImageSelectExplorer: React.FC<ImageSelectExplorerProps>;
10
+ ImageSelectField: React.FC<ImageSelectFieldProps>;
11
+ SingleImageSelectField: React.FC<SingleImageSelectFieldProps>;
12
+ }
13
+ //# sourceMappingURL=image-extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-extensions.d.ts","sourceRoot":"","sources":["../../../../src/image/types/image-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAEzF,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IACtC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;IAC1C,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAC;IACxD,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC;IAClD,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAAC,CAAC;CAC/D"}
@@ -1,4 +1,4 @@
1
- import { ImageLoaderProps } from '@axinom/mosaic-ui';
1
+ import type { ImageLoaderProps } from '@axinom/mosaic-ui';
2
2
  export interface ImagePreviewProps extends Omit<ImageLoaderProps, 'imgSrc'> {
3
3
  /** Image Id */
4
4
  id?: string | null;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-preview-extension.d.ts","sourceRoot":"","sources":["../../../../src/image/types/image-preview-extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IACzE,eAAe;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,qFAAqF;IACrF,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAChC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-route-resolvers.d.ts","sourceRoot":"","sources":["../../../../src/image/types/image-route-resolvers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAC1C,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9C,MAAM,CAAC"}
@@ -1,5 +1,5 @@
1
- import { BaseFormControl, BaseInputEvents } from '@axinom/mosaic-ui';
2
- import { ID } from '../../common';
1
+ import type { BaseFormControl, BaseInputEvents } from '@axinom/mosaic-ui';
2
+ import type { ID } from '../../common';
3
3
  export interface ImageSelectFieldProps extends ImageSelectFieldBaseProps {
4
4
  /** Current value the form control has */
5
5
  value?: ID[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-select-field-extension.d.ts","sourceRoot":"","sources":["../../../../src/image/types/image-select-field-extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB;IACtE,yCAAyC;IACzC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC;IACb,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBACf,SAAQ,eAAe,EACrB,eAAe;IACjB,wCAAwC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEnC,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/image/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,sBAAsB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ID } from '../../common';
2
- import { ImageSelectFieldBaseProps } from './image-select-field-extension';
1
+ import type { ID } from '../../common';
2
+ import type { ImageSelectFieldBaseProps } from './image-select-field-extension';
3
3
  export interface SingleImageSelectFieldProps extends ImageSelectFieldBaseProps {
4
4
  /** Current value the form control has */
5
5
  value?: ID;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-image-select-field-extension.d.ts","sourceRoot":"","sources":["../../../../src/image/types/single-image-select-field-extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,MAAM,WAAW,2BAA4B,SAAQ,yBAAyB;IAC5E,yCAAyC;IACzC,KAAK,CAAC,EAAE,EAAE,CAAC;CACZ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thumbnail-renderer.d.ts","sourceRoot":"","sources":["../../../../src/image/types/thumbnail-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,KAAK,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,264 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ const extensionDefaultValue = () => (React__default["default"].createElement("div", null, "Extension is not loaded."));
12
+ const generateExtensionDefaultValue = (
13
+ /**
14
+ * The service name for which the extension is not loaded. Without the `Service` suffix.
15
+ */
16
+ service) => {
17
+ const ExtensionNotFound = () => (React__default["default"].createElement("p", null,
18
+ "Extension is not loaded. Please make sure that the ",
19
+ service,
20
+ " Service is enabled."));
21
+ return ExtensionNotFound;
22
+ };
23
+
24
+ /**
25
+ * These are the names the managed services use to register their tiles and navigation items.
26
+ */
27
+ exports.TileNames = void 0;
28
+ (function (TileNames) {
29
+ TileNames["VideosNavigation"] = "videosNavigation";
30
+ TileNames["VideoProcessingNavigation"] = "videoProcessingNavigation";
31
+ TileNames["VideoPublishingNavigation"] = "videoPublishingNavigation";
32
+ TileNames["VideoPlaygroundNavigation"] = "videoPlaygroundNavigation";
33
+ TileNames["HomeSettings"] = "homeSettings";
34
+ TileNames["UserNavigation"] = "userNavigation";
35
+ TileNames["UserRoleNavigation"] = "userRoleNavigation";
36
+ TileNames["ImageNavigation"] = "imageNavigation";
37
+ TileNames["ImageAcquisitionNavigation"] = "imageAcquisitionNavigation";
38
+ TileNames["ImagePlaygroundNavigation"] = "ImagePlaygroundNavigation";
39
+ TileNames["LocalizationNavigation"] = "localizationNavigation";
40
+ TileNames["UserNavigationSettings"] = "userNavigationSettings";
41
+ TileNames["EncodingDrmSettings"] = "encodingDrmSettings";
42
+ TileNames["EncodingAcquisitionNavigation"] = "encodingAcquisitionNavigation";
43
+ TileNames["EncodingWatermarkNavigation"] = "encodingWatermarkNavigation";
44
+ })(exports.TileNames || (exports.TileNames = {}));
45
+
46
+ const stateKey = Symbol.for('@axinom/mosaic-managed-workflow-integration/state');
47
+ const getStateContainer = () => globalThis;
48
+ const getManagedWorkflowIntegrationState = () => {
49
+ const stateContainer = getStateContainer();
50
+ const existingState = stateContainer[stateKey];
51
+ if (existingState !== undefined) {
52
+ return existingState;
53
+ }
54
+ const state = {
55
+ localizationEntryPoints: {},
56
+ piletApi: undefined,
57
+ piletApiListeners: new Set(),
58
+ };
59
+ stateContainer[stateKey] = state;
60
+ return state;
61
+ };
62
+ const getPiletApi = () => getManagedWorkflowIntegrationState().piletApi;
63
+ const setPiletApi = (piletApi) => {
64
+ const state = getManagedWorkflowIntegrationState();
65
+ state.piletApi = piletApi;
66
+ state.piletApiListeners.forEach((listener) => listener(piletApi));
67
+ };
68
+ const addPiletApiListener = (listener) => {
69
+ getManagedWorkflowIntegrationState().piletApiListeners.add(listener);
70
+ };
71
+
72
+ /**
73
+ * Get enabled Object Storages
74
+ * @returns
75
+ */
76
+ const getObjectStorages = async () => {
77
+ const piletApi = getPiletApi();
78
+ if (piletApi === undefined) {
79
+ throw new Error('The pilet API is not initialized. Please call `initializeIntegrationLib` before using this function.');
80
+ }
81
+ return piletApi.getData('getObjectStorages')();
82
+ };
83
+
84
+ const bindHostingExtensions = (app) => {
85
+ const AzureStorageSelector = (props) => (React__default["default"].createElement(app.Extension, { name: "hosting-azure-storage-selector", empty: extensionDefaultValue, params: props }));
86
+ return {
87
+ AzureStorageSelector: AzureStorageSelector,
88
+ };
89
+ };
90
+
91
+ /**
92
+ * Returns an object containing Extension components for the shared extensions provided by the image service.
93
+ */
94
+ const bindImageExtensions = (app) => {
95
+ const ImageCover = (props) => (React__default["default"].createElement(app.Extension, { name: "image-cover", empty: generateExtensionDefaultValue('Image'), params: props }));
96
+ const ImageSelectExplorer = (props) => (React__default["default"].createElement(app.Extension, { name: "image-select-explorer", empty: generateExtensionDefaultValue('Image'), params: props }));
97
+ const ImageSelectField = (props) => (React__default["default"].createElement(app.Extension, { name: "image-select-field", empty: generateExtensionDefaultValue('Image'), params: props }));
98
+ const SingleImageSelectField = (props) => (React__default["default"].createElement(app.Extension, { name: "single-image-select-field", empty: generateExtensionDefaultValue('Image'), params: props }));
99
+ const ImagePreview = (props) => (React__default["default"].createElement(app.Extension, { name: "image-preview", empty: generateExtensionDefaultValue('Image'), params: props }));
100
+ return {
101
+ ImageCover,
102
+ ImagePreview,
103
+ ImageSelectExplorer,
104
+ ImageSelectField,
105
+ SingleImageSelectField,
106
+ };
107
+ };
108
+
109
+ /**
110
+ * Enum for image station names used to register image route resolvers
111
+ * use it to access image station route resolvers in a type-safe manner
112
+ */
113
+ exports.ImageStationNames = void 0;
114
+ (function (ImageStationNames) {
115
+ ImageStationNames["ImageDetails"] = "image-details";
116
+ })(exports.ImageStationNames || (exports.ImageStationNames = {}));
117
+
118
+ /**
119
+ * This function simplifies access to the shared functionality provided by the image workflow in the PiletApi object.
120
+ * In case the shared functionality is not available, a fallback renderer is returned.
121
+ *
122
+ * Make sure to initialize the integration library by calling the `initializeIntegrationLib` function,
123
+ * otherwise it will always return the fallback renderer.
124
+ *
125
+ * The renderer expects that the column is bound to the property containing the state. The thumbnail property is passed as an argument.
126
+ *
127
+ * @param thumbnailPropertyOrResolver
128
+ * Either the name of a property on the `data` object that has the following shape:
129
+ * ```ts
130
+ * {
131
+ * nodes: [{
132
+ * imageId: 'b437056b-c28e-46fa-ad9d-8bd16e7609fa'
133
+ * }]
134
+ * }
135
+ * ```
136
+ * This reflects the shape a typical postgraphile response would have.
137
+ * The renderer will pick the fist imageId from the nodes array.
138
+ *
139
+ * Alternatively a callback function can be passed that resolves to a url location.
140
+ * The row data is passed as an argument.
141
+ * The method can either return the full url of the image or the uuid of the image.
142
+ * If the uuid is returned, the `resolverType` argument needs to be set to 'uuid'.
143
+ * @param stateMap An object of key/value pairs mapping column values to CSS colors. If an empty object is passed, no state will be rendered.
144
+ * ```ts
145
+ * {
146
+ * 'PUBLISHED': '#95C842',
147
+ * 'CHANGED': '#FFC81A',
148
+ * 'NOT_PUBLISHED': '#DDDDDD',
149
+ * }
150
+ * ```
151
+ * @param resolverType either 'url' or 'uuid', depending on what your resolver is returning.
152
+ * @returns A thumbnail and state column renderer
153
+ */
154
+ const createThumbnailAndStateRenderer = (thumbnailPropertyOrResolver, stateMap, resolverType) => {
155
+ const Renderer = (value, data) => {
156
+ const thumbnailAndStateRenderer = getPiletApi()?.getData('thumbnailAndStateRenderer');
157
+ if (thumbnailAndStateRenderer) {
158
+ return thumbnailAndStateRenderer(thumbnailPropertyOrResolver, stateMap, resolverType)(value, data);
159
+ }
160
+ return React__default["default"].createElement("span", { title: "No Renderer" }, "No Renderer");
161
+ };
162
+ return Renderer;
163
+ };
164
+
165
+ getPiletApi();
166
+ addPiletApiListener((updatedPiletApi) => {
167
+ });
168
+ /**
169
+ * Initializes the integration library with the provided Pilet API.
170
+ * @param app the PiletAPI object
171
+ */
172
+ const initializeIntegrationLib = (app) => {
173
+ setPiletApi(app);
174
+ };
175
+
176
+ const getLocalizationEntryPointsState = () => getManagedWorkflowIntegrationState().localizationEntryPoints;
177
+ /**
178
+ * @returns The list of all registered localization entry points
179
+ */
180
+ const getLocalizationEntryPoints = () => getLocalizationEntryPointsState();
181
+ /**
182
+ * @param entityType Name of the entity type set when registering the localization entry point
183
+ * @returns Path to the localization station for the given entity type
184
+ */
185
+ const getLocalizationEntryPoint = (entityType) => getLocalizationEntryPointsState()[entityType];
186
+ /**
187
+ * Instead of using this function directly, it is recommended to use `registerLocalizationEntryPoints` function instead.
188
+ * `registerLocalizationEntryPoints` is a wrapper around this function that provides a more convenient way to register localization entry points.
189
+ *
190
+ * This function is designed to be used as callback of the `app.getDataHelper('localization-registration', callback)` call.
191
+ *
192
+ * The function returns a function that can be called with a `LocalizationGenerator` function. When this function is called,
193
+ * it will register the localization entry points that were provided as `data`.
194
+ * @param data Data containing the information needed to register the localization station paths for the entity using the localization generator
195
+ * @returns A function that will register the localization entry points using provided `data`
196
+ * @example
197
+ * ```ts
198
+ * app.getDataHelper('localization-registration', generateLocalizationEntryPoints([
199
+ * { root: '/movie/:id', entityIdParam: 'id', entityType: 'movie' },
200
+ * { root: '/series/:seriesId', entityIdParam: 'seriesId', entityType: 'series' },
201
+ * // with resolveRoot
202
+ * {
203
+ * root: '/channel/:channelId/playlist/:playlistId',
204
+ * resolveRoot: async(playlistId: string) => Promise.resolve({ channelId:'123' }),
205
+ * entityIdParam: 'playlistId',
206
+ * entityType: 'playlist'
207
+ * }
208
+ * ]));
209
+ * ```
210
+ */
211
+ function generateLocalizationEntryPoints(data) {
212
+ return (generator) => {
213
+ const localizationEntryPoints = getLocalizationEntryPointsState();
214
+ if (generator) {
215
+ data.forEach((dataItem) => {
216
+ const path = generator(dataItem);
217
+ if (path) {
218
+ localizationEntryPoints[dataItem.entityType] = path;
219
+ }
220
+ });
221
+ }
222
+ return localizationEntryPoints;
223
+ };
224
+ }
225
+ /**
226
+ * This function can be used to register embedded localization workflows for entities.
227
+ * The localization service will register all required stations to provide an embedded localization workflow for the entity.
228
+ * To query then entry point for a specific entity, to e.g. create a details page action that links to the sub-workflow, use `getLocalizationEntryPoint` function.
229
+ * @param data Data containing the information needed to register the localization station paths for the entity using the localization generator
230
+ * @example
231
+ * ```ts
232
+ * registerLocalizationEntryPoints([
233
+ * { root: '/movie/:id', entityIdParam: 'id', entityType: 'movie' },
234
+ * { root: '/series/:seriesId', entityIdParam: 'seriesId', entityType: 'series' },
235
+ * // with resolveRoot
236
+ * {
237
+ * root: '/channel/:channelId/playlist/:playlistId',
238
+ * resolveRoot: async(playlistId: string) => Promise.resolve({ channelId:'123' }),
239
+ * entityIdParam: 'playlistId',
240
+ * entityType: 'playlist'
241
+ * }
242
+ * ]
243
+ * ```
244
+ */
245
+ function registerLocalizationEntryPoints(data) {
246
+ const piletApi = getPiletApi();
247
+ if (piletApi === undefined) {
248
+ throw new Error('The pilet API is not initialized. Please call `initializeIntegrationLib` before using this function or pass the API object as 2nd parameter.');
249
+ }
250
+ piletApi.getDataHelper('localization-registration', generateLocalizationEntryPoints(data));
251
+ }
252
+
253
+ exports.bindHostingExtensions = bindHostingExtensions;
254
+ exports.bindImageExtensions = bindImageExtensions;
255
+ exports.createThumbnailAndStateRenderer = createThumbnailAndStateRenderer;
256
+ exports.extensionDefaultValue = extensionDefaultValue;
257
+ exports.generateExtensionDefaultValue = generateExtensionDefaultValue;
258
+ exports.generateLocalizationEntryPoints = generateLocalizationEntryPoints;
259
+ exports.getLocalizationEntryPoint = getLocalizationEntryPoint;
260
+ exports.getLocalizationEntryPoints = getLocalizationEntryPoints;
261
+ exports.getObjectStorages = getObjectStorages;
262
+ exports.initializeIntegrationLib = initializeIntegrationLib;
263
+ exports.registerLocalizationEntryPoints = registerLocalizationEntryPoints;
264
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/common/default-extension-value.tsx","../../src/enums/tile-names.ts","../../src/state.ts","../../src/hosting/get-object-storages.tsx","../../src/hosting/hosting-extensions.tsx","../../src/image/image-extensions.tsx","../../src/image/image-station-names.ts","../../src/image/thumbnail-renderer.tsx","../../src/initialize.ts","../../src/localization/helpers/localization-generator.ts"],"sourcesContent":["import React from 'react';\n\nexport const extensionDefaultValue = (): JSX.Element => (\n <div>Extension is not loaded.</div>\n);\n\nexport const generateExtensionDefaultValue = (\n /**\n * The service name for which the extension is not loaded. Without the `Service` suffix.\n */\n service: string,\n): (() => JSX.Element) => {\n const ExtensionNotFound = (): JSX.Element => (\n <p>\n Extension is not loaded. Please make sure that the {service} Service is\n enabled.\n </p>\n );\n return ExtensionNotFound;\n};\n","/**\n * These are the names the managed services use to register their tiles and navigation items.\n */\nexport enum TileNames {\n VideosNavigation = 'videosNavigation',\n VideoProcessingNavigation = 'videoProcessingNavigation',\n VideoPublishingNavigation = 'videoPublishingNavigation',\n VideoPlaygroundNavigation = 'videoPlaygroundNavigation',\n HomeSettings = 'homeSettings',\n UserNavigation = 'userNavigation',\n UserRoleNavigation = 'userRoleNavigation',\n ImageNavigation = 'imageNavigation',\n ImageAcquisitionNavigation = 'imageAcquisitionNavigation',\n ImagePlaygroundNavigation = 'ImagePlaygroundNavigation',\n LocalizationNavigation = 'localizationNavigation',\n UserNavigationSettings = 'userNavigationSettings',\n EncodingDrmSettings = 'encodingDrmSettings',\n EncodingAcquisitionNavigation = 'encodingAcquisitionNavigation',\n EncodingWatermarkNavigation = 'encodingWatermarkNavigation',\n}\n","import type { PiletApi } from '@axinom/mosaic-portal';\n\nexport type LocalizationEntryPointsState = Record<string, string>;\n\ninterface ManagedWorkflowIntegrationState {\n localizationEntryPoints: LocalizationEntryPointsState;\n piletApi: PiletApi | undefined;\n piletApiListeners: Set<(piletApi: PiletApi | undefined) => void>;\n}\n\nconst stateKey = Symbol.for(\n '@axinom/mosaic-managed-workflow-integration/state',\n);\n\nconst getStateContainer = (): Record<\n symbol,\n ManagedWorkflowIntegrationState | undefined\n> =>\n globalThis as unknown as Record<\n symbol,\n ManagedWorkflowIntegrationState | undefined\n >;\nexport const getManagedWorkflowIntegrationState =\n (): ManagedWorkflowIntegrationState => {\n const stateContainer = getStateContainer();\n const existingState = stateContainer[stateKey];\n\n if (existingState !== undefined) {\n return existingState;\n }\n\n const state: ManagedWorkflowIntegrationState = {\n localizationEntryPoints: {},\n piletApi: undefined,\n piletApiListeners: new Set(),\n };\n stateContainer[stateKey] = state;\n return state;\n };\n\nexport const getPiletApi = (): PiletApi | undefined =>\n getManagedWorkflowIntegrationState().piletApi;\n\nexport const setPiletApi = (piletApi: PiletApi): void => {\n const state = getManagedWorkflowIntegrationState();\n state.piletApi = piletApi;\n\n state.piletApiListeners.forEach((listener) => listener(piletApi));\n};\n\nexport const addPiletApiListener = (\n listener: (piletApi: PiletApi | undefined) => void,\n): void => {\n getManagedWorkflowIntegrationState().piletApiListeners.add(listener);\n};\n","import { getPiletApi } from '../state';\n/**\n * Represents an object storage.\n */\nexport interface ObjectStorage {\n provider: string;\n name: string;\n}\n\n/**\n * Get enabled Object Storages\n * @returns\n */\nexport const getObjectStorages = async (): Promise<\n ObjectStorage[] | undefined\n> => {\n const piletApi = getPiletApi();\n if (piletApi === undefined) {\n throw new Error(\n 'The pilet API is not initialized. Please call `initializeIntegrationLib` before using this function.',\n );\n }\n return piletApi.getData('getObjectStorages')();\n};\n","import type { PiletApi } from '@axinom/mosaic-portal';\nimport React from 'react';\nimport { extensionDefaultValue } from '../common/default-extension-value';\nimport type { AzureStorageSelectorProps } from './types';\nimport type { HostingExtensions } from './types/hosting-extensions';\n\nexport const bindHostingExtensions = (app: PiletApi): HostingExtensions => {\n const AzureStorageSelector: React.FC<AzureStorageSelectorProps> = (props) => (\n <app.Extension\n name=\"hosting-azure-storage-selector\"\n empty={extensionDefaultValue}\n params={props}\n />\n );\n\n return {\n AzureStorageSelector: AzureStorageSelector,\n };\n};\n","import type { PiletApi } from '@axinom/mosaic-portal';\nimport React from 'react';\nimport { generateExtensionDefaultValue } from '../common/default-extension-value';\nimport type {\n ImageCoverProps,\n ImageExtensions,\n ImagePreviewProps,\n ImageSelectExplorerProps,\n ImageSelectFieldProps,\n SingleImageSelectFieldProps,\n} from './types';\n\n/**\n * Returns an object containing Extension components for the shared extensions provided by the image service.\n */\nexport const bindImageExtensions = (app: PiletApi): ImageExtensions => {\n const ImageCover: React.FC<ImageCoverProps> = (props) => (\n <app.Extension\n name=\"image-cover\"\n empty={generateExtensionDefaultValue('Image')}\n params={props}\n />\n );\n\n const ImageSelectExplorer: React.FC<ImageSelectExplorerProps> = (props) => (\n <app.Extension\n name=\"image-select-explorer\"\n empty={generateExtensionDefaultValue('Image')}\n params={props}\n />\n );\n\n const ImageSelectField: React.FC<ImageSelectFieldProps> = (props) => (\n <app.Extension\n name=\"image-select-field\"\n empty={generateExtensionDefaultValue('Image')}\n params={props}\n />\n );\n\n const SingleImageSelectField: React.FC<SingleImageSelectFieldProps> = (\n props,\n ) => (\n <app.Extension\n name=\"single-image-select-field\"\n empty={generateExtensionDefaultValue('Image')}\n params={props}\n />\n );\n\n const ImagePreview: React.FC<ImagePreviewProps> = (props) => (\n <app.Extension\n name=\"image-preview\"\n empty={generateExtensionDefaultValue('Image')}\n params={props}\n />\n );\n\n return {\n ImageCover,\n ImagePreview,\n ImageSelectExplorer,\n ImageSelectField,\n SingleImageSelectField,\n };\n};\n","/**\n * Enum for image station names used to register image route resolvers\n * use it to access image station route resolvers in a type-safe manner\n */\nexport enum ImageStationNames {\n ImageDetails = 'image-details',\n}\n","import type { ColumnMap, ColumnRenderer, Data } from '@axinom/mosaic-ui';\nimport React from 'react';\nimport { getPiletApi } from '../state';\nimport type {\n ThumbnailProperty,\n ThumbnailResolver,\n ThumbnailResolverType,\n} from './types';\n\n/**\n * This function simplifies access to the shared functionality provided by the image workflow in the PiletApi object.\n * In case the shared functionality is not available, a fallback renderer is returned.\n *\n * Make sure to initialize the integration library by calling the `initializeIntegrationLib` function,\n * otherwise it will always return the fallback renderer.\n *\n * The renderer expects that the column is bound to the property containing the state. The thumbnail property is passed as an argument.\n *\n * @param thumbnailPropertyOrResolver\n * Either the name of a property on the `data` object that has the following shape:\n * ```ts\n * {\n * nodes: [{\n * imageId: 'b437056b-c28e-46fa-ad9d-8bd16e7609fa'\n * }]\n * }\n * ```\n * This reflects the shape a typical postgraphile response would have.\n * The renderer will pick the fist imageId from the nodes array.\n *\n * Alternatively a callback function can be passed that resolves to a url location.\n * The row data is passed as an argument.\n * The method can either return the full url of the image or the uuid of the image.\n * If the uuid is returned, the `resolverType` argument needs to be set to 'uuid'.\n * @param stateMap An object of key/value pairs mapping column values to CSS colors. If an empty object is passed, no state will be rendered.\n * ```ts\n * {\n * 'PUBLISHED': '#95C842',\n * 'CHANGED': '#FFC81A',\n * 'NOT_PUBLISHED': '#DDDDDD',\n * }\n * ```\n * @param resolverType either 'url' or 'uuid', depending on what your resolver is returning.\n * @returns A thumbnail and state column renderer\n */\nexport const createThumbnailAndStateRenderer = <T extends Data>(\n thumbnailPropertyOrResolver: ThumbnailProperty<T> | ThumbnailResolver<T>,\n stateMap?: ColumnMap,\n resolverType?: ThumbnailResolverType,\n): ColumnRenderer<T> => {\n const Renderer: ColumnRenderer<T> = (value, data) => {\n const thumbnailAndStateRenderer = getPiletApi()?.getData(\n 'thumbnailAndStateRenderer',\n );\n\n if (thumbnailAndStateRenderer) {\n return thumbnailAndStateRenderer(\n thumbnailPropertyOrResolver,\n stateMap,\n resolverType,\n )(value, data);\n }\n\n return <span title=\"No Renderer\">No Renderer</span>;\n };\n return Renderer;\n};\n","import type { PiletApi } from '@axinom/mosaic-portal';\nimport { addPiletApiListener, getPiletApi, setPiletApi } from './state';\n\nexport let piletApi: PiletApi | undefined = getPiletApi();\n\naddPiletApiListener((updatedPiletApi) => {\n piletApi = updatedPiletApi;\n});\n/**\n * Initializes the integration library with the provided Pilet API.\n * @param app the PiletAPI object\n */\nexport const initializeIntegrationLib = (app: PiletApi): void => {\n setPiletApi(app);\n};\n","import { getManagedWorkflowIntegrationState, getPiletApi } from '../../state';\nimport type {\n LocalizationGenerator,\n LocalizationGeneratorParams,\n} from '../types';\n\n/**\n * An object that maps entity types to their localization entry point paths\n * @example\n * ```ts\n * {\n * movie: '/movie/:id/localization',\n * series: '/series/:seriesId/localization',\n * }\n */\nexport type LocalizationEntryPoints = Record<string, string>;\n\nconst getLocalizationEntryPointsState = (): LocalizationEntryPoints =>\n getManagedWorkflowIntegrationState().localizationEntryPoints;\n\n/**\n * @returns The list of all registered localization entry points\n */\nexport const getLocalizationEntryPoints = (): LocalizationEntryPoints =>\n getLocalizationEntryPointsState();\n\n/**\n * @param entityType Name of the entity type set when registering the localization entry point\n * @returns Path to the localization station for the given entity type\n */\nexport const getLocalizationEntryPoint = (\n entityType: string,\n): string | undefined => getLocalizationEntryPointsState()[entityType];\n/**\n * Instead of using this function directly, it is recommended to use `registerLocalizationEntryPoints` function instead.\n * `registerLocalizationEntryPoints` is a wrapper around this function that provides a more convenient way to register localization entry points.\n *\n * This function is designed to be used as callback of the `app.getDataHelper('localization-registration', callback)` call.\n *\n * The function returns a function that can be called with a `LocalizationGenerator` function. When this function is called,\n * it will register the localization entry points that were provided as `data`.\n * @param data Data containing the information needed to register the localization station paths for the entity using the localization generator\n * @returns A function that will register the localization entry points using provided `data`\n * @example\n * ```ts\n * app.getDataHelper('localization-registration', generateLocalizationEntryPoints([\n * { root: '/movie/:id', entityIdParam: 'id', entityType: 'movie' },\n * { root: '/series/:seriesId', entityIdParam: 'seriesId', entityType: 'series' },\n * // with resolveRoot\n * {\n * root: '/channel/:channelId/playlist/:playlistId',\n * resolveRoot: async(playlistId: string) => Promise.resolve({ channelId:'123' }),\n * entityIdParam: 'playlistId',\n * entityType: 'playlist'\n * }\n * ]));\n * ```\n */\nexport function generateLocalizationEntryPoints(\n data: LocalizationGeneratorParams[],\n) {\n return (\n generator: LocalizationGenerator | undefined,\n ): LocalizationEntryPoints => {\n const localizationEntryPoints = getLocalizationEntryPointsState();\n\n if (generator) {\n data.forEach((dataItem) => {\n const path = generator(dataItem);\n if (path) {\n localizationEntryPoints[dataItem.entityType] = path;\n }\n });\n }\n return localizationEntryPoints;\n };\n}\n\n/**\n * This function can be used to register embedded localization workflows for entities.\n * The localization service will register all required stations to provide an embedded localization workflow for the entity.\n * To query then entry point for a specific entity, to e.g. create a details page action that links to the sub-workflow, use `getLocalizationEntryPoint` function.\n * @param data Data containing the information needed to register the localization station paths for the entity using the localization generator\n * @example\n * ```ts\n * registerLocalizationEntryPoints([\n * { root: '/movie/:id', entityIdParam: 'id', entityType: 'movie' },\n * { root: '/series/:seriesId', entityIdParam: 'seriesId', entityType: 'series' },\n * // with resolveRoot\n * {\n * root: '/channel/:channelId/playlist/:playlistId',\n * resolveRoot: async(playlistId: string) => Promise.resolve({ channelId:'123' }),\n * entityIdParam: 'playlistId',\n * entityType: 'playlist'\n * }\n * ]\n * ```\n */\nexport function registerLocalizationEntryPoints(\n data: LocalizationGeneratorParams[],\n): void {\n const piletApi = getPiletApi();\n if (piletApi === undefined) {\n throw new Error(\n 'The pilet API is not initialized. Please call `initializeIntegrationLib` before using this function or pass the API object as 2nd parameter.',\n );\n }\n piletApi.getDataHelper(\n 'localization-registration',\n generateLocalizationEntryPoints(data),\n );\n}\n"],"names":["React","TileNames","ImageStationNames"],"mappings":";;;;;;;;;;AAEa,MAAA,qBAAqB,GAAG,OACnCA,yBAAmC,CAAA,aAAA,CAAA,KAAA,EAAA,IAAA,EAAA,0BAAA,CAAA,EACnC;AAEW,MAAA,6BAA6B,GAAG;AAC3C;;AAEG;AACH,OAAe,KACQ;AACvB,IAAA,MAAM,iBAAiB,GAAG,OACxBA,yBAAA,CAAA,aAAA,CAAA,GAAA,EAAA,IAAA;;QACsD,OAAO;AAEzD,QAAA,sBAAA,CAAA,CACL,CAAC;AACF,IAAA,OAAO,iBAAiB,CAAC;AAC3B;;ACnBA;;AAEG;AACSC,2BAgBX;AAhBD,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC,CAAA;AACrC,IAAA,SAAA,CAAA,2BAAA,CAAA,GAAA,2BAAuD,CAAA;AACvD,IAAA,SAAA,CAAA,2BAAA,CAAA,GAAA,2BAAuD,CAAA;AACvD,IAAA,SAAA,CAAA,2BAAA,CAAA,GAAA,2BAAuD,CAAA;AACvD,IAAA,SAAA,CAAA,cAAA,CAAA,GAAA,cAA6B,CAAA;AAC7B,IAAA,SAAA,CAAA,gBAAA,CAAA,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AAS,CAAC,QAAQ,CAAC,CAAC;gBACjC,IAAI,IAAI,EAAE;AACR,oBAAA,uBAAuB,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;iBACrD;AACH,aAAC,CAAC,CAAC;SACJ;AACD,QAAA,OAAO,uBAAuB,CAAC;AACjC,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;AAmBG;AACG,SAAU,+BAA+B,CAC7C,IAAmC,EAAA;AAEnC,IAAA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;AAC/B,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AAC1B,QAAA,MAAM,IAAI,KAAK,CACb,8IAA8I,CAC/I,CAAC;KACH;IACD,QAAQ,CAAC,aAAa,CACpB,2BAA2B,EAC3B,+BAA+B,CAAC,IAAI,CAAC,CACtC,CAAC;AACJ;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { PiletApi } from '@axinom/mosaic-portal';
1
+ import type { PiletApi } from '@axinom/mosaic-portal';
2
2
  export declare let piletApi: PiletApi | undefined;
3
3
  /**
4
4
  * Initializes the integration library with the provided Pilet API.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../src/initialize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,eAAO,IAAI,QAAQ,EAAE,QAAQ,GAAG,SAAyB,CAAC;AAK1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,KAAK,QAAQ,KAAG,IAExD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/localization/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { LocalizationGenerator, LocalizationGeneratorParams } from '../types';
1
+ import type { LocalizationGenerator, LocalizationGeneratorParams } from '../types';
2
2
  /**
3
3
  * An object that maps entity types to their localization entry point paths
4
4
  * @example
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization-generator.d.ts","sourceRoot":"","sources":["../../../../src/localization/helpers/localization-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAElB;;;;;;;;GAQG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAK7D;;GAEG;AACH,eAAO,MAAM,0BAA0B,QAAO,uBACX,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GACpC,YAAY,MAAM,KACjB,MAAM,GAAG,SAA0D,CAAC;AACvE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,2BAA2B,EAAE,IAGjC,WAAW,qBAAqB,GAAG,SAAS,KAC3C,uBAAuB,CAa3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,2BAA2B,EAAE,GAClC,IAAI,CAWN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/localization/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/localization/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization-generator.d.ts","sourceRoot":"","sources":["../../../../src/localization/types/localization-generator.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,wEAAwE;IACxE,aAAa,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,4BAA4B,GAAG,CACzC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAErC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,MAAM,EAAE,2BAA2B,KAChC,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -1,4 +1,4 @@
1
- import { ImageCoverProps, ImagePreviewProps, ImageSelectExplorerProps, ImageSelectFieldProps } from './image';
1
+ import type { ImageCoverProps, ImagePreviewProps, ImageSelectExplorerProps, ImageSelectFieldProps } from './image';
2
2
  declare module '@axinom/mosaic-portal' {
3
3
  interface PiralCustomExtensionSlotMap {
4
4
  'image-cover': ImageCoverProps;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"piral-extensions.d.ts","sourceRoot":"","sources":["../../src/piral-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,OAAO,QAAQ,uBAAuB,CAAC;IACrC,UAAiB,2BAA2B;QAC1C,aAAa,EAAE,eAAe,CAAC;QAC/B,oBAAoB,EAAE,qBAAqB,CAAC;QAC5C,eAAe,EAAE,iBAAiB,CAAC;QACnC,uBAAuB,EAAE,wBAAwB,CAAC;KACnD;CACF"}
@@ -0,0 +1,13 @@
1
+ import type { PiletApi } from '@axinom/mosaic-portal';
2
+ export type LocalizationEntryPointsState = Record<string, string>;
3
+ interface ManagedWorkflowIntegrationState {
4
+ localizationEntryPoints: LocalizationEntryPointsState;
5
+ piletApi: PiletApi | undefined;
6
+ piletApiListeners: Set<(piletApi: PiletApi | undefined) => void>;
7
+ }
8
+ export declare const getManagedWorkflowIntegrationState: () => ManagedWorkflowIntegrationState;
9
+ export declare const getPiletApi: () => PiletApi | undefined;
10
+ export declare const setPiletApi: (piletApi: PiletApi) => void;
11
+ export declare const addPiletApiListener: (listener: (piletApi: PiletApi | undefined) => void) => void;
12
+ export {};
13
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAElE,UAAU,+BAA+B;IACvC,uBAAuB,EAAE,4BAA4B,CAAC;IACtD,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B,iBAAiB,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC;CAClE;AAcD,eAAO,MAAM,kCAAkC,QACzC,+BAeH,CAAC;AAEJ,eAAO,MAAM,WAAW,QAAO,QAAQ,GAAG,SACK,CAAC;AAEhD,eAAO,MAAM,WAAW,GAAI,UAAU,QAAQ,KAAG,IAKhD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,KACjD,IAEF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const extensionDefaultValue: () => JSX.Element;
2
+ export declare const generateExtensionDefaultValue: (
3
+ /**
4
+ * The service name for which the extension is not loaded. Without the `Service` suffix.
5
+ */
6
+ service: string) => (() => JSX.Element);
7
+ //# sourceMappingURL=default-extension-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-extension-value.d.ts","sourceRoot":"","sources":["../../../src/common/default-extension-value.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,QAAO,GAAG,CAAC,OAE5C,CAAC;AAEF,eAAO,MAAM,6BAA6B;AACxC;;GAEG;AACH,SAAS,MAAM,KACd,CAAC,MAAM,GAAG,CAAC,OAAO,CAQpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './default-extension-value';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './models';
2
+ //# sourceMappingURL=index.d.ts.map