diff --git a/demos/index.html b/demos/index.html new file mode 100644 index 000000000..c925919f6 --- /dev/null +++ b/demos/index.html @@ -0,0 +1,12 @@ + + + + + + Index + + +
+ Preview + + diff --git a/demos/package.json b/demos/package.json new file mode 100644 index 000000000..17a197f47 --- /dev/null +++ b/demos/package.json @@ -0,0 +1,50 @@ +{ + "name": "tiptap-demos", + "version": "0.0.0", + "private": true, + "scripts": { + "start": "vite", + "build": "vite build", + "_build": "vue-tsc --noEmit && vite build", + "serve": "vite preview --port 3000" + }, + "dependencies": { + "@tiptap/core": "^2.0.0-beta.101", + "@tiptap/starter-kit": "^2.0.0-beta.99", + "@tiptap/vue-3": "^2.0.0-beta.52", + "@types/prosemirror-commands": "^1.0.4", + "@types/prosemirror-inputrules": "^1.0.4", + "@types/prosemirror-keymap": "^1.0.4", + "@types/prosemirror-model": "^1.13.1", + "@types/prosemirror-schema-list": "^1.0.3", + "@types/prosemirror-state": "^1.2.7", + "@types/prosemirror-transform": "^1.1.4", + "@types/prosemirror-view": "^1.17.2", + "@vitejs/plugin-react-refresh": "^1.3.6", + "autoprefixer": "^10.3.1", + "iframe-resizer": "^4.3.2", + "postcss": "^8.3.6", + "prosemirror-view": "^1.18.11", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-router-dom": "^5.2.0", + "shiki": "^0.9.7", + "tailwindcss": "^2.2.7", + "uuid": "^8.3.2", + "vue": "^3.0.5", + "vue-router": "^4.0.11", + "y-prosemirror": "^1.0.9", + "y-webrtc": "^10.2.0", + "y-websocket": "^1.3.16", + "yjs": "^13.5.11" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^1.5.0", + "@vue/compiler-sfc": "^3.1.4", + "globby": "^11.0.4", + "sass": "^1.35.2", + "typescript": "^4.3.5", + "vite": "^2.5.1", + "vue-tsc": "^0.3.0" + } +} diff --git a/demos/postcss.config.js b/demos/postcss.config.js new file mode 100644 index 000000000..33ad091d2 --- /dev/null +++ b/demos/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/demos/preview/Demo.vue b/demos/preview/Demo.vue new file mode 100644 index 000000000..b6c75749a --- /dev/null +++ b/demos/preview/Demo.vue @@ -0,0 +1,241 @@ + + + diff --git a/demos/preview/DemoFrame.vue b/demos/preview/DemoFrame.vue new file mode 100644 index 000000000..3745b1abd --- /dev/null +++ b/demos/preview/DemoFrame.vue @@ -0,0 +1,58 @@ +