@valiantys/atlassian-app-frontend 2.0.0 → 3.0.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/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/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 +38 -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 +63 -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-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 +4 -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 +81 -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 +45 -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 +58 -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 +158 -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 +19 -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 +70 -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 +84 -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 +74 -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-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-expand-panel/src/lib/panel/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +26 -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 +41 -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-service/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-service/index.es.js +38 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-service-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-modal/src/lib/modal-service-provider/index.es.js +20 -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-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 +20 -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/atlassian-app-frontend-atlassian-app.api.json +636 -0
- package/atlassian-app/atlassian-app-frontend.api.md +56 -0
- package/atlassian-app/index.cjs.js +1 -0
- package/atlassian-app/index.d.ts +114 -0
- package/atlassian-app/index.es.js +5 -0
- package/atlassian-app/tsdoc-metadata.json +11 -0
- package/atlassian-app-custom-ui/atlassian-app-frontend-atlassian-app-custom-ui.api.json +242 -0
- package/atlassian-app-custom-ui/atlassian-app-frontend.api.md +17 -0
- package/atlassian-app-custom-ui/index.cjs.js +1 -0
- package/atlassian-app-custom-ui/index.d.ts +26 -0
- package/atlassian-app-custom-ui/index.es.js +4 -0
- package/{tsdoc-metadata.json → atlassian-app-custom-ui/tsdoc-metadata.json} +1 -1
- package/atlassian-app-frontend.css +1 -0
- package/atlassian-app-standalone/atlassian-app-frontend-atlassian-app-standalone.api.json +527 -0
- package/atlassian-app-standalone/atlassian-app-frontend.api.md +44 -0
- package/atlassian-app-standalone/index.cjs.js +1 -0
- package/atlassian-app-standalone/index.d.ts +43 -0
- package/atlassian-app-standalone/index.es.js +4 -0
- package/atlassian-app-standalone/tsdoc-metadata.json +11 -0
- package/atlassian-app-test/atlassian-app-frontend-atlassian-app-test.api.json +514 -0
- package/atlassian-app-test/atlassian-app-frontend.api.md +45 -0
- package/atlassian-app-test/index.cjs.js +1 -0
- package/atlassian-app-test/index.d.ts +73 -0
- package/atlassian-app-test/index.es.js +5 -0
- package/atlassian-app-test/tsdoc-metadata.json +11 -0
- package/atlassian-app-ui-kit/atlassian-app-frontend-atlassian-app-ui-kit.api.json +229 -0
- package/atlassian-app-ui-kit/atlassian-app-frontend.api.md +15 -0
- package/atlassian-app-ui-kit/index.cjs.js +1 -0
- package/atlassian-app-ui-kit/index.d.ts +6 -0
- package/atlassian-app-ui-kit/index.es.js +4 -0
- package/atlassian-app-ui-kit/tsdoc-metadata.json +11 -0
- package/data-access-assets/atlassian-app-frontend-data-access-assets.api.json +2441 -0
- package/data-access-assets/atlassian-app-frontend.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-frontend-data-access-atlassian-product-fetch-oauth.api.json +1087 -0
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +73 -0
- package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -0
- package/data-access-atlassian-product-fetch-oauth/index.d.ts +67 -0
- package/data-access-atlassian-product-fetch-oauth/index.es.js +11 -0
- package/data-access-atlassian-product-fetch-oauth/tsdoc-metadata.json +11 -0
- package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +900 -0
- package/data-access-issue/atlassian-app-frontend.api.md +40 -0
- package/data-access-issue/index.cjs.js +1 -0
- package/data-access-issue/index.d.ts +228 -0
- package/data-access-issue/index.es.js +4 -0
- package/data-access-issue/tsdoc-metadata.json +11 -0
- package/data-access-jql/atlassian-app-frontend-data-access-jql.api.json +388 -0
- package/data-access-jql/atlassian-app-frontend.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-resources/atlassian-app-frontend-data-access-resources.api.json +515 -0
- package/data-access-resources/atlassian-app-frontend.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-workspaces/atlassian-app-frontend-data-access-workspaces.api.json +406 -0
- package/data-access-workspaces/atlassian-app-frontend.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/package.json +159 -21
- 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 +22 -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 +18 -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 +31 -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 +57 -0
- package/ui-app-flags/atlassian-app-frontend-ui-app-flags.api.json +587 -0
- package/ui-app-flags/atlassian-app-frontend.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-atlassian-product-fetch/atlassian-app-frontend-ui-atlassian-product-fetch.api.json +418 -0
- package/ui-atlassian-product-fetch/atlassian-app-frontend.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-frontend-ui-backend-adapter.api.json +402 -0
- package/ui-backend-adapter/atlassian-app-frontend.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-frontend-ui-chosen-resource-check.api.json +388 -0
- package/ui-chosen-resource-check/atlassian-app-frontend.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-frontend-ui-chosen-workspace-check.api.json +362 -0
- package/ui-chosen-workspace-check/atlassian-app-frontend.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-drop-target/atlassian-app-frontend-ui-drop-target.api.json +586 -0
- package/ui-drop-target/atlassian-app-frontend.api.md +47 -0
- package/ui-drop-target/index.cjs.js +1 -0
- package/ui-drop-target/index.d.ts +31 -0
- package/ui-drop-target/index.es.js +6 -0
- package/ui-drop-target/tsdoc-metadata.json +11 -0
- package/ui-expand-panel/atlassian-app-frontend-ui-expand-panel.api.json +252 -0
- package/ui-expand-panel/atlassian-app-frontend.api.md +23 -0
- package/ui-expand-panel/index.cjs.js +1 -0
- package/ui-expand-panel/index.d.ts +30 -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-frontend-ui-host-router.api.json +813 -0
- package/ui-host-router/atlassian-app-frontend.api.md +60 -0
- package/ui-host-router/index.cjs.js +1 -0
- package/ui-host-router/index.d.ts +39 -0
- package/ui-host-router/index.es.js +9 -0
- package/ui-host-router/tsdoc-metadata.json +11 -0
- package/ui-load-data-hook/atlassian-app-frontend-ui-load-data-hook.api.json +329 -0
- package/ui-load-data-hook/atlassian-app-frontend.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-frontend-ui-modal.api.json +1377 -0
- package/ui-modal/atlassian-app-frontend.api.md +109 -0
- package/ui-modal/index.cjs.js +1 -0
- package/ui-modal/index.d.ts +121 -0
- package/ui-modal/index.es.js +16 -0
- package/ui-modal/tsdoc-metadata.json +11 -0
- package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +469 -0
- package/ui-oauth-login/atlassian-app-frontend.api.md +38 -0
- package/ui-oauth-login/index.cjs.js +1 -0
- package/ui-oauth-login/index.d.ts +24 -0
- package/ui-oauth-login/index.es.js +5 -0
- package/ui-oauth-login/tsdoc-metadata.json +11 -0
- package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +237 -0
- package/ui-page-loading-view/atlassian-app-frontend.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-frontend-ui-remote-adapter.api.json +486 -0
- package/ui-remote-adapter/atlassian-app-frontend.api.md +43 -0
- package/ui-remote-adapter/index.cjs.js +1 -0
- package/ui-remote-adapter/index.d.ts +32 -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-frontend-ui-view-context.api.json +992 -0
- package/ui-view-context/atlassian-app-frontend.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-frontend-util-assets.api.json +4726 -0
- package/util-assets/atlassian-app-frontend.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-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +1460 -0
- package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +90 -0
- package/util-atlassian-product-fetch/index.cjs.js +1 -0
- package/util-atlassian-product-fetch/index.d.ts +53 -0
- package/util-atlassian-product-fetch/index.es.js +8 -0
- package/util-atlassian-product-fetch/tsdoc-metadata.json +11 -0
- package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +3664 -0
- package/util-jira-v3-api/atlassian-app-frontend.api.md +408 -0
- package/util-jira-v3-api/index.cjs.js +1 -0
- package/util-jira-v3-api/index.d.ts +271 -0
- package/util-jira-v3-api/index.es.js +4 -0
- package/util-jira-v3-api/tsdoc-metadata.json +11 -0
- package/util-resolver/atlassian-app-frontend-util-resolver.api.json +1014 -0
- package/util-resolver/atlassian-app-frontend.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/atlassian-app-forge-BwFXF-6M.js +0 -3
- package/atlassian-app-forge-DG01gNAI.mjs +0 -139
- package/atlassian-app-frontend.api.json +0 -9609
- package/atlassian-app-frontend.api.md +0 -797
- package/index-BePJjrLy.js +0 -1
- package/index-ZJX0bAUh.mjs +0 -23
- package/index.d.ts +0 -702
- package/index.js +0 -2
- package/index.mjs +0 -1303
- package/style.css +0 -1
- package/valiantys-atlassian-app-frontend-2.0.0.tgz +0 -0
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 r=require("react/jsx-runtime"),e=require("@forge/bridge"),s=require("react"),u=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),c=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");e.view.theme.enable();function t({children:i}){const n=s.useCallback(async(o,a)=>e.invoke(o,{...a}),[]);return r.jsx(u.BackendAdapterProvider,{invokeImplementation:n,children:r.jsx(c.ViewContextProvider,{viewContext:e.view,children:i})})}exports.AtlassianAppForgeUiKit=t;exports.default=t;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { view as r, invoke as m } from "@forge/bridge";
|
|
3
|
+
import { useCallback as a } from "react";
|
|
4
|
+
import { BackendAdapterProvider as p } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
|
|
5
|
+
import { ViewContextProvider as v } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
6
|
+
r.theme.enable();
|
|
7
|
+
function k({ children: o }) {
|
|
8
|
+
const t = a(
|
|
9
|
+
async (i, n) => m(i, {
|
|
10
|
+
...n
|
|
11
|
+
}),
|
|
12
|
+
[]
|
|
13
|
+
);
|
|
14
|
+
return /* @__PURE__ */ e(p, { invokeImplementation: t, children: /* @__PURE__ */ e(v, { viewContext: r, children: o }) });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
k as AtlassianAppForgeUiKit,
|
|
18
|
+
k as default
|
|
19
|
+
};
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("@atlaskit/button"),b=require("@atlaskit/button/new"),t=require("@atlaskit/form"),n=require("@atlaskit/primitives"),S=require("@atlaskit/section-message"),q=require("@atlaskit/select"),o=require("react"),F=require("../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js"),d=n.xcss({maxWidth:"max-content",paddingBlockStart:"space.1000"});function R({checkResource:a,children:h}){const[x,m]=o.useState(!1),[l,j]=o.useState(null),[c,i]=o.useState(""),u=o.useCallback(async s=>{try{i("");const r=await a(s);r.hasChosen?m(!0):j(r.resources)}catch(r){r instanceof Error?i(`Error Occurred: ${r.message}`):i("Uncaught error occurred!")}},[a]);o.useEffect(()=>{u()},[u]);function p({selectedResource:s}){return u(s.value)}if(x)return h;if(l){const s=l.map(r=>({label:r.name,value:r.id}));return e.jsx(n.Flex,{justifyContent:"center",children:e.jsx(n.Box,{xcss:d,children:e.jsx(t,{onSubmit:p,children:({formProps:r,submitting:f})=>e.jsxs("form",{...r,children:[e.jsx(t.FormHeader,{title:"Choose Resource",children:c?e.jsx(S,{appearance:"error",children:c}):null}),e.jsx(t.FormSection,{children:e.jsx(t.Field,{"aria-required":!0,name:"selectedResource",label:"Resource",isRequired:!0,children:({fieldProps:g})=>e.jsx(q,{...g,options:s})})}),e.jsx(t.FormFooter,{align:"start",children:e.jsx(C.ButtonGroup,{label:"Form submit options",children:e.jsx(b,{type:"submit",appearance:"primary",isLoading:f,children:"Submit"})})})]})})})})}else return e.jsx(n.Flex,{justifyContent:"center",xcss:d,children:e.jsx(F.PageLoadingView,{label:"",loadingError:c})})}exports.FeatureChosenResourceCheck=R;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as e, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup as g } from "@atlaskit/button";
|
|
3
|
+
import F from "@atlaskit/button/new";
|
|
4
|
+
import R, { FormHeader as S, FormSection as y, Field as B, FormFooter as E } from "@atlaskit/form";
|
|
5
|
+
import { Flex as l, Box as j, xcss as k } from "@atlaskit/primitives";
|
|
6
|
+
import L from "@atlaskit/section-message";
|
|
7
|
+
import v from "@atlaskit/select";
|
|
8
|
+
import { useState as c, useCallback as H, useEffect as q } from "react";
|
|
9
|
+
import { PageLoadingView as w } from "../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js";
|
|
10
|
+
const u = k({
|
|
11
|
+
maxWidth: "max-content",
|
|
12
|
+
paddingBlockStart: "space.1000"
|
|
13
|
+
});
|
|
14
|
+
function A({
|
|
15
|
+
checkResource: i,
|
|
16
|
+
children: m
|
|
17
|
+
}) {
|
|
18
|
+
const [d, h] = c(!1), [a, p] = c(null), [t, s] = c(""), n = H(
|
|
19
|
+
async (o) => {
|
|
20
|
+
try {
|
|
21
|
+
s("");
|
|
22
|
+
const r = await i(o);
|
|
23
|
+
r.hasChosen ? h(!0) : p(r.resources);
|
|
24
|
+
} catch (r) {
|
|
25
|
+
r instanceof Error ? s(`Error Occurred: ${r.message}`) : s("Uncaught error occurred!");
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
[i]
|
|
29
|
+
);
|
|
30
|
+
q(() => {
|
|
31
|
+
n();
|
|
32
|
+
}, [n]);
|
|
33
|
+
function f({ selectedResource: o }) {
|
|
34
|
+
return n(o.value);
|
|
35
|
+
}
|
|
36
|
+
if (d)
|
|
37
|
+
return m;
|
|
38
|
+
if (a) {
|
|
39
|
+
const o = a.map((r) => ({
|
|
40
|
+
label: r.name,
|
|
41
|
+
value: r.id
|
|
42
|
+
}));
|
|
43
|
+
return /* @__PURE__ */ e(l, { justifyContent: "center", children: /* @__PURE__ */ e(j, { xcss: u, children: /* @__PURE__ */ e(R, { onSubmit: f, children: ({ formProps: r, submitting: C }) => /* @__PURE__ */ b("form", { ...r, children: [
|
|
44
|
+
/* @__PURE__ */ e(S, { title: "Choose Resource", children: t ? /* @__PURE__ */ e(L, { appearance: "error", children: t }) : null }),
|
|
45
|
+
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
|
|
46
|
+
B,
|
|
47
|
+
{
|
|
48
|
+
"aria-required": !0,
|
|
49
|
+
name: "selectedResource",
|
|
50
|
+
label: "Resource",
|
|
51
|
+
isRequired: !0,
|
|
52
|
+
children: ({ fieldProps: x }) => /* @__PURE__ */ e(v, { ...x, options: o })
|
|
53
|
+
}
|
|
54
|
+
) }),
|
|
55
|
+
/* @__PURE__ */ e(E, { align: "start", children: /* @__PURE__ */ e(g, { label: "Form submit options", children: /* @__PURE__ */ e(
|
|
56
|
+
F,
|
|
57
|
+
{
|
|
58
|
+
type: "submit",
|
|
59
|
+
appearance: "primary",
|
|
60
|
+
isLoading: C,
|
|
61
|
+
children: "Submit"
|
|
62
|
+
}
|
|
63
|
+
) }) })
|
|
64
|
+
] }) }) }) });
|
|
65
|
+
} else
|
|
66
|
+
return /* @__PURE__ */ e(l, { justifyContent: "center", xcss: u, children: /* @__PURE__ */ e(w, { label: "", loadingError: t }) });
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
A as FeatureChosenResourceCheck
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),W=require("@atlaskit/button"),f=require("@atlaskit/button/new"),n=require("@atlaskit/form"),i=require("@atlaskit/primitives"),C=require("@atlaskit/section-message"),b=require("@atlaskit/select"),o=require("react"),F=require("../../../../../jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.cjs.js");require("../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js");require("../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js");const v=require("../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js"),y=require("../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js"),I=require("../jira-workspace-provider/index.cjs.js"),k=i.xcss({maxWidth:"max-content",paddingBlockStart:"space.1000"});function B({appName:t,children:h}){const[x,j]=o.useState(!1),[d,m]=o.useState(null),[a,u]=o.useState(""),[q,S]=o.useState(),p=v.useRequestJira(),l=o.useCallback(async c=>{try{u("");const r=c??(t&&localStorage.getItem(`${t}-user-workspace-id`))??"",s=await new F.AtlassianUserWorkspaceService(p).checkUserChosenWorkspace(r);s.hasChosen?(t&&localStorage.setItem(`${t}-user-workspace-id`,s.workspace),j(!0),S(s.workspace)):m(s.workspaces)}catch(r){r instanceof Error?u(`Error Occurred: ${r.message}`):u("Uncaught error occurred!")}},[t,p]);o.useEffect(()=>{l()},[l]);async function w({selectedWorkspace:c}){return l(c.value)}if(x)return e.jsx(I.JiraWorkspaceProvider,{workspaceId:q,children:h});if(d){const c=d.map(r=>({label:r.workspaceId,value:r.workspaceId}));return e.jsx(i.Flex,{justifyContent:"center",children:e.jsx(i.Box,{xcss:k,children:e.jsx(n,{onSubmit:w,children:({formProps:r,submitting:s})=>e.jsxs("form",{...r,children:[e.jsx(n.FormHeader,{title:"Choose Workspace",children:a?e.jsx(C,{appearance:"error",children:a}):null}),e.jsx(n.FormSection,{children:e.jsx(n.Field,{"aria-required":!0,name:"selectedWorkspace",label:"Workspace",isRequired:!0,children:({fieldProps:g})=>e.jsx("div",{"data-testid":"workspace-select-component",children:e.jsx(b,{...g,options:c})})})}),e.jsx(n.FormFooter,{align:"start",children:e.jsx(W.ButtonGroup,{label:"Form submit options",children:e.jsx(f,{type:"submit",appearance:"primary",isLoading:s,children:"Submit"})})})]})})})})}else return e.jsx(i.Flex,{justifyContent:"center",xcss:k,children:e.jsx(y.PageLoadingView,{label:"",loadingError:a})})}exports.FeatureChosenWorkspaceCheck=B;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as e, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup as x } from "@atlaskit/button";
|
|
3
|
+
import F from "@atlaskit/button/new";
|
|
4
|
+
import b, { FormHeader as y, FormSection as v, Field as I, FormFooter as B } from "@atlaskit/form";
|
|
5
|
+
import { xcss as j, Flex as m, Box as E } from "@atlaskit/primitives";
|
|
6
|
+
import L from "@atlaskit/section-message";
|
|
7
|
+
import q from "@atlaskit/select";
|
|
8
|
+
import { useState as c, useCallback as H, useEffect as R } from "react";
|
|
9
|
+
import { AtlassianUserWorkspaceService as U } from "../../../../../jira/shared/data-access-workspaces/src/lib/user-workspace-service/index.es.js";
|
|
10
|
+
import "../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
|
|
11
|
+
import "../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
|
|
12
|
+
import { useRequestJira as $ } from "../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
|
|
13
|
+
import { PageLoadingView as J } from "../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js";
|
|
14
|
+
import { JiraWorkspaceProvider as O } from "../jira-workspace-provider/index.es.js";
|
|
15
|
+
const d = j({
|
|
16
|
+
maxWidth: "max-content",
|
|
17
|
+
paddingBlockStart: "space.1000"
|
|
18
|
+
});
|
|
19
|
+
function N({
|
|
20
|
+
appName: s,
|
|
21
|
+
children: u
|
|
22
|
+
}) {
|
|
23
|
+
const [k, h] = c(!1), [l, f] = c(
|
|
24
|
+
null
|
|
25
|
+
), [i, n] = c(""), [w, C] = c(), p = $(), a = H(
|
|
26
|
+
async (t) => {
|
|
27
|
+
try {
|
|
28
|
+
n("");
|
|
29
|
+
const r = t ?? (s && localStorage.getItem(`${s}-user-workspace-id`)) ?? "", o = await new U(
|
|
30
|
+
p
|
|
31
|
+
).checkUserChosenWorkspace(r);
|
|
32
|
+
o.hasChosen ? (s && localStorage.setItem(
|
|
33
|
+
`${s}-user-workspace-id`,
|
|
34
|
+
o.workspace
|
|
35
|
+
), h(!0), C(o.workspace)) : f(o.workspaces);
|
|
36
|
+
} catch (r) {
|
|
37
|
+
r instanceof Error ? n(`Error Occurred: ${r.message}`) : n("Uncaught error occurred!");
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
[s, p]
|
|
41
|
+
);
|
|
42
|
+
R(() => {
|
|
43
|
+
a();
|
|
44
|
+
}, [a]);
|
|
45
|
+
async function W({
|
|
46
|
+
selectedWorkspace: t
|
|
47
|
+
}) {
|
|
48
|
+
return a(t.value);
|
|
49
|
+
}
|
|
50
|
+
if (k)
|
|
51
|
+
return /* @__PURE__ */ e(O, { workspaceId: w, children: u });
|
|
52
|
+
if (l) {
|
|
53
|
+
const t = l.map((r) => ({
|
|
54
|
+
label: r.workspaceId,
|
|
55
|
+
value: r.workspaceId
|
|
56
|
+
}));
|
|
57
|
+
return /* @__PURE__ */ e(m, { justifyContent: "center", children: /* @__PURE__ */ e(E, { xcss: d, children: /* @__PURE__ */ e(b, { onSubmit: W, children: ({ formProps: r, submitting: o }) => /* @__PURE__ */ S("form", { ...r, children: [
|
|
58
|
+
/* @__PURE__ */ e(y, { title: "Choose Workspace", children: i ? /* @__PURE__ */ e(L, { appearance: "error", children: i }) : null }),
|
|
59
|
+
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
60
|
+
I,
|
|
61
|
+
{
|
|
62
|
+
"aria-required": !0,
|
|
63
|
+
name: "selectedWorkspace",
|
|
64
|
+
label: "Workspace",
|
|
65
|
+
isRequired: !0,
|
|
66
|
+
children: ({ fieldProps: g }) => /* @__PURE__ */ e("div", { "data-testid": "workspace-select-component", children: /* @__PURE__ */ e(q, { ...g, options: t }) })
|
|
67
|
+
}
|
|
68
|
+
) }),
|
|
69
|
+
/* @__PURE__ */ e(B, { align: "start", children: /* @__PURE__ */ e(x, { label: "Form submit options", children: /* @__PURE__ */ e(
|
|
70
|
+
F,
|
|
71
|
+
{
|
|
72
|
+
type: "submit",
|
|
73
|
+
appearance: "primary",
|
|
74
|
+
isLoading: o,
|
|
75
|
+
children: "Submit"
|
|
76
|
+
}
|
|
77
|
+
) }) })
|
|
78
|
+
] }) }) }) });
|
|
79
|
+
} else
|
|
80
|
+
return /* @__PURE__ */ e(m, { justifyContent: "center", xcss: d, children: /* @__PURE__ */ e(J, { label: "", loadingError: i }) });
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
N as FeatureChosenWorkspaceCheck
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("react"),r=e.createContext(void 0),c=()=>e.useContext(r);function n({children:t,workspaceId:o}){return s.jsx(r.Provider,{value:o,children:t})}exports.JiraWorkspaceProvider=n;exports.useWorkspaceId=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as n, useContext as s } from "react";
|
|
3
|
+
const r = n(void 0), a = () => s(r);
|
|
4
|
+
function p({
|
|
5
|
+
children: o,
|
|
6
|
+
workspaceId: e
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t(r.Provider, { value: e, children: o });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
p as JiraWorkspaceProvider,
|
|
12
|
+
a as useWorkspaceId
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("@atlaskit/primitives"),a=require("react"),r=require("react-router-dom"),w=require("../ui-oauth-callback/index.cjs.js"),j=require("../ui-oauth-redirect-login/index.cjs.js"),g=require("../util/index.cjs.js"),v=d.xcss({paddingBlockStart:"space.1000"}),h=a.createContext(null),O=()=>{const o=a.useContext(h);return o||(console.warn("No OAuth provider"),{getAuthToken:()=>""})};function x({children:o,...e}){console.log("OAuthProvider");const[u,m]=a.useState(localStorage.getItem(`${e.appName}-auth-token`)),i=localStorage.getItem(`${e.appName}-auth-expires-at`),[n,A]=a.useState(i?Number(i):null),l=window.location.protocol+"//"+window.location.hostname+(window.location.port?`:${window.location.port}`:""),c=l+"/callback";function k(){return n&&u&&!p(n)?u:(g.redirectLogin(e.clientId,c,e.oAuthScopes),"")}function S(s){m(s.token),localStorage.setItem(`${e.appName}-auth-token`,s.token),A(s.expiresAt),localStorage.setItem(`${e.appName}-auth-expires-at`,s.expiresAt.toString()),localStorage.removeItem(`${e.appName}-user-resource-id`),localStorage.removeItem(`${e.appName}-user-workspace-id`),window.location.href=l}return!u||!n||p(n)?t.jsx(d.Flex,{justifyContent:"center",xcss:v,children:t.jsx(r.BrowserRouter,{children:t.jsxs(r.Routes,{children:[t.jsx(r.Route,{path:"/",element:t.jsx(j.OAuthRedirectLogin,{clientId:e.clientId,redirectUri:c,oAuthScopes:e.oAuthScopes})}),t.jsx(r.Route,{path:"/callback",element:t.jsx(w.OAuthCallback,{setAuth:S,redirectUri:c,codeTokenExchangeUrl:e.codeTokenExchangeUrl})}),t.jsx(r.Route,{path:"/*",element:t.jsx(r.Navigate,{to:"/",replace:!0})})]})})}):t.jsx(h.Provider,{value:{getAuthToken:k},children:o})}function p(o){return o<Date.now()}exports.OAuthProvider=x;exports.default=x;exports.useOAuth=O;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { Flex as w, xcss as S } from "@atlaskit/primitives";
|
|
3
|
+
import { useState as p, createContext as g, useContext as I } from "react";
|
|
4
|
+
import { BrowserRouter as N, Routes as v, Route as l, Navigate as f } from "react-router-dom";
|
|
5
|
+
import { OAuthCallback as O } from "../ui-oauth-callback/index.es.js";
|
|
6
|
+
import { OAuthRedirectLogin as $ } from "../ui-oauth-redirect-login/index.es.js";
|
|
7
|
+
import { redirectLogin as T } from "../util/index.es.js";
|
|
8
|
+
const C = S({
|
|
9
|
+
paddingBlockStart: "space.1000"
|
|
10
|
+
}), m = g(null), y = () => {
|
|
11
|
+
const o = I(m);
|
|
12
|
+
return o || (console.warn("No OAuth provider"), { getAuthToken: () => "" });
|
|
13
|
+
};
|
|
14
|
+
function L({
|
|
15
|
+
children: o,
|
|
16
|
+
...e
|
|
17
|
+
}) {
|
|
18
|
+
console.log("OAuthProvider");
|
|
19
|
+
const [a, d] = p(
|
|
20
|
+
localStorage.getItem(`${e.appName}-auth-token`)
|
|
21
|
+
), c = localStorage.getItem(
|
|
22
|
+
`${e.appName}-auth-expires-at`
|
|
23
|
+
), [r, h] = p(
|
|
24
|
+
c ? Number(c) : null
|
|
25
|
+
), i = window.location.protocol + "//" + window.location.hostname + (window.location.port ? `:${window.location.port}` : ""), s = i + "/callback";
|
|
26
|
+
function x() {
|
|
27
|
+
return r && a && !u(r) ? a : (T(e.clientId, s, e.oAuthScopes), "");
|
|
28
|
+
}
|
|
29
|
+
function A(n) {
|
|
30
|
+
d(n.token), localStorage.setItem(`${e.appName}-auth-token`, n.token), h(n.expiresAt), localStorage.setItem(
|
|
31
|
+
`${e.appName}-auth-expires-at`,
|
|
32
|
+
n.expiresAt.toString()
|
|
33
|
+
), localStorage.removeItem(`${e.appName}-user-resource-id`), localStorage.removeItem(`${e.appName}-user-workspace-id`), window.location.href = i;
|
|
34
|
+
}
|
|
35
|
+
return !a || !r || u(r) ? /* @__PURE__ */ t(w, { justifyContent: "center", xcss: C, children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ k(v, { children: [
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
|
+
l,
|
|
38
|
+
{
|
|
39
|
+
path: "/",
|
|
40
|
+
element: /* @__PURE__ */ t(
|
|
41
|
+
$,
|
|
42
|
+
{
|
|
43
|
+
clientId: e.clientId,
|
|
44
|
+
redirectUri: s,
|
|
45
|
+
oAuthScopes: e.oAuthScopes
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
|
+
l,
|
|
52
|
+
{
|
|
53
|
+
path: "/callback",
|
|
54
|
+
element: /* @__PURE__ */ t(
|
|
55
|
+
O,
|
|
56
|
+
{
|
|
57
|
+
setAuth: A,
|
|
58
|
+
redirectUri: s,
|
|
59
|
+
codeTokenExchangeUrl: e.codeTokenExchangeUrl
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ t(l, { path: "/*", element: /* @__PURE__ */ t(f, { to: "/", replace: !0 }) })
|
|
65
|
+
] }) }) }) : /* @__PURE__ */ t(m.Provider, { value: { getAuthToken: x }, children: o });
|
|
66
|
+
}
|
|
67
|
+
function u(o) {
|
|
68
|
+
return o < Date.now();
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
L as OAuthProvider,
|
|
72
|
+
L as default,
|
|
73
|
+
y as useOAuth
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),i=require("react"),r=require("../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js");function s(e){const t=new URLSearchParams(window.location.search).get("code");return i.useEffect(()=>{t&&(async()=>{const n=await fetch(e.codeTokenExchangeUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({code:t,redirect_uri:e.redirectUri})});if(n.ok){const a=await n.json(),o=Date.now()+a.expires_in*1e3;e.setAuth({token:a.access_token,expiresAt:o})}})()}),c.jsx(r.PageLoadingView,{label:"Fetching auth token with provided code"})}exports.OAuthCallback=s;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as c } from "react";
|
|
3
|
+
import { PageLoadingView as r } from "../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js";
|
|
4
|
+
function m(e) {
|
|
5
|
+
const t = new URLSearchParams(window.location.search).get("code");
|
|
6
|
+
return c(() => {
|
|
7
|
+
t && (async () => {
|
|
8
|
+
const o = await fetch(e.codeTokenExchangeUrl, {
|
|
9
|
+
method: "POST",
|
|
10
|
+
headers: {
|
|
11
|
+
Accept: "application/json",
|
|
12
|
+
"Content-Type": "application/json"
|
|
13
|
+
},
|
|
14
|
+
body: JSON.stringify({
|
|
15
|
+
code: t,
|
|
16
|
+
redirect_uri: e.redirectUri
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
if (o.ok) {
|
|
20
|
+
const n = await o.json(), a = Date.now() + n.expires_in * 1e3;
|
|
21
|
+
e.setAuth({ token: n.access_token, expiresAt: a });
|
|
22
|
+
}
|
|
23
|
+
})();
|
|
24
|
+
}), /* @__PURE__ */ i(r, { label: "Fetching auth token with provided code" });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
m as OAuthCallback
|
|
28
|
+
};
|
package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js"),n=require("../util/index.cjs.js");function r(e){return n.redirectLogin(e.clientId,e.redirectUri,e.oAuthScopes),t.jsx(i.PageLoadingView,{label:"Redirecting to Atlassian Authentication System"})}exports.OAuthRedirectLogin=r;
|
package/atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.es.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { PageLoadingView as e } from "../../../../frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js";
|
|
3
|
+
import { redirectLogin as r } from "../util/index.es.js";
|
|
4
|
+
function m(t) {
|
|
5
|
+
return r(t.clientId, t.redirectUri, t.oAuthScopes), /* @__PURE__ */ i(e, { label: "Redirecting to Atlassian Authentication System" });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
m as OAuthRedirectLogin
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,n,e){const o=new URLSearchParams({audience:"api.atlassian.com",client_id:t,scope:e.join(" "),redirect_uri:n,state:a(),response_type:"code",prompt:"consent"}).toString();window.location.href=`https://auth.atlassian.com/authorize?${o}`}function a(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}exports.redirectLogin=r;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function e(t, n, a) {
|
|
2
|
+
const o = new URLSearchParams({
|
|
3
|
+
audience: "api.atlassian.com",
|
|
4
|
+
client_id: t,
|
|
5
|
+
scope: a.join(" "),
|
|
6
|
+
redirect_uri: n,
|
|
7
|
+
state: r(),
|
|
8
|
+
// The backend should potentially generate and validate this piece?
|
|
9
|
+
response_type: "code",
|
|
10
|
+
prompt: "consent"
|
|
11
|
+
}).toString();
|
|
12
|
+
window.location.href = `https://auth.atlassian.com/authorize?${o}`;
|
|
13
|
+
}
|
|
14
|
+
function r() {
|
|
15
|
+
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
e as redirectLogin
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext(void 0);function s(){return t.useContext(e)}exports.AppFlagsDispatchContext=e;exports.useAppFlagsDispatch=s;
|
package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../app-flags-dispatch/index.cjs.js");function p(){const s=d.useAppFlagsDispatch();function i(t){s({type:"add",id:t.id,props:t})}function a(t){s({type:"remove",id:t})}function o(t,c,e,n){i({id:t,isAutoDismiss:!1,type:"error",title:c,description:e instanceof Error?e.message:typeof e=="string"?e:"Uncaught error occurred!",actions:n})}return{addFlag:i,removeFlag:a,addErrorFlag:o}}exports.useAppFlagsDispatchMethods=p;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useAppFlagsDispatch as c } from "../app-flags-dispatch/index.es.js";
|
|
2
|
+
function p() {
|
|
3
|
+
const e = c();
|
|
4
|
+
function s(t) {
|
|
5
|
+
e({
|
|
6
|
+
type: "add",
|
|
7
|
+
id: t.id,
|
|
8
|
+
props: t
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function a(t) {
|
|
12
|
+
e({
|
|
13
|
+
type: "remove",
|
|
14
|
+
id: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function o(t, n, i, d) {
|
|
18
|
+
s({
|
|
19
|
+
id: t,
|
|
20
|
+
isAutoDismiss: !1,
|
|
21
|
+
type: "error",
|
|
22
|
+
title: n,
|
|
23
|
+
description: i instanceof Error ? i.message : typeof i == "string" ? i : "Uncaught error occurred!",
|
|
24
|
+
actions: d
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
addFlag: s,
|
|
29
|
+
removeFlag: a,
|
|
30
|
+
addErrorFlag: o
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
p as useAppFlagsDispatchMethods
|
|
35
|
+
};
|
package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("@atlaskit/flag"),a=require("@atlaskit/icon/glyph/check-circle"),l=require("@atlaskit/icon/glyph/error"),p=require("@atlaskit/icon/glyph/info"),d=require("@atlaskit/icon/glyph/warning"),o=require("@atlaskit/tokens"),m=require("react"),y=require("../app-flags-dispatch/index.cjs.js");function g({children:s}){const[r,n]=m.useReducer(h,[]);function t(e){n({type:"remove",id:e})}function u(e){switch(e){case"info":return i.jsx(p,{label:"Info",primaryColor:o.token("color.icon.information"),size:"large"});case"warning":return i.jsx(d,{label:"Warning",primaryColor:o.token("color.icon.warning"),size:"large"});case"error":return i.jsx(l,{label:"Error",primaryColor:o.token("color.icon.danger"),size:"large"});case"success":return i.jsx(a,{primaryColor:o.token("color.icon.success"),label:"Success",size:"large"})}}return i.jsxs(y.AppFlagsDispatchContext.Provider,{value:n,children:[s,i.jsx(c.FlagGroup,{onDismissed:t,children:r.map(e=>e.isAutoDismiss?i.jsx(c.AutoDismissFlag,{id:e.id,icon:u(e.type||"success"),title:e.title},e.id):i.jsx(c,{appearance:e.appearance||"normal",icon:u(e.type||"success"),id:e.id,title:e.title,description:e.description,actions:x(e.actions)},e.id))})]})}function x(s){return s==null?void 0:s.map(r=>({...r,content:r.text}))}function h(s,r){switch(r.type){case"add":if(r.props){const n=s.filter(t=>t.id!==r.id);return n.push(r.props),n}else return console.error("invalid flag action: ",JSON.stringify(r)),s;case"remove":return s.filter(n=>n.id!==r.id);default:throw Error("Unknown action: "+r.type)}}exports.AppFlagsProviderAtlasKit=g;
|
package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import l, { FlagGroup as m, AutoDismissFlag as a } from "@atlaskit/flag";
|
|
3
|
+
import u from "@atlaskit/icon/glyph/check-circle";
|
|
4
|
+
import d from "@atlaskit/icon/glyph/error";
|
|
5
|
+
import f from "@atlaskit/icon/glyph/info";
|
|
6
|
+
import y from "@atlaskit/icon/glyph/warning";
|
|
7
|
+
import { token as s } from "@atlaskit/tokens";
|
|
8
|
+
import { useReducer as h } from "react";
|
|
9
|
+
import { AppFlagsDispatchContext as g } from "../app-flags-dispatch/index.es.js";
|
|
10
|
+
function E({
|
|
11
|
+
children: o
|
|
12
|
+
}) {
|
|
13
|
+
const [e, i] = h(w, []);
|
|
14
|
+
function t(r) {
|
|
15
|
+
i({
|
|
16
|
+
type: "remove",
|
|
17
|
+
id: r
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function c(r) {
|
|
21
|
+
switch (r) {
|
|
22
|
+
case "info":
|
|
23
|
+
return /* @__PURE__ */ n(
|
|
24
|
+
f,
|
|
25
|
+
{
|
|
26
|
+
label: "Info",
|
|
27
|
+
primaryColor: s("color.icon.information"),
|
|
28
|
+
size: "large"
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
case "warning":
|
|
32
|
+
return /* @__PURE__ */ n(
|
|
33
|
+
y,
|
|
34
|
+
{
|
|
35
|
+
label: "Warning",
|
|
36
|
+
primaryColor: s("color.icon.warning"),
|
|
37
|
+
size: "large"
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
case "error":
|
|
41
|
+
return /* @__PURE__ */ n(
|
|
42
|
+
d,
|
|
43
|
+
{
|
|
44
|
+
label: "Error",
|
|
45
|
+
primaryColor: s("color.icon.danger"),
|
|
46
|
+
size: "large"
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
case "success":
|
|
50
|
+
return /* @__PURE__ */ n(
|
|
51
|
+
u,
|
|
52
|
+
{
|
|
53
|
+
primaryColor: s("color.icon.success"),
|
|
54
|
+
label: "Success",
|
|
55
|
+
size: "large"
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return /* @__PURE__ */ p(g.Provider, { value: i, children: [
|
|
61
|
+
o,
|
|
62
|
+
/* @__PURE__ */ n(m, { onDismissed: t, children: e.map((r) => r.isAutoDismiss ? /* @__PURE__ */ n(
|
|
63
|
+
a,
|
|
64
|
+
{
|
|
65
|
+
id: r.id,
|
|
66
|
+
icon: c(r.type || "success"),
|
|
67
|
+
title: r.title
|
|
68
|
+
},
|
|
69
|
+
r.id
|
|
70
|
+
) : /* @__PURE__ */ n(
|
|
71
|
+
l,
|
|
72
|
+
{
|
|
73
|
+
appearance: r.appearance || "normal",
|
|
74
|
+
icon: c(r.type || "success"),
|
|
75
|
+
id: r.id,
|
|
76
|
+
title: r.title,
|
|
77
|
+
description: r.description,
|
|
78
|
+
actions: v(r.actions)
|
|
79
|
+
},
|
|
80
|
+
r.id
|
|
81
|
+
)) })
|
|
82
|
+
] });
|
|
83
|
+
}
|
|
84
|
+
function v(o) {
|
|
85
|
+
return o == null ? void 0 : o.map((e) => ({
|
|
86
|
+
...e,
|
|
87
|
+
content: e.text
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
function w(o, e) {
|
|
91
|
+
switch (e.type) {
|
|
92
|
+
case "add":
|
|
93
|
+
if (e.props) {
|
|
94
|
+
const i = o.filter((t) => t.id !== e.id);
|
|
95
|
+
return i.push(e.props), i;
|
|
96
|
+
} else
|
|
97
|
+
return console.error("invalid flag action: ", JSON.stringify(e)), o;
|
|
98
|
+
case "remove":
|
|
99
|
+
return o.filter((i) => i.id !== e.id);
|
|
100
|
+
default:
|
|
101
|
+
throw Error("Unknown action: " + e.type);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
E as AppFlagsProviderAtlasKit
|
|
106
|
+
};
|
package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("react"),u=t.createContext(null),i=()=>{const e=t.useContext(u);if(!e)throw new Error("useRequestBitbucket must be used within a RequestBitbucketProvider");return e};function o({children:e,requestBitbucketImplementation:r}){return s.jsx(u.Provider,{value:r,children:e})}exports.RequestBitbucketProvider=o;exports.useRequestBitbucket=i;
|
package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as o, useContext as i } from "react";
|
|
3
|
+
const e = o(null), c = () => {
|
|
4
|
+
const t = i(e);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"useRequestBitbucket must be used within a RequestBitbucketProvider"
|
|
8
|
+
);
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
function b({
|
|
12
|
+
children: t,
|
|
13
|
+
requestBitbucketImplementation: r
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ u(e.Provider, { value: r, children: t });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
b as RequestBitbucketProvider,
|
|
19
|
+
c as useRequestBitbucket
|
|
20
|
+
};
|
package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("react"),n=t.createContext(null),r=()=>{const e=t.useContext(n);if(!e)throw new Error("useRequestConfluence must be used within a RequestConfluenceProvider");return e};function s({children:e,requestConfluenceImplementation:u}){return o.jsx(n.Provider,{value:u,children:e})}exports.RequestConfluenceProvider=s;exports.useRequestConfluence=r;
|