Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
sagold committed Apr 4, 2024
1 parent a5e5988 commit 4d48dcb
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,4 @@

import './7334.1c190779.iframe.bundle.js';

import './main.19bf6afe.iframe.bundle.js';</script></body></html>
import './main.e866d94b.iframe.bundle.js';</script></body></html>
2 changes: 0 additions & 2 deletions docs/main.19bf6afe.iframe.bundle.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/main.e866d94b.iframe.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"generatedAt":1711445137198,"hasCustomBabel":true,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.6.1"},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"7.0.25","storybookVersionSpecifier":"7.0.25","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"7.0.25"},"@storybook/addon-essentials":{"version":"7.0.25"},"@storybook/addon-interactions":{"version":"7.0.25"},"@storybook/addon-links":{"version":"7.0.25"},"@storybook/addon-mdx-gfm":{"version":"7.0.25"},"@storybook/react":{"version":"7.0.25"},"@storybook/react-webpack5":{"version":"7.0.25"},"@storybook/testing-library":{"version":"0.2.0"},"eslint-plugin-storybook":{"version":"0.6.13"},"storybook":{"version":"7.0.25"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null}}}
{"generatedAt":1712222519443,"hasCustomBabel":true,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.6.1"},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"7.0.25","storybookVersionSpecifier":"7.0.25","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"7.0.25"},"@storybook/addon-essentials":{"version":"7.0.25"},"@storybook/addon-interactions":{"version":"7.0.25"},"@storybook/addon-links":{"version":"7.0.25"},"@storybook/addon-mdx-gfm":{"version":"7.0.25"},"@storybook/react":{"version":"7.0.25"},"@storybook/react-webpack5":{"version":"7.0.25"},"@storybook/testing-library":{"version":"0.2.0"},"eslint-plugin-storybook":{"version":"0.6.13"},"storybook":{"version":"7.0.25"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null}}}
30 changes: 21 additions & 9 deletions packages/headless-json-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,34 +114,46 @@ You may work on a node-tree using the functional api. Functions that modify a tr

## node

get current validation errors of node
get current value of valueNode

```ts
const errors: JsonError[] = node.errors;
const value = node.value;
```

get json-schema of value
get type of node

```ts
const schema: JsonSchema = node.schema;
const nodeType: string = node.type;
```

get options for current node
get current json-pointer of node

```ts
const options = node.options;
const nodeLocation: string = node.pointer;
```

get current value of valueNode
get current validation errors of node

```ts
const value = node.value;
const errors: JsonError[] = node.errors;
```

get options for current node

```ts
const options: Record<string, any> = node.options;
```

get children of parentNode

```ts
const value = node.children;
const value: Node[] = node.children;
```

get json-schema of value

```ts
const schema: JsonSchema = node.schema;
```


Expand Down

0 comments on commit 4d48dcb

Please sign in to comment.