@declarion/react 0.1.29 → 0.1.31

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.
@@ -6,9 +6,10 @@ import type { Action, ActionCondition, Schema } from "../types/schema";
6
6
  */
7
7
  export declare function evaluateConditions(conditions: ActionCondition[] | undefined, row: Record<string, unknown>): boolean;
8
8
  /**
9
- * Returns actions from an entity that match a given visibility placement.
10
- * Accepts canonical values (detail | list_row | list_toolbar | global) and
11
- * transparently matches legacy aliases (toolbar | row).
9
+ * Returns actions from an entity whose visibility array contains the given
10
+ * placement. Canonical values: detail | list_row | list_toolbar | app_menu |
11
+ * nav_create | command_palette. Schema validator rejects unknown values at
12
+ * load time so we don't need runtime alias handling here.
12
13
  */
13
14
  export declare function getActionsByVisibility(actions: Record<string, Action> | undefined, visibility: string): Array<{
14
15
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",
@@ -25,6 +25,14 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
+ "scripts": {
29
+ "dev": "vite",
30
+ "build": "tsc --noEmit && vite build",
31
+ "build:lib": "vite build --config vite.lib.config.ts && tsc -p tsconfig.lib.json && tsc-alias -p tsconfig.lib.json",
32
+ "lint": "tsc --noEmit",
33
+ "test": "vitest run",
34
+ "preview": "vite preview"
35
+ },
28
36
  "peerDependencies": {
29
37
  "react": "^19.0.0",
30
38
  "react-dom": "^19.0.0"
@@ -74,13 +82,5 @@
74
82
  "typescript": "^5.7.0",
75
83
  "vite": "^6.0.0",
76
84
  "vitest": "^4.1.0"
77
- },
78
- "scripts": {
79
- "dev": "vite",
80
- "build": "tsc --noEmit && vite build",
81
- "build:lib": "vite build --config vite.lib.config.ts && tsc -p tsconfig.lib.json && tsc-alias -p tsconfig.lib.json",
82
- "lint": "tsc --noEmit",
83
- "test": "vitest run",
84
- "preview": "vite preview"
85
85
  }
86
- }
86
+ }