@companion-surface/base 0.0.1 → 0.1.2

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 ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## [0.1.2](https://github.com/bitfocus/companion-surface-api/compare/companion-surface-base-v0.1.1...companion-surface-base-v0.1.2) (2025-10-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * readd missing utils ([bcbc0a9](https://github.com/bitfocus/companion-surface-api/commit/bcbc0a9b887c5863c485d9b284dceec9693ab985))
9
+
10
+ ## [0.1.1](https://github.com/bitfocus/companion-surface-api/compare/companion-surface-base-v0.1.0...companion-surface-base-v0.1.1) (2025-10-19)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * force bump ([abd9a9d](https://github.com/bitfocus/companion-surface-api/commit/abd9a9df429c013ba2dfcaf8cbfa4a51b49aab3c))
16
+
17
+ ## [0.1.0](https://github.com/bitfocus/companion-surface-api/compare/companion-surface-base-v0.0.1...companion-surface-base-v0.1.0) (2025-10-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * initial draft ([802f64d](https://github.com/bitfocus/companion-surface-api/commit/802f64daaf91bd61eaeb155ccc285547939f6548))
package/dist/main.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './manifest.js';
2
2
  export * from './surface-api/index.js';
3
+ export * from './util.js';
3
4
  export type * from '../generated/surface-layout.d.ts';
4
5
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AAEtC,mBAAmB,kCAAkC,CAAA"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA;AAEzB,mBAAmB,kCAAkC,CAAA"}
package/dist/main.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './manifest.js';
2
2
  export * from './surface-api/index.js';
3
+ export * from './util.js';
3
4
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA"}
package/dist/util.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export declare function assertNever(_v: never): void;
2
+ export declare function parseColor(color: string | undefined): {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ };
7
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,EAAE,EAAE,KAAK,GAAG,IAAI,CAE3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAMzF"}
package/dist/util.js ADDED
@@ -0,0 +1,10 @@
1
+ export function assertNever(_v) {
2
+ // Nothing to do
3
+ }
4
+ export function parseColor(color) {
5
+ const r = color ? parseInt(color.substr(1, 2), 16) : 0;
6
+ const g = color ? parseInt(color.substr(3, 2), 16) : 0;
7
+ const b = color ? parseInt(color.substr(5, 2), 16) : 0;
8
+ return { r, g, b };
9
+ }
10
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAC,EAAS;IACpC,gBAAgB;AACjB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAyB;IACnD,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACtD,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACtD,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtD,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAA;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-surface/base",
3
- "version": "0.0.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/bitfocus/companion-surface-api",