@puckeditor/plugin-heading-analyzer 0.22.0-canary.5d089a18 → 0.22.0-canary.6c9f95c8

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/dist/index.css CHANGED
@@ -14,16 +14,17 @@
14
14
  }
15
15
 
16
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);
17
+ ._OutlineList_vmp09_1 {
18
+ --_puck-outline-list-connector: var(--puck-color-border);
19
+ color: var(--puck-color-text);
19
20
  font-family: var(--puck-font-family);
20
21
  margin: 0;
21
- padding-inline-start: 16px;
22
+ padding-inline-start: var(--puck-space-4);
22
23
  position: relative;
23
24
  list-style: none;
24
25
  }
25
- ._OutlineList_w4lzv_1::before {
26
- background: var(--puck-color-grey-08);
26
+ ._OutlineList_vmp09_1::before {
27
+ background: var(--_puck-outline-list-connector);
27
28
  position: absolute;
28
29
  left: -1px;
29
30
  top: 0px;
@@ -31,16 +32,16 @@
31
32
  height: calc(100% - 9px);
32
33
  content: "";
33
34
  }
34
- ._OutlineList_w4lzv_1:dir(rtl)::before {
35
+ ._OutlineList_vmp09_1:dir(rtl)::before {
35
36
  left: unset;
36
37
  right: -1px;
37
38
  }
38
- ._OutlineListItem_w4lzv_25 {
39
+ ._OutlineListItem_vmp09_27 {
39
40
  position: relative;
40
- margin-bottom: 4px;
41
+ margin-bottom: var(--puck-space-1);
41
42
  }
42
- ._OutlineListItem_w4lzv_25::before {
43
- background: var(--puck-color-grey-08);
43
+ ._OutlineListItem_vmp09_27::before {
44
+ background: var(--_puck-outline-list-connector);
44
45
  position: absolute;
45
46
  left: -17px;
46
47
  top: 9px;
@@ -48,28 +49,28 @@
48
49
  height: 1px;
49
50
  content: "";
50
51
  }
51
- ._OutlineListItem_w4lzv_25:dir(rtl)::before {
52
+ ._OutlineListItem_vmp09_27:dir(rtl)::before {
52
53
  left: unset;
53
54
  right: -17px;
54
55
  }
55
- ._OutlineListItem--clickable_w4lzv_45 {
56
+ ._OutlineListItem--clickable_vmp09_47 {
56
57
  cursor: pointer;
57
- transition: color 50ms ease-in;
58
+ transition: color var(--puck-duration-fast) var(--puck-ease-exit);
58
59
  }
59
- ._OutlineListItem--clickable_w4lzv_45:focus-visible {
60
- outline: 2px solid var(--puck-color-azure-05);
61
- outline-offset: 2px;
60
+ ._OutlineListItem--clickable_vmp09_47:focus-visible {
61
+ outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
62
+ outline-offset: var(--puck-border-width-focus);
62
63
  }
63
64
  @media (hover: hover) and (pointer: fine) {
64
- ._OutlineListItem--clickable_w4lzv_45:hover {
65
- color: var(--puck-color-azure-04);
65
+ ._OutlineListItem--clickable_vmp09_47:hover {
66
+ color: var(--puck-color-interactive);
66
67
  transition: none;
67
68
  }
68
69
  }
69
- ._OutlineListItem--clickable_w4lzv_45:active {
70
- color: var(--puck-color-azure-03);
70
+ ._OutlineListItem--clickable_vmp09_47:active {
71
+ color: var(--puck-color-interactive-hover);
71
72
  transition: none;
72
73
  }
73
- ._OutlineListItem_w4lzv_25 > ._OutlineList_w4lzv_1 {
74
- margin: 8px 0;
74
+ ._OutlineListItem_vmp09_27 > ._OutlineList_vmp09_1 {
75
+ margin: var(--puck-space-2) 0;
75
76
  }
package/dist/index.js CHANGED
@@ -291,7 +291,7 @@ init_react_import();
291
291
 
292
292
  // css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css#css-module
293
293
  init_react_import();
294
- var styles_module_default = { "OutlineList": "_OutlineList_w4lzv_1", "OutlineListItem": "_OutlineListItem_w4lzv_25", "OutlineListItem--clickable": "_OutlineListItem--clickable_w4lzv_45" };
294
+ var styles_module_default = { "OutlineList": "_OutlineList_vmp09_1", "OutlineListItem": "_OutlineListItem_vmp09_27", "OutlineListItem--clickable": "_OutlineListItem--clickable_vmp09_47" };
295
295
 
296
296
  // ../core/lib/get-class-name-factory.ts
297
297
  init_react_import();
@@ -550,20 +550,10 @@ var walkField = ({
550
550
  if (map && fieldType === "slot") {
551
551
  const content = value || [];
552
552
  const mappedContent = recurseSlots ? content.map((el) => {
553
- var _a2;
554
- const componentConfig = config.components[el.type];
555
- if (!componentConfig) {
553
+ if (!config.components[el.type]) {
556
554
  throw new Error(`Could not find component config for ${el.type}`);
557
555
  }
558
- const fields2 = (_a2 = componentConfig.fields) != null ? _a2 : {};
559
- return walkField({
560
- value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
561
- fields: fields2,
562
- mappers,
563
- id: el.props.id,
564
- config,
565
- recurseSlots
566
- });
556
+ return mapFields(el, mappers, config, recurseSlots);
567
557
  }) : content;
568
558
  if (containsPromise(mappedContent)) {
569
559
  return Promise.all(mappedContent);
package/dist/index.mjs CHANGED
@@ -279,7 +279,7 @@ init_react_import();
279
279
 
280
280
  // css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css#css-module
281
281
  init_react_import();
282
- var styles_module_default = { "OutlineList": "_OutlineList_w4lzv_1", "OutlineListItem": "_OutlineListItem_w4lzv_25", "OutlineListItem--clickable": "_OutlineListItem--clickable_w4lzv_45" };
282
+ var styles_module_default = { "OutlineList": "_OutlineList_vmp09_1", "OutlineListItem": "_OutlineListItem_vmp09_27", "OutlineListItem--clickable": "_OutlineListItem--clickable_vmp09_47" };
283
283
 
284
284
  // ../core/lib/get-class-name-factory.ts
285
285
  init_react_import();
@@ -538,20 +538,10 @@ var walkField = ({
538
538
  if (map && fieldType === "slot") {
539
539
  const content = value || [];
540
540
  const mappedContent = recurseSlots ? content.map((el) => {
541
- var _a2;
542
- const componentConfig = config.components[el.type];
543
- if (!componentConfig) {
541
+ if (!config.components[el.type]) {
544
542
  throw new Error(`Could not find component config for ${el.type}`);
545
543
  }
546
- const fields2 = (_a2 = componentConfig.fields) != null ? _a2 : {};
547
- return walkField({
548
- value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
549
- fields: fields2,
550
- mappers,
551
- id: el.props.id,
552
- config,
553
- recurseSlots
554
- });
544
+ return mapFields(el, mappers, config, recurseSlots);
555
545
  }) : content;
556
546
  if (containsPromise(mappedContent)) {
557
547
  return Promise.all(mappedContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-heading-analyzer",
3
- "version": "0.22.0-canary.5d089a18",
3
+ "version": "0.22.0-canary.6c9f95c8",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "puckeditor/puck",
6
6
  "bugs": "https://github.com/puckeditor/puck/issues",
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "devDependencies": {
28
- "@puckeditor/core": "^0.22.0-canary.5d089a18",
28
+ "@puckeditor/core": "^0.22.0-canary.6c9f95c8",
29
29
  "@types/minimatch": "3.0.5",
30
30
  "@types/react": "^19.0.1",
31
31
  "@types/react-dom": "^19.0.2",