diff --git a/package.json b/package.json index d2a1b71c9915c..d615eddb2838b 100644 --- a/package.json +++ b/package.json @@ -167,10 +167,10 @@ "@kbn/securitysolution-utils": "link:bazel-bin/packages/kbn-securitysolution-utils", "@kbn/server-http-tools": "link:bazel-bin/packages/kbn-server-http-tools", "@kbn/server-route-repository": "link:bazel-bin/packages/kbn-server-route-repository", - "@kbn/sharedux-components": "link:bazel-bin/packages/kbn-sharedux-components", - "@kbn/sharedux-services": "link:bazel-bin/packages/kbn-sharedux-services", - "@kbn/sharedux-storybook": "link:bazel-bin/packages/kbn-sharedux-storybook", - "@kbn/sharedux-utility": "link:bazel-bin/packages/kbn-sharedux-utility", + "@kbn/shared-ux-components": "link:bazel-bin/packages/kbn-shared-ux-components", + "@kbn/shared-ux-services": "link:bazel-bin/packages/kbn-shared-ux-services", + "@kbn/shared-ux-storybook": "link:bazel-bin/packages/kbn-shared-ux-storybook", + "@kbn/shared-ux-utility": "link:bazel-bin/packages/kbn-shared-ux-utility", "@kbn/std": "link:bazel-bin/packages/kbn-std", "@kbn/timelion-grammar": "link:bazel-bin/packages/kbn-timelion-grammar", "@kbn/tinymath": "link:bazel-bin/packages/kbn-tinymath", @@ -200,10 +200,10 @@ "@turf/helpers": "6.0.1", "@turf/length": "^6.0.2", "@types/jsonwebtoken": "^8.5.6", - "@types/kbn__sharedux-components": "link:bazel-bin/packages/kbn-sharedux-components/npm_module_types", - "@types/kbn__sharedux-services": "link:bazel-bin/packages/kbn-sharedux-services/npm_module_types", - "@types/kbn__sharedux-storybook": "link:bazel-bin/packages/kbn-sharedux-storybook/npm_module_types", - "@types/kbn__sharedux-utility": "link:bazel-bin/packages/kbn-sharedux-utility/npm_module_types", + "@types/kbn__shared-ux-components": "link:bazel-bin/packages/kbn-shared-ux-components/npm_module_types", + "@types/kbn__shared-ux-services": "link:bazel-bin/packages/kbn-shared-ux-services/npm_module_types", + "@types/kbn__shared-ux-storybook": "link:bazel-bin/packages/kbn-shared-ux-storybook/npm_module_types", + "@types/kbn__shared-ux-utility": "link:bazel-bin/packages/kbn-shared-ux-utility/npm_module_types", "@types/moment-duration-format": "^2.2.3", "JSONStream": "1.3.5", "abort-controller": "^3.0.0", diff --git a/packages/BUILD.bazel b/packages/BUILD.bazel index 736422a8beed2..77ddecc232137 100644 --- a/packages/BUILD.bazel +++ b/packages/BUILD.bazel @@ -65,10 +65,10 @@ filegroup( "//packages/kbn-securitysolution-utils:build", "//packages/kbn-server-http-tools:build", "//packages/kbn-server-route-repository:build", - "//packages/kbn-sharedux-components:build", - "//packages/kbn-sharedux-services:build", - "//packages/kbn-sharedux-storybook:build", - "//packages/kbn-sharedux-utility:build", + "//packages/kbn-shared-ux-components:build", + "//packages/kbn-shared-ux-services:build", + "//packages/kbn-shared-ux-storybook:build", + "//packages/kbn-shared-ux-utility:build", "//packages/kbn-spec-to-console:build", "//packages/kbn-std:build", "//packages/kbn-storybook:build", @@ -142,10 +142,10 @@ filegroup( "//packages/kbn-securitysolution-utils:build_types", "//packages/kbn-server-http-tools:build_types", "//packages/kbn-server-route-repository:build_types", - "//packages/kbn-sharedux-components:build_types", - "//packages/kbn-sharedux-services:build_types", - "//packages/kbn-sharedux-storybook:build_types", - "//packages/kbn-sharedux-utility:build_types", + "//packages/kbn-shared-ux-components:build_types", + "//packages/kbn-shared-ux-services:build_types", + "//packages/kbn-shared-ux-storybook:build_types", + "//packages/kbn-shared-ux-utility:build_types", "//packages/kbn-std:build_types", "//packages/kbn-storybook:build_types", "//packages/kbn-telemetry-tools:build_types", diff --git a/packages/kbn-sharedux-components/BUILD.bazel b/packages/kbn-shared-ux-components/BUILD.bazel similarity index 88% rename from packages/kbn-sharedux-components/BUILD.bazel rename to packages/kbn-shared-ux-components/BUILD.bazel index 743f833994106..4efbeefc1d7cc 100644 --- a/packages/kbn-sharedux-components/BUILD.bazel +++ b/packages/kbn-shared-ux-components/BUILD.bazel @@ -2,13 +2,14 @@ load("@npm//@bazel/typescript:index.bzl", "ts_config") load("@build_bazel_rules_nodejs//:index.bzl", "js_library") load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project") -PKG_DIRNAME = "kbn-sharedux-components" -PKG_REQUIRE_NAME = "@kbn/sharedux-components" +PKG_DIRNAME = "kbn-shared-ux-components" +PKG_REQUIRE_NAME = "@kbn/shared-ux-components" SOURCE_FILES = glob( [ "src/**/*.ts", "src/**/*.tsx", + "src/**/*.scss", ], exclude = [ "**/*.test.*", @@ -43,9 +44,9 @@ RUNTIME_DEPS = [ "@npm//@emotion/css", "@npm//classnames", "@npm//@storybook/addon-actions", - "//packages/kbn-sharedux-services", - "//packages/kbn-sharedux-storybook", - "//packages/kbn-sharedux-utility", + "//packages/kbn-shared-ux-services", + "//packages/kbn-shared-ux-storybook", + "//packages/kbn-shared-ux-utility", "//packages/kbn-i18n", "//packages/kbn-i18n-react", ] @@ -68,9 +69,9 @@ TYPES_DEPS = [ "@npm//@emotion/css", "@npm//@storybook/addon-actions", "@npm//@types/classnames", - "//packages/kbn-sharedux-services:npm_module_types", - "//packages/kbn-sharedux-storybook:npm_module_types", - "//packages/kbn-sharedux-utility:npm_module_types", + "//packages/kbn-shared-ux-services:npm_module_types", + "//packages/kbn-shared-ux-storybook:npm_module_types", + "//packages/kbn-shared-ux-utility:npm_module_types", "//packages/kbn-i18n:npm_module_types", "//packages/kbn-i18n-react:npm_module_types", ] diff --git a/packages/kbn-sharedux-components/README.md b/packages/kbn-shared-ux-components/README.md similarity index 60% rename from packages/kbn-sharedux-components/README.md rename to packages/kbn-shared-ux-components/README.md index 54ae9efcc22f1..95ae0e99e7765 100644 --- a/packages/kbn-sharedux-components/README.md +++ b/packages/kbn-shared-ux-components/README.md @@ -1,3 +1,3 @@ -# @kbn/sharedux-components +# @kbn/shared-ux-components Empty package generated by @kbn/generate diff --git a/packages/kbn-sharedux-storybook/jest.config.js b/packages/kbn-shared-ux-components/jest.config.js similarity index 87% rename from packages/kbn-sharedux-storybook/jest.config.js rename to packages/kbn-shared-ux-components/jest.config.js index 33906ec0d74ef..c2ac8c3a57106 100644 --- a/packages/kbn-sharedux-storybook/jest.config.js +++ b/packages/kbn-shared-ux-components/jest.config.js @@ -9,5 +9,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../..', - roots: ['/packages/kbn-sharedux-storybook'], + roots: ['/packages/kbn-shared-ux-components'], }; diff --git a/packages/kbn-sharedux-components/package.json b/packages/kbn-shared-ux-components/package.json similarity index 80% rename from packages/kbn-sharedux-components/package.json rename to packages/kbn-shared-ux-components/package.json index 1cb3cac8c1397..56ba66c7a3e0b 100644 --- a/packages/kbn-sharedux-components/package.json +++ b/packages/kbn-shared-ux-components/package.json @@ -1,8 +1,8 @@ { - "name": "@kbn/sharedux-components", + "name": "@kbn/shared-ux-components", "private": true, "version": "1.0.0", "main": "./target_node/index.js", "browser": "./target_web/index.js", "license": "SSPL-1.0 OR Elastic License 2.0" -} +} \ No newline at end of file diff --git a/packages/kbn-sharedux-components/src/empty_state/assets/data_view_illustration.tsx b/packages/kbn-shared-ux-components/src/empty_state/assets/data_view_illustration.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/assets/data_view_illustration.tsx rename to packages/kbn-shared-ux-components/src/empty_state/assets/data_view_illustration.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/assets/index.tsx b/packages/kbn-shared-ux-components/src/empty_state/assets/index.tsx similarity index 93% rename from packages/kbn-sharedux-components/src/empty_state/assets/index.tsx rename to packages/kbn-shared-ux-components/src/empty_state/assets/index.tsx index d0e2d224772ed..939adc8bfac66 100644 --- a/packages/kbn-sharedux-components/src/empty_state/assets/index.tsx +++ b/packages/kbn-shared-ux-components/src/empty_state/assets/index.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { EuiLoadingSpinner } from '@elastic/eui'; -import { withSuspense } from '@kbn/sharedux-utility'; +import { withSuspense } from '@kbn/shared-ux-utility'; export const LazyDataViewIllustration = React.lazy(() => import('../assets/data_view_illustration').then(({ DataViewIllustration }) => ({ diff --git a/packages/kbn-sharedux-components/src/empty_state/index.tsx b/packages/kbn-shared-ux-components/src/empty_state/index.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/index.tsx rename to packages/kbn-shared-ux-components/src/empty_state/index.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/__snapshots__/documentation_link.test.tsx.snap b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/__snapshots__/documentation_link.test.tsx.snap similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/__snapshots__/documentation_link.test.tsx.snap rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/__snapshots__/documentation_link.test.tsx.snap diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/documentation_link.test.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/documentation_link.test.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/documentation_link.test.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/documentation_link.test.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/documentation_link.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/documentation_link.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/documentation_link.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/documentation_link.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/index.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/index.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/index.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/index.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.component.test.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.component.test.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.component.test.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.component.test.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.component.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.component.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.component.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.component.tsx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.mdx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.mdx similarity index 100% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.mdx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.mdx diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.stories.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.stories.tsx similarity index 95% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.stories.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.stories.tsx index da656cef1d6d8..641d8e1cd0e28 100644 --- a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.stories.tsx +++ b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.stories.tsx @@ -7,7 +7,7 @@ */ import React from 'react'; import { action } from '@storybook/addon-actions'; -import { docLinksServiceFactory } from '@kbn/sharedux-storybook'; +import { docLinksServiceFactory } from '@kbn/shared-ux-storybook'; import { NoDataViews as NoDataViewsComponent, Props } from './no_data_views.component'; import { NoDataViews } from './no_data_views'; diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.test.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.test.tsx similarity index 97% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.test.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.test.tsx index 22fb2620b02c0..e9fca952ff242 100644 --- a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.test.tsx +++ b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.test.tsx @@ -15,7 +15,7 @@ import { SharedUXServicesProvider, SharedUXServices, mockServiceFactories, -} from '@kbn/sharedux-services'; +} from '@kbn/shared-ux-services'; import { NoDataViews } from './no_data_views'; diff --git a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.tsx b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.tsx similarity index 94% rename from packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.tsx rename to packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.tsx index a41b9840605c6..3489b98da03e8 100644 --- a/packages/kbn-sharedux-components/src/empty_state/no_data_views/no_data_views.tsx +++ b/packages/kbn-shared-ux-components/src/empty_state/no_data_views/no_data_views.tsx @@ -7,8 +7,8 @@ */ import React, { useCallback, useEffect, useRef } from 'react'; -import { useEditors, usePermissions } from '@kbn/sharedux-services'; -import type { SharedUXEditorsService } from '@kbn/sharedux-services'; +import { useEditors, usePermissions } from '@kbn/shared-ux-services'; +import type { SharedUXEditorsService } from '@kbn/shared-ux-services'; import { NoDataViews as NoDataViewsComponent } from './no_data_views.component'; diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/__snapshots__/exit_full_screen_button.test.tsx.snap b/packages/kbn-shared-ux-components/src/exit_full_screen_button/__snapshots__/exit_full_screen_button.test.tsx.snap similarity index 100% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/__snapshots__/exit_full_screen_button.test.tsx.snap rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/__snapshots__/exit_full_screen_button.test.tsx.snap diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.component.tsx b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.component.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.component.tsx rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.component.tsx diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.mdx b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.mdx similarity index 100% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.mdx rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.mdx diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.scss b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.scss similarity index 100% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.scss rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.scss diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.stories.tsx b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.stories.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.stories.tsx rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.stories.tsx diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.test.tsx b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.test.tsx similarity index 98% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.test.tsx rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.test.tsx index 02e38fc049f0c..a6e55ca8c759d 100644 --- a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.test.tsx +++ b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.test.tsx @@ -13,7 +13,7 @@ import { SharedUXServicesProvider, SharedUXServices, mockServiceFactories, -} from '@kbn/sharedux-services'; +} from '@kbn/shared-ux-services'; import { ExitFullScreenButton } from './exit_full_screen_button'; diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.tsx b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.tsx similarity index 97% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.tsx rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.tsx index b5e8faeb710b6..30deaaa86f4c5 100644 --- a/packages/kbn-sharedux-components/src/exit_full_screen_button/exit_full_screen_button.tsx +++ b/packages/kbn-shared-ux-components/src/exit_full_screen_button/exit_full_screen_button.tsx @@ -10,7 +10,7 @@ import React, { useCallback, useEffect } from 'react'; import { useEuiTheme, keys } from '@elastic/eui'; import { css } from '@emotion/react'; -import { usePlatformService } from '@kbn/sharedux-services'; +import { usePlatformService } from '@kbn/shared-ux-services'; import { ExitFullScreenButton as Component } from './exit_full_screen_button.component'; diff --git a/packages/kbn-sharedux-components/src/exit_full_screen_button/index.ts b/packages/kbn-shared-ux-components/src/exit_full_screen_button/index.ts similarity index 100% rename from packages/kbn-sharedux-components/src/exit_full_screen_button/index.ts rename to packages/kbn-shared-ux-components/src/exit_full_screen_button/index.ts diff --git a/packages/kbn-sharedux-components/src/index.ts b/packages/kbn-shared-ux-components/src/index.ts similarity index 97% rename from packages/kbn-sharedux-components/src/index.ts rename to packages/kbn-shared-ux-components/src/index.ts index d70569d5ef473..b6c5742801bb8 100755 --- a/packages/kbn-sharedux-components/src/index.ts +++ b/packages/kbn-shared-ux-components/src/index.ts @@ -7,7 +7,7 @@ */ import React from 'react'; -import { withSuspense } from '@kbn/sharedux-utility'; +import { withSuspense } from '@kbn/shared-ux-utility'; /** * The Lazily-loaded `ExitFullScreenButton` component. Consumers should use `React.Suspennse` or the diff --git a/packages/kbn-sharedux-components/src/mdx.d.ts b/packages/kbn-shared-ux-components/src/mdx.d.ts similarity index 100% rename from packages/kbn-sharedux-components/src/mdx.d.ts rename to packages/kbn-shared-ux-components/src/mdx.d.ts diff --git a/src/plugins/shared_ux/public/components/page_template/index.tsx b/packages/kbn-shared-ux-components/src/page_template/index.ts similarity index 85% rename from src/plugins/shared_ux/public/components/page_template/index.tsx rename to packages/kbn-shared-ux-components/src/page_template/index.ts index 1f686183c2edb..b77bd9cafe0fb 100644 --- a/src/plugins/shared_ux/public/components/page_template/index.tsx +++ b/packages/kbn-shared-ux-components/src/page_template/index.ts @@ -6,4 +6,4 @@ * Side Public License, v 1. */ -export { NoDataCard } from './no_data_page/no_data_card'; +export { NoDataCard } from './no_data_page'; diff --git a/packages/kbn-shared-ux-components/src/page_template/no_data_page/index.ts b/packages/kbn-shared-ux-components/src/page_template/no_data_page/index.ts new file mode 100644 index 0000000000000..8f878379e8236 --- /dev/null +++ b/packages/kbn-shared-ux-components/src/page_template/no_data_page/index.ts @@ -0,0 +1,9 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +export { NoDataCard } from './no_data_card'; diff --git a/src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap similarity index 100% rename from src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap rename to packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap diff --git a/src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/index.ts b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/index.ts similarity index 100% rename from src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/index.ts rename to packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/index.ts diff --git a/src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/no_data_card.stories.tsx b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/no_data_card.stories.tsx similarity index 100% rename from src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/no_data_card.stories.tsx rename to packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/no_data_card.stories.tsx diff --git a/src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/no_data_card.test.tsx b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/no_data_card.test.tsx similarity index 100% rename from src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/no_data_card.test.tsx rename to packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/no_data_card.test.tsx diff --git a/src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/no_data_card.tsx b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/no_data_card.tsx similarity index 100% rename from src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/no_data_card.tsx rename to packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/no_data_card.tsx diff --git a/src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/types.ts b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/types.ts similarity index 100% rename from src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card/types.ts rename to packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/types.ts diff --git a/packages/kbn-sharedux-components/src/toolbar/index.ts b/packages/kbn-shared-ux-components/src/toolbar/index.ts similarity index 100% rename from packages/kbn-sharedux-components/src/toolbar/index.ts rename to packages/kbn-shared-ux-components/src/toolbar/index.ts diff --git a/packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/__snapshots__/primary.test.tsx.snap b/packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/__snapshots__/primary.test.tsx.snap similarity index 100% rename from packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/__snapshots__/primary.test.tsx.snap rename to packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/__snapshots__/primary.test.tsx.snap diff --git a/packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.mdx b/packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.mdx similarity index 100% rename from packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.mdx rename to packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.mdx diff --git a/packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.stories.tsx b/packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.stories.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.stories.tsx rename to packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.stories.tsx diff --git a/packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.test.tsx b/packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.test.tsx similarity index 97% rename from packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.test.tsx rename to packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.test.tsx index 529917e30ca46..7a24bac571321 100644 --- a/packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.test.tsx +++ b/packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.test.tsx @@ -13,7 +13,7 @@ import { SharedUXServicesProvider, SharedUXServices, mockServiceFactories, -} from '@kbn/sharedux-services'; +} from '@kbn/shared-ux-services'; import { SolutionToolbarButton } from './primary'; diff --git a/packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.tsx b/packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.tsx similarity index 100% rename from packages/kbn-sharedux-components/src/toolbar/solution_toolbar/button/primary.tsx rename to packages/kbn-shared-ux-components/src/toolbar/solution_toolbar/button/primary.tsx diff --git a/packages/kbn-sharedux-components/tsconfig.json b/packages/kbn-shared-ux-components/tsconfig.json similarity index 100% rename from packages/kbn-sharedux-components/tsconfig.json rename to packages/kbn-shared-ux-components/tsconfig.json diff --git a/packages/kbn-sharedux-services/BUILD.bazel b/packages/kbn-shared-ux-services/BUILD.bazel similarity index 96% rename from packages/kbn-sharedux-services/BUILD.bazel rename to packages/kbn-shared-ux-services/BUILD.bazel index 66dd6dea5209a..5435068eaf515 100755 --- a/packages/kbn-sharedux-services/BUILD.bazel +++ b/packages/kbn-shared-ux-services/BUILD.bazel @@ -2,8 +2,8 @@ load("@npm//@bazel/typescript:index.bzl", "ts_config") load("@build_bazel_rules_nodejs//:index.bzl", "js_library") load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project") -PKG_DIRNAME = "kbn-sharedux-services" -PKG_REQUIRE_NAME = "@kbn/sharedux-services" +PKG_DIRNAME = "kbn-shared-ux-services" +PKG_REQUIRE_NAME = "@kbn/shared-ux-services" SOURCE_FILES = glob( [ diff --git a/packages/kbn-shared-ux-services/README.md b/packages/kbn-shared-ux-services/README.md new file mode 100755 index 0000000000000..c5b0cd7f55437 --- /dev/null +++ b/packages/kbn-shared-ux-services/README.md @@ -0,0 +1,3 @@ +# @kbn/shared-ux-services + +> TODO diff --git a/packages/kbn-sharedux-services/jest.config.js b/packages/kbn-shared-ux-services/jest.config.js similarity index 88% rename from packages/kbn-sharedux-services/jest.config.js rename to packages/kbn-shared-ux-services/jest.config.js index 958ae147ec2b8..f1ef008d0f62d 100755 --- a/packages/kbn-sharedux-services/jest.config.js +++ b/packages/kbn-shared-ux-services/jest.config.js @@ -9,5 +9,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../..', - roots: ['/packages/kbn-sharedux-services'], + roots: ['/packages/kbn-shared-ux-services'], }; diff --git a/packages/kbn-sharedux-services/package.json b/packages/kbn-shared-ux-services/package.json similarity index 81% rename from packages/kbn-sharedux-services/package.json rename to packages/kbn-shared-ux-services/package.json index 3f199b0e07c12..64482ab1acfd8 100755 --- a/packages/kbn-sharedux-services/package.json +++ b/packages/kbn-shared-ux-services/package.json @@ -1,8 +1,8 @@ { - "name": "@kbn/sharedux-services", + "name": "@kbn/shared-ux-services", "private": true, "version": "1.0.0", "main": "./target_node/index.js", "browser": "./target_web/index.js", "license": "SSPL-1.0 OR Elastic License 2.0" -} +} \ No newline at end of file diff --git a/packages/kbn-sharedux-services/src/index.ts b/packages/kbn-shared-ux-services/src/index.ts similarity index 100% rename from packages/kbn-sharedux-services/src/index.ts rename to packages/kbn-shared-ux-services/src/index.ts diff --git a/packages/kbn-sharedux-services/src/services/doc_links.ts b/packages/kbn-shared-ux-services/src/services/doc_links.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/doc_links.ts rename to packages/kbn-shared-ux-services/src/services/doc_links.ts diff --git a/packages/kbn-sharedux-services/src/services/editors.ts b/packages/kbn-shared-ux-services/src/services/editors.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/editors.ts rename to packages/kbn-shared-ux-services/src/services/editors.ts diff --git a/packages/kbn-sharedux-services/src/services/index.tsx b/packages/kbn-shared-ux-services/src/services/index.tsx similarity index 100% rename from packages/kbn-sharedux-services/src/services/index.tsx rename to packages/kbn-shared-ux-services/src/services/index.tsx diff --git a/packages/kbn-sharedux-services/src/services/mocks/doc_links.mock.ts b/packages/kbn-shared-ux-services/src/services/mocks/doc_links.mock.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/mocks/doc_links.mock.ts rename to packages/kbn-shared-ux-services/src/services/mocks/doc_links.mock.ts diff --git a/packages/kbn-sharedux-services/src/services/mocks/editors.mock.ts b/packages/kbn-shared-ux-services/src/services/mocks/editors.mock.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/mocks/editors.mock.ts rename to packages/kbn-shared-ux-services/src/services/mocks/editors.mock.ts diff --git a/packages/kbn-sharedux-services/src/services/mocks/index.ts b/packages/kbn-shared-ux-services/src/services/mocks/index.ts similarity index 97% rename from packages/kbn-sharedux-services/src/services/mocks/index.ts rename to packages/kbn-shared-ux-services/src/services/mocks/index.ts index ec369338edba0..da7bda80f4ee4 100644 --- a/packages/kbn-sharedux-services/src/services/mocks/index.ts +++ b/packages/kbn-shared-ux-services/src/services/mocks/index.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import type { SharedUXServices } from '../.'; +import type { SharedUXServices } from '..'; import { ServiceFactory } from '../types'; import { docLinksServiceFactory } from './doc_links.mock'; diff --git a/packages/kbn-sharedux-services/src/services/mocks/permissions.mock.ts b/packages/kbn-shared-ux-services/src/services/mocks/permissions.mock.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/mocks/permissions.mock.ts rename to packages/kbn-shared-ux-services/src/services/mocks/permissions.mock.ts diff --git a/packages/kbn-sharedux-services/src/services/mocks/platform.mock.ts b/packages/kbn-shared-ux-services/src/services/mocks/platform.mock.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/mocks/platform.mock.ts rename to packages/kbn-shared-ux-services/src/services/mocks/platform.mock.ts diff --git a/packages/kbn-sharedux-services/src/services/permissions.ts b/packages/kbn-shared-ux-services/src/services/permissions.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/permissions.ts rename to packages/kbn-shared-ux-services/src/services/permissions.ts diff --git a/packages/kbn-sharedux-services/src/services/platform.ts b/packages/kbn-shared-ux-services/src/services/platform.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/platform.ts rename to packages/kbn-shared-ux-services/src/services/platform.ts diff --git a/packages/kbn-sharedux-services/src/services/stub/doc_links.ts b/packages/kbn-shared-ux-services/src/services/stub/doc_links.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/stub/doc_links.ts rename to packages/kbn-shared-ux-services/src/services/stub/doc_links.ts diff --git a/packages/kbn-sharedux-services/src/services/stub/editors.ts b/packages/kbn-shared-ux-services/src/services/stub/editors.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/stub/editors.ts rename to packages/kbn-shared-ux-services/src/services/stub/editors.ts diff --git a/packages/kbn-sharedux-services/src/services/stub/index.ts b/packages/kbn-shared-ux-services/src/services/stub/index.ts similarity index 96% rename from packages/kbn-sharedux-services/src/services/stub/index.ts rename to packages/kbn-shared-ux-services/src/services/stub/index.ts index 70a71bce74409..cfd6d73f2f775 100644 --- a/packages/kbn-sharedux-services/src/services/stub/index.ts +++ b/packages/kbn-shared-ux-services/src/services/stub/index.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import type { SharedUXServices } from '../.'; +import type { SharedUXServices } from '..'; import { ServiceFactory } from '../types'; import { platformServiceFactory } from './platform'; import { userPermissionsServiceFactory } from './permissions'; diff --git a/packages/kbn-sharedux-services/src/services/stub/permissions.ts b/packages/kbn-shared-ux-services/src/services/stub/permissions.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/stub/permissions.ts rename to packages/kbn-shared-ux-services/src/services/stub/permissions.ts diff --git a/packages/kbn-sharedux-services/src/services/stub/platform.ts b/packages/kbn-shared-ux-services/src/services/stub/platform.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/stub/platform.ts rename to packages/kbn-shared-ux-services/src/services/stub/platform.ts diff --git a/packages/kbn-sharedux-services/src/services/types.ts b/packages/kbn-shared-ux-services/src/services/types.ts similarity index 100% rename from packages/kbn-sharedux-services/src/services/types.ts rename to packages/kbn-shared-ux-services/src/services/types.ts diff --git a/packages/kbn-sharedux-services/src/types.ts b/packages/kbn-shared-ux-services/src/types.ts similarity index 100% rename from packages/kbn-sharedux-services/src/types.ts rename to packages/kbn-shared-ux-services/src/types.ts diff --git a/packages/kbn-sharedux-services/tsconfig.json b/packages/kbn-shared-ux-services/tsconfig.json similarity index 100% rename from packages/kbn-sharedux-services/tsconfig.json rename to packages/kbn-shared-ux-services/tsconfig.json diff --git a/packages/kbn-sharedux-storybook/BUILD.bazel b/packages/kbn-shared-ux-storybook/BUILD.bazel similarity index 93% rename from packages/kbn-sharedux-storybook/BUILD.bazel rename to packages/kbn-shared-ux-storybook/BUILD.bazel index 495376e3bc895..ca73cf97be376 100644 --- a/packages/kbn-sharedux-storybook/BUILD.bazel +++ b/packages/kbn-shared-ux-storybook/BUILD.bazel @@ -2,8 +2,8 @@ load("@npm//@bazel/typescript:index.bzl", "ts_config") load("@build_bazel_rules_nodejs//:index.bzl", "js_library") load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project") -PKG_DIRNAME = "kbn-sharedux-storybook" -PKG_REQUIRE_NAME = "@kbn/sharedux-storybook" +PKG_DIRNAME = "kbn-shared-ux-storybook" +PKG_REQUIRE_NAME = "@kbn/shared-ux-storybook" SOURCE_FILES = glob( [ @@ -37,7 +37,7 @@ NPM_MODULE_EXTRA_FILES = [ # "@npm//name-of-package" # eg. "@npm//lodash" RUNTIME_DEPS = [ - "//packages/kbn-sharedux-services", + "//packages/kbn-shared-ux-services", "//packages/kbn-storybook", "@npm//@storybook/react", ] @@ -55,7 +55,7 @@ TYPES_DEPS = [ "@npm//@types/node", "@npm//@types/jest", "@npm//@storybook/react", - "//packages/kbn-sharedux-services:npm_module_types", + "//packages/kbn-shared-ux-services:npm_module_types", "//packages/kbn-storybook:npm_module_types", ] diff --git a/packages/kbn-shared-ux-storybook/README.md b/packages/kbn-shared-ux-storybook/README.md new file mode 100644 index 0000000000000..23e1c9e0d9a33 --- /dev/null +++ b/packages/kbn-shared-ux-storybook/README.md @@ -0,0 +1,3 @@ +# @kbn/shared-ux-storybook + +> TODO \ No newline at end of file diff --git a/packages/kbn-sharedux-components/jest.config.js b/packages/kbn-shared-ux-storybook/jest.config.js similarity index 88% rename from packages/kbn-sharedux-components/jest.config.js rename to packages/kbn-shared-ux-storybook/jest.config.js index 7b9210a3ab79b..91285e025f069 100644 --- a/packages/kbn-sharedux-components/jest.config.js +++ b/packages/kbn-shared-ux-storybook/jest.config.js @@ -9,5 +9,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../..', - roots: ['/packages/kbn-sharedux-components'], + roots: ['/packages/kbn-shared-ux-storybook'], }; diff --git a/packages/kbn-sharedux-storybook/package.json b/packages/kbn-shared-ux-storybook/package.json similarity index 80% rename from packages/kbn-sharedux-storybook/package.json rename to packages/kbn-shared-ux-storybook/package.json index 372bc054c2e1a..6fd5ed95f98d0 100644 --- a/packages/kbn-sharedux-storybook/package.json +++ b/packages/kbn-shared-ux-storybook/package.json @@ -1,8 +1,8 @@ { - "name": "@kbn/sharedux-storybook", + "name": "@kbn/shared-ux-storybook", "private": true, "version": "1.0.0", "main": "./target_node/index.js", "browser": "./target_web/index.js", "license": "SSPL-1.0 OR Elastic License 2.0" -} +} \ No newline at end of file diff --git a/packages/kbn-sharedux-storybook/src/decorators.tsx b/packages/kbn-shared-ux-storybook/src/decorators.tsx similarity index 91% rename from packages/kbn-sharedux-storybook/src/decorators.tsx rename to packages/kbn-shared-ux-storybook/src/decorators.tsx index 07372ea3242be..542ff86db6269 100644 --- a/packages/kbn-sharedux-storybook/src/decorators.tsx +++ b/packages/kbn-shared-ux-storybook/src/decorators.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { DecoratorFn } from '@storybook/react'; -import { SharedUXServicesProvider } from '@kbn/sharedux-services'; +import { SharedUXServicesProvider } from '@kbn/shared-ux-services'; import { servicesFactory } from './services'; /** diff --git a/packages/kbn-sharedux-storybook/src/file_system_cache.d.ts b/packages/kbn-shared-ux-storybook/src/file_system_cache.d.ts similarity index 100% rename from packages/kbn-sharedux-storybook/src/file_system_cache.d.ts rename to packages/kbn-shared-ux-storybook/src/file_system_cache.d.ts diff --git a/packages/kbn-sharedux-storybook/src/index.ts b/packages/kbn-shared-ux-storybook/src/index.ts similarity index 100% rename from packages/kbn-sharedux-storybook/src/index.ts rename to packages/kbn-shared-ux-storybook/src/index.ts diff --git a/packages/kbn-sharedux-storybook/src/mdx.d.ts b/packages/kbn-shared-ux-storybook/src/mdx.d.ts similarity index 100% rename from packages/kbn-sharedux-storybook/src/mdx.d.ts rename to packages/kbn-shared-ux-storybook/src/mdx.d.ts diff --git a/packages/kbn-sharedux-storybook/src/services/doc_links.ts b/packages/kbn-shared-ux-storybook/src/services/doc_links.ts similarity index 97% rename from packages/kbn-sharedux-storybook/src/services/doc_links.ts rename to packages/kbn-shared-ux-storybook/src/services/doc_links.ts index aab2b61b5555f..2d4699e705700 100644 --- a/packages/kbn-sharedux-storybook/src/services/doc_links.ts +++ b/packages/kbn-shared-ux-storybook/src/services/doc_links.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ServiceFactory, SharedUXDocLinksService } from '@kbn/sharedux-services'; +import { ServiceFactory, SharedUXDocLinksService } from '@kbn/shared-ux-services'; export type SharedUXDocLinksServiceFactory = ServiceFactory; diff --git a/packages/kbn-sharedux-storybook/src/services/editors.ts b/packages/kbn-shared-ux-storybook/src/services/editors.ts similarity index 97% rename from packages/kbn-sharedux-storybook/src/services/editors.ts rename to packages/kbn-shared-ux-storybook/src/services/editors.ts index ad9d34e2cac11..3da4159836c45 100644 --- a/packages/kbn-sharedux-storybook/src/services/editors.ts +++ b/packages/kbn-shared-ux-storybook/src/services/editors.ts @@ -7,7 +7,7 @@ */ import { action } from '@storybook/addon-actions'; -import { ServiceFactory, SharedUXEditorsService } from '@kbn/sharedux-services'; +import { ServiceFactory, SharedUXEditorsService } from '@kbn/shared-ux-services'; export type SharedUXEditorsServiceFactory = ServiceFactory; diff --git a/packages/kbn-sharedux-storybook/src/services/index.ts b/packages/kbn-shared-ux-storybook/src/services/index.ts similarity index 93% rename from packages/kbn-sharedux-storybook/src/services/index.ts rename to packages/kbn-shared-ux-storybook/src/services/index.ts index ae81b19665de9..6d9150496843f 100644 --- a/packages/kbn-sharedux-storybook/src/services/index.ts +++ b/packages/kbn-shared-ux-storybook/src/services/index.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ServiceFactory, SharedUXServices } from '@kbn/sharedux-services'; +import { ServiceFactory, SharedUXServices } from '@kbn/shared-ux-services'; import { platformServiceFactory } from './platform'; import { editorsServiceFactory } from './editors'; diff --git a/packages/kbn-sharedux-storybook/src/services/permissions.ts b/packages/kbn-shared-ux-storybook/src/services/permissions.ts similarity index 96% rename from packages/kbn-sharedux-storybook/src/services/permissions.ts rename to packages/kbn-shared-ux-storybook/src/services/permissions.ts index 8a49dbfaaf3a5..9fa40c013dcd2 100644 --- a/packages/kbn-sharedux-storybook/src/services/permissions.ts +++ b/packages/kbn-shared-ux-storybook/src/services/permissions.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ServiceFactory, SharedUXUserPermissionsService } from '@kbn/sharedux-services'; +import { ServiceFactory, SharedUXUserPermissionsService } from '@kbn/shared-ux-services'; export type SharedUXUserPermissionsServiceFactory = ServiceFactory; diff --git a/packages/kbn-sharedux-storybook/src/services/platform.ts b/packages/kbn-shared-ux-storybook/src/services/platform.ts similarity index 97% rename from packages/kbn-sharedux-storybook/src/services/platform.ts rename to packages/kbn-shared-ux-storybook/src/services/platform.ts index af977d46b818e..052037f6c4874 100644 --- a/packages/kbn-sharedux-storybook/src/services/platform.ts +++ b/packages/kbn-shared-ux-storybook/src/services/platform.ts @@ -7,7 +7,7 @@ */ import { action } from '@storybook/addon-actions'; -import { ServiceFactory, SharedUXPlatformService } from '@kbn/sharedux-services'; +import { ServiceFactory, SharedUXPlatformService } from '@kbn/shared-ux-services'; /** * A factory function for creating a Storybook-based implementation of `SharedUXPlatformService`. diff --git a/packages/kbn-sharedux-storybook/src/storybook/main.ts b/packages/kbn-shared-ux-storybook/src/storybook/main.ts similarity index 100% rename from packages/kbn-sharedux-storybook/src/storybook/main.ts rename to packages/kbn-shared-ux-storybook/src/storybook/main.ts diff --git a/packages/kbn-sharedux-storybook/src/storybook/manager.ts b/packages/kbn-shared-ux-storybook/src/storybook/manager.ts similarity index 100% rename from packages/kbn-sharedux-storybook/src/storybook/manager.ts rename to packages/kbn-shared-ux-storybook/src/storybook/manager.ts diff --git a/packages/kbn-sharedux-storybook/src/storybook/preview.ts b/packages/kbn-shared-ux-storybook/src/storybook/preview.ts similarity index 100% rename from packages/kbn-sharedux-storybook/src/storybook/preview.ts rename to packages/kbn-shared-ux-storybook/src/storybook/preview.ts diff --git a/packages/kbn-sharedux-storybook/tsconfig.json b/packages/kbn-shared-ux-storybook/tsconfig.json similarity index 100% rename from packages/kbn-sharedux-storybook/tsconfig.json rename to packages/kbn-shared-ux-storybook/tsconfig.json diff --git a/packages/kbn-sharedux-utility/BUILD.bazel b/packages/kbn-shared-ux-utility/BUILD.bazel similarity index 96% rename from packages/kbn-sharedux-utility/BUILD.bazel rename to packages/kbn-shared-ux-utility/BUILD.bazel index 39ddb60397eab..35f81e51e7d9e 100644 --- a/packages/kbn-sharedux-utility/BUILD.bazel +++ b/packages/kbn-shared-ux-utility/BUILD.bazel @@ -2,8 +2,8 @@ load("@npm//@bazel/typescript:index.bzl", "ts_config") load("@build_bazel_rules_nodejs//:index.bzl", "js_library") load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project") -PKG_DIRNAME = "kbn-sharedux-utility" -PKG_REQUIRE_NAME = "@kbn/sharedux-utility" +PKG_DIRNAME = "kbn-shared-ux-utility" +PKG_REQUIRE_NAME = "@kbn/shared-ux-utility" SOURCE_FILES = glob( [ diff --git a/packages/kbn-sharedux-utility/README.md b/packages/kbn-shared-ux-utility/README.md similarity index 62% rename from packages/kbn-sharedux-utility/README.md rename to packages/kbn-shared-ux-utility/README.md index ffff4d29abc52..872a43ecbfff0 100644 --- a/packages/kbn-sharedux-utility/README.md +++ b/packages/kbn-shared-ux-utility/README.md @@ -1,3 +1,3 @@ -# @kbn/sharedux-utility +# @kbn/shared-ux-utility Empty package generated by @kbn/generate diff --git a/packages/kbn-sharedux-utility/jest.config.js b/packages/kbn-shared-ux-utility/jest.config.js similarity index 88% rename from packages/kbn-sharedux-utility/jest.config.js rename to packages/kbn-shared-ux-utility/jest.config.js index 9bfda8df3b8f3..3696855dc86b5 100644 --- a/packages/kbn-sharedux-utility/jest.config.js +++ b/packages/kbn-shared-ux-utility/jest.config.js @@ -9,5 +9,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../..', - roots: ['/packages/kbn-sharedux-utility'], + roots: ['/packages/kbn-shared-ux-utility'], }; diff --git a/packages/kbn-sharedux-utility/package.json b/packages/kbn-shared-ux-utility/package.json similarity index 81% rename from packages/kbn-sharedux-utility/package.json rename to packages/kbn-shared-ux-utility/package.json index 5342afb96bd00..6bbddc369956a 100644 --- a/packages/kbn-sharedux-utility/package.json +++ b/packages/kbn-shared-ux-utility/package.json @@ -1,8 +1,8 @@ { - "name": "@kbn/sharedux-utility", + "name": "@kbn/shared-ux-utility", "private": true, "version": "1.0.0", "main": "./target_node/index.js", "browser": "./target_web/index.js", "license": "SSPL-1.0 OR Elastic License 2.0" -} +} \ No newline at end of file diff --git a/packages/kbn-sharedux-utility/src/fallback.tsx b/packages/kbn-shared-ux-utility/src/fallback.tsx similarity index 100% rename from packages/kbn-sharedux-utility/src/fallback.tsx rename to packages/kbn-shared-ux-utility/src/fallback.tsx diff --git a/packages/kbn-sharedux-utility/src/index.ts b/packages/kbn-shared-ux-utility/src/index.ts similarity index 100% rename from packages/kbn-sharedux-utility/src/index.ts rename to packages/kbn-shared-ux-utility/src/index.ts diff --git a/packages/kbn-sharedux-utility/src/with_suspense.tsx b/packages/kbn-shared-ux-utility/src/with_suspense.tsx similarity index 100% rename from packages/kbn-sharedux-utility/src/with_suspense.tsx rename to packages/kbn-shared-ux-utility/src/with_suspense.tsx diff --git a/packages/kbn-sharedux-utility/tsconfig.json b/packages/kbn-shared-ux-utility/tsconfig.json similarity index 100% rename from packages/kbn-sharedux-utility/tsconfig.json rename to packages/kbn-shared-ux-utility/tsconfig.json diff --git a/packages/kbn-sharedux-services/README.md b/packages/kbn-sharedux-services/README.md deleted file mode 100755 index aed68c689add5..0000000000000 --- a/packages/kbn-sharedux-services/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# @kbn/sharedux-services - -> TODO diff --git a/packages/kbn-sharedux-storybook/README.md b/packages/kbn-sharedux-storybook/README.md deleted file mode 100644 index 56c2831c9948d..0000000000000 --- a/packages/kbn-sharedux-storybook/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# @kbn/sharedux-storybook - -> TODO \ No newline at end of file diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 04bdab6a84c70..48593db20256b 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -35,6 +35,6 @@ export const storybookAliases = { observability: 'x-pack/plugins/observability/.storybook', presentation: 'src/plugins/presentation_util/storybook', security_solution: 'x-pack/plugins/security_solution/.storybook', - shared_ux: 'packages/kbn-sharedux-storybook/src/storybook', + shared_ux: 'packages/kbn-shared-ux-storybook/src/storybook', ui_actions_enhanced: 'x-pack/plugins/ui_actions_enhanced/.storybook', }; diff --git a/src/plugins/shared_ux/kibana.json b/src/plugins/shared_ux/kibana.json index 44aeeb9cf80fc..212a99e46ebc7 100755 --- a/src/plugins/shared_ux/kibana.json +++ b/src/plugins/shared_ux/kibana.json @@ -9,6 +9,9 @@ "description": "A plugin providing components and services for shared user experiences in Kibana.", "server": true, "ui": true, - "requiredPlugins": [], + "requiredPlugins": [ + "dataViewEditor", + "dataViews" + ], "optionalPlugins": [] } diff --git a/src/plugins/shared_ux/public/index.ts b/src/plugins/shared_ux/public/index.ts index b035983b4d765..6757e6a42e43f 100755 --- a/src/plugins/shared_ux/public/index.ts +++ b/src/plugins/shared_ux/public/index.ts @@ -21,4 +21,4 @@ export { LazyExitFullScreenButton, NoDataViews, LazyNoDataViews, -} from '@kbn/sharedux-components'; +} from '@kbn/shared-ux-components'; diff --git a/src/plugins/shared_ux/public/plugin.tsx b/src/plugins/shared_ux/public/plugin.tsx index b20f7161eb0f9..fb3495342e5f0 100755 --- a/src/plugins/shared_ux/public/plugin.tsx +++ b/src/plugins/shared_ux/public/plugin.tsx @@ -8,7 +8,7 @@ import React from 'react'; -import { SharedUXServicesProvider } from '@kbn/sharedux-services'; +import { SharedUXServicesProvider } from '@kbn/shared-ux-services'; import { CoreSetup, CoreStart, Plugin } from '../../../core/public'; import { diff --git a/src/plugins/shared_ux/public/services/doc_links.ts b/src/plugins/shared_ux/public/services/doc_links.ts index be67ee4632377..21103f07464e9 100644 --- a/src/plugins/shared_ux/public/services/doc_links.ts +++ b/src/plugins/shared_ux/public/services/doc_links.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { SharedUXDocLinksService } from '@kbn/sharedux-services'; +import { SharedUXDocLinksService } from '@kbn/shared-ux-services'; import { KibanaPluginServiceFactory } from './types'; import { SharedUXPluginStartDeps } from '../types'; diff --git a/src/plugins/shared_ux/public/services/editors.ts b/src/plugins/shared_ux/public/services/editors.ts index afac6e19092e6..704aca66fc380 100644 --- a/src/plugins/shared_ux/public/services/editors.ts +++ b/src/plugins/shared_ux/public/services/editors.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { SharedUXEditorsService } from '@kbn/sharedux-services'; +import { SharedUXEditorsService } from '@kbn/shared-ux-services'; import { KibanaPluginServiceFactory } from './types'; import { SharedUXPluginStartDeps } from '../types'; diff --git a/src/plugins/shared_ux/public/services/index.ts b/src/plugins/shared_ux/public/services/index.ts index 47d01bbb9881c..2b4c19cbc57c5 100644 --- a/src/plugins/shared_ux/public/services/index.ts +++ b/src/plugins/shared_ux/public/services/index.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { SharedUXServices } from '@kbn/sharedux-services'; +import { SharedUXServices } from '@kbn/shared-ux-services'; import type { SharedUXPluginStartDeps } from '../types'; import type { KibanaPluginServiceFactory } from './types'; diff --git a/src/plugins/shared_ux/public/services/permissions.ts b/src/plugins/shared_ux/public/services/permissions.ts index 2d23d8c78caa1..7460f4aa7e883 100644 --- a/src/plugins/shared_ux/public/services/permissions.ts +++ b/src/plugins/shared_ux/public/services/permissions.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { SharedUXUserPermissionsService } from '@kbn/sharedux-services'; +import { SharedUXUserPermissionsService } from '@kbn/shared-ux-services'; import { KibanaPluginServiceFactory } from './types'; import { SharedUXPluginStartDeps } from '../types'; diff --git a/src/plugins/shared_ux/public/services/platform.ts b/src/plugins/shared_ux/public/services/platform.ts index 5db66dd7d2968..5201a038a74d5 100644 --- a/src/plugins/shared_ux/public/services/platform.ts +++ b/src/plugins/shared_ux/public/services/platform.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { SharedUXPlatformService } from '@kbn/sharedux-services'; +import { SharedUXPlatformService } from '@kbn/shared-ux-services'; import { SharedUXPluginStartDeps } from '../types'; import { KibanaPluginServiceFactory } from './types'; diff --git a/yarn.lock b/yarn.lock index fffb810b962c6..274fd7c75558c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3117,19 +3117,19 @@ version "0.0.0" uid "" -"@kbn/sharedux-components@link:bazel-bin/packages/kbn-sharedux-components": +"@kbn/shared-ux-components@link:bazel-bin/packages/kbn-shared-ux-components": version "0.0.0" uid "" -"@kbn/sharedux-services@link:bazel-bin/packages/kbn-sharedux-services": +"@kbn/shared-ux-services@link:bazel-bin/packages/kbn-shared-ux-services": version "0.0.0" uid "" -"@kbn/sharedux-storybook@link:bazel-bin/packages/kbn-sharedux-storybook": +"@kbn/shared-ux-storybook@link:bazel-bin/packages/kbn-shared-ux-storybook": version "0.0.0" uid "" -"@kbn/sharedux-utility@link:bazel-bin/packages/kbn-sharedux-utility": +"@kbn/shared-ux-utility@link:bazel-bin/packages/kbn-shared-ux-utility": version "0.0.0" uid "" @@ -6102,19 +6102,19 @@ version "0.0.0" uid "" -"@types/kbn__sharedux-components@link:bazel-bin/packages/kbn-sharedux-components/npm_module_types": +"@types/kbn__shared-ux-components@link:bazel-bin/packages/kbn-shared-ux-components/npm_module_types": version "0.0.0" uid "" -"@types/kbn__sharedux-services@link:bazel-bin/packages/kbn-sharedux-services/npm_module_types": +"@types/kbn__shared-ux-services@link:bazel-bin/packages/kbn-shared-ux-services/npm_module_types": version "0.0.0" uid "" -"@types/kbn__sharedux-storybook@link:bazel-bin/packages/kbn-sharedux-storybook/npm_module_types": +"@types/kbn__shared-ux-storybook@link:bazel-bin/packages/kbn-shared-ux-storybook/npm_module_types": version "0.0.0" uid "" -"@types/kbn__sharedux-utility@link:bazel-bin/packages/kbn-sharedux-utility/npm_module_types": +"@types/kbn__shared-ux-utility@link:bazel-bin/packages/kbn-shared-ux-utility/npm_module_types": version "0.0.0" uid ""