@chobantonov/jsonforms-extended-spec 1.1.0 → 1.1.1
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.
|
@@ -3544,5 +3544,46 @@
|
|
|
3544
3544
|
"numericEpochValuesAreNotInferred": true,
|
|
3545
3545
|
"malformedInputsUseExpressionFailurePolicy": true
|
|
3546
3546
|
}
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"id": "template-literal-child-names",
|
|
3550
|
+
"section": "13.5",
|
|
3551
|
+
"input": {
|
|
3552
|
+
"childNames": [
|
|
3553
|
+
"__proto__",
|
|
3554
|
+
"constructor",
|
|
3555
|
+
"toString",
|
|
3556
|
+
"hasOwnProperty",
|
|
3557
|
+
"ordinary",
|
|
3558
|
+
"slot\"{{data.selected}}%",
|
|
3559
|
+
"a[[data.selected]]b",
|
|
3560
|
+
"a[[[data.selected]]]b",
|
|
3561
|
+
"p[0]"
|
|
3562
|
+
],
|
|
3563
|
+
"referenceModes": [
|
|
3564
|
+
"static",
|
|
3565
|
+
"dynamic",
|
|
3566
|
+
"iteration"
|
|
3567
|
+
],
|
|
3568
|
+
"missingNames": [
|
|
3569
|
+
"__proto__",
|
|
3570
|
+
"constructor",
|
|
3571
|
+
"toString",
|
|
3572
|
+
"hasOwnProperty"
|
|
3573
|
+
],
|
|
3574
|
+
"bindingUpdates": [
|
|
3575
|
+
"initial",
|
|
3576
|
+
"replacement"
|
|
3577
|
+
]
|
|
3578
|
+
},
|
|
3579
|
+
"expected": {
|
|
3580
|
+
"allNamesAddressable": true,
|
|
3581
|
+
"namesEnumerateAsOwnKeys": true,
|
|
3582
|
+
"missingNamesUseProfileFallbackAndDiagnostics": true,
|
|
3583
|
+
"inactiveNamesStayEmptyWithoutFallback": true,
|
|
3584
|
+
"placeholderNamesRemainLiteral": true,
|
|
3585
|
+
"retainedEditorNodesFocusAndDraftsPreserved": true,
|
|
3586
|
+
"hostEngineRegistryUnchanged": true
|
|
3587
|
+
}
|
|
3547
3588
|
}
|
|
3548
3589
|
]
|
|
@@ -296,3 +296,15 @@ helpers in a dependency-tracked evaluator also require locale-aware cache and
|
|
|
296
296
|
invalidation rules. A display serializer is not a replacement for the dynamic
|
|
297
297
|
UI's typed JSON-result policy. Structured JSON joining and epoch-millisecond
|
|
298
298
|
interpretation remain separate capabilities, without implicit adoption here.
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## Literal template child names
|
|
302
|
+
|
|
303
|
+
Use own-key lookup and preserve arbitrary authored names through registration,
|
|
304
|
+
engine caches and generated placeholder markup. A safe input dictionary alone
|
|
305
|
+
does not establish safe third-party engine behavior. Verify static, dynamic and
|
|
306
|
+
iterated references, missing-name fallback, literal template delimiters in names,
|
|
307
|
+
editor continuity and host-engine isolation. See the
|
|
308
|
+
[registry-boundary pitfall](implementation-pitfalls.md#template-child-names-must-remain-literal-through-engine-registries)
|
|
309
|
+
and proposed `template-literal-child-names` behavior vector; report executed
|
|
310
|
+
adapter tests separately.
|
|
@@ -52,6 +52,23 @@ Companion to the [implementation guide](implementation-guide.md). These entries
|
|
|
52
52
|
|
|
53
53
|
**Check:** A long string is document-valid via Long text while Short text is displayed. Compare enabled/disabled feedback and verify unchanged host validity. Check compilation reuse and nested validation cost. See [mixed control](../examples/mixed-control/README.md).
|
|
54
54
|
|
|
55
|
+
### Bound reactive feedback across nested branches
|
|
56
|
+
|
|
57
|
+
Keeping document and displayed-branch errors separate also requires bounded
|
|
58
|
+
subscriptions. A derived branch error list that reads its parent's error list and
|
|
59
|
+
the same root data can create many dependency paths through nested compositions.
|
|
60
|
+
A host replacement may then spend more time traversing the reactive graph than
|
|
61
|
+
validating the document. Reuse equivalent error snapshots at each branch boundary,
|
|
62
|
+
or use the platform's equivalent subscription boundary. Preserve current local
|
|
63
|
+
feedback and independent document validity when errors appear and disappear.
|
|
64
|
+
|
|
65
|
+
Adapter acceptance case: render five nested object/array composition levels, edit
|
|
66
|
+
the deepest name, import a sixth level rejected by the final array's maxItems,
|
|
67
|
+
and restore the original data. Verify both the descendant error and its removal,
|
|
68
|
+
retained depth limits, and responsive replacement with browser coverage enabled
|
|
69
|
+
where supported. This is proposed cross-platform acceptance; the Svelte
|
|
70
|
+
`tests/demos/tree-max-depth.spec.ts` journey exercises these replacements.
|
|
71
|
+
|
|
55
72
|
## P07 — Enclosing fields are not a second scalar editor
|
|
56
73
|
|
|
57
74
|
**Trap:** Generate a whole-value editor after removing a composition keyword, producing an unrestricted duplicate scalar input; omit enclosing object fields entirely.
|
|
@@ -1264,3 +1281,42 @@ JavaScript number first can lose digits. Similarly, a JavaScript `Date` reaches
|
|
|
1264
1281
|
a timestamp overload, not a string overload; an `instanceof Date` branch alone
|
|
1265
1282
|
does not make it callable. Preserve cache isolation and evaluation limits when
|
|
1266
1283
|
factoring function registration into a reusable environment builder.
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
## Template child names must remain literal through engine registries
|
|
1287
|
+
|
|
1288
|
+
**Behavior:** Treat authored child names as literal keys, including `__proto__`,
|
|
1289
|
+
`constructor`, `toString` and `hasOwnProperty`. Preserve own-key enumeration and
|
|
1290
|
+
static, dynamic and iterated child references. An absent name must not resolve
|
|
1291
|
+
through a language runtime's object prototype; apply the profile's missing-slot
|
|
1292
|
+
fallback and diagnostics. Known inactive slots remain known and empty.
|
|
1293
|
+
|
|
1294
|
+
**Trap:** Assign names into ordinary objects, or assume a null-prototype input
|
|
1295
|
+
map protects a third-party engine's internal registry. Ractive 1.4.4 copies
|
|
1296
|
+
partials into a registry inheriting from its constructor's registry, so an
|
|
1297
|
+
ordinary prototype anywhere on that chain can consume `__proto__` assignments.
|
|
1298
|
+
An isolated constructor with a null-prototype partial registry preserves both
|
|
1299
|
+
registration and the engine's later parsed-partial cache writes. Do not mutate
|
|
1300
|
+
the host application's global engine registry. Other engines need equivalent
|
|
1301
|
+
verification at their own lookup and cache boundaries.
|
|
1302
|
+
|
|
1303
|
+
Generated placeholder markup also crosses a second parser boundary. Escape HTML
|
|
1304
|
+
attribute syntax and template delimiters: DOM attribute serialization quotes
|
|
1305
|
+
HTML, but literal `{{`, `[[` and `[[[` delimiters may still become template
|
|
1306
|
+
expressions when the engine parses the serialized placeholder. Ractive uses
|
|
1307
|
+
square-bracket delimiters for one-time interpolation; escape both delimiter
|
|
1308
|
+
families so names cannot evaluate form data into DOM attributes. Keep literal
|
|
1309
|
+
percent sequences and quotes unchanged in the resolved slot name.
|
|
1310
|
+
|
|
1311
|
+
**Check:** Execute `template-literal-child-names` through each supported profile:
|
|
1312
|
+
place prototype-like names statically, by dynamic selection and by iteration;
|
|
1313
|
+
verify missing-slot fallback, retained input nodes/focus/drafts after binding
|
|
1314
|
+
updates, literal markup-like names, and isolation from the host engine registry.
|
|
1315
|
+
The vector is proposed adapter acceptance, not certification of every renderer.
|
|
1316
|
+
|
|
1317
|
+
Component bridges should subscribe to the slot address as a stable scalar and
|
|
1318
|
+
keep reactive reads performed during delegated mounting outside the mounting
|
|
1319
|
+
subscription. A host's coarse props/store update can otherwise rerun that
|
|
1320
|
+
subscription even when the name is unchanged, disposing an editor that should
|
|
1321
|
+
retain its focus and draft. Verify actual DOM/node identity rather than only
|
|
1322
|
+
structural equality of the rendered controls.
|