@atlaskit/link-datasource 6.12.1 → 6.13.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/CHANGELOG.md +35 -0
- package/dist/cjs/analytics/xpc/useDatasourceCrossProductAttribution.js +2 -2
- package/dist/cjs/common/ui/common/render-svg.js +1 -1
- package/dist/cjs/hooks/useErrorLogger.js +2 -2
- package/dist/cjs/hooks/useIsInPDFRender.js +2 -2
- package/dist/cjs/index.js +13 -13
- package/dist/cjs/services/__clearUnitsRolloutSettingsCacheForTests.js +13 -0
- package/dist/cjs/services/fetchObjectSchema.js +2 -2
- package/dist/cjs/services/fetchObjectSchemas.js +2 -2
- package/dist/cjs/services/getAvailableSites.js +32 -19
- package/dist/cjs/services/getUnitsRolloutSettings.js +199 -0
- package/dist/cjs/services/getWorkspaceId.js +2 -2
- package/dist/cjs/services/isUnitsIsolationEnabled.js +63 -0
- package/dist/cjs/services/resolvePrimaryWorkspace.js +2 -2
- package/dist/cjs/services/useBasicFilterAGG.js +2 -2
- package/dist/cjs/services/validateAql.js +2 -2
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +2 -2
- package/dist/cjs/ui/assets-modal/search-container/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +2 -2
- package/dist/cjs/ui/assets-modal/search-container/styled.js +1 -1
- package/dist/cjs/ui/common/error-state/access-required.js +1 -1
- package/dist/cjs/ui/common/error-state/loading-error.js +1 -1
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/cjs/ui/common/error-state/no-instances.js +1 -1
- package/dist/cjs/ui/common/error-state/no-results.js +1 -1
- package/dist/cjs/ui/common/error-state/provider-auth-required-svg.js +1 -1
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +1 -1
- package/dist/cjs/ui/common/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +1 -1
- package/dist/cjs/ui/common/modal/content-container/index.js +1 -1
- package/dist/cjs/ui/common/modal/count-view-smart-link/smart-card-placeholder.js +1 -1
- package/dist/cjs/ui/common/modal/count-view-smart-link/smart-link.js +1 -1
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +1 -1
- package/dist/cjs/ui/common/modal/mode-switcher/DatasourceViewModeDropDown.js +1 -1
- package/dist/cjs/ui/common/modal/mode-switcher/ModeSwitcher.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/CustomControl.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +1 -1
- package/dist/cjs/ui/common/modal/search-count/ItemCountWrapper.js +1 -1
- package/dist/cjs/ui/common/modal/site-selector/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +1 -1
- package/dist/cjs/ui/datasource-table-view/DatasourceTableViewWithWrappers.js +14 -0
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/menu-item.js +1 -1
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +1 -1
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +1 -1
- package/dist/cjs/ui/issue-like-table/empty-state/index.js +4 -4
- package/dist/cjs/ui/issue-like-table/empty-state/type.js +1 -1
- package/dist/cjs/ui/issue-like-table/issue-like-data-table-view.js +3 -3
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/shared-components/avatar/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/shared-components/icon/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-cell-content/table-cell-content.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-settings-menu/TableSettingsMenu.js +1 -1
- package/dist/cjs/ui/issue-like-table/truncate-text-tag/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +3 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/cjs/ui/table-footer/index.js +1 -1
- package/dist/cjs/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/cjs/ui/table-footer/provider-link/index.js +1 -1
- package/dist/es2019/analytics/xpc/useDatasourceCrossProductAttribution.js +1 -1
- package/dist/es2019/common/ui/common/render-svg.js +1 -1
- package/dist/es2019/hooks/useErrorLogger.js +1 -1
- package/dist/es2019/hooks/useIsInPDFRender.js +1 -1
- package/dist/es2019/index.js +5 -5
- package/dist/es2019/services/__clearUnitsRolloutSettingsCacheForTests.js +8 -0
- package/dist/es2019/services/fetchObjectSchema.js +1 -1
- package/dist/es2019/services/fetchObjectSchemas.js +1 -1
- package/dist/es2019/services/getAvailableSites.js +2 -2
- package/dist/es2019/services/getUnitsRolloutSettings.js +112 -0
- package/dist/es2019/services/getWorkspaceId.js +1 -1
- package/dist/es2019/services/isUnitsIsolationEnabled.js +34 -0
- package/dist/es2019/services/resolvePrimaryWorkspace.js +1 -1
- package/dist/es2019/services/useBasicFilterAGG.js +1 -1
- package/dist/es2019/services/validateAql.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/styled.js +1 -1
- package/dist/es2019/ui/common/error-state/access-required.js +1 -1
- package/dist/es2019/ui/common/error-state/loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/no-instances.js +1 -1
- package/dist/es2019/ui/common/error-state/no-results.js +1 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required-svg.js +1 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +1 -1
- package/dist/es2019/ui/common/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +1 -1
- package/dist/es2019/ui/common/modal/content-container/index.js +1 -1
- package/dist/es2019/ui/common/modal/count-view-smart-link/smart-card-placeholder.js +1 -1
- package/dist/es2019/ui/common/modal/count-view-smart-link/smart-link.js +1 -1
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +1 -1
- package/dist/es2019/ui/common/modal/mode-switcher/DatasourceViewModeDropDown.js +1 -1
- package/dist/es2019/ui/common/modal/mode-switcher/ModeSwitcher.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/CustomControl.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +1 -1
- package/dist/es2019/ui/common/modal/search-count/ItemCountWrapper.js +1 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +1 -1
- package/dist/es2019/ui/datasource-table-view/DatasourceTableViewWithWrappers.js +15 -1
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/menu-item.js +1 -1
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +1 -1
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +1 -1
- package/dist/es2019/ui/issue-like-table/empty-state/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/empty-state/type.js +1 -1
- package/dist/es2019/ui/issue-like-table/issue-like-data-table-view.js +2 -2
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/shared-components/avatar/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/shared-components/icon/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-cell-content/table-cell-content.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-settings-menu/TableSettingsMenu.js +1 -1
- package/dist/es2019/ui/issue-like-table/truncate-text-tag/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/es2019/ui/table-footer/index.js +1 -1
- package/dist/es2019/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/es2019/ui/table-footer/provider-link/index.js +1 -1
- package/dist/esm/analytics/xpc/useDatasourceCrossProductAttribution.js +1 -1
- package/dist/esm/common/ui/common/render-svg.js +1 -1
- package/dist/esm/hooks/useErrorLogger.js +1 -1
- package/dist/esm/hooks/useIsInPDFRender.js +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/services/__clearUnitsRolloutSettingsCacheForTests.js +8 -0
- package/dist/esm/services/fetchObjectSchema.js +1 -1
- package/dist/esm/services/fetchObjectSchemas.js +1 -1
- package/dist/esm/services/getAvailableSites.js +32 -19
- package/dist/esm/services/getUnitsRolloutSettings.js +192 -0
- package/dist/esm/services/getWorkspaceId.js +1 -1
- package/dist/esm/services/isUnitsIsolationEnabled.js +57 -0
- package/dist/esm/services/resolvePrimaryWorkspace.js +1 -1
- package/dist/esm/services/useBasicFilterAGG.js +1 -1
- package/dist/esm/services/validateAql.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/styled.js +1 -1
- package/dist/esm/ui/common/error-state/access-required.js +1 -1
- package/dist/esm/ui/common/error-state/loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/no-instances.js +1 -1
- package/dist/esm/ui/common/error-state/no-results.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required-svg.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required.js +1 -1
- package/dist/esm/ui/common/initial-state-view/index.js +1 -1
- package/dist/esm/ui/common/modal/basic-search-input/index.js +1 -1
- package/dist/esm/ui/common/modal/content-container/index.js +1 -1
- package/dist/esm/ui/common/modal/count-view-smart-link/smart-card-placeholder.js +1 -1
- package/dist/esm/ui/common/modal/count-view-smart-link/smart-link.js +1 -1
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +1 -1
- package/dist/esm/ui/common/modal/mode-switcher/DatasourceViewModeDropDown.js +1 -1
- package/dist/esm/ui/common/modal/mode-switcher/ModeSwitcher.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/CustomControl.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/trigger.js +1 -1
- package/dist/esm/ui/common/modal/search-count/ItemCountWrapper.js +1 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/modal/PlainConfluenceSearchConfigModal.js +1 -1
- package/dist/esm/ui/datasource-table-view/DatasourceTableViewWithWrappers.js +15 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/menu-item.js +1 -1
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +1 -1
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +1 -1
- package/dist/esm/ui/issue-like-table/empty-state/index.js +2 -2
- package/dist/esm/ui/issue-like-table/empty-state/type.js +1 -1
- package/dist/esm/ui/issue-like-table/issue-like-data-table-view.js +2 -2
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/esm/ui/issue-like-table/shared-components/avatar/index.js +1 -1
- package/dist/esm/ui/issue-like-table/shared-components/icon/index.js +1 -1
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/issue-like-table/table-cell-content/table-cell-content.js +1 -1
- package/dist/esm/ui/issue-like-table/table-settings-menu/TableSettingsMenu.js +1 -1
- package/dist/esm/ui/issue-like-table/truncate-text-tag/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/esm/ui/table-footer/index.js +1 -1
- package/dist/esm/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/esm/ui/table-footer/provider-link/index.js +1 -1
- package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/services/__clearUnitsRolloutSettingsCacheForTests.d.ts +4 -0
- package/dist/types/services/getUnitsRolloutSettings.d.ts +29 -0
- package/dist/types/services/isUnitsIsolationEnabled.d.ts +15 -0
- package/dist/types/ui/common/modal/datasource-context/DatasourceContextProviderProps.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-modal/createDatasourceModal.d.ts +1 -1
- package/examples-helpers/buildAssetsIssuesTable.tsx +2 -2
- package/examples-helpers/buildConfluenceSearchTable.tsx +2 -2
- package/examples-helpers/buildIssueLikeTable.tsx +1 -1
- package/examples-helpers/buildIssueLikeTableLoadingError.tsx +1 -1
- package/examples-helpers/buildJiraIssuesTable.tsx +3 -2
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/package.json +20 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { useCrossProductUrlWrapper } from '@atlaskit/analytics-cross-product/useCrossProductUrlWrapper';
|
|
3
|
-
import { useSmartCardContext } from '@atlaskit/link-provider/context';
|
|
3
|
+
import { useSmartCardContext } from '@atlaskit/link-provider/use-smart-card-context';
|
|
4
4
|
import { functionWithFG } from '@atlaskit/platform-feature-flags-react/function-with-fg';
|
|
5
5
|
const DATASOURCE_XPC_BRIDGE = 'linkDatasource';
|
|
6
6
|
const XPC_QUERY_PARAM = 'xpis';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { NetworkError } from '@atlaskit/linking-common';
|
|
3
|
-
import { getTraceId } from '@atlaskit/linking-common/utils';
|
|
3
|
+
import { getTraceId } from '@atlaskit/linking-common/utils/get-trace-id';
|
|
4
4
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
5
5
|
import { logToSentry } from './logToSentry';
|
|
6
6
|
const getNetworkFields = error => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useSmartCardContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { useSmartCardContext } from '@atlaskit/link-provider/use-smart-card-context';
|
|
3
3
|
export const useIsInPDFRender = () => {
|
|
4
4
|
const smartCardContext = useSmartCardContext();
|
|
5
5
|
return useMemo(() => {
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/** @deprecated Use @atlaskit/link-datasource/confluence-search-modal */
|
|
2
|
-
export {
|
|
2
|
+
export { ConfluenceSearchConfigModalWithWrappers as ConfluenceSearchConfigModal } from './ui/confluence-search-modal/ConfluenceSearchConfigModalWithWrappers';
|
|
3
3
|
|
|
4
4
|
/** @deprecated Use @atlaskit/link-datasource/jira-issues-modal */
|
|
5
|
-
export {
|
|
5
|
+
export { JiraIssuesConfigModalWithWrappers as JiraIssuesConfigModal } from './ui/jira-issues-modal/JiraIssuesConfigModalWithWrappers';
|
|
6
6
|
|
|
7
7
|
/** @deprecated Use @atlaskit/link-datasource/assets-modal */
|
|
8
|
-
export {
|
|
8
|
+
export { AssetsConfigModalWithWrappers as AssetsConfigModal } from './ui/assets-modal/AssetsConfigModalWithWrappers';
|
|
9
9
|
|
|
10
10
|
/** @deprecated Use @atlaskit/link-datasource/datasource-table-view */
|
|
11
|
-
export {
|
|
11
|
+
export { DatasourceTableViewWithWrappers as DatasourceTableView } from './ui/datasource-table-view/DatasourceTableViewWithWrappers';
|
|
12
12
|
|
|
13
13
|
/** @deprecated Use @atlaskit/link-datasource/assets-modal (AssetsConfigModal) */
|
|
14
|
-
export {
|
|
14
|
+
export { AssetsConfigModalWithWrappers as JSMAssetsConfigModal } from './ui/assets-modal/AssetsConfigModalWithWrappers';
|
|
15
15
|
|
|
16
16
|
/** @deprecated Use @atlaskit/link-datasource/utils/schema */
|
|
17
17
|
export { buildDatasourceAdf } from './common/utils/schema-utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mapAccessibleProductsToAvailableSites } from '@atlaskit/linking-common/hooks';
|
|
2
|
-
import {
|
|
2
|
+
import { isUnitsIsolationEnabled } from './isUnitsIsolationEnabled';
|
|
3
3
|
export const getAccessibleProducts = async product => {
|
|
4
4
|
const requestConfig = {
|
|
5
5
|
method: 'POST',
|
|
@@ -13,7 +13,7 @@ export const getAccessibleProducts = async product => {
|
|
|
13
13
|
productIds: product === 'confluence' ? ['confluence.ondemand'] : ['jira-software.ondemand', 'jira-core.ondemand', 'jira-incident-manager.ondemand', 'jira-product-discovery', 'jira-servicedesk.ondemand']
|
|
14
14
|
})
|
|
15
15
|
};
|
|
16
|
-
const endpoint =
|
|
16
|
+
const endpoint = (await isUnitsIsolationEnabled()) ? '/gateway/api/experimental/v2/accessible-products' : '/gateway/api/v2/accessible-products';
|
|
17
17
|
const response = await fetch(endpoint, requestConfig);
|
|
18
18
|
if (response.ok) {
|
|
19
19
|
const res = await response.json();
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { request } from '@atlaskit/linking-common';
|
|
2
|
+
const AGG_URL = '/gateway/api/graphql';
|
|
3
|
+
const TENANT_CONTEXT_OPERATION_NAME = 'link_datasource_tenantContext';
|
|
4
|
+
const UNITS_ROLLOUT_SETTINGS_OPERATION_NAME = 'link_datasource_unitSettings';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* `Query.admin_unitSettings` is keyed by org id, which the browser does not know, so the org id
|
|
8
|
+
* is resolved from the host the product is currently served from.
|
|
9
|
+
*/
|
|
10
|
+
export const tenantContextQuery = `
|
|
11
|
+
query ${TENANT_CONTEXT_OPERATION_NAME}($hostNames: [String!]) {
|
|
12
|
+
tenantContexts(hostNames: $hostNames) {
|
|
13
|
+
orgId
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* `admin_unitSettings` exposes both flags of the rollout and is callable with the session of the
|
|
20
|
+
* end user, so no opt-in directive or admin OAuth scope is needed from the browser.
|
|
21
|
+
*/
|
|
22
|
+
export const unitsRolloutSettingsQuery = `
|
|
23
|
+
query ${UNITS_ROLLOUT_SETTINGS_OPERATION_NAME}($orgId: ID!) {
|
|
24
|
+
admin_unitSettings(orgId: $orgId) {
|
|
25
|
+
boundaryEnforced
|
|
26
|
+
endUsersLaunched
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
/**
|
|
31
|
+
* When the rollout settings cannot be resolved we keep the pre-isolation behaviour, which is
|
|
32
|
+
* what every org gets today while the unit settings are unset. The settings are only
|
|
33
|
+
* written when an org is activated - they are not backfilled - so `null` is expected for orgs
|
|
34
|
+
* that have not been activated yet and must be read as `false`.
|
|
35
|
+
*/
|
|
36
|
+
const DEFAULT_SETTINGS = {
|
|
37
|
+
boundaryEnforced: false,
|
|
38
|
+
endUsersLaunched: false
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Holds the in-flight/resolved request so that the settings are only fetched once per page load.
|
|
43
|
+
*/
|
|
44
|
+
export const cache = {};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* AGG answers with a 200 and an `errors` array for query level failures, so those have to be
|
|
48
|
+
* turned into a rejection explicitly rather than being read as an empty response.
|
|
49
|
+
*/
|
|
50
|
+
const requestGraphQL = async (operationName, query, variables) => {
|
|
51
|
+
var _response$errors, _response$data;
|
|
52
|
+
const response = await request('post', AGG_URL, {
|
|
53
|
+
operationName,
|
|
54
|
+
query,
|
|
55
|
+
variables
|
|
56
|
+
});
|
|
57
|
+
if (response !== null && response !== void 0 && (_response$errors = response.errors) !== null && _response$errors !== void 0 && _response$errors.length) {
|
|
58
|
+
const messages = response.errors.map(error => error === null || error === void 0 ? void 0 : error.message).filter(Boolean).join(', ');
|
|
59
|
+
throw new Error(`${operationName} failed: ${messages || 'unknown error'}`);
|
|
60
|
+
}
|
|
61
|
+
return (_response$data = response === null || response === void 0 ? void 0 : response.data) !== null && _response$data !== void 0 ? _response$data : undefined;
|
|
62
|
+
};
|
|
63
|
+
const fetchOrgId = async () => {
|
|
64
|
+
var _window$location;
|
|
65
|
+
const hostName = typeof window !== 'undefined' ? (_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.hostname : undefined;
|
|
66
|
+
if (!hostName) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
const data = await requestGraphQL(TENANT_CONTEXT_OPERATION_NAME, tenantContextQuery, {
|
|
70
|
+
hostNames: [hostName]
|
|
71
|
+
});
|
|
72
|
+
for (const tenantContext of (_data$tenantContexts = data === null || data === void 0 ? void 0 : data.tenantContexts) !== null && _data$tenantContexts !== void 0 ? _data$tenantContexts : []) {
|
|
73
|
+
var _data$tenantContexts;
|
|
74
|
+
if (tenantContext !== null && tenantContext !== void 0 && tenantContext.orgId) {
|
|
75
|
+
return tenantContext.orgId;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return undefined;
|
|
79
|
+
};
|
|
80
|
+
const fetchUnitsRolloutSettings = async () => {
|
|
81
|
+
var _settings$boundaryEnf, _settings$endUsersLau;
|
|
82
|
+
const orgId = await fetchOrgId();
|
|
83
|
+
if (!orgId) {
|
|
84
|
+
return DEFAULT_SETTINGS;
|
|
85
|
+
}
|
|
86
|
+
const data = await requestGraphQL(UNITS_ROLLOUT_SETTINGS_OPERATION_NAME, unitsRolloutSettingsQuery, {
|
|
87
|
+
orgId
|
|
88
|
+
});
|
|
89
|
+
const settings = data === null || data === void 0 ? void 0 : data.admin_unitSettings;
|
|
90
|
+
return {
|
|
91
|
+
boundaryEnforced: (_settings$boundaryEnf = settings === null || settings === void 0 ? void 0 : settings.boundaryEnforced) !== null && _settings$boundaryEnf !== void 0 ? _settings$boundaryEnf : false,
|
|
92
|
+
endUsersLaunched: (_settings$endUsersLau = settings === null || settings === void 0 ? void 0 : settings.endUsersLaunched) !== null && _settings$endUsersLau !== void 0 ? _settings$endUsersLau : false
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Reads the org's units rollout settings (`boundaryEnforced` and `endUsersLaunched`) from the
|
|
98
|
+
* TCS key exposed by AGG's `Query.admin_unitSettings`.
|
|
99
|
+
*
|
|
100
|
+
* The result is cached for the lifetime of the page because the settings only change when an
|
|
101
|
+
* admin activates or launches units, which requires a reload to be picked up anyway. A failed
|
|
102
|
+
* request is not cached so that a later call can retry.
|
|
103
|
+
*/
|
|
104
|
+
export const getUnitsRolloutSettings = () => {
|
|
105
|
+
if (!cache.promise) {
|
|
106
|
+
cache.promise = fetchUnitsRolloutSettings().catch(() => {
|
|
107
|
+
cache.promise = undefined;
|
|
108
|
+
return DEFAULT_SETTINGS;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return cache.promise;
|
|
112
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
+
import { getUnitsRolloutSettings } from './getUnitsRolloutSettings';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Whether unit isolation behaviour should be applied for the current org.
|
|
6
|
+
*
|
|
7
|
+
* An org is isolated when units GA is on, the org has been opted in to the rollout - either by
|
|
8
|
+
* org id or by cloud id - *and* the org has actually launched units with boundary enforcement
|
|
9
|
+
* turned on:
|
|
10
|
+
*
|
|
11
|
+
* `cc-units-ga on -> (orgId gate on || cloudId gate on) -> endUsersLaunched && boundaryEnforced -> isolate`
|
|
12
|
+
*
|
|
13
|
+
* `cc-units-ga` is the units GA master gate and acts as the killswitch: while it is off nothing
|
|
14
|
+
* else is evaluated and the current, non-isolated behaviour is kept. The AGG call is only made
|
|
15
|
+
* when one of the rollout gates passes, so orgs outside of the rollout do not pay for an extra
|
|
16
|
+
* request.
|
|
17
|
+
*/
|
|
18
|
+
export const isUnitsIsolationEnabled = async () => {
|
|
19
|
+
if (!fg('cc-units-ga')) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Both rollout gates are always evaluated so that exposure is recorded consistently.
|
|
24
|
+
const isOrgInRollout = fg('linking_platform_link_datasource_unit_compliant');
|
|
25
|
+
const isCloudInRollout = fg('linking_platform_link_datasource_unit_compliant_cloud_id');
|
|
26
|
+
if (!isOrgInRollout && !isCloudInRollout) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
const {
|
|
30
|
+
boundaryEnforced,
|
|
31
|
+
endUsersLaunched
|
|
32
|
+
} = await getUnitsRolloutSettings();
|
|
33
|
+
return boundaryEnforced && endUsersLaunched;
|
|
34
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { request } from '@atlaskit/linking-common';
|
|
1
|
+
import { request } from '@atlaskit/linking-common/api';
|
|
2
2
|
// Resolves the primary Unit workspace via the unit-aware resolver, keyed by the
|
|
3
3
|
// current-site cloudId. Gated at the call-site behind
|
|
4
4
|
// `astral_units_workspace_host_resolver`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
|
-
import { request } from '@atlaskit/linking-common';
|
|
2
|
+
import { request } from '@atlaskit/linking-common/api';
|
|
3
3
|
import { fieldValuesQuery, hydrateJQLQuery, userHydration, userQuery } from './utils';
|
|
4
4
|
const AGG_BASE_URL = '/gateway/api/graphql';
|
|
5
5
|
export const useBasicFilterAGG = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Skeleton } from '@atlaskit/linking-common';
|
|
2
|
+
import { Skeleton } from '@atlaskit/linking-common/skeleton';
|
|
3
3
|
export const AssetsAqlSearchInputSkeleton = () => /*#__PURE__*/React.createElement(Skeleton, {
|
|
4
4
|
width: "100%",
|
|
5
5
|
height: "40px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Skeleton } from '@atlaskit/linking-common';
|
|
2
|
+
import { Skeleton } from '@atlaskit/linking-common/skeleton';
|
|
3
3
|
export const AssetsObjectSchemaSelectSkeleton = () => /*#__PURE__*/React.createElement(Skeleton, {
|
|
4
4
|
width: "100%",
|
|
5
5
|
height: "40px",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-loading-error.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* modal-loading-error.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./modal-loading-error.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* provider-auth-required-svg.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* provider-auth-required-svg.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./provider-auth-required-svg.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* provider-auth-required.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* provider-auth-required.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./provider-auth-required.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* smart-card-placeholder.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* smart-card-placeholder.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./smart-card-placeholder.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* display-view-drop-down.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* display-view-drop-down.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./display-view-drop-down.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* DatasourceViewModeDropDown.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* DatasourceViewModeDropDown.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { DatasourceAction } from '../../../../analytics/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ModeSwitcher.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ModeSwitcher.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ModeSwitcher.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* CustomControl.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* CustomControl.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./CustomControl.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* custom-checkbox-option.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* custom-checkbox-option.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./custom-checkbox-option.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -4,7 +4,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
6
6
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
7
|
-
import CustomControl from './
|
|
7
|
+
import { CustomControl } from './CustomControl';
|
|
8
8
|
import { CustomCheckboxOption } from './custom-checkbox-option';
|
|
9
9
|
import CustomDropdownIndicator from './dropdownIndicator';
|
|
10
10
|
import PopupFooter from './footer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PopupComponent.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* PopupComponent.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./PopupComponent.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useRef, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
3
|
+
import getUserRecommendations from '@atlaskit/smart-user-picker/recommendation-client';
|
|
4
4
|
const useRecommendation = () => {
|
|
5
5
|
const intl = useIntl();
|
|
6
6
|
const [filterOptions, setFilterOptions] = useState([]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|