@valiantys/atlassian-app 3.2.0-alpha-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 (442) hide show
  1. package/README.md +728 -0
  2. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.cjs.js +1 -0
  3. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.es.js +22 -0
  4. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.cjs.js +1 -0
  5. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.es.js +60 -0
  6. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.cjs.js +1 -0
  7. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.es.js +51 -0
  8. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.cjs.js +1 -0
  9. package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.es.js +77 -0
  10. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.cjs.js +1 -0
  11. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.es.js +21 -0
  12. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.cjs.js +1 -0
  13. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.es.js +20 -0
  14. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.cjs.js +1 -0
  15. package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.es.js +31 -0
  16. package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.cjs.js +1 -0
  17. package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.es.js +244 -0
  18. package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.cjs.js +1 -0
  19. package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.es.js +31 -0
  20. package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js +1 -0
  21. package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.es.js +28 -0
  22. package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js +1 -0
  23. package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js +31 -0
  24. package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.cjs.js +1 -0
  25. package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.es.js +107 -0
  26. package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.cjs.js +3 -0
  27. package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.es.js +39 -0
  28. package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.cjs.js +1 -0
  29. package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.es.js +7 -0
  30. package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.cjs.js +1 -0
  31. package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.es.js +274 -0
  32. package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.cjs.js +1 -0
  33. package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.es.js +9 -0
  34. package/atlassian/jira/shared/data-access-assets/src/lib/object/index.cjs.js +1 -0
  35. package/atlassian/jira/shared/data-access-assets/src/lib/object/index.es.js +52 -0
  36. package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.cjs.js +1 -0
  37. package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.es.js +9 -0
  38. package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.cjs.js +1 -0
  39. package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.es.js +22 -0
  40. package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.cjs.js +1 -0
  41. package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.es.js +23 -0
  42. package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
  43. package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.es.js +19 -0
  44. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -0
  45. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +167 -0
  46. package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js +1 -0
  47. package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js +20 -0
  48. package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.cjs.js +1 -0
  49. package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.es.js +34 -0
  50. package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.cjs.js +1 -0
  51. package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.es.js +85 -0
  52. package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.cjs.js +1 -0
  53. package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.es.js +21 -0
  54. package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.cjs.js +1 -0
  55. package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.es.js +50 -0
  56. package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.cjs.js +1 -0
  57. package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.es.js +4 -0
  58. package/atlassian/jira/shared/util-assets/src/lib/object/index.cjs.js +1 -0
  59. package/atlassian/jira/shared/util-assets/src/lib/object/index.es.js +9 -0
  60. package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
  61. package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.es.js +14 -0
  62. package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js +1 -0
  63. package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js +12 -0
  64. package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js +1 -0
  65. package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js +9 -0
  66. package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.cjs.js +1 -0
  67. package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.es.js +8 -0
  68. package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.cjs.js +1 -0
  69. package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.es.js +125 -0
  70. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -0
  71. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +127 -0
  72. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -0
  73. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +56 -0
  74. package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js +1 -0
  75. package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.es.js +44 -0
  76. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.cjs.js +1 -0
  77. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.es.js +41 -0
  78. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.cjs.js +1 -0
  79. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.es.js +59 -0
  80. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -0
  81. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +168 -0
  82. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.cjs.js +1 -0
  83. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.es.js +66 -0
  84. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.cjs.js +1 -0
  85. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.es.js +25 -0
  86. package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.cjs.js +1 -0
  87. package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.es.js +5 -0
  88. package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.cjs.js +1 -0
  89. package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.es.js +69 -0
  90. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js +1 -0
  91. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js +83 -0
  92. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js +1 -0
  93. package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js +13 -0
  94. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -0
  95. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +65 -0
  96. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
  97. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
  98. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.cjs.js +1 -0
  99. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.es.js +28 -0
  100. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.cjs.js +1 -0
  101. package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.es.js +9 -0
  102. package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.cjs.js +1 -0
  103. package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.es.js +19 -0
  104. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js +1 -0
  105. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js +9 -0
  106. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js +1 -0
  107. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.es.js +35 -0
  108. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js +1 -0
  109. package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js +106 -0
  110. package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.cjs.js +1 -0
  111. package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.es.js +8 -0
  112. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js +1 -0
  113. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js +20 -0
  114. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js +1 -0
  115. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js +20 -0
  116. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js +1 -0
  117. package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js +18 -0
  118. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js +1 -0
  119. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js +28 -0
  120. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js +1 -0
  121. package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.es.js +16 -0
  122. package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.cjs.js +1 -0
  123. package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.es.js +39 -0
  124. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.cjs.js +1 -0
  125. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +28 -0
  126. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.cjs.js +1 -0
  127. package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.es.js +41 -0
  128. package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.cjs.js +45 -0
  129. package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.es.js +53 -0
  130. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.cjs.js +1 -0
  131. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.es.js +14 -0
  132. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.cjs.js +1 -0
  133. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.es.js +31 -0
  134. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js +1 -0
  135. package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.es.js +18 -0
  136. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js +1 -0
  137. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js +54 -0
  138. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.cjs.js +1 -0
  139. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.es.js +6 -0
  140. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.cjs.js +1 -0
  141. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.es.js +34 -0
  142. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.cjs.js +1 -0
  143. package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.es.js +48 -0
  144. package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.cjs.js +1 -0
  145. package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.es.js +24 -0
  146. package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.cjs.js +1 -0
  147. package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.es.js +14 -0
  148. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js +1 -0
  149. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js +38 -0
  150. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js +1 -0
  151. package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js +20 -0
  152. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -0
  153. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +19 -0
  154. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js +1 -0
  155. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js +12 -0
  156. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js +1 -0
  157. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js +28 -0
  158. package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js +1 -0
  159. package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.es.js +27 -0
  160. package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js +1 -0
  161. package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.es.js +18 -0
  162. package/atlassian/shared/util-error/src/index/index.cjs.js +1 -0
  163. package/atlassian/shared/util-error/src/index/index.es.js +8 -0
  164. package/atlassian-app.css +1 -0
  165. package/backend-data-access-async-queue/atlassian-app-backend-data-access-async-queue.api.json +2205 -0
  166. package/backend-data-access-async-queue/atlassian-app.api.md +118 -0
  167. package/backend-data-access-async-queue/index.cjs.js +1 -0
  168. package/backend-data-access-async-queue/index.d.ts +121 -0
  169. package/backend-data-access-async-queue/index.es.js +10 -0
  170. package/backend-data-access-async-queue/tsdoc-metadata.json +11 -0
  171. package/backend-data-access-forge-sql/atlassian-app-backend-data-access-forge-sql.api.json +554 -0
  172. package/backend-data-access-forge-sql/atlassian-app.api.md +21 -0
  173. package/backend-data-access-forge-sql/index.cjs.js +1 -0
  174. package/backend-data-access-forge-sql/index.d.ts +18 -0
  175. package/backend-data-access-forge-sql/index.es.js +8 -0
  176. package/backend-data-access-forge-sql/tsdoc-metadata.json +11 -0
  177. package/backend-data-access-forge-storage/atlassian-app-backend-data-access-forge-storage.api.json +772 -0
  178. package/backend-data-access-forge-storage/atlassian-app.api.md +58 -0
  179. package/backend-data-access-forge-storage/index.cjs.js +1 -0
  180. package/backend-data-access-forge-storage/index.d.ts +50 -0
  181. package/backend-data-access-forge-storage/index.es.js +4 -0
  182. package/backend-data-access-forge-storage/tsdoc-metadata.json +11 -0
  183. package/backend-data-access-product-fetch-forge-api/atlassian-app-backend-data-access-product-fetch-forge-api.api.json +266 -0
  184. package/backend-data-access-product-fetch-forge-api/atlassian-app.api.md +15 -0
  185. package/backend-data-access-product-fetch-forge-api/index.cjs.js +1 -0
  186. package/backend-data-access-product-fetch-forge-api/index.d.ts +32 -0
  187. package/backend-data-access-product-fetch-forge-api/index.es.js +4 -0
  188. package/backend-data-access-product-fetch-forge-api/tsdoc-metadata.json +11 -0
  189. package/backend-feature-atlassian-app/atlassian-app-backend-feature-atlassian-app.api.json +458 -0
  190. package/backend-feature-atlassian-app/atlassian-app.api.md +41 -0
  191. package/backend-feature-atlassian-app/index.cjs.js +1 -0
  192. package/backend-feature-atlassian-app/index.d.ts +102 -0
  193. package/backend-feature-atlassian-app/index.es.js +4 -0
  194. package/backend-feature-atlassian-app/tsdoc-metadata.json +11 -0
  195. package/backend-feature-atlassian-app-express/atlassian-app-backend-feature-atlassian-app-express.api.json +682 -0
  196. package/backend-feature-atlassian-app-express/atlassian-app.api.md +51 -0
  197. package/backend-feature-atlassian-app-express/index.cjs.js +1 -0
  198. package/backend-feature-atlassian-app-express/index.d.ts +141 -0
  199. package/backend-feature-atlassian-app-express/index.es.js +9 -0
  200. package/backend-feature-atlassian-app-express/tsdoc-metadata.json +11 -0
  201. package/data-access-assets/atlassian-app-data-access-assets.api.json +2441 -0
  202. package/data-access-assets/atlassian-app.api.md +109 -0
  203. package/data-access-assets/index.cjs.js +1 -0
  204. package/data-access-assets/index.d.ts +316 -0
  205. package/data-access-assets/index.es.js +23 -0
  206. package/data-access-assets/tsdoc-metadata.json +11 -0
  207. package/data-access-atlassian-product-fetch-oauth/atlassian-app-data-access-atlassian-product-fetch-oauth.api.json +1439 -0
  208. package/data-access-atlassian-product-fetch-oauth/atlassian-app.api.md +92 -0
  209. package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -0
  210. package/data-access-atlassian-product-fetch-oauth/index.d.ts +79 -0
  211. package/data-access-atlassian-product-fetch-oauth/index.es.js +14 -0
  212. package/data-access-atlassian-product-fetch-oauth/tsdoc-metadata.json +11 -0
  213. package/data-access-issue/atlassian-app-data-access-issue.api.json +1995 -0
  214. package/data-access-issue/atlassian-app.api.md +111 -0
  215. package/data-access-issue/index.cjs.js +1 -0
  216. package/data-access-issue/index.d.ts +471 -0
  217. package/data-access-issue/index.es.js +6 -0
  218. package/data-access-issue/tsdoc-metadata.json +11 -0
  219. package/data-access-jql/atlassian-app-data-access-jql.api.json +388 -0
  220. package/data-access-jql/atlassian-app.api.md +25 -0
  221. package/data-access-jql/index.cjs.js +1 -0
  222. package/data-access-jql/index.d.ts +62 -0
  223. package/data-access-jql/index.es.js +4 -0
  224. package/data-access-jql/tsdoc-metadata.json +11 -0
  225. package/data-access-project/atlassian-app-data-access-project.api.json +856 -0
  226. package/data-access-project/atlassian-app.api.md +41 -0
  227. package/data-access-project/index.cjs.js +1 -0
  228. package/data-access-project/index.d.ts +114 -0
  229. package/data-access-project/index.es.js +4 -0
  230. package/data-access-project/tsdoc-metadata.json +11 -0
  231. package/data-access-resources/atlassian-app-data-access-resources.api.json +515 -0
  232. package/data-access-resources/atlassian-app.api.md +45 -0
  233. package/data-access-resources/index.cjs.js +1 -0
  234. package/data-access-resources/index.d.ts +27 -0
  235. package/data-access-resources/index.es.js +4 -0
  236. package/data-access-resources/tsdoc-metadata.json +11 -0
  237. package/data-access-serverinfo/atlassian-app-data-access-serverinfo.api.json +366 -0
  238. package/data-access-serverinfo/atlassian-app.api.md +23 -0
  239. package/data-access-serverinfo/index.cjs.js +1 -0
  240. package/data-access-serverinfo/index.d.ts +61 -0
  241. package/data-access-serverinfo/index.es.js +4 -0
  242. package/data-access-serverinfo/tsdoc-metadata.json +11 -0
  243. package/data-access-workspaces/atlassian-app-data-access-workspaces.api.json +406 -0
  244. package/data-access-workspaces/atlassian-app.api.md +32 -0
  245. package/data-access-workspaces/index.cjs.js +1 -0
  246. package/data-access-workspaces/index.d.ts +50 -0
  247. package/data-access-workspaces/index.es.js +4 -0
  248. package/data-access-workspaces/tsdoc-metadata.json +11 -0
  249. package/frontend-app/atlassian-app-frontend-app.api.json +636 -0
  250. package/frontend-app/atlassian-app.api.md +56 -0
  251. package/frontend-app/index.cjs.js +1 -0
  252. package/frontend-app/index.d.ts +109 -0
  253. package/frontend-app/index.es.js +5 -0
  254. package/frontend-app/tsdoc-metadata.json +11 -0
  255. package/frontend-app-custom-ui/atlassian-app-frontend-app-custom-ui.api.json +242 -0
  256. package/frontend-app-custom-ui/atlassian-app.api.md +17 -0
  257. package/frontend-app-custom-ui/index.cjs.js +1 -0
  258. package/frontend-app-custom-ui/index.d.ts +20 -0
  259. package/frontend-app-custom-ui/index.es.js +4 -0
  260. package/frontend-app-custom-ui/tsdoc-metadata.json +11 -0
  261. package/frontend-app-standalone/atlassian-app-frontend-app-standalone.api.json +554 -0
  262. package/frontend-app-standalone/atlassian-app.api.md +46 -0
  263. package/frontend-app-standalone/index.cjs.js +1 -0
  264. package/frontend-app-standalone/index.d.ts +45 -0
  265. package/frontend-app-standalone/index.es.js +4 -0
  266. package/frontend-app-standalone/tsdoc-metadata.json +11 -0
  267. package/frontend-app-test/atlassian-app-frontend-app-test.api.json +514 -0
  268. package/frontend-app-test/atlassian-app.api.md +45 -0
  269. package/frontend-app-test/index.cjs.js +1 -0
  270. package/frontend-app-test/index.d.ts +67 -0
  271. package/frontend-app-test/index.es.js +5 -0
  272. package/frontend-app-test/tsdoc-metadata.json +11 -0
  273. package/frontend-app-ui-kit/atlassian-app-frontend-app-ui-kit.api.json +229 -0
  274. package/frontend-app-ui-kit/atlassian-app.api.md +15 -0
  275. package/frontend-app-ui-kit/index.cjs.js +1 -0
  276. package/frontend-app-ui-kit/index.d.ts +6 -0
  277. package/frontend-app-ui-kit/index.es.js +4 -0
  278. package/frontend-app-ui-kit/tsdoc-metadata.json +11 -0
  279. package/package.json +271 -0
  280. package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.cjs.js +1 -0
  281. package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.es.js +20 -0
  282. package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.cjs.js +1 -0
  283. package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.es.js +6 -0
  284. package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.cjs.js +1 -0
  285. package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.es.js +24 -0
  286. package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.cjs.js +1 -0
  287. package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.es.js +32 -0
  288. package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.cjs.js +1 -0
  289. package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.es.js +9 -0
  290. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -0
  291. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +76 -0
  292. package/ui-app-flags/atlassian-app-ui-app-flags.api.json +587 -0
  293. package/ui-app-flags/atlassian-app.api.md +57 -0
  294. package/ui-app-flags/index.cjs.js +1 -0
  295. package/ui-app-flags/index.d.ts +37 -0
  296. package/ui-app-flags/index.es.js +9 -0
  297. package/ui-app-flags/tsdoc-metadata.json +11 -0
  298. package/ui-async-queue-job-log/atlassian-app-ui-async-queue-job-log.api.json +246 -0
  299. package/ui-async-queue-job-log/atlassian-app.api.md +22 -0
  300. package/ui-async-queue-job-log/index.cjs.js +1 -0
  301. package/ui-async-queue-job-log/index.d.ts +21 -0
  302. package/ui-async-queue-job-log/index.es.js +4 -0
  303. package/ui-async-queue-job-log/tsdoc-metadata.json +11 -0
  304. package/ui-atlaskit-forms/atlassian-app-ui-atlaskit-forms.api.json +341 -0
  305. package/ui-atlaskit-forms/atlassian-app.api.md +19 -0
  306. package/ui-atlaskit-forms/index.cjs.js +1 -0
  307. package/ui-atlaskit-forms/index.d.ts +48 -0
  308. package/ui-atlaskit-forms/index.es.js +4 -0
  309. package/ui-atlaskit-forms/tsdoc-metadata.json +11 -0
  310. package/ui-atlassian-product-fetch/atlassian-app-ui-atlassian-product-fetch.api.json +418 -0
  311. package/ui-atlassian-product-fetch/atlassian-app.api.md +38 -0
  312. package/ui-atlassian-product-fetch/index.cjs.js +1 -0
  313. package/ui-atlassian-product-fetch/index.d.ts +60 -0
  314. package/ui-atlassian-product-fetch/index.es.js +11 -0
  315. package/ui-atlassian-product-fetch/tsdoc-metadata.json +11 -0
  316. package/ui-backend-adapter/atlassian-app-ui-backend-adapter.api.json +402 -0
  317. package/ui-backend-adapter/atlassian-app.api.md +34 -0
  318. package/ui-backend-adapter/index.cjs.js +1 -0
  319. package/ui-backend-adapter/index.d.ts +26 -0
  320. package/ui-backend-adapter/index.es.js +7 -0
  321. package/ui-backend-adapter/tsdoc-metadata.json +11 -0
  322. package/ui-chosen-resource-check/atlassian-app-ui-chosen-resource-check.api.json +388 -0
  323. package/ui-chosen-resource-check/atlassian-app.api.md +35 -0
  324. package/ui-chosen-resource-check/index.cjs.js +1 -0
  325. package/ui-chosen-resource-check/index.d.ts +20 -0
  326. package/ui-chosen-resource-check/index.es.js +4 -0
  327. package/ui-chosen-resource-check/tsdoc-metadata.json +11 -0
  328. package/ui-chosen-workspace-check/atlassian-app-ui-chosen-workspace-check.api.json +362 -0
  329. package/ui-chosen-workspace-check/atlassian-app.api.md +30 -0
  330. package/ui-chosen-workspace-check/index.cjs.js +1 -0
  331. package/ui-chosen-workspace-check/index.d.ts +17 -0
  332. package/ui-chosen-workspace-check/index.es.js +7 -0
  333. package/ui-chosen-workspace-check/tsdoc-metadata.json +11 -0
  334. package/ui-copy-button/atlassian-app-ui-copy-button.api.json +384 -0
  335. package/ui-copy-button/atlassian-app.api.md +30 -0
  336. package/ui-copy-button/index.cjs.js +1 -0
  337. package/ui-copy-button/index.d.ts +15 -0
  338. package/ui-copy-button/index.es.js +4 -0
  339. package/ui-copy-button/tsdoc-metadata.json +11 -0
  340. package/ui-drop-target/atlassian-app-ui-drop-target.api.json +637 -0
  341. package/ui-drop-target/atlassian-app.api.md +50 -0
  342. package/ui-drop-target/index.cjs.js +1 -0
  343. package/ui-drop-target/index.d.ts +39 -0
  344. package/ui-drop-target/index.es.js +7 -0
  345. package/ui-drop-target/tsdoc-metadata.json +11 -0
  346. package/ui-expand-panel/atlassian-app-ui-expand-panel.api.json +252 -0
  347. package/ui-expand-panel/atlassian-app.api.md +23 -0
  348. package/ui-expand-panel/index.cjs.js +1 -0
  349. package/ui-expand-panel/index.d.ts +31 -0
  350. package/ui-expand-panel/index.es.js +6 -0
  351. package/ui-expand-panel/tsdoc-metadata.json +11 -0
  352. package/ui-host-router/atlassian-app-ui-host-router.api.json +827 -0
  353. package/ui-host-router/atlassian-app.api.md +61 -0
  354. package/ui-host-router/index.cjs.js +1 -0
  355. package/ui-host-router/index.d.ts +40 -0
  356. package/ui-host-router/index.es.js +9 -0
  357. package/ui-host-router/tsdoc-metadata.json +11 -0
  358. package/ui-iframe/atlassian-app-ui-iframe.api.json +531 -0
  359. package/ui-iframe/atlassian-app.api.md +43 -0
  360. package/ui-iframe/index.cjs.js +1 -0
  361. package/ui-iframe/index.d.ts +24 -0
  362. package/ui-iframe/index.es.js +4 -0
  363. package/ui-iframe/tsdoc-metadata.json +11 -0
  364. package/ui-load-data-hook/atlassian-app-ui-load-data-hook.api.json +329 -0
  365. package/ui-load-data-hook/atlassian-app.api.md +25 -0
  366. package/ui-load-data-hook/index.cjs.js +1 -0
  367. package/ui-load-data-hook/index.d.ts +38 -0
  368. package/ui-load-data-hook/index.es.js +4 -0
  369. package/ui-load-data-hook/tsdoc-metadata.json +11 -0
  370. package/ui-modal/atlassian-app-ui-modal.api.json +1462 -0
  371. package/ui-modal/atlassian-app.api.md +117 -0
  372. package/ui-modal/index.cjs.js +1 -0
  373. package/ui-modal/index.d.ts +126 -0
  374. package/ui-modal/index.es.js +16 -0
  375. package/ui-modal/tsdoc-metadata.json +11 -0
  376. package/ui-modal-service/atlassian-app-ui-modal-service.api.json +809 -0
  377. package/ui-modal-service/atlassian-app.api.md +59 -0
  378. package/ui-modal-service/index.cjs.js +1 -0
  379. package/ui-modal-service/index.d.ts +41 -0
  380. package/ui-modal-service/index.es.js +7 -0
  381. package/ui-modal-service/tsdoc-metadata.json +11 -0
  382. package/ui-oauth-login/atlassian-app-ui-oauth-login.api.json +809 -0
  383. package/ui-oauth-login/atlassian-app.api.md +67 -0
  384. package/ui-oauth-login/index.cjs.js +1 -0
  385. package/ui-oauth-login/index.d.ts +47 -0
  386. package/ui-oauth-login/index.es.js +9 -0
  387. package/ui-oauth-login/tsdoc-metadata.json +11 -0
  388. package/ui-page-loading-view/atlassian-app-ui-page-loading-view.api.json +242 -0
  389. package/ui-page-loading-view/atlassian-app.api.md +19 -0
  390. package/ui-page-loading-view/index.cjs.js +1 -0
  391. package/ui-page-loading-view/index.d.ts +10 -0
  392. package/ui-page-loading-view/index.es.js +4 -0
  393. package/ui-page-loading-view/tsdoc-metadata.json +11 -0
  394. package/ui-remote-adapter/atlassian-app-ui-remote-adapter.api.json +369 -0
  395. package/ui-remote-adapter/atlassian-app.api.md +33 -0
  396. package/ui-remote-adapter/index.cjs.js +1 -0
  397. package/ui-remote-adapter/index.d.ts +26 -0
  398. package/ui-remote-adapter/index.es.js +7 -0
  399. package/ui-remote-adapter/tsdoc-metadata.json +11 -0
  400. package/ui-view-context/atlassian-app-ui-view-context.api.json +992 -0
  401. package/ui-view-context/atlassian-app.api.md +78 -0
  402. package/ui-view-context/index.cjs.js +1 -0
  403. package/ui-view-context/index.d.ts +62 -0
  404. package/ui-view-context/index.es.js +7 -0
  405. package/ui-view-context/tsdoc-metadata.json +11 -0
  406. package/util-assets/atlassian-app-util-assets.api.json +4726 -0
  407. package/util-assets/atlassian-app.api.md +418 -0
  408. package/util-assets/index.cjs.js +1 -0
  409. package/util-assets/index.d.ts +245 -0
  410. package/util-assets/index.es.js +9 -0
  411. package/util-assets/tsdoc-metadata.json +11 -0
  412. package/util-async-queue/atlassian-app-util-async-queue.api.json +439 -0
  413. package/util-async-queue/atlassian-app.api.md +31 -0
  414. package/util-async-queue/index.cjs.js +1 -0
  415. package/util-async-queue/index.d.ts +13 -0
  416. package/util-async-queue/index.es.js +1 -0
  417. package/util-async-queue/tsdoc-metadata.json +11 -0
  418. package/util-atlassian-product-fetch/atlassian-app-util-atlassian-product-fetch.api.json +1795 -0
  419. package/util-atlassian-product-fetch/atlassian-app.api.md +116 -0
  420. package/util-atlassian-product-fetch/index.cjs.js +1 -0
  421. package/util-atlassian-product-fetch/index.d.ts +70 -0
  422. package/util-atlassian-product-fetch/index.es.js +9 -0
  423. package/util-atlassian-product-fetch/tsdoc-metadata.json +11 -0
  424. package/util-jira-v3-api/atlassian-app-util-jira-v3-api.api.json +7431 -0
  425. package/util-jira-v3-api/atlassian-app.api.md +777 -0
  426. package/util-jira-v3-api/index.cjs.js +1 -0
  427. package/util-jira-v3-api/index.d.ts +510 -0
  428. package/util-jira-v3-api/index.es.js +8 -0
  429. package/util-jira-v3-api/tsdoc-metadata.json +11 -0
  430. package/util-resolver/atlassian-app-util-resolver.api.json +1014 -0
  431. package/util-resolver/atlassian-app.api.md +90 -0
  432. package/util-resolver/index.cjs.js +1 -0
  433. package/util-resolver/index.d.ts +67 -0
  434. package/util-resolver/index.es.js +4 -0
  435. package/util-resolver/tsdoc-metadata.json +11 -0
  436. package/util-trigger/atlassian-app-util-trigger.api.json +792 -0
  437. package/util-trigger/atlassian-app.api.md +84 -0
  438. package/util-trigger/index.cjs.js +1 -0
  439. package/util-trigger/index.d.ts +266 -0
  440. package/util-trigger/index.es.js +1 -0
  441. package/util-trigger/tsdoc-metadata.json +11 -0
  442. package/valiantys-atlassian-app-3.2.0-alpha-1.tgz +0 -0
@@ -0,0 +1,127 @@
1
+ import { bearerAuthFetchRaw as f, bearerAuthFetch as c, jsonFetch as u } from "../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
2
+ import { AtlassianBadRequest as p } from "../../../../util-error/src/index/index.es.js";
3
+ import { route as m, routeNoEscaping as A } from "../route/index.es.js";
4
+ function i(t, e) {
5
+ if (e) {
6
+ const n = t.startsWith("/") ? t.slice(1) : t;
7
+ return `${e}/${n}`;
8
+ } else
9
+ return t;
10
+ }
11
+ function s(t, e, n) {
12
+ return {
13
+ productType: n,
14
+ fetch: ({ url: r, method: a, responseType: o = "json", allowExperimental: h = !1 }, l) => c(
15
+ t,
16
+ i(r.value, e),
17
+ a,
18
+ l,
19
+ o,
20
+ {
21
+ "X-ExperimentalApi": h ? "opt-in" : ""
22
+ }
23
+ ),
24
+ route: m,
25
+ rawFetch: (r, a) => f(
26
+ t,
27
+ i(r.value, e),
28
+ a
29
+ ),
30
+ fullUrl: (r) => i(r, e)
31
+ };
32
+ }
33
+ function F(t, e) {
34
+ return s(
35
+ t,
36
+ `https://api.atlassian.com/ex/jira/${e}`,
37
+ "jira"
38
+ );
39
+ }
40
+ function j(t) {
41
+ return {
42
+ productType: "jira",
43
+ fetch: (e, n) => u(
44
+ t,
45
+ "POST",
46
+ void 0,
47
+ {
48
+ request: e,
49
+ body: n
50
+ },
51
+ "json",
52
+ "include"
53
+ ),
54
+ route: A,
55
+ rawFetch: (e, n) => {
56
+ throw new Error("Not implemented");
57
+ },
58
+ fullUrl: (e) => t
59
+ };
60
+ }
61
+ function b(t, e) {
62
+ return s(
63
+ t,
64
+ `https://api.atlassian.com/ex/confluence/${e}`,
65
+ "confluence"
66
+ );
67
+ }
68
+ function w(t) {
69
+ return s(
70
+ t,
71
+ "https://api.bitbucket.org",
72
+ "bitbucket"
73
+ );
74
+ }
75
+ async function g(t) {
76
+ return c(
77
+ t,
78
+ "https://api.atlassian.com/me",
79
+ "GET"
80
+ );
81
+ }
82
+ async function x(t, e, n, r, a) {
83
+ return u(
84
+ "https://auth.atlassian.com/oauth/token",
85
+ "POST",
86
+ void 0,
87
+ {
88
+ grant_type: t,
89
+ client_id: e,
90
+ client_secret: n,
91
+ code: r,
92
+ redirect_uri: a
93
+ }
94
+ );
95
+ }
96
+ async function v(t, e, n) {
97
+ if (n)
98
+ switch (t) {
99
+ case "confluence":
100
+ return b(
101
+ e,
102
+ n
103
+ );
104
+ case "bitbucket":
105
+ return w(
106
+ e
107
+ );
108
+ case "jira":
109
+ default:
110
+ return F(
111
+ e,
112
+ n
113
+ );
114
+ }
115
+ else
116
+ throw new p("resource-id header is missing");
117
+ }
118
+ export {
119
+ w as atlassianOAuthBitbucketFetch,
120
+ b as atlassianOAuthConfluenceFetch,
121
+ F as atlassianOAuthJiraFetch,
122
+ j as atlassianOAuthJiraFetchViaProxy,
123
+ s as atlassianOAuthRawFetch,
124
+ x as getAtlassianOAuthToken,
125
+ g as getAtlassianUserDetails,
126
+ v as getFetch
127
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class s{constructor(n){this.value_=n}set value(n){throw new Error("modification of a Route is not allowed")}get value(){return this.value_}}function l(t){return t instanceof s}const f=["..",".%2e","%2e.","%2e%2e",".%2E","%2E.","%2E%2e"],g=["/","\\"],r=["?","#"];function u(t,n){return t.some(o=>n.includes(o))}function h(t,n){switch(n){case"path":if(l(t))return t.value;if(t=String(t),u(f,t)||u(r,t)||u(g,t))throw new Error("Disallowing path manipulation attempt. For more information see: https://go.atlassian.com/product-fetch-api-route");return t;case"query":return l(t)?encodeURIComponent(t.value):t instanceof URLSearchParams?t.toString():encodeURIComponent(t)}}function a(t,...n){let o="path",e="";for(let i=0;i<t.length;i++){const c=t[i];if(u(r,c)&&(o="query"),e+=c,i>=n.length)break;e+=h(n[i],o)}return new s(e)}function d(t,...n){let o="";for(let e=0;e<t.length;e++){const i=t[e];if(o+=i,e>=n.length)break;o+=n[e]}return new s(o)}exports.route=a;exports.routeNoEscaping=d;
@@ -0,0 +1,56 @@
1
+ class s {
2
+ constructor(t) {
3
+ this.value_ = t;
4
+ }
5
+ set value(t) {
6
+ throw new Error("modification of a Route is not allowed");
7
+ }
8
+ get value() {
9
+ return this.value_;
10
+ }
11
+ }
12
+ function l(n) {
13
+ return n instanceof s;
14
+ }
15
+ const f = ["..", ".%2e", "%2e.", "%2e%2e", ".%2E", "%2E.", "%2E%2e"], h = ["/", "\\"], r = ["?", "#"];
16
+ function u(n, t) {
17
+ return n.some((o) => t.includes(o));
18
+ }
19
+ function g(n, t) {
20
+ switch (t) {
21
+ case "path":
22
+ if (l(n))
23
+ return n.value;
24
+ if (n = String(n), u(f, n) || u(r, n) || u(h, n))
25
+ throw new Error(
26
+ "Disallowing path manipulation attempt. For more information see: https://go.atlassian.com/product-fetch-api-route"
27
+ );
28
+ return n;
29
+ case "query":
30
+ return l(n) ? encodeURIComponent(n.value) : n instanceof URLSearchParams ? n.toString() : encodeURIComponent(n);
31
+ }
32
+ }
33
+ function a(n, ...t) {
34
+ let o = "path", e = "";
35
+ for (let i = 0; i < n.length; i++) {
36
+ const c = n[i];
37
+ if (u(r, c) && (o = "query"), e += c, i >= t.length)
38
+ break;
39
+ e += g(t[i], o);
40
+ }
41
+ return new s(e);
42
+ }
43
+ function w(n, ...t) {
44
+ let o = "";
45
+ for (let e = 0; e < n.length; e++) {
46
+ const i = n[e];
47
+ if (o += i, e >= t.length)
48
+ break;
49
+ o += t[e];
50
+ }
51
+ return new s(o);
52
+ }
53
+ export {
54
+ a as route,
55
+ w as routeNoEscaping
56
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../../util-error/src/index/index.cjs.js"),c=require("../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js");class u{constructor(){this.userResourcesUrl="https://api.atlassian.com/oauth/token/accessible-resources"}async getAtlassianUserResources(r){return await c.bearerAuthFetch(r,this.userResourcesUrl,"GET")}async checkUserChosenResource(r,n){const s=(await this.getAtlassianUserResources(r)).filter((e,t,i)=>i.findIndex(o=>o.id===e.id)===t).map(e=>({name:e.name,id:e.id}));if(s.length>1){if(n){const e=s.find(t=>t.id===n);if(e)return{hasChosen:!0,resource:e}}return{hasChosen:!1,resources:s}}else{if(s.length===1)return{hasChosen:!0,resource:s[0]};throw new a.AtlassianBadRequest("Provided token does not have permissions for any resources")}}}exports.AtlassianUserResourceService=u;
@@ -0,0 +1,44 @@
1
+ import { AtlassianBadRequest as i } from "../../../../util-error/src/index/index.es.js";
2
+ import { bearerAuthFetch as c } from "../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
3
+ class f {
4
+ constructor() {
5
+ this.userResourcesUrl = "https://api.atlassian.com/oauth/token/accessible-resources";
6
+ }
7
+ async getAtlassianUserResources(r) {
8
+ return await c(
9
+ r,
10
+ this.userResourcesUrl,
11
+ "GET"
12
+ );
13
+ }
14
+ async checkUserChosenResource(r, o) {
15
+ const s = (await this.getAtlassianUserResources(r)).filter(
16
+ (e, t, n) => n.findIndex((a) => a.id === e.id) === t
17
+ ).map((e) => ({
18
+ name: e.name,
19
+ id: e.id
20
+ }));
21
+ if (s.length > 1) {
22
+ if (o) {
23
+ const e = s.find(
24
+ (t) => t.id === o
25
+ );
26
+ if (e)
27
+ return { hasChosen: !0, resource: e };
28
+ }
29
+ return {
30
+ hasChosen: !1,
31
+ resources: s
32
+ };
33
+ } else {
34
+ if (s.length === 1)
35
+ return { hasChosen: !0, resource: s[0] };
36
+ throw new i(
37
+ "Provided token does not have permissions for any resources"
38
+ );
39
+ }
40
+ }
41
+ }
42
+ export {
43
+ f as AtlassianUserResourceService
44
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),n=u.lazy(()=>Promise.resolve().then(()=>require("../custom-ui/atlassian-app-forge/index.cjs.js"))),a=u.lazy(()=>Promise.resolve().then(()=>require("../standalone/atlassian-app-standalone/index.cjs.js"))),c=window.self===window.top;function p({children:r,appName:i,doCheckWorkspace:s,embeddedConfig:t,standaloneConfig:e}){var l;return c?e?o.jsx(a,{appName:i,backendUrl:e.backendUrl,remoteUrl:e.remoteUrl,initialMockViewContext:e.initialMockViewContext,modalOpenerConfig:e.modalOpenerConfig,modalContextConfig:e.modalContextConfig,doCheckWorkspace:e.oauthConfig&&s,doCheckResource:((l=e.oauthConfig)==null?void 0:l.doCheckResource)!==!1,oauthConfig:e.oauthConfig,children:r}):o.jsx("div",{children:"Not configured for standalone mode."}):o.jsx(n,{appName:i,doCheckWorkspace:s,invokeRemoteImpl:t==null?void 0:t.invokeRemoteImpl,children:r})}exports.AtlassianApp=p;exports.IS_STANDALONE=c;
@@ -0,0 +1,41 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { lazy as c } from "react";
3
+ const m = c(() => import("../custom-ui/atlassian-app-forge/index.es.js")), u = c(
4
+ () => import("../standalone/atlassian-app-standalone/index.es.js")
5
+ ), n = window.self === window.top;
6
+ function A({
7
+ children: e,
8
+ appName: i,
9
+ doCheckWorkspace: l,
10
+ embeddedConfig: t,
11
+ standaloneConfig: o
12
+ }) {
13
+ var p;
14
+ return n ? o ? /* @__PURE__ */ r(
15
+ u,
16
+ {
17
+ appName: i,
18
+ backendUrl: o.backendUrl,
19
+ remoteUrl: o.remoteUrl,
20
+ initialMockViewContext: o.initialMockViewContext,
21
+ modalOpenerConfig: o.modalOpenerConfig,
22
+ modalContextConfig: o.modalContextConfig,
23
+ doCheckWorkspace: o.oauthConfig && l,
24
+ doCheckResource: ((p = o.oauthConfig) == null ? void 0 : p.doCheckResource) !== !1,
25
+ oauthConfig: o.oauthConfig,
26
+ children: e
27
+ }
28
+ ) : /* @__PURE__ */ r("div", { children: "Not configured for standalone mode." }) : /* @__PURE__ */ r(
29
+ m,
30
+ {
31
+ appName: i,
32
+ doCheckWorkspace: l,
33
+ invokeRemoteImpl: t == null ? void 0 : t.invokeRemoteImpl,
34
+ children: e
35
+ }
36
+ );
37
+ }
38
+ export {
39
+ A as AtlassianApp,
40
+ n as IS_STANDALONE
41
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("@forge/bridge"),o=require("../../../../../../forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js"),a=require("../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js"),d=require("../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js");require("../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js");require("../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");const q=require("../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js"),p=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),v=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),h=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js");require("@atlaskit/button/new");require("react");const F=require("../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js");require("../../../../../frontend-ui-modal/src/lib/modal-content/index.cjs.js");require("@atlaskit/heading");require("@atlaskit/primitives");require("../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js");require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");const g=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),m=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),P=require("../../ui-kit/atlassian-app-forge-ui-kit/index.cjs.js"),S=o.createClientSideForgeProductFetchService("jira"),j=o.createClientSideForgeProductFetchService("bitbucket"),A=o.createClientSideForgeProductFetchService("confluence"),f={open(t){return new i.Modal(t).open()}};function c({appName:t,doCheckWorkspace:n,invokeRemoteImpl:s,useAtlasKitFlags:u,children:l}){let r=l;return n&&(r=e.jsx(d.FeatureChosenWorkspaceCheck,{appName:t,children:r})),r=e.jsx(m.RemoteAdapterProvider,{invokeRemoteImplementation:s||i.invokeRemote,children:e.jsx(P.AtlassianAppForgeUiKit,{children:e.jsx(F.HostRouterProvider,{hostRouter:i.router,children:e.jsx(p.RequestBitbucketProvider,{requestBitbucketImplementation:j,children:e.jsx(v.RequestConfluenceProvider,{requestConfluenceImplementation:A,children:e.jsx(h.RequestJiraProvider,{requestJiraImplementation:S,children:e.jsx(g.ModalServiceProvider,{modalService:f,children:r})})})})})})}),u?e.jsx(q.AppFlagsProviderAtlasKit,{children:r}):e.jsx(a.AppFlagsProviderForge,{children:r})}exports.AtlassianAppForge=c;exports.default=c;
@@ -0,0 +1,59 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { invokeRemote as p, router as l, Modal as d } from "@forge/bridge";
3
+ import { createClientSideForgeProductFetchService as t } from "../../../../../../forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.es.js";
4
+ import { AppFlagsProviderForge as a } from "../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js";
5
+ import { FeatureChosenWorkspaceCheck as s } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
6
+ import "../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js";
7
+ import "../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js";
8
+ import { AppFlagsProviderAtlasKit as u } from "../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js";
9
+ import { RequestBitbucketProvider as f } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
10
+ import { RequestConfluenceProvider as v } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
11
+ import { RequestJiraProvider as h } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
12
+ import "@atlaskit/button/new";
13
+ import "react";
14
+ import { HostRouterProvider as F } from "../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.es.js";
15
+ import "../../../../../frontend-ui-modal/src/lib/modal-content/index.es.js";
16
+ import "@atlaskit/heading";
17
+ import "@atlaskit/primitives";
18
+ import "../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js";
19
+ import "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
20
+ import { ModalServiceProvider as P } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
21
+ import { RemoteAdapterProvider as k } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
22
+ import { AtlassianAppForgeUiKit as A } from "../../ui-kit/atlassian-app-forge-ui-kit/index.es.js";
23
+ const R = t("jira"), S = t("bitbucket"), g = t("confluence"), b = {
24
+ open(o) {
25
+ return new d(o).open();
26
+ }
27
+ };
28
+ function T({
29
+ appName: o,
30
+ doCheckWorkspace: i,
31
+ invokeRemoteImpl: m,
32
+ useAtlasKitFlags: n,
33
+ children: c
34
+ }) {
35
+ let r = c;
36
+ return i && (r = /* @__PURE__ */ e(s, { appName: o, children: r })), r = /* @__PURE__ */ e(
37
+ k,
38
+ {
39
+ invokeRemoteImplementation: m || p,
40
+ children: /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(F, { hostRouter: l, children: /* @__PURE__ */ e(
41
+ f,
42
+ {
43
+ requestBitbucketImplementation: S,
44
+ children: /* @__PURE__ */ e(
45
+ v,
46
+ {
47
+ requestConfluenceImplementation: g,
48
+ children: /* @__PURE__ */ e(h, { requestJiraImplementation: R, children: /* @__PURE__ */ e(P, { modalService: b, children: r }) })
49
+ }
50
+ )
51
+ }
52
+ ) }) })
53
+ }
54
+ ), n ? /* @__PURE__ */ e(u, { children: r }) : /* @__PURE__ */ e(a, { children: r });
55
+ }
56
+ export {
57
+ T as AtlassianAppForge,
58
+ T as default
59
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),g=require("@atlaskit/app-provider"),o=require("react"),S=require("../../../../../data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js"),B=require("../../../../../data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js"),O=require("../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js");require("../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js");const P=require("../../../../../frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js");require("../../../../../frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js");require("@atlaskit/heading");require("@atlaskit/primitives");require("@atlaskit/section-message");require("@atlaskit/spinner");require("../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");const W=require("../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js"),J=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),T=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),E=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js"),y=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),M=require("../../../../../frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js"),H=require("../../../../../frontend-ui-host-router/src/lib/host-router/index.cjs.js");require("@atlaskit/button/new");const _=require("../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js");require("../../../../../frontend-ui-modal/src/lib/modal-content/index.cjs.js");require("../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js");const $=require("../../../../../frontend-ui-modal/src/lib/modal-view-context/index.cjs.js"),z=require("../../../../../frontend-ui-modal-service/src/lib/modal-service/index.cjs.js"),K=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),U=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),D=require("../../../../../frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js"),G=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js"),L=require("../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js"),Q=o.lazy(()=>Promise.resolve().then(()=>require("../../../../../frontend-feature-chosen-resource-check/src/index/index.cjs.js")));function R({initialMockViewContext:c,backendUrl:u,remoteUrl:h,doCheckWorkspace:A,appName:i,doCheckResource:l,modalOpenerConfig:d,modalContextConfig:q,oauthConfig:n,atlassianResourceId:x,children:t}){const v=r.jsx(X,{appName:i,backendUrl:u,remoteUrl:h,initialMockViewContext:c,modalOpenerConfig:d,modalContextConfig:q,doCheckWorkspace:A,doCheckResource:l,oauthConfig:n,atlassianResourceId:x,children:t});return n?r.jsx(P.OAuthProvider,{clientId:n.clientId,codeTokenExchangeUrl:n.codeTokenExchangeUrl,appName:i,oAuthScopes:n.oAuthScopes,appBaseContext:n.appBaseContext,children:v}):v}function X({initialMockViewContext:c,backendUrl:u,remoteUrl:h,doCheckWorkspace:A,appName:i,doCheckResource:l,modalOpenerConfig:d,modalContextConfig:q,atlassianResourceId:n,children:x}){const[t,v]=o.useState(n),[a,j]=o.useState(),{getAuthToken:s}=P.useOAuth(),f=o.useCallback(()=>S.atlassianOAuthJiraFetch(s(),t??""),[s,t]),C=o.useCallback(()=>S.atlassianOAuthConfluenceFetch(s(),t??""),[s,t]),F=o.useCallback(()=>S.atlassianOAuthBitbucketFetch(s()),[s]),w=o.useCallback(async p=>{if(u&&l){const I=p??localStorage.getItem(`${i}-user-resource-id`)??"",k=await new B.AtlassianUserResourceService().checkUserChosenResource(s(),I);return k.hasChosen&&(localStorage.setItem(`${i}-user-resource-id`,k.resource.id),v(k.resource.id)),k}else return{hasChosen:!0}},[u,s,i,l]);o.useEffect(()=>{const p=t??(c==null?void 0:c.cloudId)??"";if(!a||a.cloudId!==p){const I={...a||c,cloudId:p};j(I)}},[c,t,a]);const b=o.useCallback(()=>u?M.getOauthFetchInvokeImpl(u,s(),t??""):void 0,[t,s,u]);let e=x;A&&(e=r.jsx(O.FeatureChosenWorkspaceCheck,{appName:i,children:e})),d&&(e=r.jsx(K.ModalServiceProvider,{modalService:new z.WindowModalService(d.defaultUrl,d.resourceMap),children:e})),a&&(e=r.jsx(G.ViewContextProvider,{viewContext:q?new $.ModalViewContext(a,q.openerOrigin):new L.MockViewContext(a),children:e})),e=r.jsx(_.HostRouterProvider,{hostRouter:new H.WindowHostRouter,children:r.jsx(J.RequestBitbucketProvider,{requestBitbucketImplementation:F(),children:r.jsx(T.RequestConfluenceProvider,{requestConfluenceImplementation:C(),children:r.jsx(E.RequestJiraProvider,{requestJiraImplementation:f(),children:e})})})});const m=b();return m&&(e=r.jsx(y.BackendAdapterProvider,{invokeImplementation:m,children:e})),h&&(e=r.jsx(U.RemoteAdapterProvider,{invokeRemoteImplementation:D.oauthFetchInvokeRemote(h),children:e})),l&&(e=r.jsx(Q,{checkResource:w,children:e})),r.jsx(g,{children:r.jsx(W.AppFlagsProviderAtlasKit,{children:e})})}exports.AtlassianAppStandalone=R;exports.default=R;
@@ -0,0 +1,168 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import g from "@atlaskit/app-provider";
3
+ import { useState as R, useCallback as d, useEffect as C, lazy as O } from "react";
4
+ import { atlassianOAuthJiraFetch as W, atlassianOAuthConfluenceFetch as E, atlassianOAuthBitbucketFetch as J } from "../../../../../data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js";
5
+ import { AtlassianUserResourceService as T } from "../../../../../data-access-resources/src/lib/atlassian-user-resource-service/index.es.js";
6
+ import { FeatureChosenWorkspaceCheck as y } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
7
+ import "../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js";
8
+ import { OAuthProvider as H, useOAuth as $ } from "../../../../../frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js";
9
+ import "../../../../../frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js";
10
+ import "@atlaskit/heading";
11
+ import "@atlaskit/primitives";
12
+ import "@atlaskit/section-message";
13
+ import "@atlaskit/spinner";
14
+ import "../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js";
15
+ import { AppFlagsProviderAtlasKit as b } from "../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js";
16
+ import { RequestBitbucketProvider as j } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
17
+ import { RequestConfluenceProvider as z } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
18
+ import { RequestJiraProvider as K } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
19
+ import { BackendAdapterProvider as M } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
20
+ import { getOauthFetchInvokeImpl as D } from "../../../../../frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.es.js";
21
+ import { WindowHostRouter as G } from "../../../../../frontend-ui-host-router/src/lib/host-router/index.es.js";
22
+ import "@atlaskit/button/new";
23
+ import { HostRouterProvider as L } from "../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.es.js";
24
+ import "../../../../../frontend-ui-modal/src/lib/modal-content/index.es.js";
25
+ import "../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js";
26
+ import { ModalViewContext as Q } from "../../../../../frontend-ui-modal/src/lib/modal-view-context/index.es.js";
27
+ import { WindowModalService as U } from "../../../../../frontend-ui-modal-service/src/lib/modal-service/index.es.js";
28
+ import { ModalServiceProvider as X } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
29
+ import { RemoteAdapterProvider as Y } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
30
+ import { oauthFetchInvokeRemote as Z } from "../../../../../frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js";
31
+ import { ViewContextProvider as _ } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
32
+ import { MockViewContext as V } from "../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.es.js";
33
+ const N = O(
34
+ () => import("../../../../../frontend-feature-chosen-resource-check/src/index/index.es.js")
35
+ );
36
+ function Je({
37
+ initialMockViewContext: i,
38
+ backendUrl: c,
39
+ remoteUrl: l,
40
+ doCheckWorkspace: I,
41
+ appName: s,
42
+ doCheckResource: p,
43
+ modalOpenerConfig: u,
44
+ modalContextConfig: a,
45
+ oauthConfig: n,
46
+ atlassianResourceId: A,
47
+ children: t
48
+ }) {
49
+ const h = /* @__PURE__ */ r(
50
+ ee,
51
+ {
52
+ appName: s,
53
+ backendUrl: c,
54
+ remoteUrl: l,
55
+ initialMockViewContext: i,
56
+ modalOpenerConfig: u,
57
+ modalContextConfig: a,
58
+ doCheckWorkspace: I,
59
+ doCheckResource: p,
60
+ oauthConfig: n,
61
+ atlassianResourceId: A,
62
+ children: t
63
+ }
64
+ );
65
+ return n ? /* @__PURE__ */ r(
66
+ H,
67
+ {
68
+ clientId: n.clientId,
69
+ codeTokenExchangeUrl: n.codeTokenExchangeUrl,
70
+ appName: s,
71
+ oAuthScopes: n.oAuthScopes,
72
+ appBaseContext: n.appBaseContext,
73
+ children: h
74
+ }
75
+ ) : h;
76
+ }
77
+ function ee({
78
+ initialMockViewContext: i,
79
+ backendUrl: c,
80
+ remoteUrl: l,
81
+ doCheckWorkspace: I,
82
+ appName: s,
83
+ doCheckResource: p,
84
+ modalOpenerConfig: u,
85
+ modalContextConfig: a,
86
+ atlassianResourceId: n,
87
+ children: A
88
+ }) {
89
+ const [t, h] = R(
90
+ n
91
+ ), [m, F] = R(), { getAuthToken: o } = $(), P = d(() => W(o(), t ?? ""), [o, t]), w = d(() => E(o(), t ?? ""), [o, t]), B = d(() => J(o()), [o]), q = d(
92
+ async (f) => {
93
+ if (c && p) {
94
+ const S = f ?? localStorage.getItem(`${s}-user-resource-id`) ?? "", v = await new T().checkUserChosenResource(
95
+ o(),
96
+ S
97
+ );
98
+ return v.hasChosen && (localStorage.setItem(
99
+ `${s}-user-resource-id`,
100
+ v.resource.id
101
+ ), h(v.resource.id)), v;
102
+ } else
103
+ return { hasChosen: !0 };
104
+ },
105
+ [c, o, s, p]
106
+ );
107
+ C(() => {
108
+ const f = t ?? (i == null ? void 0 : i.cloudId) ?? "";
109
+ if (!m || m.cloudId !== f) {
110
+ const S = {
111
+ ...m || i,
112
+ cloudId: f
113
+ };
114
+ F(S);
115
+ }
116
+ }, [i, t, m]);
117
+ const x = d(
118
+ () => c ? D(c, o(), t ?? "") : void 0,
119
+ [t, o, c]
120
+ );
121
+ let e = A;
122
+ I && (e = /* @__PURE__ */ r(y, { appName: s, children: e })), u && (e = /* @__PURE__ */ r(
123
+ X,
124
+ {
125
+ modalService: new U(
126
+ u.defaultUrl,
127
+ u.resourceMap
128
+ ),
129
+ children: e
130
+ }
131
+ )), m && (e = /* @__PURE__ */ r(
132
+ _,
133
+ {
134
+ viewContext: a ? new Q(m, a.openerOrigin) : new V(m),
135
+ children: e
136
+ }
137
+ )), e = /* @__PURE__ */ r(L, { hostRouter: new G(), children: /* @__PURE__ */ r(
138
+ j,
139
+ {
140
+ requestBitbucketImplementation: B(),
141
+ children: /* @__PURE__ */ r(
142
+ z,
143
+ {
144
+ requestConfluenceImplementation: w(),
145
+ children: /* @__PURE__ */ r(
146
+ K,
147
+ {
148
+ requestJiraImplementation: P(),
149
+ children: e
150
+ }
151
+ )
152
+ }
153
+ )
154
+ }
155
+ ) });
156
+ const k = x();
157
+ return k && (e = /* @__PURE__ */ r(M, { invokeImplementation: k, children: e })), l && (e = /* @__PURE__ */ r(
158
+ Y,
159
+ {
160
+ invokeRemoteImplementation: Z(l),
161
+ children: e
162
+ }
163
+ )), p && (e = /* @__PURE__ */ r(N, { checkResource: q, children: e })), /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(b, { children: e }) });
164
+ }
165
+ export {
166
+ Je as AtlassianAppStandalone,
167
+ Je as default
168
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js");const l=require("../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js"),p=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),c=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),q=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js"),m=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js");require("@atlaskit/button/new");require("react");const v=require("../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js"),x=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),P=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js"),I=require("../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js");function j({mockContext:t,invoke:s,invokeRemote:a,jiraFetchService:o,confluenceFetchService:i,bitbucketFetchService:n,hostRouter:d,children:u}){let r=e.jsx(l.JiraWorkspaceProvider,{workspaceId:"test-workspace",children:e.jsx(m.BackendAdapterProvider,{invokeImplementation:s,children:e.jsx(x.RemoteAdapterProvider,{invokeRemoteImplementation:a,children:e.jsx(v.HostRouterProvider,{hostRouter:d,children:e.jsx(P.ViewContextProvider,{viewContext:new I.MockViewContext(t),children:u})})})})});return o&&(r=e.jsx(q.RequestJiraProvider,{requestJiraImplementation:o,children:r})),i&&(r=e.jsx(c.RequestConfluenceProvider,{requestConfluenceImplementation:i,children:r})),n&&(r=e.jsx(p.RequestBitbucketProvider,{requestBitbucketImplementation:n,children:r})),r}function A(t){return{mockContext:{accountId:"testAccount",cloudId:"testSite",workspaceId:"testWorkspace",siteUrl:"https://expiumdev.atlassian.net",extension:{type:"jira:globalPage"},timezone:"America/Chicago",locale:"en-US",localId:"devId",moduleKey:"TestApp",environmentId:"TEST",environmentType:"DEVELOPMENT"},invoke:t(),invokeRemote:t(),hostRouter:{navigate:t(),open:t(),reload:t()}}}exports.AtlassianAppTest=j;exports.defaultProps=A;
@@ -0,0 +1,66 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
3
+ import { JiraWorkspaceProvider as s } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js";
4
+ import { RequestBitbucketProvider as l } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
5
+ import { RequestConfluenceProvider as f } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
6
+ import { RequestJiraProvider as u } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
7
+ import { BackendAdapterProvider as v } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
8
+ import "@atlaskit/button/new";
9
+ import "react";
10
+ import { HostRouterProvider as c } from "../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.es.js";
11
+ import { RemoteAdapterProvider as I } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
12
+ import { ViewContextProvider as P } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
13
+ import { MockViewContext as x } from "../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.es.js";
14
+ function V({
15
+ mockContext: t,
16
+ invoke: m,
17
+ invokeRemote: p,
18
+ jiraFetchService: r,
19
+ confluenceFetchService: i,
20
+ bitbucketFetchService: n,
21
+ hostRouter: d,
22
+ children: a
23
+ }) {
24
+ let o = /* @__PURE__ */ e(s, { workspaceId: "test-workspace", children: /* @__PURE__ */ e(v, { invokeImplementation: m, children: /* @__PURE__ */ e(I, { invokeRemoteImplementation: p, children: /* @__PURE__ */ e(c, { hostRouter: d, children: /* @__PURE__ */ e(P, { viewContext: new x(t), children: a }) }) }) }) });
25
+ return r && (o = /* @__PURE__ */ e(u, { requestJiraImplementation: r, children: o })), i && (o = /* @__PURE__ */ e(
26
+ f,
27
+ {
28
+ requestConfluenceImplementation: i,
29
+ children: o
30
+ }
31
+ )), n && (o = /* @__PURE__ */ e(
32
+ l,
33
+ {
34
+ requestBitbucketImplementation: n,
35
+ children: o
36
+ }
37
+ )), o;
38
+ }
39
+ function U(t) {
40
+ return {
41
+ mockContext: {
42
+ accountId: "testAccount",
43
+ cloudId: "testSite",
44
+ workspaceId: "testWorkspace",
45
+ siteUrl: "https://expiumdev.atlassian.net",
46
+ extension: { type: "jira:globalPage" },
47
+ timezone: "America/Chicago",
48
+ locale: "en-US",
49
+ localId: "devId",
50
+ moduleKey: "TestApp",
51
+ environmentId: "TEST",
52
+ environmentType: "DEVELOPMENT"
53
+ },
54
+ invoke: t(),
55
+ invokeRemote: t(),
56
+ hostRouter: {
57
+ navigate: t(),
58
+ open: t(),
59
+ reload: t()
60
+ }
61
+ };
62
+ }
63
+ export {
64
+ V as AtlassianAppTest,
65
+ U as defaultProps
66
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),e=require("@forge/bridge"),c=require("react"),d=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),s=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),l=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");e.view.theme.enable();const u={open(r){return new e.Modal(r).open()}};function o({children:r}){const t=c.useCallback(async(n,a)=>e.invoke(n,{...a}),[]);return i.jsx(s.ModalServiceProvider,{modalService:u,children:i.jsx(d.BackendAdapterProvider,{invokeImplementation:t,children:i.jsx(l.ViewContextProvider,{viewContext:e.view,children:r})})})}exports.AtlassianAppForgeUiKit=o;exports.default=o;
@@ -0,0 +1,25 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { view as o, invoke as a, Modal as m } from "@forge/bridge";
3
+ import { useCallback as p } from "react";
4
+ import { BackendAdapterProvider as d } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
5
+ import { ModalServiceProvider as l } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
6
+ import { ViewContextProvider as v } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
7
+ o.theme.enable();
8
+ const c = {
9
+ open(e) {
10
+ return new m(e).open();
11
+ }
12
+ };
13
+ function h({ children: e }) {
14
+ const i = p(
15
+ async (t, n) => a(t, {
16
+ ...n
17
+ }),
18
+ []
19
+ );
20
+ return /* @__PURE__ */ r(l, { modalService: c, children: /* @__PURE__ */ r(d, { invokeImplementation: i, children: /* @__PURE__ */ r(v, { viewContext: o, children: e }) }) });
21
+ }
22
+ export {
23
+ h as AtlassianAppForgeUiKit,
24
+ h as default
25
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../lib/feature-chosen-resource-check/index.cjs.js");exports.FeatureChosenResourceCheck=e.FeatureChosenResourceCheck;exports.default=e.FeatureChosenResourceCheck;
@@ -0,0 +1,5 @@
1
+ import { FeatureChosenResourceCheck as o } from "../lib/feature-chosen-resource-check/index.es.js";
2
+ export {
3
+ o as FeatureChosenResourceCheck,
4
+ o as default
5
+ };