@ai-digital-factory/state-flow 0.0.0-stage → 0.1.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/LICENSE +18 -0
- package/README.md +24 -2
- package/dist/index.d.ts +106 -0
- package/dist/index.js +1475 -0
- package/dist/state-flow.css +716 -0
- package/package.json +65 -3
- package/tsconfig.charts.json +11 -0
- package/types/index.d.ts +46 -0
package/package.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-digital-factory/state-flow",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "React library for flow-style state (states, transitions, and related UI).",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./types": {
|
|
14
|
+
"types": "./types/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./tsconfig.charts.json": "./tsconfig.charts.json",
|
|
17
|
+
"./style.css": {
|
|
18
|
+
"import": "./dist/state-flow.css",
|
|
19
|
+
"default": "./dist/state-flow.css"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
"*": {
|
|
24
|
+
"types": [
|
|
25
|
+
"./types/index.d.ts"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"types",
|
|
32
|
+
"tsconfig.charts.json",
|
|
33
|
+
"README.md",
|
|
34
|
+
"LICENSE"
|
|
35
|
+
],
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^19.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@ai-digital-factory/state-flow-chart": "0.1.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^22",
|
|
44
|
+
"@types/react": "19.2.18",
|
|
45
|
+
"@vitejs/plugin-react": "^5.1.0",
|
|
46
|
+
"react": "19.2.8",
|
|
47
|
+
"tsup": "^8.5.0",
|
|
48
|
+
"typescript": "~5.7.2",
|
|
49
|
+
"vitest": "^3.2.4"
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public",
|
|
53
|
+
"registry": "https://registry.npmjs.org"
|
|
54
|
+
},
|
|
55
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/ai-digital-factory/state-flow.git",
|
|
59
|
+
"directory": "packages/state-flow"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup && cp src/state-flow.css dist/state-flow.css",
|
|
63
|
+
"dev": "tsup --watch",
|
|
64
|
+
"lint": "eslint .",
|
|
65
|
+
"typecheck": "tsc --noEmit",
|
|
66
|
+
"test": "vitest run --passWithNoTests"
|
|
67
|
+
}
|
|
6
68
|
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any */
|
|
2
|
+
declare module "react" {
|
|
3
|
+
type ReactNode =
|
|
4
|
+
ReactElement | string | number | boolean | null | undefined | ReactNode[];
|
|
5
|
+
|
|
6
|
+
interface ReactElement<P = unknown> {
|
|
7
|
+
type: unknown;
|
|
8
|
+
props: P;
|
|
9
|
+
key: string | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface Element extends ReactElement<any> {}
|
|
14
|
+
interface IntrinsicElements {
|
|
15
|
+
[elementName: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type { ReactElement, ReactNode };
|
|
20
|
+
export { JSX };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare module "react/jsx-runtime" {
|
|
24
|
+
import type { JSX as ReactJSX, ReactElement } from "react";
|
|
25
|
+
|
|
26
|
+
namespace JSX {
|
|
27
|
+
type Element = ReactJSX.Element;
|
|
28
|
+
interface IntrinsicElements extends ReactJSX.IntrinsicElements {}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { JSX };
|
|
32
|
+
|
|
33
|
+
export function jsx(
|
|
34
|
+
type: unknown,
|
|
35
|
+
props: unknown,
|
|
36
|
+
key?: string,
|
|
37
|
+
): ReactElement<any>;
|
|
38
|
+
|
|
39
|
+
export function jsxs(
|
|
40
|
+
type: unknown,
|
|
41
|
+
props: unknown,
|
|
42
|
+
key?: string,
|
|
43
|
+
): ReactElement<any>;
|
|
44
|
+
|
|
45
|
+
export const Fragment: unique symbol;
|
|
46
|
+
}
|