@valiantys/atlassian-app-frontend 2.0.0 → 3.0.0-alpha-2
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 +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 +81 -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 +73 -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/{style.css → atlassian-app-frontend.css} +1 -1
- 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 +1033 -0
- package/data-access-issue/atlassian-app-frontend.api.md +49 -0
- package/data-access-issue/index.cjs.js +1 -0
- package/data-access-issue/index.d.ts +287 -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 +63 -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 +1566 -0
- package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +97 -0
- package/util-atlassian-product-fetch/index.cjs.js +1 -0
- package/util-atlassian-product-fetch/index.d.ts +58 -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 +4557 -0
- package/util-jira-v3-api/atlassian-app-frontend.api.md +499 -0
- package/util-jira-v3-api/index.cjs.js +1 -0
- package/util-jira-v3-api/index.d.ts +328 -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/valiantys-atlassian-app-frontend-2.0.0.tgz +0 -0
package/index.d.ts
DELETED
|
@@ -1,702 +0,0 @@
|
|
|
1
|
-
import { Context } from 'react';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
|
-
import { Dispatch } from 'react';
|
|
4
|
-
import { FlagAction } from '@forge/bridge/out/flag/flag';
|
|
5
|
-
import { FlagAppearance } from '@forge/bridge/out/flag/flag';
|
|
6
|
-
import { FlagOptions } from '@forge/bridge/out/flag/flag';
|
|
7
|
-
import { FullContext } from '@forge/bridge/out/types';
|
|
8
|
-
import { HeadingSize } from '@atlaskit/heading/dist/types/heading.partial';
|
|
9
|
-
import { History as History_2 } from 'history';
|
|
10
|
-
import { IconButtonAppearance } from '@atlaskit/button/new';
|
|
11
|
-
import { IconProp } from '@atlaskit/button/new';
|
|
12
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
13
|
-
import { PropsWithChildren } from 'react';
|
|
14
|
-
import { ReactElement } from 'react';
|
|
15
|
-
import { ReactNode } from 'react';
|
|
16
|
-
import { SetStateAction } from 'react';
|
|
17
|
-
|
|
18
|
-
export declare interface AccountContext {
|
|
19
|
-
accountId: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare type ActionsType = FlagAction[];
|
|
23
|
-
|
|
24
|
-
export declare function addAuthHeader(authToken: string, headers: HeadersInit): {
|
|
25
|
-
Authorization: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'ok' | 'status' | 'statusText' | 'headers'>;
|
|
29
|
-
|
|
30
|
-
export declare type AppearanceTypes = FlagAppearance;
|
|
31
|
-
|
|
32
|
-
export declare interface AppFlagAction {
|
|
33
|
-
type: AppFlagActions;
|
|
34
|
-
id: string | number;
|
|
35
|
-
props?: AppFlagTypes;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export declare type AppFlagActions = 'add' | 'remove';
|
|
39
|
-
|
|
40
|
-
export declare const AppFlagsDispatchContext: Context<Dispatch<AppFlagAction> | undefined>;
|
|
41
|
-
|
|
42
|
-
export declare function AppFlagsProviderAtlasKit({ children, }: {
|
|
43
|
-
children: ReactNode;
|
|
44
|
-
}): JSX_2.Element;
|
|
45
|
-
|
|
46
|
-
export declare type AppFlagTypes = FlagOptions;
|
|
47
|
-
|
|
48
|
-
declare interface AssetsWorkspace {
|
|
49
|
-
workspaceId: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export declare function AtlassianApp({ children, appName, doCheckWorkspace, embeddedConfig, standaloneConfig, }: PropsWithChildren<AtlassianAppConfig>): JSX_2.Element;
|
|
53
|
-
|
|
54
|
-
export declare interface AtlassianAppConfig {
|
|
55
|
-
/**
|
|
56
|
-
* Name used to prefix any local storage settings.
|
|
57
|
-
*/
|
|
58
|
-
appName: string;
|
|
59
|
-
/**
|
|
60
|
-
* Workspace is required for any API calls involving Assets
|
|
61
|
-
*/
|
|
62
|
-
doCheckWorkspace?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Configuration needed when app is deployed and running inside an Atlassian context (embedded in Jira).
|
|
65
|
-
*/
|
|
66
|
-
embeddedConfig?: {
|
|
67
|
-
/**
|
|
68
|
-
* A custom implementation for making requests directly to remote APIs (fetch).
|
|
69
|
-
* If left undefined, the @forge/bridge invokeRemote method will be used.
|
|
70
|
-
*/
|
|
71
|
-
invokeRemoteImpl?: InvokeRemoteSignature;
|
|
72
|
-
/**
|
|
73
|
-
* If true, the app will always use it's own AtlasKit FlagGroup to display flags.
|
|
74
|
-
* These flags will be contained within the borders of the App's iframe.
|
|
75
|
-
* Otherwise, the app will use the @forge/bridge showFlag API to add any flags to
|
|
76
|
-
* the host products flag group.
|
|
77
|
-
*
|
|
78
|
-
* @default is false
|
|
79
|
-
*/
|
|
80
|
-
useAtlasKitFlags?: boolean;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Configuration needed when app is running in standalone mode, outside of jira.
|
|
84
|
-
*/
|
|
85
|
-
standaloneConfig?: AtlassianAppStandaloneConfig;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export declare function AtlassianAppStandalone({ initialMockViewContext, backendUrl, remoteUrl, doCheckWorkspace, appName, doCheckResource, modalOpenerConfig, modalContextConfig, children, }: PropsWithChildren<JiraStandaloneAppWrapperProps>): JSX_2.Element;
|
|
89
|
-
|
|
90
|
-
export declare interface AtlassianAppStandaloneConfig {
|
|
91
|
-
/**
|
|
92
|
-
* OAuth configuration for authenticating users against Jira.
|
|
93
|
-
*/
|
|
94
|
-
oauthConfig?: AtlassianAppStandaloneOauthConfig;
|
|
95
|
-
/**
|
|
96
|
-
* Mock data for the context normally returned by @forge/bridge View.getContext()
|
|
97
|
-
*/
|
|
98
|
-
initialMockViewContext?: Partial<FullContext>;
|
|
99
|
-
/**
|
|
100
|
-
* Url for invoking backend functions
|
|
101
|
-
*/
|
|
102
|
-
backendUrl?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Url for invoking remote APIs
|
|
105
|
-
*/
|
|
106
|
-
remoteUrl?: string;
|
|
107
|
-
/**
|
|
108
|
-
* config for an app that opens @forge/bridge Modals
|
|
109
|
-
*/
|
|
110
|
-
modalOpenerConfig?: {
|
|
111
|
-
/**
|
|
112
|
-
* If the app opens multiple Forge resources in Jira Modals,
|
|
113
|
-
* then supply a map of resource names to local URLs.
|
|
114
|
-
*/
|
|
115
|
-
resourceMap?: Record<string, string>;
|
|
116
|
-
/**
|
|
117
|
-
* default URL to open in the modal (ex. http://localhost:4201)
|
|
118
|
-
*/
|
|
119
|
-
defaultUrl: string;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* config for an app that is opened in a @forge/bridge Modal
|
|
123
|
-
*/
|
|
124
|
-
modalContextConfig?: {
|
|
125
|
-
/**
|
|
126
|
-
* Standalone URL of the app that opened the modal. (ex. http://localhost:4200)
|
|
127
|
-
*/
|
|
128
|
-
openerOrigin: string;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export declare type AtlassianAppStandaloneOauthConfig = OAuthProviderProps & {
|
|
133
|
-
doCheckResource?: boolean;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export declare function AtlassianAppTest({ mockContext, invoke, invokeRemote, jiraFetchService, confluenceFetchService, bitbucketFetchService, hostRouter, children, }: PropsWithChildren<AtlassianAppTestProps>): JSX_2.Element;
|
|
137
|
-
|
|
138
|
-
export declare interface AtlassianAppTestProps {
|
|
139
|
-
mockContext: FullContext;
|
|
140
|
-
invoke: InvokeSignature;
|
|
141
|
-
jiraFetchService?: AtlassianProductFetchService<'jira'>;
|
|
142
|
-
confluenceFetchService?: AtlassianProductFetchService<'confluence'>;
|
|
143
|
-
bitbucketFetchService?: AtlassianProductFetchService<'bitbucket'>;
|
|
144
|
-
hostRouter: HostRouter;
|
|
145
|
-
invokeRemote: InvokeRemoteSignature;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export declare function atlassianOAuthBitbucketFetch(authToken: string): AtlassianProductFetchService<'bitbucket'>;
|
|
149
|
-
|
|
150
|
-
export declare function atlassianOAuthConfluenceFetch(authToken: string, cloudId: string): AtlassianProductFetchService<'confluence'>;
|
|
151
|
-
|
|
152
|
-
export declare function atlassianOAuthJiraFetch(authToken: string, cloudId: string): AtlassianProductFetchService<'jira'>;
|
|
153
|
-
|
|
154
|
-
export declare function atlassianOAuthRawFetch<P extends Product>(authToken: string, domain: string, productType: P): AtlassianProductFetchService<P>;
|
|
155
|
-
|
|
156
|
-
export declare type AtlassianOAuthScopes = 'read:me' | 'read:jira-user' | 'read:jira-work' | 'write:jira-work' | 'read:servicedesk-request' | 'write:servicedesk-request' | 'read:cmdb-schema:jira' | 'write:cmdb-schema:jira' | 'read:cmdb-type:jira' | 'write:cmdb-type:jira' | 'read:cmdb-object:jira' | 'write:cmdb-object:jira' | 'delete:cmdb-object:jira' | 'read:cmdb-attribute:jira' | 'write:cmdb-attribute:jira' | 'read:cmdb-icon:jira';
|
|
157
|
-
|
|
158
|
-
export declare interface AtlassianProductFetchService<P extends Product> {
|
|
159
|
-
productType: P;
|
|
160
|
-
fetch: FetchSignature;
|
|
161
|
-
route: (template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]) => FetchRoute;
|
|
162
|
-
rawFetch: RequestProductMethod;
|
|
163
|
-
fullUrl: (path: string) => string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export declare interface AtlassianUserResource {
|
|
167
|
-
id: string;
|
|
168
|
-
url: string;
|
|
169
|
-
name: string;
|
|
170
|
-
scopes: string[];
|
|
171
|
-
avatarUrl: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export declare class AtlassianUserResourceService {
|
|
175
|
-
readonly userResourcesUrl = "https://api.atlassian.com/oauth/token/accessible-resources";
|
|
176
|
-
getAtlassianUserResources(authToken: string): Promise<AtlassianUserResource[]>;
|
|
177
|
-
checkUserChosenResource(authToken: string, resourceId?: string): Promise<{
|
|
178
|
-
hasChosen: true;
|
|
179
|
-
resource: {
|
|
180
|
-
name: string;
|
|
181
|
-
id: string;
|
|
182
|
-
};
|
|
183
|
-
} | {
|
|
184
|
-
hasChosen: false;
|
|
185
|
-
resources: {
|
|
186
|
-
name: string;
|
|
187
|
-
id: string;
|
|
188
|
-
}[];
|
|
189
|
-
}>;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export declare class AtlassianUserWorkspaceService {
|
|
193
|
-
private fetchSvc;
|
|
194
|
-
readonly workspaceApiUrl: string;
|
|
195
|
-
constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
|
|
196
|
-
getAllUserWorkspaces(): Promise<AssetsWorkspace[]>;
|
|
197
|
-
checkUserChosenWorkspace(workspaceId?: string): Promise<WorkspaceChoices>;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export declare function BackendAdapterProvider({ children, invokeImplementation, }: BackendAdapterProviderProps): JSX_2.Element;
|
|
201
|
-
|
|
202
|
-
declare interface BackendAdapterProviderProps {
|
|
203
|
-
children: ReactNode;
|
|
204
|
-
invokeImplementation: InvokeSignature;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
declare interface BackendAdapterService {
|
|
208
|
-
invoke: InvokeSignature;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export declare function bearerAuthFetch<T>(authToken: string, url: string, method: FetchMethod, body?: Record<string, unknown>, responseType?: 'json' | 'text', headers?: Record<string, string>): Promise<T>;
|
|
212
|
-
|
|
213
|
-
export declare function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
|
|
214
|
-
|
|
215
|
-
export declare class CommonResolverPaths {
|
|
216
|
-
static getOauthToken: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Logs the error and returns `Error Occurred: ${e.message || e}`
|
|
221
|
-
*/
|
|
222
|
-
declare function defaultErrorHandler(e: {
|
|
223
|
-
message?: string;
|
|
224
|
-
}): string;
|
|
225
|
-
|
|
226
|
-
export declare function defaultProps(makeMockFunction: () => any): AtlassianAppTestProps;
|
|
227
|
-
|
|
228
|
-
export declare function FeatureChosenResourceCheck({ checkResource, children, }: FeatureChosenResourceCheckProps): ReactElement;
|
|
229
|
-
|
|
230
|
-
export declare interface FeatureChosenResourceCheckProps {
|
|
231
|
-
checkResource: (resourceId?: string) => Promise<{
|
|
232
|
-
hasChosen: true;
|
|
233
|
-
} | {
|
|
234
|
-
hasChosen: false;
|
|
235
|
-
resources: Resource[];
|
|
236
|
-
}>;
|
|
237
|
-
children: ReactElement;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export declare function FeatureChosenWorkspaceCheck({ appName, children, }: PropsWithChildren<FeatureChosenWorkspaceCheckProps>): ReactElement;
|
|
241
|
-
|
|
242
|
-
export declare interface FeatureChosenWorkspaceCheckProps {
|
|
243
|
-
appName?: string;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export declare class FetchError {
|
|
247
|
-
message: string;
|
|
248
|
-
constructor(message: string);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export declare type FetchMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH';
|
|
252
|
-
|
|
253
|
-
export declare interface FetchRequest {
|
|
254
|
-
method: FetchMethod;
|
|
255
|
-
url: FetchRoute;
|
|
256
|
-
responseType?: 'json' | 'text';
|
|
257
|
-
allowExperimental?: boolean;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export declare type FetchRoute = {
|
|
261
|
-
readonly value: string;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
export declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
|
|
265
|
-
|
|
266
|
-
export declare interface ForgeRequest<T, U extends AccountContext = AccountContext> {
|
|
267
|
-
payload: T;
|
|
268
|
-
context: U;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export declare type ForgeResolverFunction<P, R, C extends AccountContext = AccountContext> = (request: ForgeRequest<P, C>) => Promise<R> | R;
|
|
272
|
-
|
|
273
|
-
export declare function getAtlassianOAuthToken(grant_type: string, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<unknown>;
|
|
274
|
-
|
|
275
|
-
export declare function getAtlassianUserDetails(authToken: string): Promise<OAuthUser>;
|
|
276
|
-
|
|
277
|
-
export declare function getOauthFetchInvokeImpl(urlBase: string, // serverUrl + ':' + serverPort + '/api/'
|
|
278
|
-
authToken: string, resourceId: string): InvokeSignature;
|
|
279
|
-
|
|
280
|
-
export declare interface GlobalPageContext extends AccountContext {
|
|
281
|
-
localId: string;
|
|
282
|
-
cloudId: string;
|
|
283
|
-
environmentId: string;
|
|
284
|
-
environmentType: string;
|
|
285
|
-
moduleKey: string;
|
|
286
|
-
siteUrl: string;
|
|
287
|
-
extension: {
|
|
288
|
-
type: string;
|
|
289
|
-
};
|
|
290
|
-
installContext: string;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export declare interface HostRouter {
|
|
294
|
-
navigate(url: string): Promise<void>;
|
|
295
|
-
open(url: string): Promise<void>;
|
|
296
|
-
reload(): Promise<void>;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export declare function HostRouterLink({ url, action, label, linkStyle, buttonIcon, buttonAppearance, }: HostRouterLinkProps): JSX_2.Element;
|
|
300
|
-
|
|
301
|
-
export declare interface HostRouterLinkProps {
|
|
302
|
-
url: string;
|
|
303
|
-
action: 'navigate' | 'open';
|
|
304
|
-
/** anchor text or button label **/
|
|
305
|
-
label: string;
|
|
306
|
-
linkStyle: 'link' | 'button';
|
|
307
|
-
buttonIcon?: IconProp;
|
|
308
|
-
buttonAppearance?: IconButtonAppearance;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export declare function HostRouterProvider({ children, hostRouter, }: HostRouterProviderProps): JSX_2.Element;
|
|
312
|
-
|
|
313
|
-
declare interface HostRouterProviderProps {
|
|
314
|
-
children: ReactNode;
|
|
315
|
-
hostRouter: HostRouter;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export declare interface IframeModalContextData {
|
|
319
|
-
iframeProps: IframeProps;
|
|
320
|
-
modalHeader?: string;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
declare interface IframeProps {
|
|
324
|
-
link: string;
|
|
325
|
-
title?: string;
|
|
326
|
-
width?: string;
|
|
327
|
-
height?: string;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export declare type InvokePayload = {
|
|
331
|
-
[key in number | string]: unknown;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
declare interface InvokePayload_2 {
|
|
335
|
-
call: {
|
|
336
|
-
functionKey: string;
|
|
337
|
-
payload?: {
|
|
338
|
-
[key in number | string]: unknown;
|
|
339
|
-
};
|
|
340
|
-
jobId?: string;
|
|
341
|
-
};
|
|
342
|
-
context: {
|
|
343
|
-
[key: string]: unknown;
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export declare interface InvokeRemoteResponse<T> {
|
|
348
|
-
body?: T;
|
|
349
|
-
headers?: Record<string, string>;
|
|
350
|
-
status: number;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export declare type InvokeRemoteSignature = <T, U>(input: {
|
|
354
|
-
path: string;
|
|
355
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
356
|
-
headers?: Record<string, string>;
|
|
357
|
-
body?: U;
|
|
358
|
-
}) => Promise<InvokeRemoteResponse<T>>;
|
|
359
|
-
|
|
360
|
-
export declare type InvokeSignature = <T = unknown, U = InvokePayload, A extends string = string>(action: A, data?: U) => Promise<T>;
|
|
361
|
-
|
|
362
|
-
export declare const IS_STANDALONE: boolean;
|
|
363
|
-
|
|
364
|
-
export declare interface IssueContext extends AccountContext {
|
|
365
|
-
extension: {
|
|
366
|
-
issue: {
|
|
367
|
-
key: string;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export declare interface JiraIssueExtensionData {
|
|
373
|
-
issue: {
|
|
374
|
-
key: string;
|
|
375
|
-
id: string;
|
|
376
|
-
type: string;
|
|
377
|
-
typeId: string;
|
|
378
|
-
};
|
|
379
|
-
project: {
|
|
380
|
-
id: string;
|
|
381
|
-
key: string;
|
|
382
|
-
type: string;
|
|
383
|
-
};
|
|
384
|
-
type: string;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export declare interface JiraStandaloneAppWrapperProps {
|
|
388
|
-
initialMockViewContext?: Partial<FullContext>;
|
|
389
|
-
backendUrl?: string;
|
|
390
|
-
remoteUrl?: string;
|
|
391
|
-
doCheckResource?: boolean;
|
|
392
|
-
/**
|
|
393
|
-
* Select workspace when calling JSM Assets APIs
|
|
394
|
-
*/
|
|
395
|
-
doCheckWorkspace?: boolean;
|
|
396
|
-
modalOpenerConfig?: {
|
|
397
|
-
resourceMap?: Record<string, string>;
|
|
398
|
-
defaultUrl: string;
|
|
399
|
-
};
|
|
400
|
-
modalContextConfig?: {
|
|
401
|
-
openerOrigin: string;
|
|
402
|
-
};
|
|
403
|
-
appName: string;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export declare function JiraWorkspaceProvider({ children, workspaceId, }: PropsWithChildren<{
|
|
407
|
-
workspaceId?: string;
|
|
408
|
-
}>): JSX_2.Element;
|
|
409
|
-
|
|
410
|
-
export declare function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text'): Promise<T>;
|
|
411
|
-
|
|
412
|
-
export declare class MockViewContext implements ViewContext {
|
|
413
|
-
context: FullContext;
|
|
414
|
-
theme: {
|
|
415
|
-
enable(): Promise<void>;
|
|
416
|
-
};
|
|
417
|
-
constructor(context: FullContext);
|
|
418
|
-
close(_payload?: unknown): Promise<void>;
|
|
419
|
-
submit(_payload: unknown): Promise<void>;
|
|
420
|
-
getContext(): Promise<FullContext>;
|
|
421
|
-
createHistory(): Promise<History_2>;
|
|
422
|
-
refresh(): Promise<void>;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export declare function ModalContent({ children }: PropsWithChildren): JSX_2.Element;
|
|
426
|
-
|
|
427
|
-
export declare function ModalContentIframe<T>({ messageCallback, closeOnMouseOut, }: {
|
|
428
|
-
messageCallback?: (eventData: T, iframeProps?: IframeProps) => {
|
|
429
|
-
newHeight?: string;
|
|
430
|
-
};
|
|
431
|
-
closeOnMouseOut?: boolean;
|
|
432
|
-
}): JSX_2.Element;
|
|
433
|
-
|
|
434
|
-
export declare interface ModalContentService<C, P> {
|
|
435
|
-
modalContextData?: C;
|
|
436
|
-
close: (payload?: P) => void;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Make sure you have #root{width:100%;} in your app's global styles
|
|
441
|
-
* @param title
|
|
442
|
-
* @param buttonGroup
|
|
443
|
-
* @param children
|
|
444
|
-
* @constructor
|
|
445
|
-
*/
|
|
446
|
-
export declare function ModalDialogLayout({ title, buttonGroup, children, }: PropsWithChildren<ModalDialogLayoutProps>): JSX_2.Element;
|
|
447
|
-
|
|
448
|
-
export declare interface ModalDialogLayoutProps {
|
|
449
|
-
title?: string;
|
|
450
|
-
buttonGroup?: default_2.ReactNode;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export declare interface ModalOptions<C, P> {
|
|
454
|
-
resource?: string | null;
|
|
455
|
-
onClose?: (payload?: P) => any;
|
|
456
|
-
size?: ModalSize;
|
|
457
|
-
context?: C;
|
|
458
|
-
closeOnEscape?: boolean;
|
|
459
|
-
closeOnOverlayClick?: boolean;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
export declare interface ModalService {
|
|
463
|
-
open<C, P>(options: ModalOptions<C, P>): Promise<void>;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
export declare function ModalServiceProvider({ children, modalService, }: ModalServiceProviderProps): JSX_2.Element;
|
|
467
|
-
|
|
468
|
-
declare interface ModalServiceProviderProps {
|
|
469
|
-
children: ReactNode;
|
|
470
|
-
modalService: ModalService;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
declare type ModalSize = 'small' | 'medium' | 'large' | 'xlarge' | 'max';
|
|
474
|
-
|
|
475
|
-
export declare class ModalViewContext extends MockViewContext {
|
|
476
|
-
context: FullContext;
|
|
477
|
-
private openerOrigin;
|
|
478
|
-
constructor(context: FullContext, openerOrigin?: string);
|
|
479
|
-
close: (payload?: unknown) => Promise<void>;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
export declare interface OAuth {
|
|
483
|
-
getAuthToken: () => string;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
export declare function oauthFetchInvokeRemote(baseUrl: string, authToken?: string): InvokeRemoteSignature;
|
|
487
|
-
|
|
488
|
-
export declare function OAuthProvider({ children, ...config }: PropsWithChildren<OAuthProviderProps>): JSX_2.Element;
|
|
489
|
-
|
|
490
|
-
export declare interface OAuthProviderProps {
|
|
491
|
-
clientId: string;
|
|
492
|
-
codeTokenExchangeUrl: string;
|
|
493
|
-
/**
|
|
494
|
-
* OAuth App Name
|
|
495
|
-
*/
|
|
496
|
-
appName: string;
|
|
497
|
-
oAuthScopes: AtlassianOAuthScopes[];
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export declare interface OAuthUser {
|
|
501
|
-
account_id: string;
|
|
502
|
-
account_status: string;
|
|
503
|
-
account_type: string;
|
|
504
|
-
characteristics: {
|
|
505
|
-
not_mentionable: boolean;
|
|
506
|
-
};
|
|
507
|
-
email: string;
|
|
508
|
-
email_verified: boolean;
|
|
509
|
-
extended_profile: {
|
|
510
|
-
job_title: string;
|
|
511
|
-
organization: string;
|
|
512
|
-
location: string;
|
|
513
|
-
phone_numbers: number[];
|
|
514
|
-
};
|
|
515
|
-
last_updated: string;
|
|
516
|
-
locale: string;
|
|
517
|
-
name: string;
|
|
518
|
-
nickname: string;
|
|
519
|
-
picture: string;
|
|
520
|
-
zoneinfo: string;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export declare interface PagedResponseValues<T> {
|
|
524
|
-
startAt: number;
|
|
525
|
-
maxResults: number;
|
|
526
|
-
total: number;
|
|
527
|
-
isLast: boolean;
|
|
528
|
-
values: T[];
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
export declare function PageLoadingView({ label, loadingError, labelSize, }: {
|
|
532
|
-
label: string;
|
|
533
|
-
loadingError?: string;
|
|
534
|
-
labelSize?: HeadingSize;
|
|
535
|
-
}): JSX_2.Element;
|
|
536
|
-
|
|
537
|
-
export declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
|
|
538
|
-
|
|
539
|
-
export declare function RemoteAdapterProvider({ children, invokeRemoteImplementation, }: RemoteAdapterProviderProps): JSX_2.Element;
|
|
540
|
-
|
|
541
|
-
declare interface RemoteAdapterProviderProps {
|
|
542
|
-
children: ReactNode;
|
|
543
|
-
invokeRemoteImplementation: InvokeRemoteSignature;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
declare interface RemoteAdapterService {
|
|
547
|
-
invokeRemote: InvokeRemoteSignature;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
export declare function RequestBitbucketProvider({ children, requestBitbucketImplementation, }: RequestBitbucketProviderProps): JSX_2.Element;
|
|
551
|
-
|
|
552
|
-
declare interface RequestBitbucketProviderProps {
|
|
553
|
-
children: ReactNode;
|
|
554
|
-
requestBitbucketImplementation: AtlassianProductFetchService<'bitbucket'>;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
export declare function RequestConfluenceProvider({ children, requestConfluenceImplementation, }: RequestConfluenceProviderProps): JSX_2.Element;
|
|
558
|
-
|
|
559
|
-
declare interface RequestConfluenceProviderProps {
|
|
560
|
-
children: ReactNode;
|
|
561
|
-
requestConfluenceImplementation: AtlassianProductFetchService<'confluence'>;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
export declare function RequestJiraProvider({ children, requestJiraImplementation, }: RequestJiraProviderProps): JSX_2.Element;
|
|
565
|
-
|
|
566
|
-
declare interface RequestJiraProviderProps {
|
|
567
|
-
children: ReactNode;
|
|
568
|
-
requestJiraImplementation: AtlassianProductFetchService<'jira'>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export declare interface RequestObject {
|
|
572
|
-
payload: RequestPayload;
|
|
573
|
-
context: InvokePayload_2['context'];
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
export declare type RequestPayload = {
|
|
577
|
-
[key in number | string]: unknown;
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
export declare type RequestProductMethod = (url: FetchRoute, init: RequestInit) => Promise<APIResponse>;
|
|
581
|
-
|
|
582
|
-
export declare type ResolverFunction = (request: RequestObject) => Promise<Response_2> | Response_2;
|
|
583
|
-
|
|
584
|
-
export declare interface Resource {
|
|
585
|
-
name: string;
|
|
586
|
-
id: string;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
declare type Response_2 = ResponseObject | string | void;
|
|
590
|
-
|
|
591
|
-
export declare interface ResponseObject {
|
|
592
|
-
[key: string]: unknown;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export declare function route(template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]): FetchRoute;
|
|
596
|
-
|
|
597
|
-
export declare function useAppFlagsDispatch(): Dispatch<AppFlagAction>;
|
|
598
|
-
|
|
599
|
-
export declare function useAppFlagsDispatchMethods(): {
|
|
600
|
-
addFlag: (props: AppFlagTypes) => void;
|
|
601
|
-
removeFlag: (flagId: string) => void;
|
|
602
|
-
addErrorFlag: (flagId: string, title: string, error?: unknown, actions?: ActionsType) => void;
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
export declare const useBackendAdapter: () => BackendAdapterService;
|
|
606
|
-
|
|
607
|
-
export declare const useHostRouter: () => HostRouter;
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Example usage:
|
|
611
|
-
* export function MyComponent({ id }) {
|
|
612
|
-
*
|
|
613
|
-
* const requestFunction = useCallback(
|
|
614
|
-
* () => fetch(`/data/${id}`),
|
|
615
|
-
* [id]
|
|
616
|
-
* )
|
|
617
|
-
*
|
|
618
|
-
* const { data, loading, error } = useLoadDataEffect<MyDataType>(requestFunction)
|
|
619
|
-
*
|
|
620
|
-
* if (error) return <ErrorScreen />
|
|
621
|
-
* if (loading) return <Spinner />
|
|
622
|
-
* return <div>{data.property}</div>
|
|
623
|
-
* }
|
|
624
|
-
*
|
|
625
|
-
*/
|
|
626
|
-
export declare function useLoadDataEffect<T>(requestFunc: () => Promise<T>, errorHandler?: typeof defaultErrorHandler): {
|
|
627
|
-
data: T | undefined;
|
|
628
|
-
loading: boolean;
|
|
629
|
-
error: string | undefined;
|
|
630
|
-
setData: Dispatch<SetStateAction<T | undefined>>;
|
|
631
|
-
setLoading: Dispatch<SetStateAction<boolean>>;
|
|
632
|
-
setError: Dispatch<SetStateAction<string | undefined>>;
|
|
633
|
-
manualTrigger: () => Promise<T | undefined>;
|
|
634
|
-
};
|
|
635
|
-
|
|
636
|
-
export declare function useModalContentService<C = unknown, P = unknown>(): ModalContentService<C, P>;
|
|
637
|
-
|
|
638
|
-
export declare const useModalService: () => ModalService;
|
|
639
|
-
|
|
640
|
-
export declare const useOAuth: () => OAuth;
|
|
641
|
-
|
|
642
|
-
export declare const useRemoteAdapter: () => RemoteAdapterService;
|
|
643
|
-
|
|
644
|
-
export declare const useRequestBitbucket: () => AtlassianProductFetchService<"bitbucket">;
|
|
645
|
-
|
|
646
|
-
export declare const useRequestConfluence: () => AtlassianProductFetchService<"confluence">;
|
|
647
|
-
|
|
648
|
-
export declare const useRequestJira: () => AtlassianProductFetchService<"jira">;
|
|
649
|
-
|
|
650
|
-
export declare const useViewContext: () => ViewContext;
|
|
651
|
-
|
|
652
|
-
export declare const useWorkspaceId: () => string | undefined;
|
|
653
|
-
|
|
654
|
-
export declare interface ViewContext {
|
|
655
|
-
/**
|
|
656
|
-
* The close method enables you to request the closure of the current view. For example, close a modal.
|
|
657
|
-
* @param payload
|
|
658
|
-
*/
|
|
659
|
-
close(payload?: unknown): Promise<void>;
|
|
660
|
-
/**
|
|
661
|
-
* The submit method enables you to request form submission on the Jira custom field edit, Jira custom field type edit, and Jira context configuration views.
|
|
662
|
-
* @param payload
|
|
663
|
-
*/
|
|
664
|
-
submit(payload: unknown): Promise<void>;
|
|
665
|
-
getContext(): Promise<FullContext>;
|
|
666
|
-
createHistory(): Promise<History_2>;
|
|
667
|
-
refresh(): Promise<void>;
|
|
668
|
-
theme: {
|
|
669
|
-
enable(): Promise<void>;
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
export declare function ViewContextProvider({ children, viewContext, }: ViewContextProviderProps): JSX_2.Element;
|
|
674
|
-
|
|
675
|
-
declare interface ViewContextProviderProps {
|
|
676
|
-
children: ReactNode;
|
|
677
|
-
viewContext: ViewContext;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
export declare class WindowHostRouter implements HostRouter {
|
|
681
|
-
navigate(url: string): Promise<void>;
|
|
682
|
-
open(url: string): Promise<void>;
|
|
683
|
-
reload(): Promise<void>;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export declare class WindowModalService implements ModalService {
|
|
687
|
-
private readonly defaultUrl;
|
|
688
|
-
private readonly resourceMap;
|
|
689
|
-
constructor(defaultUrl: string, resourceMap?: Record<string, string>);
|
|
690
|
-
open<C, P>(options: ModalOptions<C, P>): Promise<void>;
|
|
691
|
-
private features;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
export declare type WorkspaceChoices = {
|
|
695
|
-
hasChosen: true;
|
|
696
|
-
workspace: string;
|
|
697
|
-
} | {
|
|
698
|
-
hasChosen: false;
|
|
699
|
-
workspaces: AssetsWorkspace[];
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
export { }
|