@nextmoe/edit-ui-catalog 0.3.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/CHANGELOG.md ADDED
@@ -0,0 +1,48 @@
1
+ # @nextmoe/edit-ui-catalog
2
+
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0e91a50: Pick roles, engines and series by name. `CatalogEntityRef` gains `role`
8
+ (resolved against `GET /v2/catalog/roles`, which text search does not cover),
9
+ `engine` and `series` (both in `searchObjects` since spec 2.5.0): a credit's
10
+ 职责 column becomes an entity picker when the site injects a role search, and
11
+ `engine_ids`/`series_ids` become multi entity pickers, each falling back to the
12
+ old id input when no search is injected. `RELEASE_PLATFORM_OPTIONS` now follows
13
+ the published vocabulary order (`wiu` before `win`), and a census-driven suite
14
+ asserts every option table against the engine's published vocabularies — wire
15
+ codes as base plus published-order index, token tables in published order.
16
+ - 74ca7c2: New package: field presets for the NextMoe catalog editing API. A tested
17
+ `EditFieldConfig` table covering all fifty keys the editing engine registers —
18
+ labels, groups, enum vocabularies as the integers the engine demands, object-list
19
+ columns with their JSON types, per-image attribute columns, and the identity-key
20
+ builders for the four suppressible lists.
21
+
22
+ ```ts
23
+ import { catalogConfig } from "@nextmoe/edit-ui-catalog";
24
+ const config = catalogConfig("catalog.work", { searchEntities, uploadImage });
25
+ ```
26
+
27
+ It is configuration, not a client: nothing here calls an API. It exists because
28
+ the schema endpoint reports key/kind/diff_hint/caps and never an element shape,
29
+ an enum vocabulary or nullability, so without it every site rediscovers all fifty
30
+ fields and gets a 422 for each one it guesses wrong. The completeness suite drives
31
+ its loops from `schema/inventory.json`, a census of the engine's own field specs,
32
+ so a field the engine adds fails the suite rather than silently having no preset.
33
+
34
+ ### Patch Changes
35
+
36
+ - 827882f: A work title with no language now gets an identity key, so its suppression
37
+ toggle appears at all. The row that reaches `identityKey` has had every blank
38
+ optional key dropped for the wire payload, but the column is `NOT NULL` and
39
+ stores `""`, so the key keeps an empty segment — rejecting the missing `lang`
40
+ left exactly the alias rows unsuppressible. A suppressed row also carries a
41
+ 「已隐藏」chip: dimming alone did not say why the row was inert.
42
+ - Updated dependencies [a00f6db]
43
+ - Updated dependencies [f04d871]
44
+ - Updated dependencies [215db8c]
45
+ - Updated dependencies [88c6d8c]
46
+ - Updated dependencies [923d2e2]
47
+ - Updated dependencies [0af038f]
48
+ - @nextmoe/edit-ui-core@0.3.0