@mantine/tiptap 5.10.0 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,16 +92,17 @@ var useStyles = core.createStyles((theme, { withCodeHighlightStyles, withTypogra
|
|
|
92
92
|
typographyStylesProvider: __spreadValues({}, getTypographyStyles(withTypographyStyles)),
|
|
93
93
|
content: __spreadValues({
|
|
94
94
|
backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white,
|
|
95
|
-
padding: theme.spacing.md,
|
|
96
95
|
borderRadius: theme.fn.radius(),
|
|
97
96
|
"& .ProseMirror": {
|
|
98
|
-
outline: 0
|
|
97
|
+
outline: 0,
|
|
98
|
+
padding: theme.spacing.md
|
|
99
99
|
},
|
|
100
100
|
"& .ProseMirror > *:last-child": {
|
|
101
101
|
marginBottom: 0
|
|
102
102
|
},
|
|
103
103
|
"& .ProseMirror p.is-editor-empty:first-of-type::before": __spreadValues({
|
|
104
104
|
content: "attr(data-placeholder)",
|
|
105
|
+
pointerEvents: "none",
|
|
105
106
|
userSelect: "none",
|
|
106
107
|
float: "left",
|
|
107
108
|
height: 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.styles.js","sources":["../../src/Content/Content.styles.ts"],"sourcesContent":["import { createStyles, MantineTheme } from '@mantine/core';\n\ninterface ContentStylesParams {\n withCodeHighlightStyles: boolean;\n withTypographyStyles: boolean;\n}\n\nfunction getCodeHighlight(withCodeHighlightStyles: boolean, theme: MantineTheme) {\n if (!withCodeHighlightStyles) {\n return null;\n }\n\n const highlightIndex = theme.colorScheme === 'dark' ? 5 : 7;\n\n return {\n pre: {\n background:\n theme.colorScheme === 'dark'\n ? theme.colors.dark[8]\n : theme.fn.rgba(theme.colors.gray[0], 0.65),\n borderRadius: theme.fn.radius(),\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[9],\n fontFamily: theme.fontFamilyMonospace,\n padding: `${theme.spacing.md}px ${theme.spacing.xl}px`,\n\n '& code': {\n background: 'none',\n color: 'inherit',\n fontSize: theme.fontSizes.sm,\n padding: 0,\n },\n\n ' & .hljs-comment, & .hljs-quote': {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[5],\n },\n\n '& .hljs-variable, & .hljs-template-variable, & .hljs-attribute, & .hljs-tag, & .hljs-name, & .hljs-regexp, & .hljs-link, & .hljs-name, & .hljs-selector-id, & .hljs-selector-class':\n {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-number, & .hljs-meta, & .hljs-built_in, & .hljs-builtin-name, & .hljs-literal, & .hljs-type, & .hljs-params':\n {\n color: theme.colors[theme.colorScheme === 'dark' ? 'cyan' : 'blue'][highlightIndex],\n },\n\n '& .hljs-string, & .hljs-symbol, & .hljs-bullet': {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-title, & .hljs-section': {\n color: theme.colors[theme.colorScheme === 'dark' ? 'yellow' : 'pink'][highlightIndex],\n },\n\n '& .hljs-keyword, & .hljs-selector-tag': {\n color: theme.colors.violet[highlightIndex],\n },\n\n '& .hljs-emphasis': {\n fontStyle: 'italic',\n },\n\n '& .hljs-strong': {\n fontWeight: 700,\n },\n },\n };\n}\n\nfunction getTypographyStyles(withTypographyStyles: boolean) {\n if (!withTypographyStyles) {\n return null;\n }\n\n return {\n '& li > p': {\n margin: 0,\n },\n\n '& ul li, & ol li': {\n marginTop: 2,\n },\n\n '& ul, & ol': {\n marginTop: 5,\n marginBottom: 5,\n },\n\n '& p': {\n marginBottom: 7,\n },\n\n '& h1, & h2, & h3, & h4, & h5, & h6, & p': {\n marginTop: 0,\n },\n };\n}\n\nexport default createStyles(\n (theme, { withCodeHighlightStyles, withTypographyStyles }: ContentStylesParams) => ({\n typographyStylesProvider: {\n ...getTypographyStyles(withTypographyStyles),\n },\n\n content: {\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,\n
|
|
1
|
+
{"version":3,"file":"Content.styles.js","sources":["../../src/Content/Content.styles.ts"],"sourcesContent":["import { createStyles, MantineTheme } from '@mantine/core';\n\ninterface ContentStylesParams {\n withCodeHighlightStyles: boolean;\n withTypographyStyles: boolean;\n}\n\nfunction getCodeHighlight(withCodeHighlightStyles: boolean, theme: MantineTheme) {\n if (!withCodeHighlightStyles) {\n return null;\n }\n\n const highlightIndex = theme.colorScheme === 'dark' ? 5 : 7;\n\n return {\n pre: {\n background:\n theme.colorScheme === 'dark'\n ? theme.colors.dark[8]\n : theme.fn.rgba(theme.colors.gray[0], 0.65),\n borderRadius: theme.fn.radius(),\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[9],\n fontFamily: theme.fontFamilyMonospace,\n padding: `${theme.spacing.md}px ${theme.spacing.xl}px`,\n\n '& code': {\n background: 'none',\n color: 'inherit',\n fontSize: theme.fontSizes.sm,\n padding: 0,\n },\n\n ' & .hljs-comment, & .hljs-quote': {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[5],\n },\n\n '& .hljs-variable, & .hljs-template-variable, & .hljs-attribute, & .hljs-tag, & .hljs-name, & .hljs-regexp, & .hljs-link, & .hljs-name, & .hljs-selector-id, & .hljs-selector-class':\n {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-number, & .hljs-meta, & .hljs-built_in, & .hljs-builtin-name, & .hljs-literal, & .hljs-type, & .hljs-params':\n {\n color: theme.colors[theme.colorScheme === 'dark' ? 'cyan' : 'blue'][highlightIndex],\n },\n\n '& .hljs-string, & .hljs-symbol, & .hljs-bullet': {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-title, & .hljs-section': {\n color: theme.colors[theme.colorScheme === 'dark' ? 'yellow' : 'pink'][highlightIndex],\n },\n\n '& .hljs-keyword, & .hljs-selector-tag': {\n color: theme.colors.violet[highlightIndex],\n },\n\n '& .hljs-emphasis': {\n fontStyle: 'italic',\n },\n\n '& .hljs-strong': {\n fontWeight: 700,\n },\n },\n };\n}\n\nfunction getTypographyStyles(withTypographyStyles: boolean) {\n if (!withTypographyStyles) {\n return null;\n }\n\n return {\n '& li > p': {\n margin: 0,\n },\n\n '& ul li, & ol li': {\n marginTop: 2,\n },\n\n '& ul, & ol': {\n marginTop: 5,\n marginBottom: 5,\n },\n\n '& p': {\n marginBottom: 7,\n },\n\n '& h1, & h2, & h3, & h4, & h5, & h6, & p': {\n marginTop: 0,\n },\n };\n}\n\nexport default createStyles(\n (theme, { withCodeHighlightStyles, withTypographyStyles }: ContentStylesParams) => ({\n typographyStylesProvider: {\n ...getTypographyStyles(withTypographyStyles),\n },\n\n content: {\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,\n borderRadius: theme.fn.radius(),\n\n '& .ProseMirror': {\n outline: 0,\n padding: theme.spacing.md,\n },\n\n '& .ProseMirror > *:last-child': {\n marginBottom: 0,\n },\n\n '& .ProseMirror p.is-editor-empty:first-of-type::before': {\n content: 'attr(data-placeholder)',\n pointerEvents: 'none',\n userSelect: 'none',\n float: 'left',\n height: 0,\n ...theme.fn.placeholderStyles(),\n },\n\n ...getCodeHighlight(withCodeHighlightStyles, theme),\n },\n })\n);\n"],"names":["createStyles"],"mappings":";;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,G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B,EAAE;AACtB,MAAM,OAAO,EAAE,CAAC;AAChB,MAAM,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE;AAC/B,KAAK;AACL,IAAI,+BAA+B,EAAE;AACrC,MAAM,YAAY,EAAE,CAAC;AACrB,KAAK;AACL,IAAI,wDAAwD,EAAE,cAAc,CAAC;AAC7E,MAAM,OAAO,EAAE,wBAAwB;AACvC,MAAM,aAAa,EAAE,MAAM;AAC3B,MAAM,UAAU,EAAE,MAAM;AACxB,MAAM,KAAK,EAAE,MAAM;AACnB,MAAM,MAAM,EAAE,CAAC;AACf,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,EAAE,CAAC;AACpC,GAAG,EAAE,gBAAgB,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC,CAAC,CAAC;;;;"}
|
|
@@ -88,16 +88,17 @@ var useStyles = createStyles((theme, { withCodeHighlightStyles, withTypographySt
|
|
|
88
88
|
typographyStylesProvider: __spreadValues({}, getTypographyStyles(withTypographyStyles)),
|
|
89
89
|
content: __spreadValues({
|
|
90
90
|
backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white,
|
|
91
|
-
padding: theme.spacing.md,
|
|
92
91
|
borderRadius: theme.fn.radius(),
|
|
93
92
|
"& .ProseMirror": {
|
|
94
|
-
outline: 0
|
|
93
|
+
outline: 0,
|
|
94
|
+
padding: theme.spacing.md
|
|
95
95
|
},
|
|
96
96
|
"& .ProseMirror > *:last-child": {
|
|
97
97
|
marginBottom: 0
|
|
98
98
|
},
|
|
99
99
|
"& .ProseMirror p.is-editor-empty:first-of-type::before": __spreadValues({
|
|
100
100
|
content: "attr(data-placeholder)",
|
|
101
|
+
pointerEvents: "none",
|
|
101
102
|
userSelect: "none",
|
|
102
103
|
float: "left",
|
|
103
104
|
height: 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.styles.js","sources":["../../src/Content/Content.styles.ts"],"sourcesContent":["import { createStyles, MantineTheme } from '@mantine/core';\n\ninterface ContentStylesParams {\n withCodeHighlightStyles: boolean;\n withTypographyStyles: boolean;\n}\n\nfunction getCodeHighlight(withCodeHighlightStyles: boolean, theme: MantineTheme) {\n if (!withCodeHighlightStyles) {\n return null;\n }\n\n const highlightIndex = theme.colorScheme === 'dark' ? 5 : 7;\n\n return {\n pre: {\n background:\n theme.colorScheme === 'dark'\n ? theme.colors.dark[8]\n : theme.fn.rgba(theme.colors.gray[0], 0.65),\n borderRadius: theme.fn.radius(),\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[9],\n fontFamily: theme.fontFamilyMonospace,\n padding: `${theme.spacing.md}px ${theme.spacing.xl}px`,\n\n '& code': {\n background: 'none',\n color: 'inherit',\n fontSize: theme.fontSizes.sm,\n padding: 0,\n },\n\n ' & .hljs-comment, & .hljs-quote': {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[5],\n },\n\n '& .hljs-variable, & .hljs-template-variable, & .hljs-attribute, & .hljs-tag, & .hljs-name, & .hljs-regexp, & .hljs-link, & .hljs-name, & .hljs-selector-id, & .hljs-selector-class':\n {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-number, & .hljs-meta, & .hljs-built_in, & .hljs-builtin-name, & .hljs-literal, & .hljs-type, & .hljs-params':\n {\n color: theme.colors[theme.colorScheme === 'dark' ? 'cyan' : 'blue'][highlightIndex],\n },\n\n '& .hljs-string, & .hljs-symbol, & .hljs-bullet': {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-title, & .hljs-section': {\n color: theme.colors[theme.colorScheme === 'dark' ? 'yellow' : 'pink'][highlightIndex],\n },\n\n '& .hljs-keyword, & .hljs-selector-tag': {\n color: theme.colors.violet[highlightIndex],\n },\n\n '& .hljs-emphasis': {\n fontStyle: 'italic',\n },\n\n '& .hljs-strong': {\n fontWeight: 700,\n },\n },\n };\n}\n\nfunction getTypographyStyles(withTypographyStyles: boolean) {\n if (!withTypographyStyles) {\n return null;\n }\n\n return {\n '& li > p': {\n margin: 0,\n },\n\n '& ul li, & ol li': {\n marginTop: 2,\n },\n\n '& ul, & ol': {\n marginTop: 5,\n marginBottom: 5,\n },\n\n '& p': {\n marginBottom: 7,\n },\n\n '& h1, & h2, & h3, & h4, & h5, & h6, & p': {\n marginTop: 0,\n },\n };\n}\n\nexport default createStyles(\n (theme, { withCodeHighlightStyles, withTypographyStyles }: ContentStylesParams) => ({\n typographyStylesProvider: {\n ...getTypographyStyles(withTypographyStyles),\n },\n\n content: {\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,\n
|
|
1
|
+
{"version":3,"file":"Content.styles.js","sources":["../../src/Content/Content.styles.ts"],"sourcesContent":["import { createStyles, MantineTheme } from '@mantine/core';\n\ninterface ContentStylesParams {\n withCodeHighlightStyles: boolean;\n withTypographyStyles: boolean;\n}\n\nfunction getCodeHighlight(withCodeHighlightStyles: boolean, theme: MantineTheme) {\n if (!withCodeHighlightStyles) {\n return null;\n }\n\n const highlightIndex = theme.colorScheme === 'dark' ? 5 : 7;\n\n return {\n pre: {\n background:\n theme.colorScheme === 'dark'\n ? theme.colors.dark[8]\n : theme.fn.rgba(theme.colors.gray[0], 0.65),\n borderRadius: theme.fn.radius(),\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[9],\n fontFamily: theme.fontFamilyMonospace,\n padding: `${theme.spacing.md}px ${theme.spacing.xl}px`,\n\n '& code': {\n background: 'none',\n color: 'inherit',\n fontSize: theme.fontSizes.sm,\n padding: 0,\n },\n\n ' & .hljs-comment, & .hljs-quote': {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[5],\n },\n\n '& .hljs-variable, & .hljs-template-variable, & .hljs-attribute, & .hljs-tag, & .hljs-name, & .hljs-regexp, & .hljs-link, & .hljs-name, & .hljs-selector-id, & .hljs-selector-class':\n {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-number, & .hljs-meta, & .hljs-built_in, & .hljs-builtin-name, & .hljs-literal, & .hljs-type, & .hljs-params':\n {\n color: theme.colors[theme.colorScheme === 'dark' ? 'cyan' : 'blue'][highlightIndex],\n },\n\n '& .hljs-string, & .hljs-symbol, & .hljs-bullet': {\n color: theme.colors.red[highlightIndex],\n },\n\n '& .hljs-title, & .hljs-section': {\n color: theme.colors[theme.colorScheme === 'dark' ? 'yellow' : 'pink'][highlightIndex],\n },\n\n '& .hljs-keyword, & .hljs-selector-tag': {\n color: theme.colors.violet[highlightIndex],\n },\n\n '& .hljs-emphasis': {\n fontStyle: 'italic',\n },\n\n '& .hljs-strong': {\n fontWeight: 700,\n },\n },\n };\n}\n\nfunction getTypographyStyles(withTypographyStyles: boolean) {\n if (!withTypographyStyles) {\n return null;\n }\n\n return {\n '& li > p': {\n margin: 0,\n },\n\n '& ul li, & ol li': {\n marginTop: 2,\n },\n\n '& ul, & ol': {\n marginTop: 5,\n marginBottom: 5,\n },\n\n '& p': {\n marginBottom: 7,\n },\n\n '& h1, & h2, & h3, & h4, & h5, & h6, & p': {\n marginTop: 0,\n },\n };\n}\n\nexport default createStyles(\n (theme, { withCodeHighlightStyles, withTypographyStyles }: ContentStylesParams) => ({\n typographyStylesProvider: {\n ...getTypographyStyles(withTypographyStyles),\n },\n\n content: {\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,\n borderRadius: theme.fn.radius(),\n\n '& .ProseMirror': {\n outline: 0,\n padding: theme.spacing.md,\n },\n\n '& .ProseMirror > *:last-child': {\n marginBottom: 0,\n },\n\n '& .ProseMirror p.is-editor-empty:first-of-type::before': {\n content: 'attr(data-placeholder)',\n pointerEvents: 'none',\n userSelect: 'none',\n float: 'left',\n height: 0,\n ...theme.fn.placeholderStyles(),\n },\n\n ...getCodeHighlight(withCodeHighlightStyles, theme),\n },\n })\n);\n"],"names":[],"mappings":";;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC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CAAC,CAAC,KAAK,EAAE,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM;AAC3F,EAAE,wBAAwB,EAAE,cAAc,CAAC,EAAE,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AACzF,EAAE,OAAO,EAAE,cAAc,CAAC;AAC1B,IAAI,eAAe,EAAE,KAAK,CAAC,WAAW,KAAK,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK;AACtF,IAAI,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;AACnC,IAAI,gBAAgB,EAAE;AACtB,MAAM,OAAO,EAAE,CAAC;AAChB,MAAM,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE;AAC/B,KAAK;AACL,IAAI,+BAA+B,EAAE;AACrC,MAAM,YAAY,EAAE,CAAC;AACrB,KAAK;AACL,IAAI,wDAAwD,EAAE,cAAc,CAAC;AAC7E,MAAM,OAAO,EAAE,wBAAwB;AACvC,MAAM,aAAa,EAAE,MAAM;AAC3B,MAAM,UAAU,EAAE,MAAM;AACxB,MAAM,KAAK,EAAE,MAAM;AACnB,MAAM,MAAM,EAAE,CAAC;AACf,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,EAAE,CAAC;AACpC,GAAG,EAAE,gBAAgB,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC,CAAC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.styles.d.ts","sourceRoot":"","sources":["../../src/Content/Content.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,YAAY,EAAE,MAAM,eAAe,CAAC;AAE3D,UAAU,mBAAmB;IAC3B,uBAAuB,EAAE,OAAO,CAAC;IACjC,oBAAoB,EAAE,OAAO,CAAC;CAC/B;;;;;;;;;AA6FD,
|
|
1
|
+
{"version":3,"file":"Content.styles.d.ts","sourceRoot":"","sources":["../../src/Content/Content.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,YAAY,EAAE,MAAM,eAAe,CAAC;AAE3D,UAAU,mBAAmB;IAC3B,uBAAuB,EAAE,OAAO,CAAC;IACjC,oBAAoB,EAAE,OAAO,CAAC;CAC/B;;;;;;;;;AA6FD,wBA+BE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/tiptap",
|
|
3
3
|
"description": "Rich text editor based on tiptap",
|
|
4
|
-
"version": "5.10.
|
|
4
|
+
"version": "5.10.1",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"rich-text-editor"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@mantine/core": "5.10.
|
|
32
|
-
"@mantine/hooks": "5.10.
|
|
31
|
+
"@mantine/core": "5.10.1",
|
|
32
|
+
"@mantine/hooks": "5.10.1",
|
|
33
33
|
"@tabler/icons": "*",
|
|
34
34
|
"@tiptap/extension-link": "^2.0.0-beta.202",
|
|
35
35
|
"@tiptap/react": "^2.0.0-beta.202",
|
|
36
36
|
"react": ">=16.8.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mantine/utils": "5.10.
|
|
39
|
+
"@mantine/utils": "5.10.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {}
|
|
42
42
|
}
|