@measured/puck 0.19.0-canary.32a6f78 → 0.19.0-canary.b9add22

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldProps, a as Field, D as DropZoneProps, C as Config, U as UserGenerics, b as Data, c as UiState, O as OnAction, P as Permissions, d as Plugin, e as Overrides, f as PuckAction, V as Viewports, I as IframeConfig, g as InitialHistory, M as Metadata, h as DefaultComponentProps, i as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, j as ExtractRootPropsFromConfig, k as ComponentDataMap } from './resolve-all-data-D43Z4niC.mjs';
2
- export { W as Adaptor, L as ArrayField, s as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, u as ComponentConfig, x as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, l as Direction, m as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, q as FieldRenderFunctions, _ as Fields, r as ItemWithId, y as MappedItem, N as NumberField, Q as ObjectField, p as OverrideKey, t as PuckComponent, $ as PuckContext, K as RadioField, w as RootData, R as RootDataWithProps, v as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, n as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, o as overrideKeys, a6 as resolveAllData } from './resolve-all-data-D43Z4niC.mjs';
1
+ import { F as FieldProps, a as Field, D as DropZoneProps, C as Config, U as UserGenerics, b as Data, c as UiState, O as OnAction, P as Permissions, d as Plugin, e as Overrides, f as PuckAction, V as Viewports, I as IframeConfig, g as InitialHistory, M as Metadata, h as DefaultComponentProps, i as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, j as ExtractRootPropsFromConfig, k as ComponentDataMap } from './resolve-all-data-DIpcwlzP.mjs';
2
+ export { W as Adaptor, L as ArrayField, s as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, u as ComponentConfig, x as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, l as Direction, m as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, q as FieldRenderFunctions, _ as Fields, r as ItemWithId, y as MappedItem, N as NumberField, Q as ObjectField, p as OverrideKey, t as PuckComponent, $ as PuckContext, K as RadioField, w as RootData, R as RootDataWithProps, v as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, n as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, o as overrideKeys, a6 as resolveAllData } from './resolve-all-data-DIpcwlzP.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, SyntheticEvent, ReactElement } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldProps, a as Field, D as DropZoneProps, C as Config, U as UserGenerics, b as Data, c as UiState, O as OnAction, P as Permissions, d as Plugin, e as Overrides, f as PuckAction, V as Viewports, I as IframeConfig, g as InitialHistory, M as Metadata, h as DefaultComponentProps, i as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, j as ExtractRootPropsFromConfig, k as ComponentDataMap } from './resolve-all-data-D43Z4niC.js';
2
- export { W as Adaptor, L as ArrayField, s as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, u as ComponentConfig, x as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, l as Direction, m as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, q as FieldRenderFunctions, _ as Fields, r as ItemWithId, y as MappedItem, N as NumberField, Q as ObjectField, p as OverrideKey, t as PuckComponent, $ as PuckContext, K as RadioField, w as RootData, R as RootDataWithProps, v as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, n as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, o as overrideKeys, a6 as resolveAllData } from './resolve-all-data-D43Z4niC.js';
1
+ import { F as FieldProps, a as Field, D as DropZoneProps, C as Config, U as UserGenerics, b as Data, c as UiState, O as OnAction, P as Permissions, d as Plugin, e as Overrides, f as PuckAction, V as Viewports, I as IframeConfig, g as InitialHistory, M as Metadata, h as DefaultComponentProps, i as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, j as ExtractRootPropsFromConfig, k as ComponentDataMap } from './resolve-all-data-DIpcwlzP.js';
2
+ export { W as Adaptor, L as ArrayField, s as ArrayState, a4 as AsFieldProps, B as BaseData, G as BaseField, u as ComponentConfig, x as ComponentData, z as Content, Z as CustomField, a1 as DefaultRootProps, a0 as DefaultRootRenderProps, l as Direction, m as DragAxis, Y as ExternalField, X as ExternalFieldWithAdaptor, q as FieldRenderFunctions, _ as Fields, r as ItemWithId, y as MappedItem, N as NumberField, Q as ObjectField, p as OverrideKey, t as PuckComponent, $ as PuckContext, K as RadioField, w as RootData, R as RootDataWithProps, v as RootDataWithoutProps, S as SelectField, T as TextField, J as TextareaField, n as Viewport, a5 as WithChildren, a2 as WithId, a3 as WithPuckProps, o as overrideKeys, a6 as resolveAllData } from './resolve-all-data-DIpcwlzP.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, SyntheticEvent, ReactElement } from 'react';
package/dist/index.js CHANGED
@@ -2418,8 +2418,7 @@ var DefaultField = ({
2418
2418
  tabIndex: readOnly ? -1 : void 0,
2419
2419
  id,
2420
2420
  min: field.type === "number" ? field.min : void 0,
2421
- max: field.type === "number" ? field.max : void 0,
2422
- placeholder: field.type === "text" || field.type === "number" ? field.placeholder : void 0
2421
+ max: field.type === "number" ? field.max : void 0
2423
2422
  }
2424
2423
  )
2425
2424
  }
@@ -2995,7 +2994,6 @@ init_react_import();
2995
2994
  var import_jsx_runtime17 = require("react/jsx-runtime");
2996
2995
  var getClassName13 = get_class_name_factory_default("Input", styles_module_default2);
2997
2996
  var TextareaField = ({
2998
- field,
2999
2997
  onChange,
3000
2998
  readOnly,
3001
2999
  value,
@@ -3015,8 +3013,7 @@ var TextareaField = ({
3015
3013
  onChange: (e) => onChange(e.currentTarget.value),
3016
3014
  readOnly,
3017
3015
  tabIndex: readOnly ? -1 : void 0,
3018
- rows: 5,
3019
- placeholder: field.type === "textarea" ? field.placeholder : void 0
3016
+ rows: 5
3020
3017
  }
3021
3018
  ) });
3022
3019
  };
package/dist/index.mjs CHANGED
@@ -2233,8 +2233,7 @@ var DefaultField = ({
2233
2233
  tabIndex: readOnly ? -1 : void 0,
2234
2234
  id,
2235
2235
  min: field.type === "number" ? field.min : void 0,
2236
- max: field.type === "number" ? field.max : void 0,
2237
- placeholder: field.type === "text" || field.type === "number" ? field.placeholder : void 0
2236
+ max: field.type === "number" ? field.max : void 0
2238
2237
  }
2239
2238
  )
2240
2239
  }
@@ -2816,7 +2815,6 @@ init_react_import();
2816
2815
  import { jsx as jsx17 } from "react/jsx-runtime";
2817
2816
  var getClassName13 = get_class_name_factory_default("Input", styles_module_default2);
2818
2817
  var TextareaField = ({
2819
- field,
2820
2818
  onChange,
2821
2819
  readOnly,
2822
2820
  value,
@@ -2836,8 +2834,7 @@ var TextareaField = ({
2836
2834
  onChange: (e) => onChange(e.currentTarget.value),
2837
2835
  readOnly,
2838
2836
  tabIndex: readOnly ? -1 : void 0,
2839
- rows: 5,
2840
- placeholder: field.type === "textarea" ? field.placeholder : void 0
2837
+ rows: 5
2841
2838
  }
2842
2839
  ) });
2843
2840
  };
@@ -25,17 +25,14 @@ type BaseField = {
25
25
  };
26
26
  type TextField = BaseField & {
27
27
  type: "text";
28
- placeholder?: string;
29
28
  };
30
29
  type NumberField = BaseField & {
31
30
  type: "number";
32
- placeholder?: string;
33
31
  min?: number;
34
32
  max?: number;
35
33
  };
36
34
  type TextareaField = BaseField & {
37
35
  type: "textarea";
38
- placeholder?: string;
39
36
  };
40
37
  type SelectField = BaseField & {
41
38
  type: "select";
@@ -25,17 +25,14 @@ type BaseField = {
25
25
  };
26
26
  type TextField = BaseField & {
27
27
  type: "text";
28
- placeholder?: string;
29
28
  };
30
29
  type NumberField = BaseField & {
31
30
  type: "number";
32
- placeholder?: string;
33
31
  min?: number;
34
32
  max?: number;
35
33
  };
36
34
  type TextareaField = BaseField & {
37
35
  type: "textarea";
38
- placeholder?: string;
39
36
  };
40
37
  type SelectField = BaseField & {
41
38
  type: "select";
package/dist/rsc.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as Config, U as UserGenerics, M as Metadata } from './resolve-all-data-D43Z4niC.mjs';
3
- export { a6 as resolveAllData } from './resolve-all-data-D43Z4niC.mjs';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './resolve-all-data-DIpcwlzP.mjs';
3
+ export { a6 as resolveAllData } from './resolve-all-data-DIpcwlzP.mjs';
4
4
  import 'react';
5
5
 
6
6
  declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
package/dist/rsc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as Config, U as UserGenerics, M as Metadata } from './resolve-all-data-D43Z4niC.js';
3
- export { a6 as resolveAllData } from './resolve-all-data-D43Z4niC.js';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './resolve-all-data-DIpcwlzP.js';
3
+ export { a6 as resolveAllData } from './resolve-all-data-DIpcwlzP.js';
4
4
  import 'react';
5
5
 
6
6
  declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.19.0-canary.32a6f78",
3
+ "version": "0.19.0-canary.b9add22",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",