@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.
- package/README.md +728 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/event-payload-storage-service/index.es.js +22 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/job-log-queue/index.es.js +60 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/large-payload-queue-service/index.es.js +51 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-async-queue/src/lib/simple-async-queue-service/index.es.js +77 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/insert-rows/index.es.js +21 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/upsert-rows/index.es.js +20 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-sql/src/lib/util/index.es.js +31 -0
- package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-forge-storage/src/lib/forge-storage-service-standalone/index.es.js +244 -0
- package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.cjs.js +1 -0
- package/atlassian/forge/shared/backend-data-access-product-fetch-forge-api/src/lib/forge-api-product-fetch/index.es.js +31 -0
- package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js +1 -0
- package/atlassian/forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.es.js +28 -0
- package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js +1 -0
- package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js +31 -0
- package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.cjs.js +1 -0
- package/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table/index.es.js +107 -0
- package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.cjs.js +3 -0
- package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.es.js +39 -0
- package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.cjs.js +1 -0
- package/atlassian/forge/shared/util-resolver/src/lib/common-resolver-paths/index.es.js +7 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/assets-objects-service/index.es.js +274 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/global-icons/index.es.js +9 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object/index.es.js +52 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-linked-issues/index.es.js +9 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-schema/index.es.js +22 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type/index.es.js +23 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-assets/src/lib/object-type-attribute/index.es.js +19 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +167 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js +20 -0
- package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-jql/src/lib/jql-precomputation-service/index.es.js +34 -0
- package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-project/src/lib/jira-project-service/index.es.js +85 -0
- package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-serverinfo/src/lib/jira-server-info-service/index.es.js +21 -0
- package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.es.js +50 -0
- package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-assets/src/lib/asset-type/index.es.js +4 -0
- package/atlassian/jira/shared/util-assets/src/lib/object/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-assets/src/lib/object/index.es.js +9 -0
- package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-assets/src/lib/object-type-attribute/index.es.js +14 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js +12 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js +1 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js +9 -0
- package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.cjs.js +1 -0
- package/atlassian/shared/backend-feature-atlassian-app/src/lib/atlassian-app-backend-forge/index.es.js +8 -0
- package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.cjs.js +1 -0
- package/atlassian/shared/backend-feature-atlassian-app-express/src/lib/atlassian-app-backend-express/index.es.js +125 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +127 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -0
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +56 -0
- package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js +1 -0
- package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.es.js +44 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app/index.es.js +41 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.es.js +59 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +168 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.es.js +66 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.es.js +25 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/index/index.es.js +5 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-resource-check/src/lib/feature-chosen-resource-check/index.es.js +69 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js +83 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js +13 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +65 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-callback/index.es.js +28 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.es.js +9 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/util/index.es.js +19 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js +9 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.es.js +35 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js +106 -0
- package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.es.js +8 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js +20 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js +20 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js +18 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js +28 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.es.js +16 -0
- package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-copy-button/src/lib/copy-text-button/index.es.js +39 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +28 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel-stateless/index.es.js +41 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.cjs.js +45 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/styled-panel/index.es.js +53 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router/index.es.js +14 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-link/index.es.js +31 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-host-router/src/lib/host-router-provider/index.es.js +18 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js +54 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.es.js +6 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.es.js +34 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.es.js +48 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.es.js +24 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.es.js +14 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js +38 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js +20 -0
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +19 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js +12 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js +28 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/mock-view-context/index.es.js +27 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-view-context/src/lib/view-context-provider/index.es.js +18 -0
- package/atlassian/shared/util-error/src/index/index.cjs.js +1 -0
- package/atlassian/shared/util-error/src/index/index.es.js +8 -0
- package/atlassian-app.css +1 -0
- package/backend-data-access-async-queue/atlassian-app-backend-data-access-async-queue.api.json +2205 -0
- package/backend-data-access-async-queue/atlassian-app.api.md +118 -0
- package/backend-data-access-async-queue/index.cjs.js +1 -0
- package/backend-data-access-async-queue/index.d.ts +121 -0
- package/backend-data-access-async-queue/index.es.js +10 -0
- package/backend-data-access-async-queue/tsdoc-metadata.json +11 -0
- package/backend-data-access-forge-sql/atlassian-app-backend-data-access-forge-sql.api.json +554 -0
- package/backend-data-access-forge-sql/atlassian-app.api.md +21 -0
- package/backend-data-access-forge-sql/index.cjs.js +1 -0
- package/backend-data-access-forge-sql/index.d.ts +18 -0
- package/backend-data-access-forge-sql/index.es.js +8 -0
- package/backend-data-access-forge-sql/tsdoc-metadata.json +11 -0
- package/backend-data-access-forge-storage/atlassian-app-backend-data-access-forge-storage.api.json +772 -0
- package/backend-data-access-forge-storage/atlassian-app.api.md +58 -0
- package/backend-data-access-forge-storage/index.cjs.js +1 -0
- package/backend-data-access-forge-storage/index.d.ts +50 -0
- package/backend-data-access-forge-storage/index.es.js +4 -0
- package/backend-data-access-forge-storage/tsdoc-metadata.json +11 -0
- package/backend-data-access-product-fetch-forge-api/atlassian-app-backend-data-access-product-fetch-forge-api.api.json +266 -0
- package/backend-data-access-product-fetch-forge-api/atlassian-app.api.md +15 -0
- package/backend-data-access-product-fetch-forge-api/index.cjs.js +1 -0
- package/backend-data-access-product-fetch-forge-api/index.d.ts +32 -0
- package/backend-data-access-product-fetch-forge-api/index.es.js +4 -0
- package/backend-data-access-product-fetch-forge-api/tsdoc-metadata.json +11 -0
- package/backend-feature-atlassian-app/atlassian-app-backend-feature-atlassian-app.api.json +458 -0
- package/backend-feature-atlassian-app/atlassian-app.api.md +41 -0
- package/backend-feature-atlassian-app/index.cjs.js +1 -0
- package/backend-feature-atlassian-app/index.d.ts +102 -0
- package/backend-feature-atlassian-app/index.es.js +4 -0
- package/backend-feature-atlassian-app/tsdoc-metadata.json +11 -0
- package/backend-feature-atlassian-app-express/atlassian-app-backend-feature-atlassian-app-express.api.json +682 -0
- package/backend-feature-atlassian-app-express/atlassian-app.api.md +51 -0
- package/backend-feature-atlassian-app-express/index.cjs.js +1 -0
- package/backend-feature-atlassian-app-express/index.d.ts +141 -0
- package/backend-feature-atlassian-app-express/index.es.js +9 -0
- package/backend-feature-atlassian-app-express/tsdoc-metadata.json +11 -0
- package/data-access-assets/atlassian-app-data-access-assets.api.json +2441 -0
- package/data-access-assets/atlassian-app.api.md +109 -0
- package/data-access-assets/index.cjs.js +1 -0
- package/data-access-assets/index.d.ts +316 -0
- package/data-access-assets/index.es.js +23 -0
- package/data-access-assets/tsdoc-metadata.json +11 -0
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-data-access-atlassian-product-fetch-oauth.api.json +1439 -0
- package/data-access-atlassian-product-fetch-oauth/atlassian-app.api.md +92 -0
- package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -0
- package/data-access-atlassian-product-fetch-oauth/index.d.ts +79 -0
- package/data-access-atlassian-product-fetch-oauth/index.es.js +14 -0
- package/data-access-atlassian-product-fetch-oauth/tsdoc-metadata.json +11 -0
- package/data-access-issue/atlassian-app-data-access-issue.api.json +1995 -0
- package/data-access-issue/atlassian-app.api.md +111 -0
- package/data-access-issue/index.cjs.js +1 -0
- package/data-access-issue/index.d.ts +471 -0
- package/data-access-issue/index.es.js +6 -0
- package/data-access-issue/tsdoc-metadata.json +11 -0
- package/data-access-jql/atlassian-app-data-access-jql.api.json +388 -0
- package/data-access-jql/atlassian-app.api.md +25 -0
- package/data-access-jql/index.cjs.js +1 -0
- package/data-access-jql/index.d.ts +62 -0
- package/data-access-jql/index.es.js +4 -0
- package/data-access-jql/tsdoc-metadata.json +11 -0
- package/data-access-project/atlassian-app-data-access-project.api.json +856 -0
- package/data-access-project/atlassian-app.api.md +41 -0
- package/data-access-project/index.cjs.js +1 -0
- package/data-access-project/index.d.ts +114 -0
- package/data-access-project/index.es.js +4 -0
- package/data-access-project/tsdoc-metadata.json +11 -0
- package/data-access-resources/atlassian-app-data-access-resources.api.json +515 -0
- package/data-access-resources/atlassian-app.api.md +45 -0
- package/data-access-resources/index.cjs.js +1 -0
- package/data-access-resources/index.d.ts +27 -0
- package/data-access-resources/index.es.js +4 -0
- package/data-access-resources/tsdoc-metadata.json +11 -0
- package/data-access-serverinfo/atlassian-app-data-access-serverinfo.api.json +366 -0
- package/data-access-serverinfo/atlassian-app.api.md +23 -0
- package/data-access-serverinfo/index.cjs.js +1 -0
- package/data-access-serverinfo/index.d.ts +61 -0
- package/data-access-serverinfo/index.es.js +4 -0
- package/data-access-serverinfo/tsdoc-metadata.json +11 -0
- package/data-access-workspaces/atlassian-app-data-access-workspaces.api.json +406 -0
- package/data-access-workspaces/atlassian-app.api.md +32 -0
- package/data-access-workspaces/index.cjs.js +1 -0
- package/data-access-workspaces/index.d.ts +50 -0
- package/data-access-workspaces/index.es.js +4 -0
- package/data-access-workspaces/tsdoc-metadata.json +11 -0
- package/frontend-app/atlassian-app-frontend-app.api.json +636 -0
- package/frontend-app/atlassian-app.api.md +56 -0
- package/frontend-app/index.cjs.js +1 -0
- package/frontend-app/index.d.ts +109 -0
- package/frontend-app/index.es.js +5 -0
- package/frontend-app/tsdoc-metadata.json +11 -0
- package/frontend-app-custom-ui/atlassian-app-frontend-app-custom-ui.api.json +242 -0
- package/frontend-app-custom-ui/atlassian-app.api.md +17 -0
- package/frontend-app-custom-ui/index.cjs.js +1 -0
- package/frontend-app-custom-ui/index.d.ts +20 -0
- package/frontend-app-custom-ui/index.es.js +4 -0
- package/frontend-app-custom-ui/tsdoc-metadata.json +11 -0
- package/frontend-app-standalone/atlassian-app-frontend-app-standalone.api.json +554 -0
- package/frontend-app-standalone/atlassian-app.api.md +46 -0
- package/frontend-app-standalone/index.cjs.js +1 -0
- package/frontend-app-standalone/index.d.ts +45 -0
- package/frontend-app-standalone/index.es.js +4 -0
- package/frontend-app-standalone/tsdoc-metadata.json +11 -0
- package/frontend-app-test/atlassian-app-frontend-app-test.api.json +514 -0
- package/frontend-app-test/atlassian-app.api.md +45 -0
- package/frontend-app-test/index.cjs.js +1 -0
- package/frontend-app-test/index.d.ts +67 -0
- package/frontend-app-test/index.es.js +5 -0
- package/frontend-app-test/tsdoc-metadata.json +11 -0
- package/frontend-app-ui-kit/atlassian-app-frontend-app-ui-kit.api.json +229 -0
- package/frontend-app-ui-kit/atlassian-app.api.md +15 -0
- package/frontend-app-ui-kit/index.cjs.js +1 -0
- package/frontend-app-ui-kit/index.d.ts +6 -0
- package/frontend-app-ui-kit/index.es.js +4 -0
- package/frontend-app-ui-kit/tsdoc-metadata.json +11 -0
- package/package.json +271 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.cjs.js +1 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.es.js +20 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.cjs.js +1 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-target-box.module.scss/index.es.js +6 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.cjs.js +1 -0
- package/shared/frontend-ui-drop-target/src/lib/drop-utils/index.es.js +24 -0
- package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.cjs.js +1 -0
- package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.es.js +32 -0
- package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.cjs.js +1 -0
- package/shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.es.js +9 -0
- package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -0
- package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +76 -0
- package/ui-app-flags/atlassian-app-ui-app-flags.api.json +587 -0
- package/ui-app-flags/atlassian-app.api.md +57 -0
- package/ui-app-flags/index.cjs.js +1 -0
- package/ui-app-flags/index.d.ts +37 -0
- package/ui-app-flags/index.es.js +9 -0
- package/ui-app-flags/tsdoc-metadata.json +11 -0
- package/ui-async-queue-job-log/atlassian-app-ui-async-queue-job-log.api.json +246 -0
- package/ui-async-queue-job-log/atlassian-app.api.md +22 -0
- package/ui-async-queue-job-log/index.cjs.js +1 -0
- package/ui-async-queue-job-log/index.d.ts +21 -0
- package/ui-async-queue-job-log/index.es.js +4 -0
- package/ui-async-queue-job-log/tsdoc-metadata.json +11 -0
- package/ui-atlaskit-forms/atlassian-app-ui-atlaskit-forms.api.json +341 -0
- package/ui-atlaskit-forms/atlassian-app.api.md +19 -0
- package/ui-atlaskit-forms/index.cjs.js +1 -0
- package/ui-atlaskit-forms/index.d.ts +48 -0
- package/ui-atlaskit-forms/index.es.js +4 -0
- package/ui-atlaskit-forms/tsdoc-metadata.json +11 -0
- package/ui-atlassian-product-fetch/atlassian-app-ui-atlassian-product-fetch.api.json +418 -0
- package/ui-atlassian-product-fetch/atlassian-app.api.md +38 -0
- package/ui-atlassian-product-fetch/index.cjs.js +1 -0
- package/ui-atlassian-product-fetch/index.d.ts +60 -0
- package/ui-atlassian-product-fetch/index.es.js +11 -0
- package/ui-atlassian-product-fetch/tsdoc-metadata.json +11 -0
- package/ui-backend-adapter/atlassian-app-ui-backend-adapter.api.json +402 -0
- package/ui-backend-adapter/atlassian-app.api.md +34 -0
- package/ui-backend-adapter/index.cjs.js +1 -0
- package/ui-backend-adapter/index.d.ts +26 -0
- package/ui-backend-adapter/index.es.js +7 -0
- package/ui-backend-adapter/tsdoc-metadata.json +11 -0
- package/ui-chosen-resource-check/atlassian-app-ui-chosen-resource-check.api.json +388 -0
- package/ui-chosen-resource-check/atlassian-app.api.md +35 -0
- package/ui-chosen-resource-check/index.cjs.js +1 -0
- package/ui-chosen-resource-check/index.d.ts +20 -0
- package/ui-chosen-resource-check/index.es.js +4 -0
- package/ui-chosen-resource-check/tsdoc-metadata.json +11 -0
- package/ui-chosen-workspace-check/atlassian-app-ui-chosen-workspace-check.api.json +362 -0
- package/ui-chosen-workspace-check/atlassian-app.api.md +30 -0
- package/ui-chosen-workspace-check/index.cjs.js +1 -0
- package/ui-chosen-workspace-check/index.d.ts +17 -0
- package/ui-chosen-workspace-check/index.es.js +7 -0
- package/ui-chosen-workspace-check/tsdoc-metadata.json +11 -0
- package/ui-copy-button/atlassian-app-ui-copy-button.api.json +384 -0
- package/ui-copy-button/atlassian-app.api.md +30 -0
- package/ui-copy-button/index.cjs.js +1 -0
- package/ui-copy-button/index.d.ts +15 -0
- package/ui-copy-button/index.es.js +4 -0
- package/ui-copy-button/tsdoc-metadata.json +11 -0
- package/ui-drop-target/atlassian-app-ui-drop-target.api.json +637 -0
- package/ui-drop-target/atlassian-app.api.md +50 -0
- package/ui-drop-target/index.cjs.js +1 -0
- package/ui-drop-target/index.d.ts +39 -0
- package/ui-drop-target/index.es.js +7 -0
- package/ui-drop-target/tsdoc-metadata.json +11 -0
- package/ui-expand-panel/atlassian-app-ui-expand-panel.api.json +252 -0
- package/ui-expand-panel/atlassian-app.api.md +23 -0
- package/ui-expand-panel/index.cjs.js +1 -0
- package/ui-expand-panel/index.d.ts +31 -0
- package/ui-expand-panel/index.es.js +6 -0
- package/ui-expand-panel/tsdoc-metadata.json +11 -0
- package/ui-host-router/atlassian-app-ui-host-router.api.json +827 -0
- package/ui-host-router/atlassian-app.api.md +61 -0
- package/ui-host-router/index.cjs.js +1 -0
- package/ui-host-router/index.d.ts +40 -0
- package/ui-host-router/index.es.js +9 -0
- package/ui-host-router/tsdoc-metadata.json +11 -0
- package/ui-iframe/atlassian-app-ui-iframe.api.json +531 -0
- package/ui-iframe/atlassian-app.api.md +43 -0
- package/ui-iframe/index.cjs.js +1 -0
- package/ui-iframe/index.d.ts +24 -0
- package/ui-iframe/index.es.js +4 -0
- package/ui-iframe/tsdoc-metadata.json +11 -0
- package/ui-load-data-hook/atlassian-app-ui-load-data-hook.api.json +329 -0
- package/ui-load-data-hook/atlassian-app.api.md +25 -0
- package/ui-load-data-hook/index.cjs.js +1 -0
- package/ui-load-data-hook/index.d.ts +38 -0
- package/ui-load-data-hook/index.es.js +4 -0
- package/ui-load-data-hook/tsdoc-metadata.json +11 -0
- package/ui-modal/atlassian-app-ui-modal.api.json +1462 -0
- package/ui-modal/atlassian-app.api.md +117 -0
- package/ui-modal/index.cjs.js +1 -0
- package/ui-modal/index.d.ts +126 -0
- package/ui-modal/index.es.js +16 -0
- package/ui-modal/tsdoc-metadata.json +11 -0
- package/ui-modal-service/atlassian-app-ui-modal-service.api.json +809 -0
- package/ui-modal-service/atlassian-app.api.md +59 -0
- package/ui-modal-service/index.cjs.js +1 -0
- package/ui-modal-service/index.d.ts +41 -0
- package/ui-modal-service/index.es.js +7 -0
- package/ui-modal-service/tsdoc-metadata.json +11 -0
- package/ui-oauth-login/atlassian-app-ui-oauth-login.api.json +809 -0
- package/ui-oauth-login/atlassian-app.api.md +67 -0
- package/ui-oauth-login/index.cjs.js +1 -0
- package/ui-oauth-login/index.d.ts +47 -0
- package/ui-oauth-login/index.es.js +9 -0
- package/ui-oauth-login/tsdoc-metadata.json +11 -0
- package/ui-page-loading-view/atlassian-app-ui-page-loading-view.api.json +242 -0
- package/ui-page-loading-view/atlassian-app.api.md +19 -0
- package/ui-page-loading-view/index.cjs.js +1 -0
- package/ui-page-loading-view/index.d.ts +10 -0
- package/ui-page-loading-view/index.es.js +4 -0
- package/ui-page-loading-view/tsdoc-metadata.json +11 -0
- package/ui-remote-adapter/atlassian-app-ui-remote-adapter.api.json +369 -0
- package/ui-remote-adapter/atlassian-app.api.md +33 -0
- package/ui-remote-adapter/index.cjs.js +1 -0
- package/ui-remote-adapter/index.d.ts +26 -0
- package/ui-remote-adapter/index.es.js +7 -0
- package/ui-remote-adapter/tsdoc-metadata.json +11 -0
- package/ui-view-context/atlassian-app-ui-view-context.api.json +992 -0
- package/ui-view-context/atlassian-app.api.md +78 -0
- package/ui-view-context/index.cjs.js +1 -0
- package/ui-view-context/index.d.ts +62 -0
- package/ui-view-context/index.es.js +7 -0
- package/ui-view-context/tsdoc-metadata.json +11 -0
- package/util-assets/atlassian-app-util-assets.api.json +4726 -0
- package/util-assets/atlassian-app.api.md +418 -0
- package/util-assets/index.cjs.js +1 -0
- package/util-assets/index.d.ts +245 -0
- package/util-assets/index.es.js +9 -0
- package/util-assets/tsdoc-metadata.json +11 -0
- package/util-async-queue/atlassian-app-util-async-queue.api.json +439 -0
- package/util-async-queue/atlassian-app.api.md +31 -0
- package/util-async-queue/index.cjs.js +1 -0
- package/util-async-queue/index.d.ts +13 -0
- package/util-async-queue/index.es.js +1 -0
- package/util-async-queue/tsdoc-metadata.json +11 -0
- package/util-atlassian-product-fetch/atlassian-app-util-atlassian-product-fetch.api.json +1795 -0
- package/util-atlassian-product-fetch/atlassian-app.api.md +116 -0
- package/util-atlassian-product-fetch/index.cjs.js +1 -0
- package/util-atlassian-product-fetch/index.d.ts +70 -0
- package/util-atlassian-product-fetch/index.es.js +9 -0
- package/util-atlassian-product-fetch/tsdoc-metadata.json +11 -0
- package/util-jira-v3-api/atlassian-app-util-jira-v3-api.api.json +7431 -0
- package/util-jira-v3-api/atlassian-app.api.md +777 -0
- package/util-jira-v3-api/index.cjs.js +1 -0
- package/util-jira-v3-api/index.d.ts +510 -0
- package/util-jira-v3-api/index.es.js +8 -0
- package/util-jira-v3-api/tsdoc-metadata.json +11 -0
- package/util-resolver/atlassian-app-util-resolver.api.json +1014 -0
- package/util-resolver/atlassian-app.api.md +90 -0
- package/util-resolver/index.cjs.js +1 -0
- package/util-resolver/index.d.ts +67 -0
- package/util-resolver/index.es.js +4 -0
- package/util-resolver/tsdoc-metadata.json +11 -0
- package/util-trigger/atlassian-app-util-trigger.api.json +792 -0
- package/util-trigger/atlassian-app.api.md +84 -0
- package/util-trigger/index.cjs.js +1 -0
- package/util-trigger/index.d.ts +266 -0
- package/util-trigger/index.es.js +1 -0
- package/util-trigger/tsdoc-metadata.json +11 -0
- 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
|
+
};
|
package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js
ADDED
|
@@ -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;
|
package/atlassian/shared/data-access-resources/src/lib/atlassian-user-resource-service/index.es.js
ADDED
|
@@ -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
|
+
};
|
package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.cjs.js
ADDED
|
@@ -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;
|
package/atlassian/shared/frontend-feature-atlassian-app/src/lib/test/atlassian-app-test/index.es.js
ADDED
|
@@ -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;
|