@pygmalionjs/pygmalion 0.2.8 → 0.2.9

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +23 -21
  3. package/vite.d.ts +23 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/types.d.ts CHANGED
@@ -474,28 +474,30 @@ export interface RoutePreviewArtifactBundleV1 {
474
474
  }
475
475
 
476
476
  export interface RoutePreviewArtifactBundleV2 {
477
- version: 2;
478
- namespace: string;
479
- sourceRevision?: string;
480
- assets: {
481
- head: Record<string, string>;
482
- stylesheets: Record<string, string>;
477
+ readonly version: 2;
478
+ readonly namespace: string;
479
+ readonly sourceRevision?: string;
480
+ readonly assets: {
481
+ readonly head: Readonly<Record<string, string>>;
482
+ readonly stylesheets: Readonly<Record<string, string>>;
483
483
  };
484
- frames: Record<
485
- string,
486
- {
487
- document: {
488
- doctype: string;
489
- htmlAttributes: string;
490
- headAttributes: string;
491
- bodyAttributes: string;
492
- };
493
- head: {
494
- kind: 'head' | 'stylesheet';
495
- hash: string;
496
- }[];
497
- body: string;
498
- }
484
+ readonly frames: Readonly<
485
+ Record<
486
+ string,
487
+ {
488
+ readonly document: {
489
+ readonly doctype: string;
490
+ readonly htmlAttributes: string;
491
+ readonly headAttributes: string;
492
+ readonly bodyAttributes: string;
493
+ };
494
+ readonly head: readonly {
495
+ readonly kind: 'head' | 'stylesheet';
496
+ readonly hash: string;
497
+ }[];
498
+ readonly body: string;
499
+ }
500
+ >
499
501
  >;
500
502
  }
501
503
 
package/vite.d.ts CHANGED
@@ -365,28 +365,30 @@ export interface PygmalionRoutePreviewArtifactV1 {
365
365
  }
366
366
 
367
367
  export interface PygmalionRoutePreviewArtifactV2 {
368
- version: 2;
369
- namespace: string;
370
- sourceRevision?: string;
371
- assets: {
372
- head: Record<string, string>;
373
- stylesheets: Record<string, string>;
368
+ readonly version: 2;
369
+ readonly namespace: string;
370
+ readonly sourceRevision?: string;
371
+ readonly assets: {
372
+ readonly head: Readonly<Record<string, string>>;
373
+ readonly stylesheets: Readonly<Record<string, string>>;
374
374
  };
375
- frames: Record<
376
- string,
377
- {
378
- document: {
379
- doctype: string;
380
- htmlAttributes: string;
381
- headAttributes: string;
382
- bodyAttributes: string;
383
- };
384
- head: {
385
- kind: 'head' | 'stylesheet';
386
- hash: string;
387
- }[];
388
- body: string;
389
- }
375
+ readonly frames: Readonly<
376
+ Record<
377
+ string,
378
+ {
379
+ readonly document: {
380
+ readonly doctype: string;
381
+ readonly htmlAttributes: string;
382
+ readonly headAttributes: string;
383
+ readonly bodyAttributes: string;
384
+ };
385
+ readonly head: readonly {
386
+ readonly kind: 'head' | 'stylesheet';
387
+ readonly hash: string;
388
+ }[];
389
+ readonly body: string;
390
+ }
391
+ >
390
392
  >;
391
393
  }
392
394