@photon-os/sdk 1.0.0-alpha.6 → 1.0.0-alpha.7

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/dist/index.d.mts CHANGED
@@ -86,7 +86,6 @@ type LinkingCode = {
86
86
  };
87
87
  type OperatingSystemAPI = {
88
88
  system_homeButton: () => Promise<void>;
89
- system_getScale: () => Promise<number>;
90
89
  apps_getInstalledApps: () => Promise<AppDefinition[]>;
91
90
  apps_launchApp: (app: AppDefinition) => Promise<AppLaunchResult>;
92
91
  apps_foregroundApp: (app: AppDefinition) => Promise<void>;
@@ -190,15 +189,6 @@ declare class PreferencesManager {
190
189
  deleteShared(key: string): Promise<void>;
191
190
  }
192
191
 
193
- declare class SystemManager {
194
- private os;
195
- constructor(os: OS);
196
- /** Get the OS scale factor */
197
- getScale(): Promise<number>;
198
- /** Apply the OS scale factor to the current document */
199
- applyScale(): Promise<number>;
200
- }
201
-
202
192
  declare class UserManager {
203
193
  private os;
204
194
  constructor(os: OS);
@@ -214,7 +204,6 @@ declare class OS {
214
204
  apps: AppManager;
215
205
  devices: DeviceManager;
216
206
  prefs: PreferencesManager;
217
- system: SystemManager;
218
207
  user: UserManager;
219
208
  private config;
220
209
  constructor(config?: OSConfig);
package/dist/index.d.ts CHANGED
@@ -86,7 +86,6 @@ type LinkingCode = {
86
86
  };
87
87
  type OperatingSystemAPI = {
88
88
  system_homeButton: () => Promise<void>;
89
- system_getScale: () => Promise<number>;
90
89
  apps_getInstalledApps: () => Promise<AppDefinition[]>;
91
90
  apps_launchApp: (app: AppDefinition) => Promise<AppLaunchResult>;
92
91
  apps_foregroundApp: (app: AppDefinition) => Promise<void>;
@@ -190,15 +189,6 @@ declare class PreferencesManager {
190
189
  deleteShared(key: string): Promise<void>;
191
190
  }
192
191
 
193
- declare class SystemManager {
194
- private os;
195
- constructor(os: OS);
196
- /** Get the OS scale factor */
197
- getScale(): Promise<number>;
198
- /** Apply the OS scale factor to the current document */
199
- applyScale(): Promise<number>;
200
- }
201
-
202
192
  declare class UserManager {
203
193
  private os;
204
194
  constructor(os: OS);
@@ -214,7 +204,6 @@ declare class OS {
214
204
  apps: AppManager;
215
205
  devices: DeviceManager;
216
206
  prefs: PreferencesManager;
217
- system: SystemManager;
218
207
  user: UserManager;
219
208
  private config;
220
209
  constructor(config?: OSConfig);
package/dist/index.js CHANGED
@@ -1351,25 +1351,6 @@ var PreferencesManager = class {
1351
1351
  }
1352
1352
  };
1353
1353
 
1354
- // src/framework/SystemManager.ts
1355
- var SystemManager = class {
1356
- constructor(os) {
1357
- this.os = os;
1358
- }
1359
- /** Get the OS scale factor */
1360
- async getScale() {
1361
- const api2 = await this.os.getRPCAPI();
1362
- return await api2.system_getScale();
1363
- }
1364
- /** Apply the OS scale factor to the current document */
1365
- async applyScale() {
1366
- const scale = await this.getScale();
1367
- document.documentElement.style.setProperty("--os-scale", String(scale));
1368
- document.documentElement.style.zoom = String(scale);
1369
- return scale;
1370
- }
1371
- };
1372
-
1373
1354
  // src/framework/UserManager.ts
1374
1355
  var UserManager = class {
1375
1356
  constructor(os) {
@@ -1390,7 +1371,6 @@ var OS = class {
1390
1371
  this.apps = new AppManager(this);
1391
1372
  this.devices = new DeviceManager(this);
1392
1373
  this.prefs = new PreferencesManager(this);
1393
- this.system = new SystemManager(this);
1394
1374
  this.user = new UserManager(this);
1395
1375
  }
1396
1376
  async homeButton() {