dequel-editor 0.8.5 → 0.9.2
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/dequel-editor.js +2 -1
- package/dist/dequel-lang.js +7 -6
- package/package.json +1 -1
package/dist/dequel-editor.js
CHANGED
|
@@ -18408,7 +18408,8 @@ Value { DynamicValue | DateLiteral | Number | String | Identifier ~ambig }
|
|
|
18408
18408
|
|
|
18409
18409
|
@precedence { DynamicValue, DateLiteral, Number, Identifier }
|
|
18410
18410
|
|
|
18411
|
-
|
|
18411
|
+
identSegment { $[a-zA-Z_] $[a-zA-Z_0-9-]* }
|
|
18412
|
+
Identifier { "/"? identSegment ($[./] identSegment)* }
|
|
18412
18413
|
|
|
18413
18414
|
Comment { "#" (![
|
|
18414
18415
|
])* }
|
package/dist/dequel-lang.js
CHANGED
|
@@ -74,7 +74,8 @@ Value { DynamicValue | DateLiteral | Number | String | Identifier ~ambig }
|
|
|
74
74
|
|
|
75
75
|
@precedence { DynamicValue, DateLiteral, Number, Identifier }
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
identSegment { $[a-zA-Z_] $[a-zA-Z_0-9-]* }
|
|
78
|
+
Identifier { "/"? identSegment ($[./] identSegment)* }
|
|
78
79
|
|
|
79
80
|
Comment { "#" (![
|
|
80
81
|
])* }
|
|
@@ -136,16 +137,16 @@ const T = j.define(), $ = w.define({
|
|
|
136
137
|
if (a.name === "Field" && s && Object.keys(s.fields).length) {
|
|
137
138
|
const p = e.state.doc.sliceString(a.from, e.pos), l = p.split(".");
|
|
138
139
|
if (l.length > 1 && h) {
|
|
139
|
-
const c = l.slice(0, -1), m = a.from + p.lastIndexOf(".") + 1,
|
|
140
|
+
const c = l.slice(0, -1), m = a.from + p.lastIndexOf(".") + 1, S = await z(
|
|
140
141
|
c,
|
|
141
142
|
s,
|
|
142
143
|
h
|
|
143
144
|
);
|
|
144
|
-
if (
|
|
145
|
-
const V = Object.entries(
|
|
145
|
+
if (S) {
|
|
146
|
+
const V = Object.entries(S.fields).map(([D, O]) => ({
|
|
146
147
|
label: D,
|
|
147
|
-
type:
|
|
148
|
-
info:
|
|
148
|
+
type: O.type,
|
|
149
|
+
info: O.info
|
|
149
150
|
}));
|
|
150
151
|
return {
|
|
151
152
|
from: m,
|