@patterkit/dialect 0.1.5 → 0.1.6
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/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -224,6 +224,7 @@ function hostScopesToSpec(reg) {
|
|
|
224
224
|
name: d.name,
|
|
225
225
|
type: d.type,
|
|
226
226
|
...d.values ? { values: d.values } : {},
|
|
227
|
+
...d.stages ? { stages: d.stages } : {},
|
|
227
228
|
...d.default !== void 0 ? { default: d.default } : {},
|
|
228
229
|
...d.writable === false ? { writable: false } : {}
|
|
229
230
|
}))
|
|
@@ -239,7 +240,7 @@ function buildSchema(project, sceneProps = [], foreign) {
|
|
|
239
240
|
m = /* @__PURE__ */ new Map();
|
|
240
241
|
properties.set(scope, m);
|
|
241
242
|
}
|
|
242
|
-
m.set(decl.name.toLowerCase(), { type: decl.type, enumValues: decl.values });
|
|
243
|
+
m.set(decl.name.toLowerCase(), { type: decl.type, enumValues: decl.values, stages: decl.stages });
|
|
243
244
|
};
|
|
244
245
|
for (const decl of project.properties ?? []) put("patter", decl);
|
|
245
246
|
for (const decl of sceneProps) put("scene", decl);
|
|
@@ -248,7 +249,7 @@ function buildSchema(project, sceneProps = [], foreign) {
|
|
|
248
249
|
if (known.has(scope.token)) continue;
|
|
249
250
|
if (!scope.declarations?.length) continue;
|
|
250
251
|
const m = /* @__PURE__ */ new Map();
|
|
251
|
-
for (const d of scope.declarations) m.set(d.name.toLowerCase(), { type: d.type, enumValues: d.values });
|
|
252
|
+
for (const d of scope.declarations) m.set(d.name.toLowerCase(), { type: d.type, enumValues: d.values, stages: d.stages });
|
|
252
253
|
properties.set(scope.token, m);
|
|
253
254
|
}
|
|
254
255
|
return { properties };
|
package/dist/index.js
CHANGED
|
@@ -192,6 +192,7 @@ function hostScopesToSpec(reg) {
|
|
|
192
192
|
name: d.name,
|
|
193
193
|
type: d.type,
|
|
194
194
|
...d.values ? { values: d.values } : {},
|
|
195
|
+
...d.stages ? { stages: d.stages } : {},
|
|
195
196
|
...d.default !== void 0 ? { default: d.default } : {},
|
|
196
197
|
...d.writable === false ? { writable: false } : {}
|
|
197
198
|
}))
|
|
@@ -207,7 +208,7 @@ function buildSchema(project, sceneProps = [], foreign) {
|
|
|
207
208
|
m = /* @__PURE__ */ new Map();
|
|
208
209
|
properties.set(scope, m);
|
|
209
210
|
}
|
|
210
|
-
m.set(decl.name.toLowerCase(), { type: decl.type, enumValues: decl.values });
|
|
211
|
+
m.set(decl.name.toLowerCase(), { type: decl.type, enumValues: decl.values, stages: decl.stages });
|
|
211
212
|
};
|
|
212
213
|
for (const decl of project.properties ?? []) put("patter", decl);
|
|
213
214
|
for (const decl of sceneProps) put("scene", decl);
|
|
@@ -216,7 +217,7 @@ function buildSchema(project, sceneProps = [], foreign) {
|
|
|
216
217
|
if (known.has(scope.token)) continue;
|
|
217
218
|
if (!scope.declarations?.length) continue;
|
|
218
219
|
const m = /* @__PURE__ */ new Map();
|
|
219
|
-
for (const d of scope.declarations) m.set(d.name.toLowerCase(), { type: d.type, enumValues: d.values });
|
|
220
|
+
for (const d of scope.declarations) m.set(d.name.toLowerCase(), { type: d.type, enumValues: d.values, stages: d.stages });
|
|
220
221
|
properties.set(scope.token, m);
|
|
221
222
|
}
|
|
222
223
|
return { properties };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patterkit/dialect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "The Patter dialect for @wildwinter/expr (scopes shared/scene/flow, built-in functions), an ExpressionSchema builder from property declarations, and the inline {@ref} interpolation helpers (spec §16).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@patterkit/model": "0.
|
|
38
|
-
"@wildwinter/expr": "^0.
|
|
39
|
-
"@wildwinter/scoperegistry": "^0.
|
|
37
|
+
"@patterkit/model": "0.4.0",
|
|
38
|
+
"@wildwinter/expr": "^0.4.0",
|
|
39
|
+
"@wildwinter/scoperegistry": "^0.3.0"
|
|
40
40
|
}
|
|
41
41
|
}
|