@squiz/edge-dev-render-runtime-lib 2.5.0 → 2.5.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.
@@ -2322,41 +2322,34 @@
2322
2322
  "additionalProperties": false
2323
2323
  },
2324
2324
  "UiMetadata": {
2325
- "allOf": [
2326
- {
2327
- "properties": {
2328
- "autoReload": {
2329
- "type": "boolean",
2330
- "description": "Whether the component should automatically reload when the input is changed"
2331
- }
2332
- },
2333
- "additionalProperties": {},
2334
- "type": "object"
2325
+ "properties": {
2326
+ "autoReload": {
2327
+ "type": "boolean",
2328
+ "description": "Whether the component should automatically reload when the input is changed"
2335
2329
  },
2336
- {
2337
- "anyOf": [
2338
- {
2339
- "properties": {
2340
- "collapsedByDefault": {
2341
- "type": "boolean"
2342
- }
2343
- },
2344
- "type": "object"
2345
- },
2346
- {
2347
- "properties": {
2348
- "quickOption": {
2349
- "type": "boolean"
2350
- },
2351
- "inlineEditable": {
2352
- "type": "boolean"
2353
- }
2354
- },
2355
- "type": "object"
2356
- }
2357
- ]
2330
+ "inlineEditable": {
2331
+ "type": "boolean",
2332
+ "description": "Allow this property to be editable inline"
2333
+ },
2334
+ "collapsedByDefault": {
2335
+ "type": "boolean",
2336
+ "description": "Choose if an object grouping should be collapsed by default"
2337
+ },
2338
+ "quickOption": {
2339
+ "type": "boolean",
2340
+ "description": "Allow this property to be part of the Quick Options UI"
2341
+ },
2342
+ "enumWidget": {
2343
+ "type": "string",
2344
+ "enum": [
2345
+ "radio",
2346
+ "dropdown"
2347
+ ],
2348
+ "description": "Choose if the enum values are displayed as a radio button list or a dropdown"
2358
2349
  }
2359
- ]
2350
+ },
2351
+ "type": "object",
2352
+ "additionalProperties": false
2360
2353
  },
2361
2354
  "CoreSchemaMetaSchema2": {
2362
2355
  "anyOf": [
@@ -2682,27 +2675,7 @@
2682
2675
  "type": "string"
2683
2676
  },
2684
2677
  "ui:metadata": {
2685
- "anyOf": [
2686
- {
2687
- "properties": {
2688
- "collapsedByDefault": {
2689
- "type": "boolean"
2690
- }
2691
- },
2692
- "type": "object"
2693
- },
2694
- {
2695
- "properties": {
2696
- "quickOption": {
2697
- "type": "boolean"
2698
- },
2699
- "inlineEditable": {
2700
- "type": "boolean"
2701
- }
2702
- },
2703
- "type": "object"
2704
- }
2705
- ]
2678
+ "$ref": "#/components/schemas/UiMetadata"
2706
2679
  },
2707
2680
  "$id": {
2708
2681
  "type": "string"
@@ -4734,14 +4707,7 @@
4734
4707
  "ui:metadata": {
4735
4708
  "properties": {
4736
4709
  "autoReload": {
4737
- "allOf": [
4738
- {
4739
- "type": "boolean"
4740
- },
4741
- {
4742
- "type": "string"
4743
- }
4744
- ]
4710
+ "type": "boolean"
4745
4711
  }
4746
4712
  },
4747
4713
  "additionalProperties": {},
@@ -4788,7 +4754,7 @@
4788
4754
  },
4789
4755
  "info": {
4790
4756
  "title": "@squiz/edge-dev-render-runtime-lib",
4791
- "version": "2.4.2",
4757
+ "version": "2.5.1",
4792
4758
  "description": "Package of Edge rendering utilities for components in dev mode",
4793
4759
  "license": {
4794
4760
  "name": "ISC"
@@ -11,7 +11,7 @@ export declare class ComponentFixture {
11
11
  fixtureDirectory: string;
12
12
  componentDirectory: string;
13
13
  version: string;
14
- manifest: import("packages/dx-json-schema-lib/src/manifest/v1/v1").ComponentManifest;
14
+ manifest: import("packages/dx-json-schema-lib/lib/manifest/v1/v1").ComponentManifest;
15
15
  componentName: string;
16
16
  }>;
17
17
  static new(returnObj: string | object, { raw, environment, set }?: {
@@ -19,7 +19,7 @@ export declare class ComponentFixture {
19
19
  environment?: {
20
20
  [k: string]: unknown;
21
21
  name: string;
22
- required?: boolean | undefined;
22
+ required?: boolean;
23
23
  }[] | undefined;
24
24
  set?: RuntimeComponentSet | undefined;
25
25
  }): Promise<ExecuteComponentTask>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import http from 'http';
3
2
  import supertest from 'supertest';
4
3
  import { type Express } from 'express';
@@ -10,5 +10,5 @@ export declare class StaticController extends Controller {
10
10
  private setResponseHeaders;
11
11
  protected getHeadersForInputType(_componentSet: string | undefined, _previewKey: string | undefined, manifest: Manifest): Promise<Headers>;
12
12
  protected getValidatedSet(_componentSet: string, manifest: ManifestV1): Promise<ComponentSet>;
13
- protected getValidatedPreviewDefinition(_previewKey: string, manifestModel: ManifestModel): Promise<import("packages/dx-json-schema-lib/src/manifest/v1/v1").PreviewDefinition>;
13
+ protected getValidatedPreviewDefinition(_previewKey: string, manifestModel: ManifestModel): Promise<import("packages/dx-json-schema-lib/lib/manifest/v1/v1").PreviewDefinition>;
14
14
  }
@@ -0,0 +1 @@
1
+ export declare const resources: Array<any>;
@@ -0,0 +1,2 @@
1
+ export declare function hasSquizType(componentSchema: any): boolean;
2
+ export declare function replaceWithMock(componentSchema: any, data: Record<string, any>): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/edge-dev-render-runtime-lib",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Package of Edge rendering utilities for components in dev mode",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -13,22 +13,18 @@
13
13
  "lib": "lib"
14
14
  },
15
15
  "dependencies": {
16
- "@opentelemetry/api": "^1.6.0",
17
- "@opentelemetry/resources": "^1.17.1",
18
- "@opentelemetry/semantic-conventions": "^1.17.1",
19
- "@squiz/component-lib": "^1.80.1",
20
- "@squiz/component-logger-lib": "^1.71.1",
21
- "@squiz/component-web-api-lib": "^1.66.1",
22
- "@squiz/dx-common-lib": "^1.68.3",
23
- "@squiz/dx-json-schema-lib": "^1.76.1",
24
- "@squiz/dx-logger-lib": "^1.64.0",
25
- "@squiz/formatted-text-lib": "^1.68.1",
26
- "@squiz/runtime-sandbox-common": "^1.65.1",
16
+ "@squiz/component-lib": "^1.81.1",
17
+ "@squiz/component-logger-lib": "^1.71.2",
18
+ "@squiz/component-web-api-lib": "^1.67.1",
19
+ "@squiz/dx-common-lib": "^1.69.1",
20
+ "@squiz/dx-json-schema-lib": "^1.80.1",
21
+ "@squiz/dx-logger-lib": "^1.65.1",
22
+ "@squiz/runtime-sandbox-common": "^1.65.2",
27
23
  "compression": "1.7.4",
28
24
  "cors": "2.8.5",
29
25
  "dotenv": "16.0.3",
30
26
  "esbuild": "^0.23.0",
31
- "express": "4.20.0",
27
+ "express": "^4.21.2",
32
28
  "fs-extra": "11.1.0",
33
29
  "helmet": "6.0.1",
34
30
  "inversify": "6.0.2",
@@ -38,26 +34,19 @@
38
34
  "winston": "3.8.2"
39
35
  },
40
36
  "devDependencies": {
41
- "@squiz/runtime-sandbox-node": "^1.64.2",
42
- "@types/bunyan": "1.8.11",
43
37
  "@types/compression": "1.7.5",
44
38
  "@types/cors": "2.8.17",
45
39
  "@types/express": "4.17.21",
46
40
  "@types/fs-extra": "11.0.4",
47
- "@types/jest": "28.1.8",
48
41
  "@types/node": "20.12.12",
49
42
  "@types/ringbufferjs": "1.1.0",
50
43
  "@types/supertest": "2.0.12",
51
44
  "@types/swagger-ui-express": "4.1.3",
52
45
  "jest": "29.4.1",
53
- "nodemon": "2.0.20",
54
- "rimraf": "5.0.7",
55
46
  "ringbufferjs": "2.0.0",
56
47
  "supertest": "6.2.4",
57
- "ts-jest": "29.0.5",
58
- "ts-loader": "9.3.1",
59
- "ts-node": "10.9.2",
60
- "typescript": "4.9.4"
48
+ "typescript": "^5.7.2",
49
+ "winston-transport": "^4.9.0"
61
50
  },
62
51
  "files": [
63
52
  "lib"