@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/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as r, useContext as u } from "react";
|
|
3
|
+
const t = r(null), f = () => {
|
|
4
|
+
const e = u(t);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"useRequestConfluence must be used within a RequestConfluenceProvider"
|
|
8
|
+
);
|
|
9
|
+
return e;
|
|
10
|
+
};
|
|
11
|
+
function i({
|
|
12
|
+
children: e,
|
|
13
|
+
requestConfluenceImplementation: n
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ o(t.Provider, { value: n, children: e });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
i as RequestConfluenceProvider,
|
|
19
|
+
f as useRequestConfluence
|
|
20
|
+
};
|
package/atlassian/shared/frontend-ui-atlassian-product-fetch/src/lib/request-jira/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"),r=t.createContext(null),i=()=>{const e=t.useContext(r);if(!e)throw new Error("useRequestJira must be used within a RequestJiraProvider");return e};function o({children:e,requestJiraImplementation:u}){return s.jsx(r.Provider,{value:u,children:e})}exports.RequestJiraProvider=o;exports.useRequestJira=i;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as u, useContext as i } from "react";
|
|
3
|
+
const t = u(null), a = () => {
|
|
4
|
+
const e = i(t);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error("useRequestJira must be used within a RequestJiraProvider");
|
|
7
|
+
return e;
|
|
8
|
+
};
|
|
9
|
+
function c({
|
|
10
|
+
children: e,
|
|
11
|
+
requestJiraImplementation: r
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ o(t.Provider, { value: r, children: e });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
c as RequestJiraProvider,
|
|
17
|
+
a as useRequestJira
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),t=require("react"),r=t.createContext(null),o=()=>{const e=t.useContext(r);if(!e)throw new Error("useBackendAdapter must be used within a BackendAdapterProvider");return e};function a({children:e,invokeImplementation:n}){return d.jsx(r.Provider,{value:{invoke:n},children:e})}exports.BackendAdapterProvider=a;exports.useBackendAdapter=o;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as o, useContext as d } from "react";
|
|
3
|
+
const t = o(null), i = () => {
|
|
4
|
+
const e = d(t);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"useBackendAdapter must be used within a BackendAdapterProvider"
|
|
8
|
+
);
|
|
9
|
+
return e;
|
|
10
|
+
};
|
|
11
|
+
function u({
|
|
12
|
+
children: e,
|
|
13
|
+
invokeImplementation: r
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ n(
|
|
16
|
+
t.Provider,
|
|
17
|
+
{
|
|
18
|
+
value: {
|
|
19
|
+
invoke: r
|
|
20
|
+
},
|
|
21
|
+
children: e
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
u as BackendAdapterProvider,
|
|
27
|
+
i as useBackendAdapter
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js");function o(e,t,r){return async(n,u)=>c.bearerAuthFetch(t,e+n,"POST",{...u},"json",{"resource-id":r})}exports.getOauthFetchInvokeImpl=o;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { bearerAuthFetch as u } from "../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
|
|
2
|
+
function h(e, r, t) {
|
|
3
|
+
return async (n, o) => u(
|
|
4
|
+
r,
|
|
5
|
+
e + n,
|
|
6
|
+
"POST",
|
|
7
|
+
{ ...o },
|
|
8
|
+
"json",
|
|
9
|
+
{
|
|
10
|
+
"resource-id": t
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
h as getOauthFetchInvokeImpl
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),i=require("react"),u=require("../panel-stateless/index.cjs.js"),d=({isDefaultExpanded:t=!1,children:s,header:n,headingSize:a})=>{const[e,r]=i.useState(t),c=()=>{r(!e)};return o.jsx(u,{header:n,isExpanded:e,headingSize:a,onChange:c,children:s})};module.exports=d;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d } from "react";
|
|
3
|
+
import l from "../panel-stateless/index.es.js";
|
|
4
|
+
const i = ({
|
|
5
|
+
isDefaultExpanded: t = !1,
|
|
6
|
+
children: a,
|
|
7
|
+
header: n,
|
|
8
|
+
headingSize: s
|
|
9
|
+
}) => {
|
|
10
|
+
const [e, o] = d(t);
|
|
11
|
+
return /* @__PURE__ */ r(
|
|
12
|
+
l,
|
|
13
|
+
{
|
|
14
|
+
header: n,
|
|
15
|
+
isExpanded: e,
|
|
16
|
+
headingSize: s,
|
|
17
|
+
onChange: () => {
|
|
18
|
+
o(!e);
|
|
19
|
+
},
|
|
20
|
+
children: a
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
i as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("@atlaskit/button/new"),c=require("@atlaskit/heading"),l=require("@atlaskit/icon/glyph/chevron-down"),u=require("@atlaskit/icon/glyph/chevron-right"),h=require("@atlaskit/primitives"),p=require("react-animate-height"),r=require("../styled-panel/index.cjs.js"),q=({children:t,header:s,headingSize:i,isExpanded:n=!1,onChange:a})=>e.jsxs(r.PanelWrapper,{children:[e.jsxs(r.PanelHeader,{onClick:()=>a(!n),children:[e.jsx(o.IconButton,{appearance:"subtle","aria-expanded":n,label:n?"Collapse":"Expand",icon:n?l:u}),e.jsx(c,{size:i||"medium",children:s})]}),e.jsx(p,{duration:200,easing:"linear",height:n?"auto":0,className:"panel-content",children:e.jsx(h.Box,{paddingInlineStart:"space.400",children:t})})]});module.exports=q;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton as l } from "@atlaskit/button/new";
|
|
3
|
+
import m from "@atlaskit/heading";
|
|
4
|
+
import p from "@atlaskit/icon/glyph/chevron-down";
|
|
5
|
+
import c from "@atlaskit/icon/glyph/chevron-right";
|
|
6
|
+
import { Box as s } from "@atlaskit/primitives";
|
|
7
|
+
import f from "react-animate-height";
|
|
8
|
+
import { PanelWrapper as h, PanelHeader as u } from "../styled-panel/index.es.js";
|
|
9
|
+
const v = ({
|
|
10
|
+
children: n,
|
|
11
|
+
header: t,
|
|
12
|
+
headingSize: a,
|
|
13
|
+
isExpanded: e = !1,
|
|
14
|
+
onChange: i
|
|
15
|
+
}) => /* @__PURE__ */ o(h, { children: [
|
|
16
|
+
/* @__PURE__ */ o(u, { onClick: () => i(!e), children: [
|
|
17
|
+
/* @__PURE__ */ r(
|
|
18
|
+
l,
|
|
19
|
+
{
|
|
20
|
+
appearance: "subtle",
|
|
21
|
+
"aria-expanded": e,
|
|
22
|
+
label: e ? "Collapse" : "Expand",
|
|
23
|
+
icon: e ? p : c
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
/* @__PURE__ */ r(m, { size: a || "medium", children: t })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
f,
|
|
30
|
+
{
|
|
31
|
+
duration: 200,
|
|
32
|
+
easing: "linear",
|
|
33
|
+
height: e ? "auto" : 0,
|
|
34
|
+
className: "panel-content",
|
|
35
|
+
children: /* @__PURE__ */ r(s, { paddingInlineStart: "space.400", children: n })
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] });
|
|
39
|
+
export {
|
|
40
|
+
v as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@atlaskit/theme"),e=require("@atlaskit/tokens"),t=require("styled-components"),a=t.css`
|
|
2
|
+
transition: all 200ms ease-in-out;
|
|
3
|
+
`,i=t.div`
|
|
4
|
+
margin: 0 auto 0;
|
|
5
|
+
`,n=t.div`
|
|
6
|
+
left: 0;
|
|
7
|
+
line-height: 0;
|
|
8
|
+
opacity: ${({isHidden:o})=>o?0:1};
|
|
9
|
+
position: absolute;
|
|
10
|
+
${a};
|
|
11
|
+
|
|
12
|
+
button {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
`,s=t.div`
|
|
16
|
+
align-items: center;
|
|
17
|
+
background-color: ${o=>o.isFocused&&e.token("elevation.surface.hovered",r.colors.N20)};
|
|
18
|
+
border-radius: ${e.token("border.radius.100","3px")};
|
|
19
|
+
display: flex;
|
|
20
|
+
left: ${e.token("space.negative.300","-24px")};
|
|
21
|
+
//margin-bottom: ${e.token("space.100","8px")};
|
|
22
|
+
//margin-top: ${e.token("space.200","16px")};
|
|
23
|
+
padding: ${e.token("space.025","2px")} ${e.token("space.0","0px")}
|
|
24
|
+
${e.token("space.025","2px")} ${e.token("space.300","24px")};
|
|
25
|
+
position: relative;
|
|
26
|
+
${a};
|
|
27
|
+
width: 100%;
|
|
28
|
+
|
|
29
|
+
${n} {
|
|
30
|
+
opacity: ${o=>o.isFocused&&1};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
button {
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: ${e.token("elevation.surface.hovered",r.colors.N20)};
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
|
|
41
|
+
${n} {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;exports.ButtonWrapper=n;exports.PanelHeader=s;exports.PanelWrapper=i;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { colors as r } from "@atlaskit/theme";
|
|
2
|
+
import { token as e } from "@atlaskit/tokens";
|
|
3
|
+
import t, { css as a } from "styled-components";
|
|
4
|
+
const n = a`
|
|
5
|
+
transition: all 200ms ease-in-out;
|
|
6
|
+
`, d = t.div`
|
|
7
|
+
margin: 0 auto 0;
|
|
8
|
+
`, i = t.div`
|
|
9
|
+
left: 0;
|
|
10
|
+
line-height: 0;
|
|
11
|
+
opacity: ${({ isHidden: o }) => o ? 0 : 1};
|
|
12
|
+
position: absolute;
|
|
13
|
+
${n};
|
|
14
|
+
|
|
15
|
+
button {
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
18
|
+
`, l = t.div`
|
|
19
|
+
align-items: center;
|
|
20
|
+
background-color: ${(o) => o.isFocused && e("elevation.surface.hovered", r.N20)};
|
|
21
|
+
border-radius: ${e("border.radius.100", "3px")};
|
|
22
|
+
display: flex;
|
|
23
|
+
left: ${e("space.negative.300", "-24px")};
|
|
24
|
+
//margin-bottom: ${e("space.100", "8px")};
|
|
25
|
+
//margin-top: ${e("space.200", "16px")};
|
|
26
|
+
padding: ${e("space.025", "2px")} ${e("space.0", "0px")}
|
|
27
|
+
${e("space.025", "2px")} ${e("space.300", "24px")};
|
|
28
|
+
position: relative;
|
|
29
|
+
${n};
|
|
30
|
+
width: 100%;
|
|
31
|
+
|
|
32
|
+
${i} {
|
|
33
|
+
opacity: ${(o) => o.isFocused && 1};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
button {
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: ${e("elevation.surface.hovered", r.N20)};
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
|
|
44
|
+
${i} {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
export {
|
|
50
|
+
i as ButtonWrapper,
|
|
51
|
+
l as PanelHeader,
|
|
52
|
+
d as PanelWrapper
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{navigate(e){return window.location.href=e,Promise.resolve()}open(e){return window.open(e,"_blank"),Promise.resolve()}reload(){return window.location.reload(),Promise.resolve()}}exports.WindowHostRouter=o;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class r {
|
|
2
|
+
navigate(o) {
|
|
3
|
+
return window.location.href = o, Promise.resolve();
|
|
4
|
+
}
|
|
5
|
+
open(o) {
|
|
6
|
+
return window.open(o, "_blank"), Promise.resolve();
|
|
7
|
+
}
|
|
8
|
+
reload() {
|
|
9
|
+
return window.location.reload(), Promise.resolve();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
r as WindowHostRouter
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("@atlaskit/button/new"),l=require("react"),d=require("../host-router-provider/index.cjs.js");function k({url:e,action:s,label:r,linkStyle:a,buttonIcon:i,buttonAppearance:u}){const t=d.useHostRouter(),n=l.useCallback(f=>{f.preventDefault(),s==="open"?t.open(e):t.navigate(e)},[s,t,e]);return a==="link"?o.jsx("a",{href:e,target:"_blank",rel:"noreferrer",onClick:n,children:r}):i?o.jsx(c.IconButton,{icon:i,label:r,appearance:u||"subtle",onClick:n}):o.jsx(c,{appearance:u||"subtle",onClick:n,children:r})}exports.HostRouterLink=k;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import u, { IconButton as c } from "@atlaskit/button/new";
|
|
3
|
+
import { useCallback as m } from "react";
|
|
4
|
+
import { useHostRouter as k } from "../host-router-provider/index.es.js";
|
|
5
|
+
function R({
|
|
6
|
+
url: r,
|
|
7
|
+
action: i,
|
|
8
|
+
label: e,
|
|
9
|
+
linkStyle: s,
|
|
10
|
+
buttonIcon: f,
|
|
11
|
+
buttonAppearance: p
|
|
12
|
+
}) {
|
|
13
|
+
const o = k(), t = m(
|
|
14
|
+
(a) => {
|
|
15
|
+
a.preventDefault(), i === "open" ? o.open(r) : o.navigate(r);
|
|
16
|
+
},
|
|
17
|
+
[i, o, r]
|
|
18
|
+
);
|
|
19
|
+
return s === "link" ? /* @__PURE__ */ n("a", { href: r, target: "_blank", rel: "noreferrer", onClick: t, children: e }) : f ? /* @__PURE__ */ n(
|
|
20
|
+
c,
|
|
21
|
+
{
|
|
22
|
+
icon: f,
|
|
23
|
+
label: e,
|
|
24
|
+
appearance: p || "subtle",
|
|
25
|
+
onClick: t
|
|
26
|
+
}
|
|
27
|
+
) : /* @__PURE__ */ n(u, { appearance: p || "subtle", onClick: t, children: e });
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
R as HostRouterLink
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),e=require("react"),o=e.createContext(null),s=()=>{const t=e.useContext(o);if(!t)throw new Error("useHostRouter must be used within a HostRouterProvider");return t};function n({children:t,hostRouter:r}){return u.jsx(o.Provider,{value:r,children:t})}exports.HostRouterProvider=n;exports.useHostRouter=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as u, useContext as n } from "react";
|
|
3
|
+
const o = u(null), c = () => {
|
|
4
|
+
const t = n(o);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error("useHostRouter must be used within a HostRouterProvider");
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
function x({
|
|
10
|
+
children: t,
|
|
11
|
+
hostRouter: r
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e(o.Provider, { value: r, children: t });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
x as HostRouterProvider,
|
|
17
|
+
c as useHostRouter
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),t=require("react"),w=require("../../../../../../shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.cjs.js"),W=require("../iframe-wrapper.module.scss/index.cjs.js");function R({iframeProps:e,messageCallback:c,onMouseOut:i}){const[o,r]=t.useState(),s=t.useRef(!1),d=t.useRef(!1),u=t.useRef(null),g=t.useCallback(n=>{var h;n.source===((h=u.current)==null?void 0:h.contentWindow)&&c&&c(n.data)},[c]);return w.useWindowListener("message",g),t.useEffect(()=>{(async()=>e!=null&&e.height&&(console.log("IframeWrapper: Setting height to",e.height),r(e.height)))()},[e]),t.useEffect(()=>{(async()=>{var n;!d.current&&((n=u.current)!=null&&n.contentWindow)&&(u.current.contentWindow.focus(),d.current=!0)})()}),l.jsx("div",{className:W["iframe-wrapper"],children:l.jsx("iframe",{title:e==null?void 0:e.title,ref:u,width:e==null?void 0:e.width,height:o,src:e==null?void 0:e.link,onMouseEnter:()=>s.current=!0,onMouseOut:()=>{s.current&&i&&i()}})})}exports.IframeWrapper=R;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, useRef as u, useCallback as I, useEffect as g } from "react";
|
|
3
|
+
import { useWindowListener as R } from "../../../../../../shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.es.js";
|
|
4
|
+
import f from "../iframe-wrapper.module.scss/index.es.js";
|
|
5
|
+
function j({
|
|
6
|
+
iframeProps: t,
|
|
7
|
+
messageCallback: c,
|
|
8
|
+
onMouseOut: h
|
|
9
|
+
}) {
|
|
10
|
+
const [s, w] = y(), i = u(!1), d = u(!1), e = u(null), W = I(
|
|
11
|
+
(n) => {
|
|
12
|
+
var l;
|
|
13
|
+
n.source === ((l = e.current) == null ? void 0 : l.contentWindow) && c && c(n.data);
|
|
14
|
+
},
|
|
15
|
+
[c]
|
|
16
|
+
);
|
|
17
|
+
return R("message", W), g(() => {
|
|
18
|
+
(async () => t != null && t.height && (console.log("IframeWrapper: Setting height to", t.height), w(t.height)))();
|
|
19
|
+
}, [t]), g(() => {
|
|
20
|
+
(async () => {
|
|
21
|
+
var n;
|
|
22
|
+
!d.current && ((n = e.current) != null && n.contentWindow) && (e.current.contentWindow.focus(), d.current = !0);
|
|
23
|
+
})();
|
|
24
|
+
}), /* @__PURE__ */ o("div", { className: f["iframe-wrapper"], children: /* @__PURE__ */ o(
|
|
25
|
+
"iframe",
|
|
26
|
+
{
|
|
27
|
+
title: t == null ? void 0 : t.title,
|
|
28
|
+
ref: e,
|
|
29
|
+
width: t == null ? void 0 : t.width,
|
|
30
|
+
height: s,
|
|
31
|
+
src: t == null ? void 0 : t.link,
|
|
32
|
+
onMouseEnter: () => i.current = !0,
|
|
33
|
+
onMouseOut: () => {
|
|
34
|
+
i.current && h && h();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
j as IframeWrapper
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r={"iframe-wrapper":"_iframe-wrapper_c8hdk_1"};module.exports=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),t=require("react"),u=require("../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js"),l=require("../../../../../../shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.cjs.js"),o=t.createContext({close:()=>{}});function d(){return t.useContext(o)}function C({children:n}){const[s,a]=t.useState(),e=u.useViewContext(),r=t.useCallback(()=>{e.close()},[e]);return l.useWindowListener("unload",r),t.useEffect(()=>{(async()=>{const c=await e.getContext();a(c.extension.modal)})()},[e]),i.jsx(o.Provider,{value:{modalContextData:s,close:e.close},children:n})}exports.ModalContent=C;exports.useModalContentService=d;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as i, useContext as l, useState as u, useCallback as d, useEffect as m } from "react";
|
|
3
|
+
import { useViewContext as x } from "../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
4
|
+
import { useWindowListener as C } from "../../../../../../shared/frontend-ui-window-listener-hook/src/lib/window-listener-hook/index.es.js";
|
|
5
|
+
const e = i({
|
|
6
|
+
close: () => {
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
function M() {
|
|
10
|
+
return l(
|
|
11
|
+
e
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
function D({ children: o }) {
|
|
15
|
+
const [n, s] = u(), t = x(), a = d(() => {
|
|
16
|
+
t.close();
|
|
17
|
+
}, [t]);
|
|
18
|
+
return C("unload", a), m(() => {
|
|
19
|
+
(async () => {
|
|
20
|
+
const r = await t.getContext();
|
|
21
|
+
s(r.extension.modal);
|
|
22
|
+
})();
|
|
23
|
+
}, [t]), /* @__PURE__ */ c(
|
|
24
|
+
e.Provider,
|
|
25
|
+
{
|
|
26
|
+
value: { modalContextData: n, close: t.close },
|
|
27
|
+
children: o
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
D as ModalContent,
|
|
33
|
+
M as useModalContentService
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),m=require("@atlaskit/heading"),u=require("@atlaskit/primitives"),t=require("react"),l=require("../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js"),g=require("../modal-content/index.cjs.js");function h({messageCallback:n,closeOnMouseOut:d}){const{modalContextData:e,close:s}=g.useModalContentService(),[r,o]=t.useState();t.useEffect(()=>{e&&o({...e.iframeProps})},[e]);const f=t.useCallback(p=>{if(n&&r){const c=n(p.data,e==null?void 0:e.iframeProps);c.newHeight&&o({...r,height:c.newHeight})}},[r,n,e]);if(!r)return i.jsx("div",{});const a=i.jsx(l.IframeWrapper,{messageCallback:f,iframeProps:r,onMouseOut:()=>{d&&(s==null||s())}});return e!=null&&e.modalHeader?i.jsxs(u.Flex,{gap:"space.200",direction:"column",children:[i.jsx(u.Box,{paddingInline:"space.200",children:i.jsx(m,{size:"medium",children:e.modalHeader})}),a]}):a}exports.ModalContentIframe=h;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as i, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import c from "@atlaskit/heading";
|
|
3
|
+
import { Flex as u, Box as h } from "@atlaskit/primitives";
|
|
4
|
+
import { useState as g, useEffect as l, useCallback as H } from "react";
|
|
5
|
+
import { IframeWrapper as I } from "../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js";
|
|
6
|
+
import { useModalContentService as P } from "../modal-content/index.es.js";
|
|
7
|
+
function W({
|
|
8
|
+
messageCallback: o,
|
|
9
|
+
closeOnMouseOut: m
|
|
10
|
+
}) {
|
|
11
|
+
const { modalContextData: e, close: n } = P(), [r, s] = g();
|
|
12
|
+
l(() => {
|
|
13
|
+
e && s({
|
|
14
|
+
...e.iframeProps
|
|
15
|
+
});
|
|
16
|
+
}, [e]);
|
|
17
|
+
const p = H(
|
|
18
|
+
(a) => {
|
|
19
|
+
if (o && r) {
|
|
20
|
+
const f = o(
|
|
21
|
+
a.data,
|
|
22
|
+
e == null ? void 0 : e.iframeProps
|
|
23
|
+
);
|
|
24
|
+
f.newHeight && s({ ...r, height: f.newHeight });
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
[r, o, e]
|
|
28
|
+
);
|
|
29
|
+
if (!r)
|
|
30
|
+
return /* @__PURE__ */ i("div", {});
|
|
31
|
+
const t = /* @__PURE__ */ i(
|
|
32
|
+
I,
|
|
33
|
+
{
|
|
34
|
+
messageCallback: p,
|
|
35
|
+
iframeProps: r,
|
|
36
|
+
onMouseOut: () => {
|
|
37
|
+
m && (n == null || n());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
return e != null && e.modalHeader ? /* @__PURE__ */ d(u, { gap: "space.200", direction: "column", children: [
|
|
42
|
+
/* @__PURE__ */ i(h, { paddingInline: "space.200", children: /* @__PURE__ */ i(c, { size: "medium", children: e.modalHeader }) }),
|
|
43
|
+
t
|
|
44
|
+
] }) : t;
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
W as ModalContentIframe
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("@atlaskit/heading"),e=require("@atlaskit/primitives");function r({title:s,buttonGroup:n,children:c}){return i.jsxs(e.Flex,{direction:"column",xcss:e.xcss({height:"100%",padding:"space.300"}),children:[s&&i.jsx(e.Box,{paddingBlockEnd:"space.200",children:i.jsx(o,{size:"medium",children:s})}),i.jsx(e.Box,{xcss:e.xcss({flexGrow:2}),children:c}),n&&i.jsx(e.Box,{paddingBlockStart:"space.200",children:i.jsx(e.Flex,{justifyContent:"end",alignItems:"center",children:n})})]})}exports.ModalDialogLayout=r;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import a from "@atlaskit/heading";
|
|
3
|
+
import { Flex as d, xcss as r, Box as i } from "@atlaskit/primitives";
|
|
4
|
+
function p({
|
|
5
|
+
title: n,
|
|
6
|
+
buttonGroup: c,
|
|
7
|
+
children: o
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ s(
|
|
10
|
+
d,
|
|
11
|
+
{
|
|
12
|
+
direction: "column",
|
|
13
|
+
xcss: r({ height: "100%", padding: "space.300" }),
|
|
14
|
+
children: [
|
|
15
|
+
n && /* @__PURE__ */ e(i, { paddingBlockEnd: "space.200", children: /* @__PURE__ */ e(a, { size: "medium", children: n }) }),
|
|
16
|
+
/* @__PURE__ */ e(i, { xcss: r({ flexGrow: 2 }), children: o }),
|
|
17
|
+
c && /* @__PURE__ */ e(i, { paddingBlockStart: "space.200", children: /* @__PURE__ */ e(d, { justifyContent: "end", alignItems: "center", children: c }) })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
p as ModalDialogLayout
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{constructor(e,r={}){this.defaultUrl=e,this.resourceMap=r}open(e){const r=e.resource&&this.resourceMap[e.resource]||this.defaultUrl,i=this.features(e.size||"small"),c=window.open(r,"_blank",i),s=t=>{var a,u;if(t.source===c&&(a=t.data)!=null&&a.closing){const l=t.data;window.removeEventListener("message",s),(u=e.onClose)==null||u.call(e,l.payload)}};return window.addEventListener("message",s),Promise.resolve()}features(e){switch(e){case"small":return"popup,width=400,height=320";case"medium":return"popup,width=600,height=520";case"large":return"popup,width=800,height=720";case"xlarge":return"popup,width=968,height=900";case"max":return""}}}exports.WindowModalService=o;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
class h {
|
|
2
|
+
constructor(e, r = {}) {
|
|
3
|
+
this.defaultUrl = e, this.resourceMap = r;
|
|
4
|
+
}
|
|
5
|
+
open(e) {
|
|
6
|
+
const r = e.resource && this.resourceMap[e.resource] || this.defaultUrl, c = this.features(e.size || "small"), i = window.open(r, "_blank", c), t = (s) => {
|
|
7
|
+
var a, u;
|
|
8
|
+
if (s.source === i && (a = s.data) != null && a.closing) {
|
|
9
|
+
const l = s.data;
|
|
10
|
+
window.removeEventListener("message", t), (u = e.onClose) == null || u.call(e, l.payload);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
return window.addEventListener("message", t), Promise.resolve();
|
|
14
|
+
}
|
|
15
|
+
/*
|
|
16
|
+
small - w: 400px h: 20vh minHeight: 320px
|
|
17
|
+
medium - w: 600px h: 40vh minHeight: 520px
|
|
18
|
+
large - w: 800px h: 70vh minHeight: 720px
|
|
19
|
+
xlarge - w: 968px h: 90vh
|
|
20
|
+
*/
|
|
21
|
+
features(e) {
|
|
22
|
+
switch (e) {
|
|
23
|
+
case "small":
|
|
24
|
+
return "popup,width=400,height=320";
|
|
25
|
+
case "medium":
|
|
26
|
+
return "popup,width=600,height=520";
|
|
27
|
+
case "large":
|
|
28
|
+
return "popup,width=800,height=720";
|
|
29
|
+
case "xlarge":
|
|
30
|
+
return "popup,width=968,height=900";
|
|
31
|
+
case "max":
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
h as WindowModalService
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("react"),t=r.createContext(null),n=()=>{const e=r.useContext(t);if(!e)throw new Error("useModalService must be used within a ModalServiceProvider");return e};function c({children:e,modalService:o}){return i.jsx(t.Provider,{value:o,children:e})}exports.ModalServiceProvider=c;exports.useModalService=n;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as i, useContext as n } from "react";
|
|
3
|
+
const r = i(null), d = () => {
|
|
4
|
+
const e = n(r);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"useModalService must be used within a ModalServiceProvider"
|
|
8
|
+
);
|
|
9
|
+
return e;
|
|
10
|
+
};
|
|
11
|
+
function s({
|
|
12
|
+
children: e,
|
|
13
|
+
modalService: o
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ t(r.Provider, { value: o, children: e });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as ModalServiceProvider,
|
|
19
|
+
d as useModalService
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");const r=require("../../../../frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js");class n extends r.MockViewContext{constructor(e,t="http://localhost:4200"){super(e),this.context=e,this.openerOrigin=t,this.close=s=>{var o;const i={closing:!0,payload:s};return(o=window.opener)==null||o.postMessage(i,this.openerOrigin),window.close(),Promise.resolve()}}}exports.ModalViewContext=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
2
|
+
import { MockViewContext as r } from "../../../../frontend-ui-view-context/src/lib/mock-view-context/index.es.js";
|
|
3
|
+
class p extends r {
|
|
4
|
+
constructor(e, s = "http://localhost:4200") {
|
|
5
|
+
super(e), this.context = e, this.openerOrigin = s, this.close = (t) => {
|
|
6
|
+
var o;
|
|
7
|
+
const i = { closing: !0, payload: t };
|
|
8
|
+
return (o = window.opener) == null || o.postMessage(i, this.openerOrigin), window.close(), Promise.resolve();
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
p as ModalViewContext
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("@atlaskit/heading"),o=require("@atlaskit/primitives"),a=require("@atlaskit/section-message"),c=require("@atlaskit/spinner");function r({label:n,loadingError:i,labelSize:t}){return e.jsxs(o.Flex,{direction:"column",children:[e.jsx(s,{size:t||"large",children:n}),i?e.jsx(a,{appearance:"error",children:i}):e.jsx(c,{interactionName:"load"})]})}exports.PageLoadingView=r;exports.default=r;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import t from "@atlaskit/heading";
|
|
3
|
+
import { Flex as a } from "@atlaskit/primitives";
|
|
4
|
+
import m from "@atlaskit/section-message";
|
|
5
|
+
import c from "@atlaskit/spinner";
|
|
6
|
+
function g({
|
|
7
|
+
label: i,
|
|
8
|
+
loadingError: r,
|
|
9
|
+
labelSize: o
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ n(a, { direction: "column", children: [
|
|
12
|
+
/* @__PURE__ */ e(t, { size: o || "large", children: i }),
|
|
13
|
+
r ? /* @__PURE__ */ e(m, { appearance: "error", children: r }) : /* @__PURE__ */ e(c, { interactionName: "load" })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
g as PageLoadingView,
|
|
18
|
+
g as default
|
|
19
|
+
};
|
package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js");function n(r,s){return async e=>{const a=`${r}${e.path}`,o=await fetch(a,{method:e.method,headers:s?c.addAuthHeader(s,e.headers||{}):e.headers,body:e.body?JSON.stringify(e.body):void 0}),t={};return o.headers.forEach((d,h)=>{t[h]=d}),{body:await o.json(),headers:t,status:o.status}}}exports.oauthFetchInvokeRemote=n;
|