@pronto-tools-and-more/components 6.14.0 → 6.16.0

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/package.json CHANGED
@@ -1,18 +1,39 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.14.0",
3
+ "version": "6.16.0",
4
4
  "description": "",
5
- "main": "src/main.js",
5
+ "main": "dist/main.js",
6
+ "types": "dist/main.d.ts",
6
7
  "type": "module",
7
8
  "scripts": {
8
- "test": "echo ok",
9
- "type-check": "tsc"
9
+ "type-check": "tsc",
10
+ "test": "node --unhandled-rejections=warn --experimental-vm-modules ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit",
11
+ "test:watch": "node --unhandled-rejections=warn --experimental-vm-modules ./node_modules/jest/bin/jest.js --watch",
12
+ "build": "esbuild src/main.ts --bundle --format=esm --outfile=dist/main.js && rm tsconfig.tsbuildinfo && npx tsc -b",
13
+ "build:watch": "esbuild src/main.ts --bundle --format=esm --outfile=dist/main.js --watch"
10
14
  },
11
15
  "keywords": [],
12
16
  "author": "",
13
17
  "license": "MIT",
14
18
  "devDependencies": {
15
19
  "@types/node": "^22.5.0",
16
- "@types/react": "^18.3.4"
20
+ "@types/react": "^18.3.4",
21
+ "esbuild": "^0.24.0",
22
+ "ts-jest": "^29.2.5"
23
+ },
24
+ "jest": {
25
+ "injectGlobals": false,
26
+ "extensionsToTreatAsEsm": [
27
+ ".ts"
28
+ ],
29
+ "moduleNameMapper": {},
30
+ "transform": {
31
+ "^.+\\.tsx?$": [
32
+ "ts-jest",
33
+ {
34
+ "useESM": true
35
+ }
36
+ ]
37
+ }
17
38
  }
18
39
  }
package/src/main.ts CHANGED
@@ -1,3 +1 @@
1
- import * as Main from "./parts/Main/Main.tsx";
2
-
3
- Main.main();
1
+ export * from "./parts/Components/Components.tsx";
@@ -0,0 +1,3 @@
1
+ export * from "../Login/Login.tsx";
2
+ export * from "../SearchField/SearchField.tsx";
3
+ export * from "../MenuItems/MenuItems.tsx";
@@ -1 +1 @@
1
- export const main = () => {};
1
+ export * from "../Components/Components.tsx";
@@ -0,0 +1,14 @@
1
+ export const MenuItems = ({ menuName }: { menuName: string }) => {
2
+ return {
3
+ dataSource: {
4
+ type: "menu",
5
+ filter: {
6
+ name: {
7
+ value: menuName,
8
+ },
9
+ },
10
+ },
11
+ type: "menu",
12
+ template: "STATIC",
13
+ };
14
+ };