@measured/puck-plugin-heading-analyzer 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* css-module:/Users/chrisvilla/Projects/puck/packages/core/SidebarSection/styles.module.css/#css-module-data */
1
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
2
2
  ._SidebarSection_jsf8x_1:last-of-type ._SidebarSection-content_jsf8x_1 {
3
3
  border-bottom: none;
4
4
  height: 100%;
@@ -23,7 +23,7 @@
23
23
  display: none;
24
24
  }
25
25
 
26
- /* css-module:/Users/chrisvilla/Projects/puck/packages/core/Heading/styles.module.css/#css-module-data */
26
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
27
27
  ._Heading_1y35v_1 {
28
28
  display: block;
29
29
  font-family: var(--puck-font-stack);
@@ -60,7 +60,7 @@
60
60
  font-size: var(--puck-font-size-xs);
61
61
  }
62
62
 
63
- /* css-module:/Users/chrisvilla/Projects/puck/packages/core/OutlineList/styles.module.css/#css-module-data */
63
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css/#css-module-data */
64
64
  ._OutlineList_gor6f_1 {
65
65
  color: var(--puck-color-grey-2);
66
66
  font-family: var(--puck-font-stack);
package/dist/index.js CHANGED
@@ -95,15 +95,17 @@ var require_classnames = __commonJS({
95
95
  }
96
96
  });
97
97
 
98
- // index.tsx
98
+ // index.ts
99
99
  var plugin_heading_analyzer_exports = {};
100
100
  __export(plugin_heading_analyzer_exports, {
101
- default: () => plugin_heading_analyzer_default
101
+ default: () => HeadingAnalyzer_default
102
102
  });
103
103
  module.exports = __toCommonJS(plugin_heading_analyzer_exports);
104
+
105
+ // src/HeadingAnalyzer.tsx
104
106
  var import_react = require("react");
105
107
 
106
- // css-module:/Users/chrisvilla/Projects/puck/packages/core/SidebarSection/styles.module.css#css-module
108
+ // css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
107
109
  var styles_module_default = { "SidebarSection": "_SidebarSection_jsf8x_1", "SidebarSection-content": "_SidebarSection-content_jsf8x_1", "SidebarSection-title": "_SidebarSection-title_jsf8x_6" };
108
110
 
109
111
  // ../core/lib/get-class-name-factory.ts
@@ -133,10 +135,10 @@ var getClassNameFactory = (rootClass, styles, { baseClass = "" } = {}) => (optio
133
135
  };
134
136
  var get_class_name_factory_default = getClassNameFactory;
135
137
 
136
- // css-module:/Users/chrisvilla/Projects/puck/packages/core/Heading/styles.module.css#css-module
138
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
137
139
  var styles_module_default2 = { "Heading": "_Heading_1y35v_1", "Heading--xxxxl": "_Heading--xxxxl_1y35v_12", "Heading--xxxl": "_Heading--xxxl_1y35v_18", "Heading--xxl": "_Heading--xxl_1y35v_22", "Heading--xl": "_Heading--xl_1y35v_26", "Heading--l": "_Heading--l_1y35v_30", "Heading--m": "_Heading--m_1y35v_34", "Heading--s": "_Heading--s_1y35v_38", "Heading--xs": "_Heading--xs_1y35v_42" };
138
140
 
139
- // ../core/Heading/index.tsx
141
+ // ../core/components/Heading/index.tsx
140
142
  var import_jsx_runtime = require("react/jsx-runtime");
141
143
  var getClassName = get_class_name_factory_default("Heading", styles_module_default2);
142
144
  var Heading = ({ children, rank, size = "m" }) => {
@@ -152,7 +154,7 @@ var Heading = ({ children, rank, size = "m" }) => {
152
154
  );
153
155
  };
154
156
 
155
- // ../core/SidebarSection/index.tsx
157
+ // ../core/components/SidebarSection/index.tsx
156
158
  var getClassName2 = get_class_name_factory_default("SidebarSection", styles_module_default);
157
159
  var SidebarSection = ({
158
160
  children,
@@ -161,10 +163,10 @@ var SidebarSection = ({
161
163
  return /* @__PURE__ */ React.createElement("details", { className: getClassName2({}), open: true }, /* @__PURE__ */ React.createElement("summary", { className: getClassName2("title") }, /* @__PURE__ */ React.createElement(Heading, { rank: 2, size: "xs" }, title)), /* @__PURE__ */ React.createElement("div", { className: getClassName2("content") }, children));
162
164
  };
163
165
 
164
- // css-module:/Users/chrisvilla/Projects/puck/packages/core/OutlineList/styles.module.css#css-module
166
+ // css-module:/home/runner/work/puck/puck/packages/core/components/OutlineList/styles.module.css#css-module
165
167
  var styles_module_default3 = { "OutlineList": "_OutlineList_gor6f_1", "OutlineList-clickableItem": "_OutlineList-clickableItem_gor6f_36" };
166
168
 
167
- // ../core/OutlineList/index.tsx
169
+ // ../core/components/OutlineList/index.tsx
168
170
  var getClassName3 = get_class_name_factory_default("OutlineList", styles_module_default3);
169
171
  var OutlineList = ({ children }) => {
170
172
  return /* @__PURE__ */ React.createElement("ul", { className: getClassName3() }, children);
@@ -194,7 +196,7 @@ var scrollIntoView = (el) => {
194
196
  }
195
197
  };
196
198
 
197
- // index.tsx
199
+ // src/HeadingAnalyzer.tsx
198
200
  var import_react_from_json = __toESM(require("react-from-json"));
199
201
  var import_jsx_runtime2 = require("react/jsx-runtime");
200
202
  var dataAttr = "data-puck-heading-analyzer-id";
@@ -334,7 +336,7 @@ var HeadingOutlineAnalyser = ({
334
336
  var HeadingAnalyzer = {
335
337
  renderPageFields: HeadingOutlineAnalyser
336
338
  };
337
- var plugin_heading_analyzer_default = HeadingAnalyzer;
339
+ var HeadingAnalyzer_default = HeadingAnalyzer;
338
340
  /*! Bundled license information:
339
341
 
340
342
  classnames/index.js:
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",
8
8
  "scripts": {
9
9
  "lint": "eslint \"**/*.ts*\"",
10
- "build": "rm -rf dist && tsup index.tsx",
11
- "prepublish": "yarn build"
10
+ "build": "rm -rf dist && tsup index.ts",
11
+ "prepare": "yarn build"
12
12
  },
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
16
  "devDependencies": {
17
- "@measured/puck": "^0.1.3",
17
+ "@measured/puck": "^0.1.5",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",