@swarm.ing/pieui 3.0.2 → 3.0.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/dist/cli.js
CHANGED
|
@@ -196101,16 +196101,6 @@ var patchSchemaForType = (type, schema, checker, visited = new Set) => {
|
|
|
196101
196101
|
delete schema.required;
|
|
196102
196102
|
return;
|
|
196103
196103
|
}
|
|
196104
|
-
const stringIndexType = normalizedType.getStringIndexType?.();
|
|
196105
|
-
if (stringIndexType) {
|
|
196106
|
-
const indexSchema = schemaForIndexType(stringIndexType, checker);
|
|
196107
|
-
schema.type = "object";
|
|
196108
|
-
schema.additionalProperties = indexSchema;
|
|
196109
|
-
if (schema.properties && Object.keys(schema.properties).length === 0) {
|
|
196110
|
-
delete schema.properties;
|
|
196111
|
-
delete schema.required;
|
|
196112
|
-
}
|
|
196113
|
-
}
|
|
196114
196104
|
if (checker.isTupleType(normalizedType)) {
|
|
196115
196105
|
const elementTypes = checker.getTypeArguments(normalizedType);
|
|
196116
196106
|
if (schema.items && Array.isArray(schema.items)) {
|
|
@@ -196127,6 +196117,16 @@ var patchSchemaForType = (type, schema, checker, visited = new Set) => {
|
|
|
196127
196117
|
}
|
|
196128
196118
|
return;
|
|
196129
196119
|
}
|
|
196120
|
+
const stringIndexType = normalizedType.getStringIndexType?.();
|
|
196121
|
+
if (stringIndexType) {
|
|
196122
|
+
const indexSchema = schemaForIndexType(stringIndexType, checker);
|
|
196123
|
+
schema.type = "object";
|
|
196124
|
+
schema.additionalProperties = indexSchema;
|
|
196125
|
+
if (schema.properties && Object.keys(schema.properties).length === 0) {
|
|
196126
|
+
delete schema.properties;
|
|
196127
|
+
delete schema.required;
|
|
196128
|
+
}
|
|
196129
|
+
}
|
|
196130
196130
|
if (normalizedType.isUnion() && Array.isArray(schema.anyOf)) {
|
|
196131
196131
|
const unionTypes = normalizedType.types;
|
|
196132
196132
|
for (let i = 0;i < schema.anyOf.length && i < unionTypes.length; i += 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaPatch.d.ts","sourceRoot":"","sources":["../../../src/code/introspection/schemaPatch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,MAAM,GAAG,EAAE,SAAS,GAAG,KAAG,OAmC7D,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,MAAM,GAAG,EACT,SAAS,GAAG,KACb,MAAM,CAAC,MAAM,EAAE,GAAG,CA4CpB,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,MAAM,GAAG,EACT,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3B,SAAS,GAAG,EACZ,UAAS,GAAG,CAAC,MAAM,CAAa,KACjC,
|
|
1
|
+
{"version":3,"file":"schemaPatch.d.ts","sourceRoot":"","sources":["../../../src/code/introspection/schemaPatch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,MAAM,GAAG,EAAE,SAAS,GAAG,KAAG,OAmC7D,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,MAAM,GAAG,EACT,SAAS,GAAG,KACb,MAAM,CAAC,MAAM,EAAE,GAAG,CA4CpB,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,MAAM,GAAG,EACT,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3B,SAAS,GAAG,EACZ,UAAS,GAAG,CAAC,MAAM,CAAa,KACjC,IAiHF,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A card whose props type imports a value object through a tsconfig path alias
|
|
3
|
+
* (e.g. `@/piecomponents/Shared/types`) must resolve to a typed schema — not
|
|
4
|
+
* degrade to `{ type: 'object' }`.
|
|
5
|
+
*
|
|
6
|
+
* Regression: schema generation built the TS program without the project's
|
|
7
|
+
* `baseUrl`/`paths`, so alias imports never resolved, the imported file never
|
|
8
|
+
* entered the program, and `HoldingRefData[]` collapsed to `object`. This broke
|
|
9
|
+
* cross-side `check-sync` (Python array ↔ TS object).
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=schemaAliasImports.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaAliasImports.test.d.ts","sourceRoot":"","sources":["../../src/tests/schemaAliasImports.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|