@tellaro/tql 0.2.0 → 0.2.1

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.
@@ -1,9 +1,4 @@
1
- /**
2
- * TQL (Tellaro Query Language) Type Definitions
3
- *
4
- * Comprehensive type system for TQL parsing, validation, and autocomplete.
5
- * Synchronized with tellaro-query-language Python/Rust implementations.
6
- */
1
+ import { ComputedRef } from 'vue';
7
2
  export type TqlTokenType = "field" | "operator" | "logicalOp" | "collectionOp" | "string" | "number" | "boolean" | "null" | "paren" | "bracket" | "comma" | "pipe" | "arrow" | "doubleColon" | "mutator" | "aggregation" | "keyword" | "typeHint" | "visualization" | "whitespace" | "unknown" | "error";
8
3
  export interface TqlToken {
9
4
  type: TqlTokenType;
@@ -236,14 +231,6 @@ export interface TqlInputEmits {
236
231
  (e: "parse", result: TqlParseResult): void;
237
232
  (e: "submit", value: string): void;
238
233
  }
239
- /**
240
- * Reactive reference type for Vue computed properties.
241
- * This is a simplified type that matches Vue's ComputedRef interface
242
- * without requiring Vue as a direct dependency.
243
- */
244
- export interface ReactiveRef<T> {
245
- readonly value: T;
246
- }
247
234
  export interface TqlInputExpose {
248
235
  focus(): void;
249
236
  blur(): void;
@@ -253,12 +240,12 @@ export interface TqlInputExpose {
253
240
  getTokenAtPosition(pos: number): TqlToken | null;
254
241
  getCursorPosition(): number;
255
242
  setCursorPosition(pos: number): void;
256
- /** Whether the current query is valid (no syntax errors). Access via .value */
257
- isValid: ReactiveRef<boolean>;
258
- /** Whether the current query has validation errors. Access via .value */
259
- hasErrors: ReactiveRef<boolean>;
260
- /** Array of current validation errors. Access via .value */
261
- errors: ReactiveRef<TqlParseError[]>;
243
+ /** Whether the current query is valid (no syntax errors) */
244
+ isValid: ComputedRef<boolean>;
245
+ /** Whether the current query has validation errors */
246
+ hasErrors: ComputedRef<boolean>;
247
+ /** Array of current validation errors */
248
+ errors: ComputedRef<TqlParseError[]>;
262
249
  }
263
250
  export type ComplexityScore = "low" | "medium" | "high";
264
251
  export interface ComplexityWarning {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellaro/tql",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Tellaro Query Language (TQL) parser, validator, and autocomplete for JavaScript/TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,8 +15,9 @@
15
15
  "import": "./dist/vue/index.js",
16
16
  "types": "./dist/vue/index.d.ts"
17
17
  },
18
- "./style.css": "./dist/style.css",
19
- "./dist/style.css": "./dist/style.css"
18
+ "./style.css": "./dist/tql.css",
19
+ "./dist/style.css": "./dist/tql.css",
20
+ "./dist/tql.css": "./dist/tql.css"
20
21
  },
21
22
  "files": [
22
23
  "dist",