diff --git a/.gitignore b/.gitignore index 51b9af5..6d0c7e1 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ testem.log # System Files .DS_Store Thumbs.db + diff --git a/apps/test/src/app/app.js b/apps/test/src/app/app.js index ed7ff71..1357660 100644 --- a/apps/test/src/app/app.js +++ b/apps/test/src/app/app.js @@ -1,47 +1,20 @@ -import { ScooterCore } from "@factly/scooter-core"; -import React, { useState, useEffect } from "react"; +import React from "react"; import { SSE } from "sse"; import axios from "axios"; -import { FactCheck } from "@factly/scooter-claim"; -import { Image } from "@factly/scooter-image"; import { Embed } from "@factly/scooter-embed"; -import { ScooterTable } from "@factly/scooter-table"; -import { CodeBlock } from "@factly/scooter-code-block"; import { TagoreAI } from "@factly/scooter-tagore"; - +import { EditorView as ScooterEditorView } from "@factly/scooter-react"; export function App() { - //

hello

  1. 1.
  2. hello
  3. hello
- const [value, setValue] = useState( - ` -

- ` - // hello` - //
Name Description
Cyndi Lauper singer songwriter actress
" - ); - return ( - <> -

Scooter demo

- + { - setValue(data.html); - }} - editorInstance={editor => { - const { from, to } = editor.state.selection; + editorInstance={() => { return; }} - extensions={[ - FactCheck, - Image, - Embed, - ScooterTable, - TagoreAI, - CodeBlock, - ]} + extensions={[Embed, TagoreAI]} meta={{ claims: { 1: { id: 1, claim: "Claim 1", fact: "Fact 1" }, @@ -248,9 +221,7 @@ export function App() { // }, // }} /> - - {value.toString()} - + ); } export default App; diff --git a/libs/scooter-bubble-menu/src/index.js b/libs/scooter-bubble-menu/src/index.js deleted file mode 100644 index 9a8d0fe..0000000 --- a/libs/scooter-bubble-menu/src/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./lib/ScooterBubbleMenu"; -export * from "./lib/ImageEditorModal"; -export * from "./lib/ImageOptions"; -export * from "./lib/helpers"; -export * from "./lib/LinkOption"; -export * from "./lib/Option"; -export * from "./lib/TextOptions"; diff --git a/libs/scooter-bubble-menu/src/lib/TableColOptions.jsx b/libs/scooter-bubble-menu/src/lib/TableColOptions.jsx deleted file mode 100644 index 7ec852c..0000000 --- a/libs/scooter-bubble-menu/src/lib/TableColOptions.jsx +++ /dev/null @@ -1,16 +0,0 @@ -import React from "react"; - -import { getTableColOptions } from "./helpers"; -import Option from "./Option"; - -const TableColOptions = ({ editor, options }) => { - return ( - getTableColOptions({ - editor, - }) - //.filter(({ optionName }) => options.includes(optionName)) - .map(option =>