@flighthq/scene2d-resources 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787

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/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/scene2d-resources`.
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/scene2d-resources@0.5.1-next.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/scene2d-resources)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/scene2d-resources@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/scene2d-resources)
17
+ - [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/scene2d-resources",
3
- "version": "0.5.1-next.903.f434bc2",
3
+ "version": "0.5.1-next.905.5fbf787",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,15 +38,15 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/audio": "0.5.1-next.903.f434bc2",
42
- "@flighthq/entity": "0.5.1-next.903.f434bc2",
43
- "@flighthq/image": "0.5.1-next.903.f434bc2",
44
- "@flighthq/node": "0.5.1-next.903.f434bc2",
45
- "@flighthq/scene2d": "0.5.1-next.903.f434bc2",
46
- "@flighthq/scene2d-formats": "0.5.1-next.903.f434bc2",
47
- "@flighthq/signals": "0.5.1-next.903.f434bc2",
48
- "@flighthq/texture": "0.5.1-next.903.f434bc2",
49
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/audio": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/image": "0.5.1-next.905.5fbf787",
44
+ "@flighthq/node": "0.5.1-next.905.5fbf787",
45
+ "@flighthq/scene2d": "0.5.1-next.905.5fbf787",
46
+ "@flighthq/scene2d-formats": "0.5.1-next.905.5fbf787",
47
+ "@flighthq/signals": "0.5.1-next.905.5fbf787",
48
+ "@flighthq/texture": "0.5.1-next.905.5fbf787",
49
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@flighthq/image-codec": "*",
@@ -3,7 +3,12 @@ import { createEmbeddedImageResourceReference } from '@flighthq/image/contract';
3
3
  import { createDisplayObject } from '@flighthq/scene2d/contract';
4
4
  import { EntityRuntimeKey } from '@flighthq/types/contract';
5
5
 
6
- import { createScene2DDocument, createScene2DSlotReference } from './scene2DDocument';
6
+ import {
7
+ createScene2DDocument,
8
+ createScene2DSlotReference,
9
+ initializeScene2DDocument,
10
+ initializeScene2DSlotReference,
11
+ } from './scene2DDocument';
7
12
 
8
13
  describe('createScene2DDocument', () => {
9
14
  it('retains the unattached root and all three enumerable contracts', () => {
@@ -41,3 +46,14 @@ describe('createScene2DSlotReference', () => {
41
46
  expect(reference[EntityRuntimeKey]).toBeUndefined();
42
47
  });
43
48
  });
49
+ describe('initializeScene2DDocument', () => {
50
+ it('is the construction initializer of createScene2DDocument', () => {
51
+ expect(typeof initializeScene2DDocument).toBe('function');
52
+ });
53
+ });
54
+
55
+ describe('initializeScene2DSlotReference', () => {
56
+ it('is the construction initializer of createScene2DSlotReference', () => {
57
+ expect(typeof initializeScene2DSlotReference).toBe('function');
58
+ });
59
+ });
@@ -4,6 +4,7 @@ import { createScene2DDocument } from './scene2DDocument';
4
4
  import {
5
5
  createScene2DDocumentFromBytes,
6
6
  createScene2DDocumentImporterRegistry,
7
+ initializeScene2DDocumentImporterRegistry,
7
8
  registerScene2DDocumentImporter,
8
9
  unregisterScene2DDocumentImporter,
9
10
  } from './scene2DDocumentImporterRegistry';
@@ -35,6 +36,12 @@ describe('createScene2DDocumentImporterRegistry', () => {
35
36
  });
36
37
  });
37
38
 
39
+ describe('initializeScene2DDocumentImporterRegistry', () => {
40
+ it('is the construction initializer of createScene2DDocumentImporterRegistry', () => {
41
+ expect(typeof initializeScene2DDocumentImporterRegistry).toBe('function');
42
+ });
43
+ });
44
+
38
45
  describe('registerScene2DDocumentImporter', () => {
39
46
  it('replaces a kind in place with last-write-wins behavior', () => {
40
47
  const registry = createScene2DDocumentImporterRegistry();
@@ -46,7 +53,6 @@ describe('registerScene2DDocumentImporter', () => {
46
53
  expect(registry.entries[0].importDocument).toBe(second);
47
54
  });
48
55
  });
49
-
50
56
  describe('unregisterScene2DDocumentImporter', () => {
51
57
  it('removes an existing kind and reports absence', () => {
52
58
  const registry = createScene2DDocumentImporterRegistry();