@airdraft/ui-core 0.1.0 → 0.1.3
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/CHANGELOG.md +60 -0
- package/dist/field-type-meta.d.ts +5 -1
- package/dist/field-type-meta.d.ts.map +1 -1
- package/dist/field-type-meta.js +9 -1
- package/dist/field-type-meta.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [0.1.3](https://github.com/aevrHQ/airdraft/compare/ui-core@v0.1.2...ui-core@v0.1.3) (2026-05-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add `story` field type with schema definition and UI support; include media file for demo ([f5d3f88](https://github.com/aevrHQ/airdraft/commit/f5d3f884afda98e613c50ce1a0ebb3c591a84511))
|
|
11
|
+
* enhance media field handling in renderTypes function to include metadata support ([b80245c](https://github.com/aevrHQ/airdraft/commit/b80245caf91e2a436172e875fff89c83a56b5ff3))
|
|
12
|
+
* enhance MIME type handling in FilesSdkMediaAdapter and withMedia plugin ([186d33f](https://github.com/aevrHQ/airdraft/commit/186d33f33d31431c579a821eaa1a7a5ea13be4e7))
|
|
13
|
+
* implement `blocks` field type with schema definition, validation, and UI support ([a3d57d1](https://github.com/aevrHQ/airdraft/commit/a3d57d11d82f38871fe044641bbb5a98cda3cb75))
|
|
14
|
+
* **react-content:** add support for media lists and urls ([2cb0891](https://github.com/aevrHQ/airdraft/commit/2cb089102b0530217f305c782435138592f7754d))
|
|
15
|
+
* **types:** add asCollectionConfig function for casting schema objects ([f5bcaaf](https://github.com/aevrHQ/airdraft/commit/f5bcaafa42fb43d749c89dfe7e7b075adcd18474))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Code Refactoring
|
|
19
|
+
|
|
20
|
+
* code structure for improved readability and maintainability ([410de76](https://github.com/aevrHQ/airdraft/commit/410de761725340ea8edbb50b7de122797b58d942))
|
|
21
|
+
|
|
22
|
+
### [0.1.2](https://github.com/aevrHQ/airdraft/compare/ui-core@v0.1.1...ui-core@v0.1.2) (2026-05-23)
|
|
23
|
+
|
|
24
|
+
### [0.1.1](https://github.com/aevrHQ/airdraft/compare/ui-core@v0.1.0...ui-core@v0.1.1) (2026-05-23)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add Next.js app detection and prompt for app directory in init commands ([2ed1afd](https://github.com/aevrHQ/airdraft/commit/2ed1afdd1ba3142fd50a9bfd4133f01c2ad22ae9))
|
|
30
|
+
* add schema editor plugin and GitHub schema adapter for managing airdraft.schema.json ([46fd7f2](https://github.com/aevrHQ/airdraft/commit/46fd7f271afe8bc562d5f2fe72b94390cb257161))
|
|
31
|
+
* add versioning and changelog support for all packages ([d6c85df](https://github.com/aevrHQ/airdraft/commit/d6c85dfed37f11c42151c93b49a80ede90699616))
|
|
32
|
+
* **cli,core,docs:** implement local filesystem mode with enhanced initialization and error handling ([1848408](https://github.com/aevrHQ/airdraft/commit/1848408738ee3d2bfa0ef532e6dec7a3beef0fb1))
|
|
33
|
+
* **cli:** add CMS client template and optional blog scaffolding to initialization ([cf7bda8](https://github.com/aevrHQ/airdraft/commit/cf7bda8137777aa319acd8edf55fb2cd718a9cd1))
|
|
34
|
+
* **cli:** enhance project initialization templates with schema path support ([a3b20c9](https://github.com/aevrHQ/airdraft/commit/a3b20c9d0dbf0e23594079f1685be8d688e7779b))
|
|
35
|
+
* **client:** add convenience methods for listing and retrieving entries ([c48e3f6](https://github.com/aevrHQ/airdraft/commit/c48e3f6848772bf1ed860785e1e3f9eadffb5ddc))
|
|
36
|
+
* **content:** update content package with new field components and type changes ([e1bd5fa](https://github.com/aevrHQ/airdraft/commit/e1bd5fa8af9b2903024c39a0fa945e49f87754d3))
|
|
37
|
+
* enhance media handling in EntryEditor and SchemaEditor ([e5ea94f](https://github.com/aevrHQ/airdraft/commit/e5ea94f4aa621c0bce96abbeb530674217e14141))
|
|
38
|
+
* enhance media input components and add scoped media adapter for project isolation ([e599cf2](https://github.com/aevrHQ/airdraft/commit/e599cf2c488cf73164d1cb7b1ce479d6005cf923))
|
|
39
|
+
* implement auto-auth and auto-media plugins with environment variable support ([7db0ac6](https://github.com/aevrHQ/airdraft/commit/7db0ac6a326cb291ec138e24bf81448f1dfc4db6))
|
|
40
|
+
* implement terminal UI helpers for improved user interaction ([0e0dca4](https://github.com/aevrHQ/airdraft/commit/0e0dca4a4e06196abea22e99c9a350fdd202a948))
|
|
41
|
+
* **react-ui:** add CMSAdmin component and update related files for new admin functionality ([50f1459](https://github.com/aevrHQ/airdraft/commit/50f14598c268823615f61428ee1e0e399c610630))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* improve error handling for missing schema file in buildProjectHandler ([4c3d318](https://github.com/aevrHQ/airdraft/commit/4c3d3184c9c454062fd2d9b33fb0593d5e91b71c))
|
|
47
|
+
* update cloud package version to 0.1.4 and enhance audit log persistence logic ([e1fb0e5](https://github.com/aevrHQ/airdraft/commit/e1fb0e5509c7f95c4e659495bcdbd1339da20cea))
|
|
48
|
+
* update package versions and enhance schema cache handling ([7f4f395](https://github.com/aevrHQ/airdraft/commit/7f4f39572168b4e75dd6f1d756ebd5ef2d7ddbe1))
|
|
49
|
+
* update schema URL from airdraft.dev to airdraft.space ([dbace6e](https://github.com/aevrHQ/airdraft/commit/dbace6e13334f915feace70661810d5dc919f69b))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Documentation
|
|
53
|
+
|
|
54
|
+
* add Releasing & Publishing section to README ([132193b](https://github.com/aevrHQ/airdraft/commit/132193bebff585ad3223ccb82176c30615f21443))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Code Refactoring
|
|
58
|
+
|
|
59
|
+
* code structure for improved readability and maintainability ([6777564](https://github.com/aevrHQ/airdraft/commit/6777564297bb73b703d6922246b86d73dfc4df9a))
|
|
60
|
+
|
|
61
|
+
# Changelog
|
|
62
|
+
|
|
3
63
|
All notable changes to `@airdraft/ui-core` will be documented here.
|
|
4
64
|
|
|
5
65
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
@@ -6,5 +6,9 @@ export interface FieldTypeMeta {
|
|
|
6
6
|
/** Lucide icon name (resolved by @airdraft/react-ui into actual components) */
|
|
7
7
|
icon: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const FIELD_TYPE_META: Record<FieldType, FieldTypeMeta
|
|
9
|
+
export declare const FIELD_TYPE_META: Record<FieldType, FieldTypeMeta & {
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
/** Field types shown in the schema editor type picker (excludes deprecated hidden types). */
|
|
13
|
+
export declare const VISIBLE_FIELD_TYPES: FieldType[];
|
|
10
14
|
//# sourceMappingURL=field-type-meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-type-meta.d.ts","sourceRoot":"","sources":["../src/field-type-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"field-type-meta.d.ts","sourceRoot":"","sources":["../src/field-type-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAmBnF,CAAA;AAED,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,aAEX,CAAA"}
|
package/dist/field-type-meta.js
CHANGED
|
@@ -12,6 +12,14 @@ export const FIELD_TYPE_META = {
|
|
|
12
12
|
relation: { type: 'relation', label: 'Relation', description: 'Reference to another entry', icon: 'Link' },
|
|
13
13
|
relations: { type: 'relations', label: 'Relations', description: 'Multiple entry references', icon: 'Network' },
|
|
14
14
|
object: { type: 'object', label: 'Object', description: 'Nested field group', icon: 'Braces' },
|
|
15
|
-
|
|
15
|
+
url: { type: 'url', label: 'URL', description: 'Absolute or relative URL', icon: 'Link2' },
|
|
16
|
+
media: { type: 'media', label: 'Media', description: 'File or media asset', icon: 'Paperclip' },
|
|
17
|
+
blocks: { type: 'blocks', label: 'Blocks', description: 'Structured nested fields', icon: 'LayoutList' },
|
|
18
|
+
/** @deprecated hidden from picker — use 'media' for new fields */
|
|
19
|
+
image: { type: 'image', label: 'Image', description: 'Image URL or media asset', icon: 'Image', hidden: true },
|
|
16
20
|
};
|
|
21
|
+
/** Field types shown in the schema editor type picker (excludes deprecated hidden types). */
|
|
22
|
+
export const VISIBLE_FIELD_TYPES = Object.values(FIELD_TYPE_META)
|
|
23
|
+
.filter((m) => !m.hidden)
|
|
24
|
+
.map((m) => m.type);
|
|
17
25
|
//# sourceMappingURL=field-type-meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-type-meta.js","s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C/G,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;KACxB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FIELD_TYPE_META } from './field-type-meta.js';
|
|
1
|
+
export { FIELD_TYPE_META, VISIBLE_FIELD_TYPES } from './field-type-meta.js';
|
|
2
2
|
export type { FieldTypeMeta } from './field-type-meta.js';
|
|
3
3
|
export { RESERVED_COLLECTION_NAMES } from './constants.js';
|
|
4
4
|
export { validateFieldKey, generateFieldKey, validateCollectionName, } from './validators.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAE1D,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FIELD_TYPE_META } from './field-type-meta.js';
|
|
1
|
+
export { FIELD_TYPE_META, VISIBLE_FIELD_TYPES } from './field-type-meta.js';
|
|
2
2
|
export { RESERVED_COLLECTION_NAMES } from './constants.js';
|
|
3
3
|
export { validateFieldKey, generateFieldKey, validateCollectionName, } from './validators.js';
|
|
4
4
|
export { applyFieldUpdate, applyFieldDelete, buildDefaultPath } from './mutations.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAG3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAE1D,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airdraft/ui-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Airdraft UI core — field type metadata, validators, and schema mutation helpers (zero framework deps)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"files": [
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md",
|
|
17
|
+
"CHANGELOG.md"
|
|
18
|
+
],
|
|
15
19
|
"scripts": {
|
|
16
20
|
"build": "tsc",
|
|
17
21
|
"dev": "tsc --watch",
|
|
@@ -23,7 +27,9 @@
|
|
|
23
27
|
"release:minor": "standard-version --release-as minor",
|
|
24
28
|
"release:major": "standard-version --release-as major"
|
|
25
29
|
},
|
|
26
|
-
"publishConfig": {
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
27
33
|
"license": "MIT",
|
|
28
34
|
"dependencies": {
|
|
29
35
|
"@airdraft/core": "*"
|
|
@@ -33,5 +39,7 @@
|
|
|
33
39
|
"standard-version": "^9.5.0",
|
|
34
40
|
"typescript": "^5.4.0"
|
|
35
41
|
},
|
|
36
|
-
"engines": {
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18.0.0"
|
|
44
|
+
}
|
|
37
45
|
}
|