chore: publish v1

This commit is contained in:
thecodrr
2022-07-15 09:29:09 +05:00
parent 8ebc6106d8
commit c238660b05
25 changed files with 120 additions and 1030 deletions

View File

@@ -0,0 +1,2 @@
*
!dist/**/*

1
packages/editor/.npmrc Normal file
View File

@@ -0,0 +1 @@
@streetwriters:registry=https://npm.pkg.github.com

View File

@@ -1,7 +1,7 @@
/// <reference types="react" />
import "./extensions";
import Toolbar from "./toolbar";
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { AttachmentOptions } from "./extensions/attachment";
import { EditorOptions } from "@tiptap/core";
import { usePermissionHandler } from "./hooks/use-permission-handler";

View File

@@ -1,6 +1,6 @@
/// <reference types="react" />
import { Theme } from "@notesnook/theme";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { Theme } from "@streetwriters/theme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import { FlexProps } from "rebass";
declare type IconProps = {
title?: string;

View File

@@ -1,5 +1,5 @@
import { Theme } from "@notesnook/theme";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { Theme } from "@streetwriters/theme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import React from "react";
import { ButtonProps } from "rebass";
import { IconNames } from "../icons";
@@ -14,7 +14,7 @@ export declare type ToolButtonProps = ButtonProps & {
};
export declare const ToolButton: React.NamedExoticComponent<ButtonProps & {
icon: IconNames;
iconColor?: "background" | "border" | "text" | "blue" | "gray" | "green" | "orange" | "purple" | "red" | "yellow" | "checked" | "disabled" | "placeholder" | "icon" | keyof import("@notesnook/theme/dist/theme/colorscheme/static").StaticColors | "primary" | "bgTransparent" | "accent" | "bgSecondary" | "bgSecondaryText" | "bgSecondaryHover" | "hover" | "fontSecondary" | "fontTertiary" | "overlay" | "secondary" | undefined;
iconColor?: "background" | "border" | "text" | "blue" | "gray" | "green" | "orange" | "purple" | "red" | "yellow" | "checked" | "disabled" | "placeholder" | "icon" | keyof import("@streetwriters/theme/dist/theme/colorscheme/static").StaticColors | "primary" | "bgTransparent" | "accent" | "bgSecondary" | "bgSecondaryText" | "bgSecondaryHover" | "hover" | "fontSecondary" | "fontTertiary" | "overlay" | "secondary" | undefined;
iconSize?: number | "big" | "small" | "medium" | undefined;
toggled: boolean;
buttonRef?: React.MutableRefObject<HTMLButtonElement | null | undefined> | undefined;

View File

@@ -1,4 +1,4 @@
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
export declare type ToolbarLocation = "top" | "bottom";
export declare type PopupRef = {
id: string;

View File

@@ -1,5 +1,5 @@
/// <reference types="react" />
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { Editor } from "../types";
import { FlexProps } from "rebass";
import { ToolbarLocation } from "./stores/toolbar-store";

View File

@@ -1,7 +1,7 @@
/// <reference types="react" />
import "./extensions";
import Toolbar from "./toolbar";
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { AttachmentOptions } from "./extensions/attachment";
import { EditorOptions } from "@tiptap/core";
import { usePermissionHandler } from "./hooks/use-permission-handler";

View File

@@ -1,6 +1,6 @@
/// <reference types="react" />
import { Theme } from "@notesnook/theme";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { Theme } from "@streetwriters/theme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import { FlexProps } from "rebass";
declare type IconProps = {
title?: string;

View File

@@ -1,5 +1,5 @@
import { Theme } from "@notesnook/theme";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { Theme } from "@streetwriters/theme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import React from "react";
import { ButtonProps } from "rebass";
import { IconNames } from "../icons";
@@ -14,7 +14,7 @@ export declare type ToolButtonProps = ButtonProps & {
};
export declare const ToolButton: React.NamedExoticComponent<ButtonProps & {
icon: IconNames;
iconColor?: "background" | "border" | "text" | "blue" | "gray" | "green" | "orange" | "purple" | "red" | "yellow" | "checked" | "disabled" | "placeholder" | "icon" | keyof import("@notesnook/theme/dist/theme/colorscheme/static").StaticColors | "primary" | "bgTransparent" | "accent" | "bgSecondary" | "bgSecondaryText" | "bgSecondaryHover" | "hover" | "fontSecondary" | "fontTertiary" | "overlay" | "secondary" | undefined;
iconColor?: "background" | "border" | "text" | "blue" | "gray" | "green" | "orange" | "purple" | "red" | "yellow" | "checked" | "disabled" | "placeholder" | "icon" | keyof import("@streetwriters/theme/dist/theme/colorscheme/static").StaticColors | "primary" | "bgTransparent" | "accent" | "bgSecondary" | "bgSecondaryText" | "bgSecondaryHover" | "hover" | "fontSecondary" | "fontTertiary" | "overlay" | "secondary" | undefined;
iconSize?: number | "big" | "small" | "medium" | undefined;
toggled: boolean;
buttonRef?: React.MutableRefObject<HTMLButtonElement | null | undefined> | undefined;

View File

@@ -1,4 +1,4 @@
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
export declare type ToolbarLocation = "top" | "bottom";
export declare type PopupRef = {
id: string;

View File

@@ -1,5 +1,5 @@
/// <reference types="react" />
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { Editor } from "../types";
import { FlexProps } from "rebass";
import { ToolbarLocation } from "./stores/toolbar-store";

View File

@@ -1,12 +1,13 @@
{
"name": "notesnook-editor",
"version": "0.0.1",
"name": "@streetwriters/editor",
"version": "1.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "notesnook-editor",
"version": "0.0.1",
"name": "@streetwriters/editor",
"version": "1.0.1",
"license": "GPL-3.0",
"dependencies": {
"@_ueberdosis/prosemirror-tables": "^1.1.3",
"@mdi/js": "^6.9.96",
@@ -52,6 +53,7 @@
"zustand": "^3.7.2"
},
"devDependencies": {
"@streetwriters/theme": "1.0.0",
"@types/katex": "^0.14.0",
"@types/prismjs": "^1.26.0",
"@types/react": "^17.0.37",
@@ -71,7 +73,6 @@
"web-vitals": "^2.1.4"
},
"peerDependencies": {
"@notesnook/theme": "github:streetwriters/themeprovider",
"framer-motion": "^4.1.17"
}
},
@@ -3212,19 +3213,6 @@
"node": ">= 8"
}
},
"node_modules/@notesnook/theme": {
"version": "0.0.1",
"resolved": "git+ssh://git@github.com/streetwriters/themeprovider.git#d3f017bfae57772e7da4cd3375c12d0ccceebc77",
"peer": true,
"dependencies": {
"@rebass/forms": "^4.0.6",
"@types/rebass": "^4.0.10",
"@types/rebass__forms": "^4.0.6",
"emotion-theming": "^10.0.19",
"rebass": "^4.0.7",
"tinycolor2": "^1.4.2"
}
},
"node_modules/@npmcli/fs": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz",
@@ -3446,6 +3434,21 @@
"resolved": "https://registry.npmjs.org/@social-embed/lib/-/lib-0.0.1-next.12.tgz",
"integrity": "sha512-CUqgq2PTmdmWhNPzth9JN1cFoaFsIWhgiuDVD23hjD+9HJVD+xs3GlbZF+YWYMKVhRa3hib4A7Ev8rOjz2QBwQ=="
},
"node_modules/@streetwriters/theme": {
"version": "1.0.0",
"resolved": "https://npm.pkg.github.com/download/@streetwriters/theme/1.0.0/b1113ba8ad5388d2c6ad2d8d7b56e4a137fb37cd44c9c13449d0ae2bf12f27cb",
"integrity": "sha512-J5GrMHcFP4wD1oPNkBnDkruZWxaY8Pu6ovkAAZ3rnIDKxWPgjq9H57GG/eFgHG1qsOYEG9yHQMmqZ2vr6Cq63g==",
"dev": true,
"license": "GPL-3.0",
"dependencies": {
"@rebass/forms": "^4.0.6",
"@types/rebass": "^4.0.10",
"@types/rebass__forms": "^4.0.6",
"emotion-theming": "^10.0.19",
"rebass": "^4.0.7",
"tinycolor2": "^1.4.2"
}
},
"node_modules/@styled-system/background": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@styled-system/background/-/background-5.1.2.tgz",
@@ -4448,6 +4451,7 @@
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
"integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
"dev": true,
"dependencies": {
"@types/react": "*",
"hoist-non-react-statics": "^3.3.0"
@@ -4538,7 +4542,8 @@
"node_modules/@types/prop-types": {
"version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
"dev": true
},
"node_modules/@types/q": {
"version": "1.5.5",
@@ -4550,6 +4555,7 @@
"version": "17.0.47",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.47.tgz",
"integrity": "sha512-mk0BL8zBinf2ozNr3qPnlu1oyVTYq+4V7WA76RgxUAtf0Em/Wbid38KN6n4abEkvO4xMTBWmnP1FtQzgkEiJoA==",
"dev": true,
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@@ -4587,7 +4593,8 @@
"node_modules/@types/react/node_modules/csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
},
"node_modules/@types/reactcss": {
"version": "1.2.6",
@@ -4602,6 +4609,7 @@
"version": "4.0.10",
"resolved": "https://registry.npmjs.org/@types/rebass/-/rebass-4.0.10.tgz",
"integrity": "sha512-Bp9Y2Bc7wrZr2NYHrqWOVRHdL5I5CRIaOiG9hlnwHH5hFRf8/FJsiJmCMsBhlsma312Jc6xWL+XUtSnfio+wOA==",
"dev": true,
"dependencies": {
"@types/react": "*",
"@types/styled-components": "*",
@@ -4613,6 +4621,7 @@
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/@types/rebass__forms/-/rebass__forms-4.0.6.tgz",
"integrity": "sha512-FuC2ibEY447g5lYwkzIVdxJBR+jSUpOclo9xl0b9pPwB2R33tA71DkUXcGwWPcgHRQQitith2o3hUnle++Vdcg==",
"dev": true,
"dependencies": {
"@types/react": "*",
"@types/rebass": "*",
@@ -4631,7 +4640,8 @@
"node_modules/@types/scheduler": {
"version": "0.16.2",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
"dev": true
},
"node_modules/@types/source-list-map": {
"version": "0.1.2",
@@ -4649,6 +4659,7 @@
"version": "5.1.25",
"resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.25.tgz",
"integrity": "sha512-fgwl+0Pa8pdkwXRoVPP9JbqF0Ivo9llnmsm+7TCI330kbPIFd9qv1Lrhr37shf4tnxCOSu+/IgqM7uJXLWZZNQ==",
"dev": true,
"dependencies": {
"@types/hoist-non-react-statics": "*",
"@types/react": "*",
@@ -4658,12 +4669,14 @@
"node_modules/@types/styled-components/node_modules/csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
},
"node_modules/@types/styled-system": {
"version": "5.1.15",
"resolved": "https://registry.npmjs.org/@types/styled-system/-/styled-system-5.1.15.tgz",
"integrity": "sha512-1uls4wipZn8FtYFZ7upRVFDoEeOXTQTs2zuyOZPn02T6rjIxtvj2P2lG5qsxXHhKuKsu3thveCZrtaeLE/ibLg==",
"dev": true,
"dependencies": {
"csstype": "^3.0.2"
}
@@ -4672,6 +4685,7 @@
"version": "5.0.16",
"resolved": "https://registry.npmjs.org/@types/styled-system__css/-/styled-system__css-5.0.16.tgz",
"integrity": "sha512-Cji5miCIpR27m8yzH6y3cLU6106N4GVyPgUhBQ4nL7VxgoeAtRdAriKdGTnRgJzSpT3HyB7h5G//cDWOl0M1jQ==",
"dev": true,
"dependencies": {
"csstype": "^3.0.2"
}
@@ -4679,12 +4693,14 @@
"node_modules/@types/styled-system__css/node_modules/csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
},
"node_modules/@types/styled-system/node_modules/csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
},
"node_modules/@types/tapable": {
"version": "1.0.8",
@@ -27660,19 +27676,6 @@
"fastq": "^1.6.0"
}
},
"@notesnook/theme": {
"version": "git+ssh://git@github.com/streetwriters/themeprovider.git#d3f017bfae57772e7da4cd3375c12d0ccceebc77",
"from": "@notesnook/theme@github:streetwriters/themeprovider",
"peer": true,
"requires": {
"@rebass/forms": "^4.0.6",
"@types/rebass": "^4.0.10",
"@types/rebass__forms": "^4.0.6",
"emotion-theming": "^10.0.19",
"rebass": "^4.0.7",
"tinycolor2": "^1.4.2"
}
},
"@npmcli/fs": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz",
@@ -27832,6 +27835,20 @@
"resolved": "https://registry.npmjs.org/@social-embed/lib/-/lib-0.0.1-next.12.tgz",
"integrity": "sha512-CUqgq2PTmdmWhNPzth9JN1cFoaFsIWhgiuDVD23hjD+9HJVD+xs3GlbZF+YWYMKVhRa3hib4A7Ev8rOjz2QBwQ=="
},
"@streetwriters/theme": {
"version": "1.0.0",
"resolved": "https://npm.pkg.github.com/download/@streetwriters/theme/1.0.0/b1113ba8ad5388d2c6ad2d8d7b56e4a137fb37cd44c9c13449d0ae2bf12f27cb",
"integrity": "sha512-J5GrMHcFP4wD1oPNkBnDkruZWxaY8Pu6ovkAAZ3rnIDKxWPgjq9H57GG/eFgHG1qsOYEG9yHQMmqZ2vr6Cq63g==",
"dev": true,
"requires": {
"@rebass/forms": "^4.0.6",
"@types/rebass": "^4.0.10",
"@types/rebass__forms": "^4.0.6",
"emotion-theming": "^10.0.19",
"rebass": "^4.0.7",
"tinycolor2": "^1.4.2"
}
},
"@styled-system/background": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@styled-system/background/-/background-5.1.2.tgz",
@@ -28501,6 +28518,7 @@
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
"integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
"dev": true,
"requires": {
"@types/react": "*",
"hoist-non-react-statics": "^3.3.0"
@@ -28591,7 +28609,8 @@
"@types/prop-types": {
"version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
"dev": true
},
"@types/q": {
"version": "1.5.5",
@@ -28603,6 +28622,7 @@
"version": "17.0.47",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.47.tgz",
"integrity": "sha512-mk0BL8zBinf2ozNr3qPnlu1oyVTYq+4V7WA76RgxUAtf0Em/Wbid38KN6n4abEkvO4xMTBWmnP1FtQzgkEiJoA==",
"dev": true,
"requires": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@@ -28612,7 +28632,8 @@
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
}
}
},
@@ -28657,6 +28678,7 @@
"version": "4.0.10",
"resolved": "https://registry.npmjs.org/@types/rebass/-/rebass-4.0.10.tgz",
"integrity": "sha512-Bp9Y2Bc7wrZr2NYHrqWOVRHdL5I5CRIaOiG9hlnwHH5hFRf8/FJsiJmCMsBhlsma312Jc6xWL+XUtSnfio+wOA==",
"dev": true,
"requires": {
"@types/react": "*",
"@types/styled-components": "*",
@@ -28668,6 +28690,7 @@
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/@types/rebass__forms/-/rebass__forms-4.0.6.tgz",
"integrity": "sha512-FuC2ibEY447g5lYwkzIVdxJBR+jSUpOclo9xl0b9pPwB2R33tA71DkUXcGwWPcgHRQQitith2o3hUnle++Vdcg==",
"dev": true,
"requires": {
"@types/react": "*",
"@types/rebass": "*",
@@ -28686,7 +28709,8 @@
"@types/scheduler": {
"version": "0.16.2",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
"dev": true
},
"@types/source-list-map": {
"version": "0.1.2",
@@ -28704,6 +28728,7 @@
"version": "5.1.25",
"resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.25.tgz",
"integrity": "sha512-fgwl+0Pa8pdkwXRoVPP9JbqF0Ivo9llnmsm+7TCI330kbPIFd9qv1Lrhr37shf4tnxCOSu+/IgqM7uJXLWZZNQ==",
"dev": true,
"requires": {
"@types/hoist-non-react-statics": "*",
"@types/react": "*",
@@ -28713,7 +28738,8 @@
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
}
}
},
@@ -28721,6 +28747,7 @@
"version": "5.1.15",
"resolved": "https://registry.npmjs.org/@types/styled-system/-/styled-system-5.1.15.tgz",
"integrity": "sha512-1uls4wipZn8FtYFZ7upRVFDoEeOXTQTs2zuyOZPn02T6rjIxtvj2P2lG5qsxXHhKuKsu3thveCZrtaeLE/ibLg==",
"dev": true,
"requires": {
"csstype": "^3.0.2"
},
@@ -28728,7 +28755,8 @@
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
}
}
},
@@ -28736,6 +28764,7 @@
"version": "5.0.16",
"resolved": "https://registry.npmjs.org/@types/styled-system__css/-/styled-system__css-5.0.16.tgz",
"integrity": "sha512-Cji5miCIpR27m8yzH6y3cLU6106N4GVyPgUhBQ4nL7VxgoeAtRdAriKdGTnRgJzSpT3HyB7h5G//cDWOl0M1jQ==",
"dev": true,
"requires": {
"csstype": "^3.0.2"
},
@@ -28743,7 +28772,8 @@
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"dev": true
}
}
},

View File

@@ -1,8 +1,12 @@
{
"name": "notesnook-editor",
"version": "0.0.1",
"private": true,
"name": "@streetwriters/editor",
"version": "1.0.1",
"main": "dist/es/index.js",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "git://github.com/streetwriters/notesnook-editor.git"
},
"dependencies": {
"@_ueberdosis/prosemirror-tables": "^1.1.3",
"@mdi/js": "^6.9.96",
@@ -64,14 +68,15 @@
"ts-node": "^10.8.1",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^3.4.0",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"@streetwriters/theme": "1.0.0"
},
"peerDependencies": {
"framer-motion": "^4.1.17",
"@notesnook/theme": "github:streetwriters/themeprovider"
"framer-motion": "^4.1.17"
},
"scripts": {
"build": "./scripts/build.sh",
"watch": "./scripts/build.sh --watch"
"watch": "./scripts/build.sh --watch",
"pub": "./scripts/compile.sh && npm publish"
}
}

View File

@@ -11,7 +11,7 @@ import Modal from "react-modal";
import ReactDOM from "react-dom";
import { Editor } from "@tiptap/core";
import { getPopupContainer, getToolbarElement } from "../../toolbar/utils/dom";
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import {
useIsMobile,
useToolbarStore,

View File

@@ -12,7 +12,7 @@ import {
ContentDOM,
} from "./types";
import { NodeViewRendererProps } from "@tiptap/core";
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
// @ts-ignore
import { __serializeForClipboard } from "prosemirror-view";
import { Editor } from "../../types";

View File

@@ -17,7 +17,7 @@ import {
} from "./types";
import { ReactNodeView } from "./react-node-view";
import { NodeViewRendererProps } from "@tiptap/core";
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { Editor } from "../../types";
import { ThemeProvider } from "../../components/theme-provider";

View File

@@ -21,7 +21,7 @@ import TableRow from "@tiptap/extension-table-row";
import TableCell from "./extensions/table-cell";
import TableHeader from "@tiptap/extension-table-header";
import { ImageNode } from "./extensions/image";
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { AttachmentNode, AttachmentOptions } from "./extensions/attachment";
import { TaskListNode } from "./extensions/task-list";
import { TaskItemNode } from "./extensions/task-item";

View File

@@ -1,6 +1,6 @@
import MDIIcon from "@mdi/react";
import { Theme } from "@notesnook/theme";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { Theme } from "@streetwriters/theme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import { Flex, FlexProps } from "rebass";
import { useTheme } from "emotion-theming";

View File

@@ -2,7 +2,7 @@ import { Button, ButtonProps, Flex, Text } from "rebass";
import { Icon } from "./icon";
import { IconNames, Icons } from "../icons";
import { PropsWithChildren } from "react";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import { DesktopOnly, MobileOnly } from "../../components/responsive";
type Action = {

View File

@@ -1,5 +1,5 @@
import { Theme } from "@notesnook/theme";
import { SchemeColors } from "@notesnook/theme/dist/theme/colorscheme";
import { Theme } from "@streetwriters/theme";
import { SchemeColors } from "@streetwriters/theme/dist/theme/colorscheme";
import React from "react";
import { ButtonProps } from "rebass";
import { IconNames, Icons } from "../icons";

View File

@@ -1,4 +1,4 @@
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import create from "zustand";
export type ToolbarLocation = "top" | "bottom";

View File

@@ -1,4 +1,4 @@
import { Theme } from "@notesnook/theme";
import { Theme } from "@streetwriters/theme";
import { Editor } from "../types";
import { Flex, FlexProps } from "rebass";
import { ThemeProvider } from "emotion-theming";

View File

@@ -7,8 +7,7 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-regular.woff2") format("woff2"),
url("fonts/hack-regular.woff") format("woff"),
url("fonts/hack-regular.ttf") format("truetype");
url("fonts/hack-regular.woff") format("woff");
font-weight: 400;
font-style: normal;
}
@@ -16,8 +15,7 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-bold.woff2") format("woff2"),
url("fonts/hack-bold.woff") format("woff"),
url("fonts/hack-bold.ttf") format("truetype");
url("fonts/hack-bold.woff") format("woff");
font-weight: 700;
font-style: normal;
}
@@ -25,8 +23,7 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-italic.woff2") format("woff2"),
url("fonts/hack-italic.woff") format("woff"),
url("fonts/hack-italic.ttf") format("truetype");
url("fonts/hack-italic.woff") format("woff");
font-weight: 400;
font-style: italic;
}
@@ -34,8 +31,7 @@
@font-face {
font-family: "Hack";
src: url("fonts/hack-bolditalic.woff2") format("woff2"),
url("fonts/hack-bolditalic.woff") format("woff"),
url("fonts/hack-bolditalic.ttf") format("truetype");
url("fonts/hack-bolditalic.woff") format("woff");
font-weight: 700;
font-style: italic;
}

File diff suppressed because one or more lines are too long