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.
@@ -18408,7 +18408,8 @@ Value { DynamicValue | DateLiteral | Number | String | Identifier ~ambig }
18408
18408
 
18409
18409
  @precedence { DynamicValue, DateLiteral, Number, Identifier }
18410
18410
 
18411
- Identifier { $[a-zA-Z_]+ ("." $[a-zA-Z_]+)* }
18411
+ identSegment { $[a-zA-Z_] $[a-zA-Z_0-9-]* }
18412
+ Identifier { "/"? identSegment ($[./] identSegment)* }
18412
18413
 
18413
18414
  Comment { "#" (![
18414
18415
  ])* }
@@ -74,7 +74,8 @@ Value { DynamicValue | DateLiteral | Number | String | Identifier ~ambig }
74
74
 
75
75
  @precedence { DynamicValue, DateLiteral, Number, Identifier }
76
76
 
77
- Identifier { $[a-zA-Z_]+ ("." $[a-zA-Z_]+)* }
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, O = await z(
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 (O) {
145
- const V = Object.entries(O.fields).map(([D, S]) => ({
145
+ if (S) {
146
+ const V = Object.entries(S.fields).map(([D, O]) => ({
146
147
  label: D,
147
- type: S.type,
148
- info: S.info
148
+ type: O.type,
149
+ info: O.info
149
150
  }));
150
151
  return {
151
152
  from: m,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dequel-editor",
3
- "version": "0.8.5",
3
+ "version": "0.9.2",
4
4
  "description": "CodeMirror-based editor for Dequel query language",
5
5
  "type": "module",
6
6
  "main": "./dist/dequel-editor.js",