Skip to content

Commit

Permalink
chore: get the Rollup bundle working (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 2, 2024
1 parent 33c860a commit 6c2a2eb
Show file tree
Hide file tree
Showing 12 changed files with 1,223 additions and 33 deletions.
4 changes: 2 additions & 2 deletions examples/browser/basic_usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<div id="jsoneditor"></div>

<script type="module">
import { JSONEditor } from '../../package-vanilla/standalone.js'
import { createJSONEditor } from '../../package-vanilla/standalone.js'

// create the editor
const editor = new JSONEditor({
const editor = createJSONEditor({
target: document.getElementById('jsoneditor')
})

Expand Down
4 changes: 2 additions & 2 deletions examples/browser/custom_theme_color.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ <h1>JSONEditor with a custom theme color and large font</h1>
<div id="my-jsoneditor"></div>

<script type="module">
import { JSONEditor } from '../../package-vanilla/standalone.js'
import { createJSONEditor } from '../../package-vanilla/standalone.js'

const editor = new JSONEditor({
const editor = createJSONEditor({
target: document.getElementById('my-jsoneditor'),
props: {
content: {
Expand Down
4 changes: 2 additions & 2 deletions examples/browser/custom_value_renderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1>Custom value renderer (password, enum, action)</h1>
<div id="jsoneditor"></div>

<script type="module">
import { JSONEditor, renderValue, EnumValue } from '../../package-vanilla/standalone.js'
import { createJSONEditor, renderValue, EnumValue } from '../../package-vanilla/standalone.js'
import { ReadonlyPasswordAction } from './components/ReadonlyPasswordAction.js'
import { EvaluatorAction } from './components/EvaluatorAction.js'

Expand Down Expand Up @@ -111,7 +111,7 @@ <h1>Custom value renderer (password, enum, action)</h1>
}

// create the editor
const editor = new JSONEditor({
const editor = createJSONEditor({
target: document.getElementById('jsoneditor'),
props: {
content,
Expand Down
4 changes: 2 additions & 2 deletions examples/browser/json_schema_validation.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>JSON schema validation</h1>
<div id="jsoneditor"></div>

<script type="module">
import { JSONEditor, createAjvValidator } from '../../package-vanilla/standalone.js'
import { createJSONEditor, createAjvValidator } from '../../package-vanilla/standalone.js'

const schema = {
title: 'Employee',
Expand Down Expand Up @@ -122,7 +122,7 @@ <h1>JSON schema validation</h1>

// create the editor
const target = document.getElementById('jsoneditor')
const editor = new JSONEditor({
const editor = createJSONEditor({
target: document.getElementById('jsoneditor'),
props: {
content,
Expand Down
4 changes: 2 additions & 2 deletions examples/browser/toggle_options.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div id="jsoneditor"></div>

<script type="module">
import { JSONEditor } from '../../package-vanilla/standalone.js'
import { createJSONEditor } from '../../package-vanilla/standalone.js'

const content = {
text: undefined,
Expand All @@ -45,7 +45,7 @@
}

// create the editor
const editor = new JSONEditor({
const editor = createJSONEditor({
target: document.getElementById('jsoneditor'),
props: {
content
Expand Down
Loading

0 comments on commit 6c2a2eb

Please sign in to comment.