@telemetryos/cli 1.7.4 → 1.7.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @telemetryos/cli
2
2
 
3
+ ## 1.7.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixes issue with arrays in store state hooks. Adds more React settings components.
8
+ - Updated dependencies
9
+ - @telemetryos/development-application-host-ui@1.7.5
10
+
3
11
  ## 1.7.4
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telemetryos/cli",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "The official TelemetryOS application CLI package. Use it to build applications that run on the TelemetryOS platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "license": "",
26
26
  "repository": "github:TelemetryTV/Application-API",
27
27
  "dependencies": {
28
- "@telemetryos/development-application-host-ui": "^1.7.4",
28
+ "@telemetryos/development-application-host-ui": "^1.7.5",
29
29
  "@types/serve-handler": "^6.1.4",
30
30
  "commander": "^14.0.0",
31
31
  "inquirer": "^12.9.6",
@@ -1,5 +1,5 @@
1
- import { createUseStoreState } from '@telemetryos/sdk/react'
1
+ import { createUseInstanceStoreState } from '@telemetryos/sdk/react'
2
2
 
3
- export const useUiScaleStoreState = createUseStoreState<number>('ui-scale', 1)
3
+ export const useUiScaleStoreState = createUseInstanceStoreState<number>('ui-scale', 1)
4
4
 
5
- export const useSubtitleStoreState = createUseStoreState<string>('subtitle', 'Change this line in settings ⚙️ ↗️')
5
+ export const useSubtitleStoreState = createUseInstanceStoreState<string>('subtitle', 'Change this line in settings ⚙️ ↗️')
@@ -5,7 +5,6 @@
5
5
  html {
6
6
  font-size: 1vmax;
7
7
  height: 100%;
8
- overflow: hidden;
9
8
  }
10
9
 
11
10
  body {
@@ -8,6 +8,7 @@
8
8
  padding: 5vmin;
9
9
  color: hsl(210 40% 88%);
10
10
  background: hsl(212 28% 10%);
11
+ overflow: hidden;
11
12
  }
12
13
 
13
14
  .render__logo {
@@ -1,13 +1,12 @@
1
- import { store } from '@telemetryos/sdk'
2
1
  import { useUiScaleToSetRem } from '@telemetryos/sdk/react'
3
2
  import wordMarkPath from '../../assets/telemetryos-wordmark.svg'
4
3
  import { useSubtitleStoreState, useUiScaleStoreState } from '../hooks/store'
5
4
  import './Render.css'
6
5
 
7
6
  export function Render() {
8
- const [_isUiScaleLoading, uiScale] = useUiScaleStoreState(store().instance)
7
+ const [_isUiScaleLoading, uiScale] = useUiScaleStoreState()
9
8
  useUiScaleToSetRem(uiScale)
10
- const [isLoading, subtitle] = useSubtitleStoreState(store().instance)
9
+ const [isLoading, subtitle] = useSubtitleStoreState()
11
10
 
12
11
  return (
13
12
  <div className="render">
@@ -1,4 +1,3 @@
1
- import { store } from '@telemetryos/sdk'
2
1
  import {
3
2
  SettingsContainer,
4
3
  SettingsDivider,
@@ -10,8 +9,8 @@ import {
10
9
  import { useSubtitleStoreState, useUiScaleStoreState } from '../hooks/store'
11
10
 
12
11
  export function Settings() {
13
- const [isLoadingUiScale, uiScale, setUiScale] = useUiScaleStoreState(store().instance)
14
- const [isLoading, subtitle, setSubtitle] = useSubtitleStoreState(store().instance)
12
+ const [isLoadingUiScale, uiScale, setUiScale] = useUiScaleStoreState(0)
13
+ const [isLoading, subtitle, setSubtitle] = useSubtitleStoreState()
15
14
 
16
15
  return (
17
16
  <SettingsContainer>