From cefae670ab80e99132df080701ea67e46735b250 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Mon, 23 Sep 2024 16:40:25 +0200 Subject: [PATCH] Fix exported library classes. --- index.ts | 16 ++++++++++++++++ package.json | 4 ++-- src/Smartable/Filters/NumberFilter.tsx | 2 +- src/Smartable/Filters/StringFilter.tsx | 2 +- yarn.lock | 10 +++++----- 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/index.ts b/index.ts index 3fb6d04..9584dee 100644 --- a/index.ts +++ b/index.ts @@ -1,2 +1,18 @@ import "./src/styles/smartable.less"; +export * from "./src/Smartable/AsyncManager"; +export * from "./src/Smartable/Cell"; +export * from "./src/Smartable/Column"; +export * from "./src/Smartable/Instance"; +export * from "./src/Smartable/Row"; +export * from "./src/Smartable/Smartable"; +export * from "./src/Smartable/Sort"; + +export * from "./src/Smartable/Cells/ClickableCell"; + +export * from "./src/Smartable/Columns/ColumnFilter"; +export * from "./src/Smartable/Columns/ColumnHeading"; + +export * from "./src/Smartable/Filters/EnumFilter"; +export * from "./src/Smartable/Filters/NumberFilter"; +export * from "./src/Smartable/Filters/StringFilter"; diff --git a/package.json b/package.json index 47b1a56..54332a3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.0.3", "name": "@kernelui/smartable", "description": "Kernel UI Smartable.", "scripts": { @@ -17,7 +17,7 @@ "@kernelui:registry": "https://code.zeptotech.net/api/packages/UIKernel/npm/" }, "devDependencies": { - "@kernelui/core": "^1.1.2", + "@kernelui/core": "^1.2.5", "@phosphor-icons/react": "^2.1.7", "@types/node": "^22.0.0", "@types/react": "^18.3.3", diff --git a/src/Smartable/Filters/NumberFilter.tsx b/src/Smartable/Filters/NumberFilter.tsx index 68681ff..4319908 100644 --- a/src/Smartable/Filters/NumberFilter.tsx +++ b/src/Smartable/Filters/NumberFilter.tsx @@ -4,7 +4,7 @@ import {ColumnFilter, useFilterState} from "../Columns/ColumnFilter"; /** * Filter value regex. */ -export const filterRegex = /^([=!><])?([0-9]+)$/; +const filterRegex = /^([=!><])?([0-9]+)$/; /** * Number column filter. diff --git a/src/Smartable/Filters/StringFilter.tsx b/src/Smartable/Filters/StringFilter.tsx index 37af92f..0e46f6b 100644 --- a/src/Smartable/Filters/StringFilter.tsx +++ b/src/Smartable/Filters/StringFilter.tsx @@ -5,7 +5,7 @@ import {normalizeString} from "@kernelui/core"; /** * Filter value regex. */ -export const filterRegex = /^([=!])?([^=!].+)$/; +const filterRegex = /^([=!])?([^=!].+)$/; /** * String column filter. diff --git a/yarn.lock b/yarn.lock index 2319502..94bf5cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -524,9 +524,9 @@ __metadata: languageName: node linkType: hard -"@kernelui/core@npm:^1.1.2": - version: 1.1.2 - resolution: "@kernelui/core@npm:1.1.2::__archiveUrl=https%3A%2F%2Fcode.zeptotech.net%2Fapi%2Fpackages%2FUIKernel%2Fnpm%2F%2540kernelui%252Fcore%2F-%2F1.1.2%2Fcore-1.1.2.tgz" +"@kernelui/core@npm:^1.2.5": + version: 1.2.5 + resolution: "@kernelui/core@npm:1.2.5::__archiveUrl=https%3A%2F%2Fcode.zeptotech.net%2Fapi%2Fpackages%2FUIKernel%2Fnpm%2F%2540kernelui%252Fcore%2F-%2F1.2.5%2Fcore-1.2.5.tgz" dependencies: "@floating-ui/react": "npm:^0.26.17" "@fontsource-variable/jetbrains-mono": "npm:^5.0.21" @@ -539,7 +539,7 @@ __metadata: react: ^18.3.1 react-dom: ^18.3.1 react-router-dom: ^6.24.1 - checksum: 10c0/c2cafb1ad158f19226758f76ccd8bde148131eb6bbb8eb6f8f56d477a70901257cd620aa4015bfa171ed04c274a6ee8888f82967280e1c1ce9e4c9d062986873 + checksum: 10c0/4b7c3eb0b501fbc9ec7ad0d3787423a461f24819b3cc94c58fba2e8269d3d45d8b05d444a63bf155aaa21be0a698fecbfe2796e90b14d233958b7236deb3b02d languageName: node linkType: hard @@ -547,7 +547,7 @@ __metadata: version: 0.0.0-use.local resolution: "@kernelui/smartable@workspace:." dependencies: - "@kernelui/core": "npm:^1.1.2" + "@kernelui/core": "npm:^1.2.5" "@phosphor-icons/react": "npm:^2.1.7" "@types/node": "npm:^22.0.0" "@types/react": "npm:^18.3.3"