@wp-typia/block-runtime 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/README.md +30 -0
- package/dist/defaults.d.ts +1 -0
- package/dist/defaults.js +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/validation.d.ts +1 -0
- package/dist/validation.js +1 -0
- package/package.json +68 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `@wp-typia/block-runtime`
|
|
2
|
+
|
|
3
|
+
Prototype block runtime helpers for `wp-typia` generated projects.
|
|
4
|
+
|
|
5
|
+
This package is the current graduation path for the stable generated-project
|
|
6
|
+
runtime helpers that still live canonically under `@wp-typia/create`.
|
|
7
|
+
|
|
8
|
+
It currently re-exports the block runtime helper surface for:
|
|
9
|
+
|
|
10
|
+
- manifest-driven defaults
|
|
11
|
+
- editor model generation
|
|
12
|
+
- validation-aware attribute updates
|
|
13
|
+
|
|
14
|
+
It does not include:
|
|
15
|
+
|
|
16
|
+
- scaffold or CLI internals
|
|
17
|
+
- REST/OpenAPI metadata generation
|
|
18
|
+
- schema generation helpers
|
|
19
|
+
- migration tooling
|
|
20
|
+
|
|
21
|
+
Typical usage:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { createEditorModel } from "@wp-typia/block-runtime/editor";
|
|
25
|
+
import { createNestedAttributeUpdater } from "@wp-typia/block-runtime/validation";
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`@wp-typia/create` remains the canonical generated-project import surface
|
|
29
|
+
through v1. This package exists to validate the long-term package boundary and
|
|
30
|
+
migration path without changing scaffolds yet.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { applyTemplateDefaultsFromManifest, type ManifestDefaultAttribute, type ManifestDefaultsDocument, } from "@wp-typia/create/runtime/defaults";
|
package/dist/defaults.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { applyTemplateDefaultsFromManifest, } from "@wp-typia/create/runtime/defaults";
|
package/dist/editor.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createEditorModel, describeEditorField, formatEditorFieldLabel, type EditorControlKind, type EditorFieldDescriptor, type EditorFieldOption, type EditorModelOptions, type JsonValue, type ManifestAttribute, type ManifestConstraints, type ManifestDocument, type ManifestTsKind, } from "@wp-typia/create/runtime/editor";
|
package/dist/editor.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createEditorModel, describeEditorField, formatEditorFieldLabel, } from "@wp-typia/create/runtime/editor";
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createAttributeUpdater, createNestedAttributeUpdater, formatValidationError, formatValidationErrors, mergeNestedAttributeUpdate, normalizeValidationError, toAttributePatch, toNestedAttributePatch, toValidationResult, toValidationState, type TypiaValidationError, type ValidationResult, type ValidationState, } from "@wp-typia/create/runtime/validation";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createAttributeUpdater, createNestedAttributeUpdater, formatValidationError, formatValidationErrors, mergeNestedAttributeUpdate, normalizeValidationError, toAttributePatch, toNestedAttributePatch, toValidationResult, toValidationState, } from "@wp-typia/create/runtime/validation";
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wp-typia/block-runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Prototype block runtime facade for wp-typia generated-project helpers",
|
|
5
|
+
"type": "module",
|
|
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
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./defaults": {
|
|
15
|
+
"types": "./dist/defaults.d.ts",
|
|
16
|
+
"import": "./dist/defaults.js",
|
|
17
|
+
"default": "./dist/defaults.js"
|
|
18
|
+
},
|
|
19
|
+
"./editor": {
|
|
20
|
+
"types": "./dist/editor.d.ts",
|
|
21
|
+
"import": "./dist/editor.js",
|
|
22
|
+
"default": "./dist/editor.js"
|
|
23
|
+
},
|
|
24
|
+
"./validation": {
|
|
25
|
+
"types": "./dist/validation.d.ts",
|
|
26
|
+
"import": "./dist/validation.js",
|
|
27
|
+
"default": "./dist/validation.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist/",
|
|
33
|
+
"README.md",
|
|
34
|
+
"package.json"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"test": "bun run --filter @wp-typia/create build && bun run build && bun test tests",
|
|
40
|
+
"test:coverage": "bun run --filter @wp-typia/create build && bun run build && bun test tests --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage",
|
|
41
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
42
|
+
},
|
|
43
|
+
"author": "imjlk",
|
|
44
|
+
"license": "GPL-2.0-or-later",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/imjlk/wp-typia.git",
|
|
48
|
+
"directory": "packages/wp-typia-block-runtime"
|
|
49
|
+
},
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/imjlk/wp-typia/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://github.com/imjlk/wp-typia/tree/main/packages/wp-typia-block-runtime#readme",
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=20.0.0",
|
|
59
|
+
"npm": ">=10.0.0",
|
|
60
|
+
"bun": ">=1.3.10"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@wp-typia/create": "^0.5.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"typescript": "^5.9.2"
|
|
67
|
+
}
|
|
68
|
+
}
|