@flighthq/application 0.5.1-next.731.0ae0aa4 → 0.5.1-next.799.62ef0c7

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/application`. The `@
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/application@0.5.1-next.731.0ae0aa4](https://github.com/flighthq/flight/tree/0ae0aa49d8251d23b546f64bc242f3ad59a98dcb/packages/application)
17
- - [License](https://github.com/flighthq/flight/blob/0ae0aa49d8251d23b546f64bc242f3ad59a98dcb/LICENSE.md)
16
+ - [Source for @flighthq/application@0.5.1-next.799.62ef0c7](https://github.com/flighthq/flight/tree/62ef0c74f09f24177aac3695b2487b2d743d4fe6/packages/application)
17
+ - [License](https://github.com/flighthq/flight/blob/62ef0c74f09f24177aac3695b2487b2d743d4fe6/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/application",
3
- "version": "0.5.1-next.731.0ae0aa4",
3
+ "version": "0.5.1-next.799.62ef0c7",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,9 +38,9 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/entity": "0.5.1-next.731.0ae0aa4",
42
- "@flighthq/signals": "0.5.1-next.731.0ae0aa4",
43
- "@flighthq/types": "0.5.1-next.731.0ae0aa4"
41
+ "@flighthq/entity": "0.5.1-next.799.62ef0c7",
42
+ "@flighthq/signals": "0.5.1-next.799.62ef0c7",
43
+ "@flighthq/types": "0.5.1-next.799.62ef0c7"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.3.0"
@@ -157,7 +157,7 @@ function recordingWindowBackend(): RecordingWindowBackend {
157
157
  const resizeListeners = new Set<(width: number, height: number, devicePixelRatio: number) => void>();
158
158
  const visibilityListeners = new Set<(visible: boolean) => void>();
159
159
  const calls: string[] = [];
160
- return {
160
+ return createEntity<EntityWithoutRuntime<RecordingWindowBackend>>({
161
161
  calls,
162
162
  emitCloseRequest() {
163
163
  let cancelled = false;
@@ -296,7 +296,7 @@ function recordingWindowBackend(): RecordingWindowBackend {
296
296
  visibilityListeners.add(listener);
297
297
  return () => visibilityListeners.delete(listener);
298
298
  },
299
- };
299
+ });
300
300
  }
301
301
 
302
302
  function createInputTarget(): InputTargetHandle {
@@ -304,7 +304,7 @@ function createInputTarget(): InputTargetHandle {
304
304
  }
305
305
 
306
306
  function createWindowResizeTarget(): WindowResizeTargetHandle {
307
- return { __brand: 'WindowResizeTargetHandle' };
307
+ return createEntity({ __brand: 'WindowResizeTargetHandle' as const });
308
308
  }
309
309
 
310
310
  function recordingFullscreenBackend(): RecordingFullscreenBackend {
@@ -1467,7 +1467,7 @@ describe('prepareElementForInput', () => {
1467
1467
 
1468
1468
  describe('requestApplicationFullscreen', () => {
1469
1469
  it('passes the opaque target to the fullscreen capability', async () => {
1470
- const target: FullscreenTargetHandle = { __brand: 'FullscreenTargetHandle' };
1470
+ const target: FullscreenTargetHandle = createEntity({ __brand: 'FullscreenTargetHandle' as const });
1471
1471
  await expect(requestApplicationFullscreen(host, target)).resolves.toBe(true);
1472
1472
  expect(host.ui.fullscreen.calls).toEqual(['request']);
1473
1473
  });