change
This commit is contained in:
parent
7327a134b1
commit
c4dd362398
11
package.json
11
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/container",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "",
|
||||
"main": "dist/container.js",
|
||||
"publishConfig": {
|
||||
@ -16,10 +16,6 @@
|
||||
"./edit": {
|
||||
"import": "./dist/container-edit.js",
|
||||
"require": "./dist/container-edit.js"
|
||||
},
|
||||
"./container.css": {
|
||||
"import": "./dist/container.css",
|
||||
"require": "./dist/container.css"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
@ -44,6 +40,8 @@
|
||||
"rimraf": "^6.0.1",
|
||||
"rollup": "^4.22.4",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"rollup-plugin-dts": "^6.1.1",
|
||||
"scheduler": "^0.23.2",
|
||||
"typescript": "^5.5.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@ -52,9 +50,8 @@
|
||||
"eventemitter3": "^5.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@kevisual/router": "0.0.6-alpha-2",
|
||||
"nanoid": "^5.0.7",
|
||||
"rollup-plugin-dts": "^6.1.1",
|
||||
"scheduler": "^0.23.2",
|
||||
"zustand": "^4.5.5"
|
||||
}
|
||||
}
|
13
src/browser.ts
Normal file
13
src/browser.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { QueryRouterServer } from '@kevisual/router/browser';
|
||||
|
||||
export const app = new QueryRouterServer({});
|
||||
|
||||
app
|
||||
.route({
|
||||
path: 'demo',
|
||||
key: 'demo',
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
//
|
||||
})
|
||||
.addTo(app);
|
@ -1,9 +1,9 @@
|
||||
// @ts-nocheck
|
||||
import createEmotion from '@emotion/css/create-instance';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
import { ContainerEvent } from './event/continer';
|
||||
import { RenderCode } from './render';
|
||||
import { codeUrlManager } from './code-url';
|
||||
import { ContainerEvent } from '../event/continer';
|
||||
import { RenderCode } from '../render';
|
||||
import { codeUrlManager } from '../code-url';
|
||||
|
||||
const handleOneCode = async (data: RenderData) => {
|
||||
const { code } = data;
|
@ -1,4 +1,4 @@
|
||||
import { handleCode, RenderData } from '../container-old';
|
||||
import { handleCode, RenderData } from '../legacy/container-old';
|
||||
import { createStore } from 'zustand/vanilla';
|
||||
export type ContainerStore = {
|
||||
loading: boolean;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { RenderData } from '../container-old';
|
||||
import { RenderData } from '../legacy/container-old';
|
||||
|
||||
export const getTree = (data: RenderData[], id: string) => {
|
||||
const node = data.find((node) => node.id === id);
|
||||
|
@ -12,9 +12,12 @@
|
||||
"strict": false,
|
||||
"baseUrl": ".",
|
||||
"rootDir": "src",
|
||||
"moduleResolution": "bundler",
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"jsx": "react-jsx",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"moduleResolution": "node",
|
||||
"declaration": true
|
||||
},
|
||||
"include": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user