Skip to content

Commit

Permalink
dante3 released, babel emotion, peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Apr 23, 2023
1 parent b1d1b51 commit 410a2d9
Show file tree
Hide file tree
Showing 7 changed files with 5,538 additions and 5,497 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions packages/dante3/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dante3",
"description": "Dante3 is a text editor built on top of TipTap",
"version": "1.2.5",
"version": "1.2.7",
"main": "package/Dante.cjs.js",
"jsnext:main": "package/Dante.es.js",
"module": "package/Dante.es.js",
Expand Down Expand Up @@ -43,9 +43,7 @@
"medium-zoom": "^1.0.8",
"polished": "^4.2.2",
"react-colorful": "^5.6.1",
"use-countdown-timer": "^1.3.2",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6"
"use-countdown-timer": "^1.3.2"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
Expand Down Expand Up @@ -76,7 +74,9 @@
"typescript": "5.0.4"
},
"peerDependencies": {
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"react": "18.2.0",
"react-dom": "18.2.0"
}
}
}
2 changes: 2 additions & 0 deletions packages/dante3/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const pluginsConfig = [
["@babel/plugin-proposal-optional-chaining", { loose: false }],
["@babel/plugin-proposal-pipeline-operator", { proposal: "minimal" }],
["@babel/plugin-proposal-nullish-coalescing-operator", { loose: false }],
'@emotion/babel-plugin',
"@babel/plugin-proposal-do-expressions",
],
}),
Expand Down Expand Up @@ -116,6 +117,7 @@ export default [
output: {
format: "esm",
dir: "package/esm",
sourcemap: false,
},
//@ts-ignore
plugins: [multiInput.default(), ...pluginsConfig],
Expand Down
4 changes: 2 additions & 2 deletions packages/dante3/src/editor/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { useEditor, EditorContent , FloatingMenu } from '@tiptap/react'
// import { lowlight } from 'lowlight/lib/core'
import { lowlight } from 'lowlight/lib/core'

// import { lowlight } from 'lowlight'

Expand Down Expand Up @@ -122,7 +122,7 @@ const DanteEditor = ({
},
}),*/
CodeBlockLowlight.configure({
//lowlight: lowlight,
lowlight: lowlight,
HTMLAttributes: {
class: "graf graf--pre",
},
Expand Down
3 changes: 2 additions & 1 deletion packages/dante3/src/styled/base.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import styled from "@emotion/styled";
//import styled from "@emotion/styled";
import styled from '@emotion/styled'

import { math, lighten, opacify } from "polished";

Expand Down
5 changes: 5 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import {
import Dante from '../../packages/dante3/src/DanteEditor'
// from '../packages/dante3'

//import Dante from '../../packages/dante3/src'

//import Dante from '../../packages/dante3/package/esm'


import { contentJSON as htmlContent } from "../../data/d3_content_html";

import pkg from "../../packages/dante3/package.json";
Expand Down
Loading

0 comments on commit 410a2d9

Please sign in to comment.