Reverting table injection tokens (7754)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev authored and Janne Savolainen committed 2023-05-29 12:00:33 +03:00
1 parent 79e4eaa394
commit 26b8ed66da
17 files changed
+6 -139

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 6.5.0 (2023-05-26)
**Note:** Version bump only for package @k8slens/table-tokens
-3
View File
@@ -1,3 +0,0 @@
# Description
The package exports tokens needed for external table configuration.
-28
View File
@@ -1,28 +0,0 @@
import { getInjectionToken } from "@ogre-tools/injectable";
import type { KubeObject } from "@k8slens/kube-object/src/kube-object";
import type {
BaseKubeObjectListLayoutColumn,
GeneralKubeObjectListLayoutColumn,
SpecificKubeListLayoutColumn,
} from "@k8slens/list-layout";
type Column = (
| BaseKubeObjectListLayoutColumn<KubeObject>
| SpecificKubeListLayoutColumn<KubeObject>
| GeneralKubeObjectListLayoutColumn
);
export interface TableComponentProps {
tableId?: string;
columns?: Column[];
save?: (state: object) => void;
load?: (tableId: string) => object;
}
export interface TableComponent {
Component: React.ComponentType<TableComponentProps>;
}
export const tableComponentInjectionToken = getInjectionToken<TableComponent>({
id: "table-component-injection-token",
});
-28
View File
@@ -1,28 +0,0 @@
{
"name": "@k8slens/table-tokens",
"version": "6.5.0",
"description": "Injection token exporter for table components",
"license": "MIT",
"type": "commonjs",
"private": false,
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"clean": "rimraf dist/",
"build": "lens-webpack-build"
},
"devDependencies": {
"@k8slens/webpack": "^6.5.0",
"rimraf": "^4.4.1"
},
"peerDependencies": {
"@ogre-tools/injectable": "^16.1.0"
}
}
-4
View File
@@ -1,4 +0,0 @@
{
"extends": "@k8slens/typescript/config/base.json",
"include": ["**/*.ts"]
}
-1
View File
@@ -1 +0,0 @@
module.exports = require("@k8slens/webpack").configForNode;