@tooee/config 0.8.0 → 0.9.1

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.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export type { ColorMode, TooeeConfig } from "./types.js";
2
- export type { Mode } from "./types.js";
3
2
  export { loadConfig, writeGlobalConfig } from "./load.js";
4
3
  export { ConfigProvider, useConfig, useThemeConfig, useKeymapConfig } from "./context.js";
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzD,YAAY,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ColorMode, Mode } from "./index.js";
2
+ export type ConfigPublicContractChecks = [ColorMode, Mode];
3
+ //# sourceMappingURL=public-contract.typecheck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-contract.typecheck.d.ts","sourceRoot":"","sources":["../src/public-contract.typecheck.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,0BAA0B,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=public-contract.typecheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-contract.typecheck.js","sourceRoot":"","sources":["../src/public-contract.typecheck.ts"],"names":[],"mappings":""}
package/dist/types.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  export type ColorMode = "dark" | "light";
2
- /** @deprecated Use `ColorMode` instead. */
3
- export type Mode = ColorMode;
4
2
  export interface TooeeConfig {
5
3
  theme?: {
6
4
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,2CAA2C;AAC3C,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC;AAE7B,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,SAAS,CAAC;KAClB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;QACjD,sEAAsE;QACtE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KAChC,CAAC;CACH"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,SAAS,CAAC;KAClB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;QACjD,sEAAsE;QACtE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KAChC,CAAC;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tooee/config",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Layered configuration system for Tooee apps",
5
5
  "keywords": [
6
6
  "cli",
package/src/index.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  export type { ColorMode, TooeeConfig } from "./types.js";
2
- // oxlint-disable-next-line typescript/no-deprecated -- public compatibility alias
3
- export type { Mode } from "./types.js";
4
2
  export { loadConfig, writeGlobalConfig } from "./load.js";
5
3
  export { ConfigProvider, useConfig, useThemeConfig, useKeymapConfig } from "./context.js";
@@ -0,0 +1,4 @@
1
+ // @ts-expect-error Mode was removed from @tooee/config in 0.9; use ColorMode.
2
+ import type { ColorMode, Mode } from "./index.js";
3
+
4
+ export type ConfigPublicContractChecks = [ColorMode, Mode];
package/src/types.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  export type ColorMode = "dark" | "light";
2
2
 
3
- /** @deprecated Use `ColorMode` instead. */
4
- export type Mode = ColorMode;
5
-
6
3
  export interface TooeeConfig {
7
4
  theme?: {
8
5
  name?: string;