Skip to content

Commit

Permalink
Rename packages
Browse files Browse the repository at this point in the history
  • Loading branch information
clintandrewhall committed Mar 11, 2022
1 parent 8c1b0bd commit 5b9777e
Show file tree
Hide file tree
Showing 104 changed files with 100 additions and 87 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
16 changes: 8 additions & 8 deletions packages/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*",
Expand Down Expand Up @@ -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",
]
Expand All @@ -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",
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @kbn/sharedux-components
# @kbn/shared-ux-components

Empty package generated by @kbn/generate
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-sharedux-storybook'],
roots: ['<rootDir>/packages/kbn-shared-ux-components'],
};
Original file line number Diff line number Diff line change
@@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
SharedUXServicesProvider,
SharedUXServices,
mockServiceFactories,
} from '@kbn/sharedux-services';
} from '@kbn/shared-ux-services';

import { NoDataViews } from './no_data_views';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
SharedUXServicesProvider,
SharedUXServices,
mockServiceFactories,
} from '@kbn/sharedux-services';
} from '@kbn/shared-ux-services';

import { ExitFullScreenButton } from './exit_full_screen_button';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
* Side Public License, v 1.
*/

export { NoDataCard } from './no_data_page/no_data_card';
export { NoDataCard } from './no_data_page';
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
SharedUXServicesProvider,
SharedUXServices,
mockServiceFactories,
} from '@kbn/sharedux-services';
} from '@kbn/shared-ux-services';

import { SolutionToolbarButton } from './primary';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
3 changes: 3 additions & 0 deletions packages/kbn-shared-ux-services/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @kbn/shared-ux-services

> TODO
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-sharedux-services'],
roots: ['<rootDir>/packages/kbn-shared-ux-services'],
};
Original file line number Diff line number Diff line change
@@ -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"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down Expand Up @@ -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",
]
Expand All @@ -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",
]

Expand Down
3 changes: 3 additions & 0 deletions packages/kbn-shared-ux-storybook/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @kbn/shared-ux-storybook

> TODO
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-sharedux-components'],
roots: ['<rootDir>/packages/kbn-shared-ux-storybook'],
};
Original file line number Diff line number Diff line change
@@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<SharedUXDocLinksService>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<SharedUXEditorsService>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<SharedUXUserPermissionsService>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @kbn/sharedux-utility
# @kbn/shared-ux-utility

Empty package generated by @kbn/generate
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-sharedux-utility'],
roots: ['<rootDir>/packages/kbn-shared-ux-utility'],
};
Loading

0 comments on commit 5b9777e

Please sign in to comment.