@puckeditor/plugin-heading-analyzer 0.21.0-canary.d1c0d6a2

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/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # plugin-heading-analyzer
2
+
3
+ Visualise your heading outline structure and identify missing heading levels. Respects WCAG 2.
4
+
5
+ <img src="https://i.imgur.com/POqtgHu.jpg" alt="example" width="156px" />
6
+
7
+ ## Quick start
8
+
9
+ ```sh
10
+ npm i @puckeditor/plugin-heading-analyzer
11
+ ```
12
+
13
+ ```jsx
14
+ import { Puck } from "@puckeditor/core";
15
+ import headingAnalyzer from "@puckeditor/plugin-heading-analyzer";
16
+ import "@puckeditor/plugin-heading-analyzer/dist/index.css";
17
+
18
+ ...
19
+
20
+ // Render Puck
21
+ export function Page() {
22
+ return <Puck
23
+ config={config}
24
+ data={data}
25
+ plugins={[
26
+ headingAnalyzer
27
+ ]}
28
+ />;
29
+ }
30
+ ```
31
+
32
+ ## License
33
+
34
+ MIT © [The Puck Contributors](https://github.com/puckeditor/puck/graphs/contributors)
package/dist/index.css ADDED
@@ -0,0 +1,75 @@
1
+ /* css-module:/home/runner/work/puck/puck/packages/plugin-heading-analyzer/src/HeadingAnalyzer.module.css/#css-module-data */
2
+ ._HeadingAnalyzer_yg0s7_1 {
3
+ display: block;
4
+ padding: 16px;
5
+ }
6
+ ._HeadingAnalyzer-cssWarning_yg0s7_6 {
7
+ display: none !important;
8
+ }
9
+ ._HeadingAnalyzerItem_yg0s7_10 {
10
+ display: inline;
11
+ }
12
+ ._HeadingAnalyzerItem--missing_yg0s7_14 {
13
+ color: var(--puck-color-red-04);
14
+ }
15
+
16
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css/#css-module-data */
17
+ ._OutlineList_w4lzv_1 {
18
+ color: var(--puck-color-grey-03);
19
+ font-family: var(--puck-font-family);
20
+ margin: 0;
21
+ padding-inline-start: 16px;
22
+ position: relative;
23
+ list-style: none;
24
+ }
25
+ ._OutlineList_w4lzv_1::before {
26
+ background: var(--puck-color-grey-08);
27
+ position: absolute;
28
+ left: -1px;
29
+ top: 0px;
30
+ width: 1px;
31
+ height: calc(100% - 9px);
32
+ content: "";
33
+ }
34
+ ._OutlineList_w4lzv_1:dir(rtl)::before {
35
+ left: unset;
36
+ right: -1px;
37
+ }
38
+ ._OutlineListItem_w4lzv_25 {
39
+ position: relative;
40
+ margin-bottom: 4px;
41
+ }
42
+ ._OutlineListItem_w4lzv_25::before {
43
+ background: var(--puck-color-grey-08);
44
+ position: absolute;
45
+ left: -17px;
46
+ top: 9px;
47
+ width: 13px;
48
+ height: 1px;
49
+ content: "";
50
+ }
51
+ ._OutlineListItem_w4lzv_25:dir(rtl)::before {
52
+ left: unset;
53
+ right: -17px;
54
+ }
55
+ ._OutlineListItem--clickable_w4lzv_45 {
56
+ cursor: pointer;
57
+ transition: color 50ms ease-in;
58
+ }
59
+ ._OutlineListItem--clickable_w4lzv_45:focus-visible {
60
+ outline: 2px solid var(--puck-color-azure-05);
61
+ outline-offset: 2px;
62
+ }
63
+ @media (hover: hover) and (pointer: fine) {
64
+ ._OutlineListItem--clickable_w4lzv_45:hover {
65
+ color: var(--puck-color-azure-04);
66
+ transition: none;
67
+ }
68
+ }
69
+ ._OutlineListItem--clickable_w4lzv_45:active {
70
+ color: var(--puck-color-azure-03);
71
+ transition: none;
72
+ }
73
+ ._OutlineListItem_w4lzv_25 > ._OutlineList_w4lzv_1 {
74
+ margin: 8px 0;
75
+ }