Skip to content

Commit

Permalink
[update] runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
MatrixAge committed Aug 10, 2023
1 parent 81536da commit 13fc999
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 17 deletions.
31 changes: 23 additions & 8 deletions packages/xgen/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,47 +58,49 @@ import {
verticalListSortingStrategy
} from '@dnd-kit/sortable'
import { CSS } from '@dnd-kit/utilities'
import EditorJS from '@editorjs/editorjs'
import { Header, Image, Marker, NestedList, Paragraph, Underline } from '@yaoapp/editorjs_plugins'
import { local, session } from '@yaoapp/storex'

const import_maps = {
['react']: {
default: React,
...React,
__useDefault: true
...React,
__useDefault: true
},
['react-dom']: {
default: ReactDom,
...ReactDom,
__useDefault: true
__useDefault: true
},
['react-dom/client']: {
default: ReactDomClient,
...ReactDomClient,
__useDefault: true
__useDefault: true
},
['react/jsx-runtime']: {
...JsxRuntime
},

['react-shadow']: {
default: root,
__useDefault: true
__useDefault: true
},
['await-to-js']: {
default: to,
__useDefault: true
__useDefault: true
},
['ts-pattern']: {
match,
P
},
['axios']: {
default: axios,
__useDefault: true
__useDefault: true
},
['emittery']: {
default: Emittery,
__useDefault: true
__useDefault: true
},
['nanoid']: {
nanoid
Expand Down Expand Up @@ -162,6 +164,11 @@ const import_maps = {
CSS
},

['@editorjs/editorjs']: {
default: EditorJS,
__useDefault: true
},

['antd']: {
ConfigProvider,
Input,
Expand Down Expand Up @@ -193,6 +200,14 @@ const import_maps = {
['@yaoapp/storex']: {
local,
session
},
['@yaoapp/editorjs_plugins']: {
Header,
Image,
Marker,
NestedList,
Paragraph,
Underline
}
} as Record<string, System.Module>

Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 13fc999

Please sign in to comment.