@entifix/react-controls 0.1.3 → 0.2.0

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.
@@ -16,7 +16,7 @@ export interface UiPreferencesState {
16
16
  write<TValue>(key: string, value: TValue): Effect.Effect<void, EntifixError>;
17
17
  remove(key: string): Effect.Effect<void, EntifixError>;
18
18
  }
19
- declare const UiPreferencesStateTag_base: Context.TagClass<UiPreferencesStateTag, "UiPreferencesState", UiPreferencesState>;
19
+ declare const UiPreferencesStateTag_base: Context.ServiceClass<UiPreferencesStateTag, "UiPreferencesState", UiPreferencesState>;
20
20
  export declare class UiPreferencesStateTag extends UiPreferencesStateTag_base {
21
21
  }
22
22
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ui-preferences-state.d.ts","sourceRoot":"","sources":["../../src/preferences/ui-preferences-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,EAAE,YAAY,CAAC,CAAC;IAC3E,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC7E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;CACxD;;AAED,qBAAa,qBAAsB,SAAQ,0BAGxC;CAAG"}
1
+ {"version":3,"file":"ui-preferences-state.d.ts","sourceRoot":"","sources":["../../src/preferences/ui-preferences-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,EAAE,YAAY,CAAC,CAAC;IAC3E,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC7E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;CACxD;;AAED,qBAAa,qBAAsB,SAAQ,0BAGlB;CAAG"}
@@ -1,5 +1,5 @@
1
1
  import { Context } from 'effect';
2
- export class UiPreferencesStateTag extends Context.Tag('UiPreferencesState')() {
2
+ export class UiPreferencesStateTag extends Context.Service()('UiPreferencesState') {
3
3
  }
4
4
 
5
5
  //# sourceMappingURL=ui-preferences-state.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/preferences/ui-preferences-state.ts"],"sourcesContent":["import type { EntifixError } from '@entifix/core';\nimport { Context, type Effect } from 'effect';\n\n/**\n * Where a user's UI personalization lives — column order and visibility today,\n * any other per-user view state later.\n *\n * The port is Effect-returning and therefore free to be asynchronous: the\n * shipped adapter writes to `localStorage` synchronously, but a server-backed\n * store (per-user preferences fetched over HTTP) is a drop-in replacement that\n * no component has to be rewritten for.\n *\n * Values are stored and returned as-is; adapters own their own encoding.\n */\nexport interface UiPreferencesState {\n read<TValue>(key: string): Effect.Effect<TValue | undefined, EntifixError>;\n write<TValue>(key: string, value: TValue): Effect.Effect<void, EntifixError>;\n remove(key: string): Effect.Effect<void, EntifixError>;\n}\n\nexport class UiPreferencesStateTag extends Context.Tag('UiPreferencesState')<\n UiPreferencesStateTag,\n UiPreferencesState\n>() {}\n"],"names":["Context","UiPreferencesStateTag","Tag"],"mappings":"AACA,SAASA,OAAO,QAAqB,SAAS;AAmB9C,OAAO,MAAMC,8BAA8BD,QAAQE,GAAG,CAAC;AAGlD"}
1
+ {"version":3,"sources":["../../src/preferences/ui-preferences-state.ts"],"sourcesContent":["import type { EntifixError } from '@entifix/core';\nimport { Context, type Effect } from 'effect';\n\n/**\n * Where a user's UI personalization lives — column order and visibility today,\n * any other per-user view state later.\n *\n * The port is Effect-returning and therefore free to be asynchronous: the\n * shipped adapter writes to `localStorage` synchronously, but a server-backed\n * store (per-user preferences fetched over HTTP) is a drop-in replacement that\n * no component has to be rewritten for.\n *\n * Values are stored and returned as-is; adapters own their own encoding.\n */\nexport interface UiPreferencesState {\n read<TValue>(key: string): Effect.Effect<TValue | undefined, EntifixError>;\n write<TValue>(key: string, value: TValue): Effect.Effect<void, EntifixError>;\n remove(key: string): Effect.Effect<void, EntifixError>;\n}\n\nexport class UiPreferencesStateTag extends Context.Service<\n UiPreferencesStateTag,\n UiPreferencesState\n>()('UiPreferencesState') {}\n"],"names":["Context","UiPreferencesStateTag","Service"],"mappings":"AACA,SAASA,OAAO,QAAqB,SAAS;AAmB9C,OAAO,MAAMC,8BAA8BD,QAAQE,OAAO,GAGtD;AAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entifix/react-controls",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Entity-agnostic React UI — table, form, filters, wizard, command palette — rendered from entity metadata, plus layout primitives.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "@headlessui/react": "^2.2.10",
20
20
  "class-variance-authority": "^0.7.1",
21
21
  "idb": "^8.0.3",
22
- "@entifix/core": "0.1.3"
22
+ "@entifix/core": "0.2.0"
23
23
  },
24
24
  "exports": {
25
25
  "./package.json": "./package.json",
@@ -51,13 +51,13 @@
51
51
  "@storybook/addon-docs": "^10.5.3",
52
52
  "@storybook/addon-themes": "^10.5.3",
53
53
  "@storybook/react-vite": "^10.5.3",
54
- "effect": "3.22.1",
54
+ "effect": "4.0.5",
55
55
  "i18next": "26.3.6",
56
56
  "react": "19.2.8",
57
57
  "react-i18next": "17.0.11",
58
58
  "storybook": "^10.5.3",
59
- "@entifix/i18n": "0.1.3",
60
- "@entifix/style": "0.1.3"
59
+ "@entifix/i18n": "0.2.0",
60
+ "@entifix/style": "0.2.0"
61
61
  },
62
62
  "nx": {
63
63
  "tags": [
@@ -96,11 +96,11 @@
96
96
  }
97
97
  },
98
98
  "peerDependencies": {
99
- "effect": ">=3.22 <4",
99
+ "effect": "^4.0.5",
100
100
  "i18next": ">=26 <27",
101
101
  "react": ">=19 <20",
102
102
  "react-i18next": ">=17 <18",
103
- "@entifix/i18n": "0.1.3"
103
+ "@entifix/i18n": "0.2.0"
104
104
  },
105
105
  "peerDependenciesMeta": {
106
106
  "@entifix/i18n": {