@stonecrop/stonecrop 0.2.64 → 0.2.66
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/dist/index.js +4 -4
- package/dist/src/index.d.ts +5 -5
- package/dist/src/types/index.d.ts +8 -8
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/stonecrop.js +610 -596
- package/dist/stonecrop.js.map +1 -1
- package/dist/stonecrop.tsbuildinfo +1 -1
- package/dist/stonecrop.umd.cjs +15 -15
- package/dist/stonecrop.umd.cjs.map +1 -1
- package/package.json +12 -11
- package/src/index.ts +5 -5
- package/src/types/index.ts +8 -9
- package/dist/stonecrop/src/tsdoc-metadata.json +0 -11
- package/dist/stonecrop.d.ts +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/stonecrop",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.66",
|
|
4
4
|
"description": "schema helper",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
21
|
"import": {
|
|
22
|
-
"types": "./dist/
|
|
22
|
+
"types": "./dist/src/index.d.ts",
|
|
23
23
|
"default": "./dist/stonecrop.js"
|
|
24
24
|
},
|
|
25
25
|
"require": "./dist/stonecrop.umd.cjs"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"
|
|
28
|
+
"typings": "./dist/src/index.d.ts",
|
|
29
29
|
"files": [
|
|
30
30
|
"dist/*",
|
|
31
31
|
"src/*"
|
|
@@ -41,19 +41,20 @@
|
|
|
41
41
|
"xstate": "^4.38.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-documenter": "^7.
|
|
45
|
-
"@rushstack/heft": "^0.
|
|
44
|
+
"@microsoft/api-documenter": "^7.26.2",
|
|
45
|
+
"@rushstack/heft": "^0.68.6",
|
|
46
|
+
"@rushstack/heft-typescript-plugin": "^0.6.3",
|
|
46
47
|
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
47
48
|
"@typescript-eslint/parser": "^7.14.1",
|
|
48
49
|
"@vitejs/plugin-vue": "^5.1.3",
|
|
49
50
|
"eslint": "^8.40.0",
|
|
50
51
|
"eslint-config-prettier": "^8.8.0",
|
|
51
52
|
"eslint-plugin-vue": "^9.11.1",
|
|
52
|
-
"typescript": "^5.
|
|
53
|
+
"typescript": "^5.6.3",
|
|
53
54
|
"vite": "^5.4.5",
|
|
54
|
-
"@stonecrop/
|
|
55
|
-
"
|
|
56
|
-
"stonecrop
|
|
55
|
+
"@stonecrop/aform": "0.2.66",
|
|
56
|
+
"stonecrop-rig": "0.2.22",
|
|
57
|
+
"@stonecrop/atable": "0.2.66"
|
|
57
58
|
},
|
|
58
59
|
"publishConfig": {
|
|
59
60
|
"access": "public"
|
|
@@ -62,8 +63,8 @@
|
|
|
62
63
|
"node": ">=20.11.0"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
65
|
-
"prepublish": "heft build && vite build
|
|
66
|
-
"build": "heft build && vite build
|
|
66
|
+
"prepublish": "heft build && vite build",
|
|
67
|
+
"build": "heft build && vite build",
|
|
67
68
|
"docs": "api-documenter markdown -i temp -o ../docs/stonecrop",
|
|
68
69
|
"lint": "eslint . --ext .ts,.vue",
|
|
69
70
|
"preview": "vite preview"
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useStonecrop } from '
|
|
2
|
-
import DoctypeMeta from '
|
|
3
|
-
import Registry from '
|
|
4
|
-
import Stonecrop from '
|
|
5
|
-
export type { ImmutableDoctype, MutableDoctype, Schema, InstallOptions } from '
|
|
1
|
+
import { useStonecrop } from './composable'
|
|
2
|
+
import DoctypeMeta from './doctype'
|
|
3
|
+
import Registry from './registry'
|
|
4
|
+
import Stonecrop from './plugins'
|
|
5
|
+
export type { ImmutableDoctype, MutableDoctype, Schema, InstallOptions } from './types'
|
|
6
6
|
|
|
7
7
|
export { DoctypeMeta, Registry, Stonecrop, useStonecrop }
|
package/src/types/index.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
+
import { SchemaTypes } from '@stonecrop/aform'
|
|
1
2
|
import { List, Map } from 'immutable'
|
|
2
3
|
import { Component } from 'vue'
|
|
3
4
|
import { Router } from 'vue-router'
|
|
4
5
|
import { MachineConfig, StateMachine } from 'xstate'
|
|
5
6
|
|
|
6
|
-
import AForm from '@stonecrop/aform'
|
|
7
|
-
|
|
8
7
|
import DoctypeMeta from '@/doctype'
|
|
9
8
|
|
|
10
|
-
export type ImmutableDoctype =
|
|
9
|
+
export type ImmutableDoctype = {
|
|
11
10
|
// TODO: allow schema to be a function
|
|
12
|
-
schema?: List<
|
|
13
|
-
workflow: StateMachine<unknown, unknown, any>
|
|
14
|
-
actions?: Map<string, string[]>
|
|
15
|
-
}
|
|
11
|
+
readonly schema?: List<SchemaTypes>
|
|
12
|
+
readonly workflow: StateMachine<unknown, unknown, any>
|
|
13
|
+
readonly actions?: Map<string, string[]>
|
|
14
|
+
}
|
|
16
15
|
|
|
17
16
|
export type MutableDoctype = {
|
|
18
17
|
// TODO: allow schema to be a function
|
|
19
|
-
schema?:
|
|
18
|
+
schema?: SchemaTypes[]
|
|
20
19
|
workflow: MachineConfig<unknown, unknown, any>
|
|
21
20
|
actions?: Record<string, string[]>
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export type Schema = {
|
|
25
24
|
doctype: string
|
|
26
|
-
schema: List<
|
|
25
|
+
schema: List<SchemaTypes>
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
export type InstallOptions = {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.47.9"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
package/dist/stonecrop.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import DoctypeMeta from '@/doctype';
|
|
2
|
-
import { ImmutableDoctype } from '@/types';
|
|
3
|
-
import { InstallOptions } from '@/types';
|
|
4
|
-
import { MutableDoctype } from '@/types';
|
|
5
|
-
import Registry from '@/registry';
|
|
6
|
-
import { Schema } from '@/types';
|
|
7
|
-
import Stonecrop from '@/plugins';
|
|
8
|
-
import { useStonecrop } from '@/composable';
|
|
9
|
-
|
|
10
|
-
export { DoctypeMeta }
|
|
11
|
-
|
|
12
|
-
export { ImmutableDoctype }
|
|
13
|
-
|
|
14
|
-
export { InstallOptions }
|
|
15
|
-
|
|
16
|
-
export { MutableDoctype }
|
|
17
|
-
|
|
18
|
-
export { Registry }
|
|
19
|
-
|
|
20
|
-
export { Schema }
|
|
21
|
-
|
|
22
|
-
export { Stonecrop }
|
|
23
|
-
|
|
24
|
-
export { useStonecrop }
|
|
25
|
-
|
|
26
|
-
export { }
|