@flighthq/types 0.5.1-next.1692.64cda40 → 0.5.1-next.1700.cefb2f9
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
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/types`. The `@flight
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/types@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/types@0.5.1-next.1700.cefb2f9](https://github.com/flighthq/flight/tree/cefb2f9914270340afd4cc39e407f1202bcf8fc5/packages/types)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/cefb2f9914270340afd4cc39e407f1202bcf8fc5/LICENSE.md)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Kind } from './Entity';
|
|
2
|
+
import type { Requirement } from './Requirement';
|
|
2
3
|
import type { RequirementFacet } from './RequirementFacet';
|
|
3
4
|
export interface RequirementCatalogEntry {
|
|
4
5
|
readonly backend: string;
|
|
@@ -16,7 +17,28 @@ export interface RequirementCatalogEntry {
|
|
|
16
17
|
readonly registrarImport?: string;
|
|
17
18
|
readonly registrarSymbol?: string;
|
|
18
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* One format-to-render implication: content that needs `from` also needs everything in `to`.
|
|
22
|
+
*
|
|
23
|
+
* A `document.format` requirement names a TAG (`swf.DefineShape`); a renderer is keyed by a NODE KIND
|
|
24
|
+
* (`Shape`). Without this the two halves never meet, and a build resolves its parser handlers while
|
|
25
|
+
* every render fragment comes back empty. Plain data rather than a function on purpose: a translator
|
|
26
|
+
* handed only the requirement set would see exactly what a row sees, so code would buy nothing, and
|
|
27
|
+
* data survives the JSON round trip the CLI lane depends on.
|
|
28
|
+
*
|
|
29
|
+
* MATCHING IS EXACT ON `from.key`, WITH ONE DELIBERATE EXCEPTION: a row whose key is a bare format
|
|
30
|
+
* namespace (`swf` rather than `swf.DefineShape`) applies to every requirement in that namespace. That
|
|
31
|
+
* is what carries the kinds a document produces REGARDLESS of its tags — the importer builds a
|
|
32
|
+
* `MovieClip` root for any SWF — which no per-tag row can express. A file containing only
|
|
33
|
+
* `SetBackgroundColor` still has that root, and a purely per-tag table would leave it unrendered.
|
|
34
|
+
*/
|
|
35
|
+
export interface RequirementTranslation {
|
|
36
|
+
readonly from: Requirement;
|
|
37
|
+
readonly to: readonly Requirement[];
|
|
38
|
+
}
|
|
19
39
|
export interface RequirementCatalog {
|
|
20
40
|
readonly entries: RequirementCatalogEntry[];
|
|
41
|
+
/** Format-to-render implications. Absent means a catalog that resolves render backends not at all. */
|
|
42
|
+
readonly translations?: readonly RequirementTranslation[];
|
|
21
43
|
}
|
|
22
44
|
//# sourceMappingURL=RequirementCatalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementCatalog.d.ts","sourceRoot":"","sources":["../src/RequirementCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK3D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAGD,MAAM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