@flighthq/statusbar 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/statusbar`. The `@fl
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/statusbar@0.5.1-next.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/statusbar)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/statusbar@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/statusbar)
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/statusbar",
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,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.903.f434bc2",
42
- "@flighthq/signals": "0.5.1-next.903.f434bc2",
43
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/signals": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.3.0"
@@ -8,6 +8,7 @@ import type {
8
8
  import { describe, expect, it, vi } from 'vitest';
9
9
 
10
10
  import * as statusbar from './statusbar';
11
+ import { initializeStatusBar, initializeStatusBarInfo } from './statusbar';
11
12
 
12
13
  describe('attachStatusBar', () => {
13
14
  it('pins both event and snapshot providers at attachment time', () => {
@@ -99,6 +100,18 @@ describe('hasStatusBarStyleEntry', () => {
99
100
  });
100
101
  });
101
102
 
103
+ describe('initializeStatusBar', () => {
104
+ it('is the construction initializer of createStatusBar', () => {
105
+ expect(typeof initializeStatusBar).toBe('function');
106
+ });
107
+ });
108
+
109
+ describe('initializeStatusBarInfo', () => {
110
+ it('is the construction initializer of createStatusBarInfo', () => {
111
+ expect(typeof initializeStatusBarInfo).toBe('function');
112
+ });
113
+ });
114
+
102
115
  describe('packedRgbaToHexColor', () => {
103
116
  it('drops alpha and pads hex digits', () => expect(statusbar.packedRgbaToHexColor(0x01020304)).toBe('#010203'));
104
117
  });
@@ -138,22 +151,6 @@ describe('setStatusBarOverlaysContent', () => {
138
151
  });
139
152
  });
140
153
 
141
- describe('setStatusBarStyle', () => {
142
- it('uses only the style slot', () => {
143
- const provider = fakeHost('light');
144
- statusbar.setStatusBarStyle(provider.host, 'dark');
145
- expect(provider.setStyle).toHaveBeenCalledWith('dark');
146
- });
147
- });
148
-
149
- describe('setStatusBarVisible', () => {
150
- it('uses only the visibility slot', () => {
151
- const provider = fakeHost('light');
152
- statusbar.setStatusBarVisible(provider.host, false, 'fade');
153
- expect(provider.setVisible).toHaveBeenCalledWith(false, 'fade');
154
- });
155
- });
156
-
157
154
  function fakeHost(initialStyle: StatusBarStyle) {
158
155
  let listener: (() => void) | null = null;
159
156
  const unsubscribe = vi.fn(() => {
@@ -199,3 +196,18 @@ function fakeHost(initialStyle: StatusBarStyle) {
199
196
  unsubscribe,
200
197
  };
201
198
  }
199
+ describe('setStatusBarStyle', () => {
200
+ it('uses only the style slot', () => {
201
+ const provider = fakeHost('light');
202
+ statusbar.setStatusBarStyle(provider.host, 'dark');
203
+ expect(provider.setStyle).toHaveBeenCalledWith('dark');
204
+ });
205
+ });
206
+
207
+ describe('setStatusBarVisible', () => {
208
+ it('uses only the visibility slot', () => {
209
+ const provider = fakeHost('light');
210
+ statusbar.setStatusBarVisible(provider.host, false, 'fade');
211
+ expect(provider.setVisible).toHaveBeenCalledWith(false, 'fade');
212
+ });
213
+ });