@measured/puck-plugin-heading-analyzer 0.13.1-canary.c38ee07 → 0.14.0-canary.de9c2c4

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -13,6 +13,7 @@ npm i @measured/puck-plugin-heading-analyzer
13
13
  ```jsx
14
14
  import { Puck } from "@measured/puck";
15
15
  import headingAnalyzer from "@measured/puck-plugin-heading-analyzer";
16
+ import "@measured/puck-plugin-heading-analyzer/dist/index.css";
16
17
 
17
18
  ...
18
19
 
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ type TextField = BaseField & {
13
13
  };
14
14
  type NumberField = BaseField & {
15
15
  type: "number";
16
+ min?: number;
17
+ max?: number;
16
18
  };
17
19
  type TextareaField = BaseField & {
18
20
  type: "textarea";
package/dist/index.js CHANGED
@@ -70717,7 +70717,7 @@ var require_dist = __commonJS({
70717
70717
  }) => {
70718
70718
  const [loading, setLoading] = (0, import_react22.useState)(loadingProp);
70719
70719
  (0, import_react22.useEffect)(() => setLoading(loadingProp), [loadingProp]);
70720
- const ElementType = href ? "a" : "button";
70720
+ const ElementType = href ? "a" : onClick ? "button" : "div";
70721
70721
  const el = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
70722
70722
  ElementType,
70723
70723
  {
@@ -72756,7 +72756,9 @@ var require_dist = __commonJS({
72756
72756
  }
72757
72757
  },
72758
72758
  readOnly,
72759
- id
72759
+ id,
72760
+ min: field.type === "number" ? field.min : void 0,
72761
+ max: field.type === "number" ? field.max : void 0
72760
72762
  }
72761
72763
  )
72762
72764
  }
@@ -73792,7 +73794,7 @@ var require_dist = __commonJS({
73792
73794
  overrides,
73793
73795
  plugins
73794
73796
  }) => {
73795
- const collected = overrides;
73797
+ const collected = __spreadValues2({}, overrides);
73796
73798
  plugins.forEach((plugin) => {
73797
73799
  Object.keys(plugin.overrides).forEach((overridesType) => {
73798
73800
  if (overridesType === "fieldTypes") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.13.1-canary.c38ee07",
3
+ "version": "0.14.0-canary.de9c2c4",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "devDependencies": {
17
- "@measured/puck": "^0.13.1-canary.c38ee07",
17
+ "@measured/puck": "^0.14.0-canary.de9c2c4",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",