Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
redgoose-dev committed Jun 16, 2024
1 parent 0bb89fb commit 1fe4aa4
Show file tree
Hide file tree
Showing 10 changed files with 516 additions and 535 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions docs/assets/index-885334bb.js

This file was deleted.

5 changes: 5 additions & 0 deletions docs/assets/index-CbbK33mH.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/index-DbaNkN54.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/assets/index-ee3b6c81.css

This file was deleted.

5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
<meta property="og:image" content="./images/json-editor-banner.webp">
<link rel="shortcut icon" href="./favicon.ico">
<link rel="icon" type="image/x-icon" href="./images/json-editor-icon.png">

<script type="module" crossorigin src="./assets/index-885334bb.js"></script>
<link rel="stylesheet" href="./assets/index-ee3b6c81.css">
<script type="module" crossorigin src="./assets/index-CbbK33mH.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DbaNkN54.css">
</head>
<body ontouchstart="">
<main id="app"></main>
Expand Down
8 changes: 5 additions & 3 deletions lib/json-editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ declare module '@redgoose/json-editor' {
live?: boolean
theme?: 'system' | 'light' | 'dark'
edit?: 'all' | 'value' | 'none'
openDepth?: boolean
node?: object | any[]
}
type typeData = any[] | object
type typeAddNodeOptions = {
Expand All @@ -12,7 +14,7 @@ declare module '@redgoose/json-editor' {
}
type typeNames = 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null'

class JsonEditor {
export default class JsonEditor {
// properties
options: typeOptions
context: Context
Expand All @@ -28,13 +30,13 @@ declare module '@redgoose/json-editor' {
fold(node: HTMLElement, sw?: boolean): void
clear(): void
destroy(): void
replace(data: typeData, useUpdate?: boolean): void
replace(data: typeData, options?: object, useUpdate?: boolean): void
import(target: HTMLElement, data: typeData, useUpdate?: boolean): void
export(node: HTMLElement, json?: boolean, space?: number): any[]|object
updateLanguage(): void
}

class Context {
export class Context {
constructor(parent: JsonEditor, node: HTMLElement, isRoot: boolean)
close(): void
}
Expand Down
Loading

0 comments on commit 1fe4aa4

Please sign in to comment.