@kong-ui-public/expressions 0.1.7 → 0.2.0

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/style.css CHANGED
@@ -1 +1 @@
1
- .expression-editor[data-v-85b95394]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-85b95394]{border-color:#d60027}
1
+ .expression-editor[data-v-eb43a28e]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-eb43a28e]{border-color:#d60027}
@@ -1,12 +1,12 @@
1
1
  import type { ParseResult } from '@kong/atc-router';
2
- import { type NamedSchemaDefinition } from '../schema';
2
+ import { type Schema } from '../schema';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
5
  required: true;
6
6
  type: import("vue").PropType<string>;
7
7
  };
8
8
  schema: {
9
- type: import("vue").PropType<NamedSchemaDefinition>;
9
+ type: import("vue").PropType<Schema>;
10
10
  required: true;
11
11
  };
12
12
  parseDebounce: {
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  type: import("vue").PropType<string>;
25
25
  };
26
26
  schema: {
27
- type: import("vue").PropType<NamedSchemaDefinition>;
27
+ type: import("vue").PropType<Schema>;
28
28
  required: true;
29
29
  };
30
30
  parseDebounce: {
@@ -1 +1 @@
1
- {"version":3,"file":"ExpressionsEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ExpressionsEditor.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,kBAAkB,CAAA;AAK3D,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA+PlD,MAAM;;AARxB,wBAcG"}
1
+ {"version":3,"file":"ExpressionsEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ExpressionsEditor.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,kBAAkB,CAAA;AAKxE,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA+PnC,MAAM;;AARxB,wBAcG"}
@@ -1,5 +1,5 @@
1
1
  import ExpressionsEditor from './components/ExpressionsEditor.vue';
2
- export * from '@kong/atc-router';
2
+ export * as Atc from '@kong/atc-router';
3
3
  export * from './schema';
4
4
  export { ExpressionsEditor };
5
5
  declare const asyncInit: Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAElE,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAE5B,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAElE,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAA;AACvC,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAE5B,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -1,8 +1,8 @@
1
- import { type NamedSchemaDefinition } from './schema';
1
+ import { type Schema } from './schema';
2
2
  export declare const theme = "kong-expr-theme";
3
3
  export declare const getLanguageId: (schemaName: string) => string;
4
4
  export declare const registerTheme: () => void;
5
- export declare const registerLanguage: (schema: NamedSchemaDefinition) => {
5
+ export declare const registerLanguage: (schema: Schema) => {
6
6
  languageId: string;
7
7
  };
8
8
  //# sourceMappingURL=monaco.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"monaco.d.ts","sourceRoot":"","sources":["../../src/monaco.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,UAAU,CAAA;AAiC5E,eAAO,MAAM,KAAK,oBAAoB,CAAA;AAEtC,eAAO,MAAM,aAAa,eAAgB,MAAM,WAA8B,CAAA;AAE9E,eAAO,MAAM,aAAa,YAgBzB,CAAA;AAED,eAAO,MAAM,gBAAgB,WAAY,qBAAqB;;CAkH7D,CAAA"}
1
+ {"version":3,"file":"monaco.d.ts","sourceRoot":"","sources":["../../src/monaco.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAyB,MAAM,UAAU,CAAA;AAiC7D,eAAO,MAAM,KAAK,oBAAoB,CAAA;AAEtC,eAAO,MAAM,aAAa,eAAgB,MAAM,WAA8B,CAAA;AAE9E,eAAO,MAAM,aAAa,YAgBzB,CAAA;AAED,eAAO,MAAM,gBAAgB,WAAY,MAAM;;CAiH9C,CAAA"}
@@ -1,22 +1,13 @@
1
- import { Schema, type AstType } from '@kong/atc-router';
1
+ import { Schema as AtcSchema, type AstType } from '@kong/atc-router';
2
2
  export type SchemaDefinition = {
3
3
  [K in AstType]?: string[];
4
4
  };
5
- export interface NamedSchemaDefinition {
5
+ export interface Schema {
6
6
  name: string;
7
7
  definition: SchemaDefinition;
8
8
  }
9
- export declare const createSchema: (definition: SchemaDefinition) => Schema;
9
+ export declare const createSchema: (definition: SchemaDefinition) => AtcSchema;
10
10
  export declare const HTTP_SCHEMA_DEFINITION: SchemaDefinition;
11
11
  export declare const STREAM_SCHEMA_DEFINITION: SchemaDefinition;
12
- export declare const PROTOCOL_TO_SCHEMA_DEFINITION: {
13
- http: SchemaDefinition;
14
- https: SchemaDefinition;
15
- grpc: SchemaDefinition;
16
- grpcs: SchemaDefinition;
17
- tcp: SchemaDefinition;
18
- udp: SchemaDefinition;
19
- tls: SchemaDefinition;
20
- tls_passthrough: SchemaDefinition;
21
- };
12
+ export declare const PROTOCOL_TO_SCHEMA: Record<string, Schema>;
22
13
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAEvD,MAAM,MAAM,gBAAgB,GAAG;KAC5B,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE;CAC1B,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,eAAO,MAAM,YAAY,eAAgB,gBAAgB,WAUxD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAapC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAItC,CAAA;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;CAWzC,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAEpE,MAAM,MAAM,gBAAgB,GAAG;KAC5B,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE;CAC1B,CAAC;AAEF,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,eAAO,MAAM,YAAY,eAAgB,gBAAgB,cAUxD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAapC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAItC,CAAA;AAED,eAAO,MAAM,kBAAkB,wBAY3B,CAAA"}
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@kong-ui-public/expressions",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
- "main": "./dist/expressions.umd.js",
6
5
  "module": "./dist/expressions.es.js",
7
6
  "types": "dist/types/index.d.ts",
8
7
  "files": [
@@ -11,7 +10,6 @@
11
10
  "exports": {
12
11
  ".": {
13
12
  "import": "./dist/expressions.es.js",
14
- "require": "./dist/expressions.umd.js",
15
13
  "types": "./dist/types/index.d.ts"
16
14
  },
17
15
  "./package.json": "./package.json",
@@ -24,7 +22,7 @@
24
22
  "@kong/atc-router": "1.6.0-rc.1",
25
23
  "@kong/design-tokens": "1.12.11",
26
24
  "@kong/kongponents": "9.0.0-alpha.146",
27
- "monaco-editor": "0.47.0",
25
+ "monaco-editor": "0.21.3",
28
26
  "vite-plugin-monaco-editor": "^1.1.0",
29
27
  "vite-plugin-top-level-await": "^1.4.1",
30
28
  "vite-plugin-wasm": "^3.3.0",
@@ -50,7 +48,7 @@
50
48
  "peerDependencies": {
51
49
  "@kong/atc-router": "1.6.0-rc.1",
52
50
  "@kong/kongponents": "9.0.0-alpha.105",
53
- "monaco-editor": "0.47.0",
51
+ "monaco-editor": "0.21.3",
54
52
  "vue": "^3.4.21"
55
53
  },
56
54
  "dependencies": {