react-luna-form 0.0.45 → 0.0.47

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.
@@ -1,4 +1,5 @@
1
- export declare function FieldPreviewItem({ name, separator, }: Readonly<{
1
+ export declare function FieldPreviewItem({ initialValue, name, separator, }: Readonly<{
2
+ initialValue?: unknown;
2
3
  name: string;
3
4
  separator?: boolean;
4
5
  }>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,6 @@
1
- export declare function FieldPreview({ name, previews, }: Readonly<{
1
+ import type { Nullable } from '@luna-form/core';
2
+ export declare function FieldPreview({ name, previews, value, }: Readonly<{
2
3
  name: string;
3
4
  previews: string[];
5
+ value?: Nullable<Record<string, unknown>>;
4
6
  }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function resolveValue(name: string, currentValue: Record<string, unknown>): unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-luna-form",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "A React library for building forms based on JSON",
5
5
  "main": "./dist/client/cjs/index.js",
6
6
  "module": "./dist/client/esm/index.js",
@@ -34,7 +34,7 @@
34
34
  "eslint-plugin-react": "7.37.5",
35
35
  "eslint-plugin-react-hooks": "7.1.1",
36
36
  "eslint-plugin-react-refresh": "0.5.2",
37
- "@luna-form/core": "0.0.45"
37
+ "@luna-form/core": "0.0.47"
38
38
  },
39
39
  "license": "Apache-2.0",
40
40
  "repository": {
@@ -64,7 +64,7 @@
64
64
  }
65
65
  },
66
66
  "scripts": {
67
- "build": "node esbuild.mjs && pnpm run types",
67
+ "build": "rm -rf dist && node esbuild.mjs && pnpm run types",
68
68
  "dev": "node esbuild.mjs --watch",
69
69
  "lint": "eslint . --cache",
70
70
  "prettier:check": "prettier --check .",
@@ -1,4 +0,0 @@
1
- export type PersistenceContextValue = {
2
- isDeleting: boolean;
3
- };
4
- export declare const PersistenceContext: import("react").Context<PersistenceContextValue>;