@webiny/lexical-theme 5.40.5-beta.0 → 5.41.0-dbt.0
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.
- package/createTheme.d.ts +2 -2
- package/package.json +4 -4
- package/theme.css +8 -5
- package/types.d.ts +7 -7
package/createTheme.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EditorThemeClasses } from "lexical";
|
|
2
2
|
import "./theme.css";
|
|
3
3
|
import { ThemeEmotionMap } from "./types";
|
|
4
|
-
export
|
|
4
|
+
export type WebinyTheme = {
|
|
5
5
|
styles?: Record<string, any>;
|
|
6
6
|
emotionMap?: ThemeEmotionMap;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type EditorTheme = WebinyTheme & EditorThemeClasses;
|
|
9
9
|
export declare const createTheme: () => EditorTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/lexical-theme",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-dbt.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@emotion/react": "11.10.8",
|
|
6
6
|
"emotion": "10.0.27",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"react-style-object-to-css": "1.1.2"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@webiny/cli": "5.
|
|
12
|
-
"@webiny/project-utils": "5.
|
|
11
|
+
"@webiny/cli": "5.41.0-dbt.0",
|
|
12
|
+
"@webiny/project-utils": "5.41.0-dbt.0"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"build": "yarn webiny run build",
|
|
20
20
|
"watch": "yarn webiny run watch"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
|
|
23
23
|
}
|
package/theme.css
CHANGED
|
@@ -87,8 +87,11 @@
|
|
|
87
87
|
border-bottom: 1px solid rgba(88, 144, 255, 0.3);
|
|
88
88
|
}
|
|
89
89
|
.WebinyLexical__link {
|
|
90
|
-
color:
|
|
90
|
+
color: #fa5723;
|
|
91
91
|
text-decoration: none;
|
|
92
|
+
> * {
|
|
93
|
+
color: inherit !important;
|
|
94
|
+
}
|
|
92
95
|
}
|
|
93
96
|
.WebinyLexical__link:hover {
|
|
94
97
|
text-decoration: underline;
|
|
@@ -319,7 +322,7 @@
|
|
|
319
322
|
}
|
|
320
323
|
.WebinyLexical__listItemUnchecked:before,
|
|
321
324
|
.WebinyLexical__listItemChecked:before {
|
|
322
|
-
content:
|
|
325
|
+
content: "";
|
|
323
326
|
width: 16px;
|
|
324
327
|
height: 16px;
|
|
325
328
|
top: 2px;
|
|
@@ -329,8 +332,8 @@
|
|
|
329
332
|
background-size: cover;
|
|
330
333
|
position: absolute;
|
|
331
334
|
}
|
|
332
|
-
.WebinyLexical__listItemUnchecked[dir=
|
|
333
|
-
.WebinyLexical__listItemChecked[dir=
|
|
335
|
+
.WebinyLexical__listItemUnchecked[dir="rtl"]:before,
|
|
336
|
+
.WebinyLexical__listItemChecked[dir="rtl"]:before {
|
|
334
337
|
left: auto;
|
|
335
338
|
right: 0;
|
|
336
339
|
}
|
|
@@ -350,7 +353,7 @@
|
|
|
350
353
|
background-repeat: no-repeat;
|
|
351
354
|
}
|
|
352
355
|
.WebinyLexical__listItemChecked:after {
|
|
353
|
-
content:
|
|
356
|
+
content: "";
|
|
354
357
|
cursor: pointer;
|
|
355
358
|
border-color: #fff;
|
|
356
359
|
border-style: solid;
|
package/types.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { CSSObject } from "@emotion/react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
2
|
+
export type ListHtmlTag = "ol" | "ul";
|
|
3
|
+
export type HeadingHtmlTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
|
+
export type ParagraphHtmlTag = "p";
|
|
5
|
+
export type QuoteBlockHtmlTag = "quoteblock";
|
|
6
|
+
export type TypographyHTMLTag = HeadingHtmlTag | ParagraphHtmlTag | ListHtmlTag | QuoteBlockHtmlTag;
|
|
7
|
+
export type TypographyValue = {
|
|
8
8
|
css: CSSObject;
|
|
9
9
|
id: string;
|
|
10
10
|
tag: TypographyHTMLTag;
|
|
11
11
|
name: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type ThemeEmotionMap = {
|
|
14
14
|
[styleId: string]: {
|
|
15
15
|
id: string;
|
|
16
16
|
tag: TypographyHTMLTag;
|