@cntrl-site/components 1.0.111-alpha.1 → 1.0.111-alpha.2

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.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { C as s, a as l, L as d, P } from "./components-CpgSVhiu.mjs";
2
- import { c as C } from "./components-CpgSVhiu.mjs";
3
- import { g as S, a as E, i as U } from "./panelAvailability-D179wwJx.mjs";
4
- import { D as _, k as h, j as x, f as F, g as G, e as I, c as T, d as j, i as A, m as D, h as H, r as B, s as K, b as O, a as R } from "./PopupMenu-DRn2Hrwz.mjs";
5
- function f(e) {
1
+ import { C as s, a as P, L as l, P as d } from "./components-QxlSJUUn.mjs";
2
+ import { c as E } from "./components-QxlSJUUn.mjs";
3
+ import { g as L, a as b, i as S } from "./panelAvailability-D179wwJx.mjs";
4
+ import { l as C, p as I, D as T, P as h, o as O, f as k, g as F, e as G, k as x, c as D, d as H, j as N, h as R, i as j, m as B, n as K, r as V, s as W, b as w, a as z } from "./PopupMenu-DXWVDnPf.mjs";
5
+ function M(e) {
6
6
  return e.type === "object" && e.version === 1;
7
7
  }
8
8
  function a(e) {
@@ -24,50 +24,55 @@ function c(e, { text: n, images: t }) {
24
24
  return n;
25
25
  }
26
26
  }
27
- function m(e, { pageId: n, slug: t }) {
27
+ function g(e, { pageId: n, slug: t }) {
28
28
  return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
29
29
  }
30
- function M(e) {
30
+ function f(e) {
31
31
  var t;
32
32
  const n = ((t = e == null ? void 0 : e.items) == null ? void 0 : t.properties) ?? {};
33
33
  return Object.entries(n).map(([o, p]) => {
34
- var i;
35
- const r = (i = p.display) == null ? void 0 : i.type;
34
+ var r;
35
+ const i = (r = p.display) == null ? void 0 : r.type;
36
36
  return {
37
37
  fieldKey: o,
38
38
  ...p.contentKey !== void 0 ? { contentKey: p.contentKey } : {},
39
- fromEntry: (u) => c(r, u),
40
- toPage: (u) => m(r, u)
39
+ fromEntry: (u) => c(i, u),
40
+ toPage: (u) => g(i, u)
41
41
  };
42
42
  });
43
43
  }
44
44
  const y = [
45
45
  s.id,
46
+ P.id,
46
47
  l.id,
47
- d.id,
48
- P.id
48
+ d.id
49
49
  ];
50
50
  export {
51
- _ as DEFAULT_POPUP_MENU_GRID,
52
- h as DEFAULT_POPUP_MENU_HEIGHT,
53
- C as components,
54
- x as defaultPopupMenuLayoutRules,
55
- F as fitPopupMenuLayoutToGrid,
56
- G as generatePopupMenuLayout,
57
- S as getAvailableStatePanels,
58
- I as getPopupMenuGrid,
59
- T as getPopupMenuHeight,
60
- j as getPopupMenuSides,
61
- M as getPostFieldBindings,
62
- E as getUnavailableStates,
63
- U as isPanelAvailable,
64
- A as isSamePopupMenuGrid,
65
- f as isSchemaV1,
66
- D as movePopupMenuBlock,
51
+ C as DEFAULT_POPUP_MENU_GRID,
52
+ I as DEFAULT_POPUP_MENU_HEIGHT,
53
+ T as DEFAULT_POPUP_MENU_VIEWPORT_RATIO,
54
+ h as POPUP_MENU_ALIGNS,
55
+ E as components,
56
+ O as defaultPopupMenuLayoutRules,
57
+ k as fitPopupMenuLayoutToGrid,
58
+ F as generatePopupMenuLayout,
59
+ L as getAvailableStatePanels,
60
+ G as getPopupMenuAlign,
61
+ x as getPopupMenuGrid,
62
+ D as getPopupMenuHeight,
63
+ H as getPopupMenuHeightPercent,
64
+ N as getPopupMenuSides,
65
+ R as getPopupMenuWidth,
66
+ f as getPostFieldBindings,
67
+ b as getUnavailableStates,
68
+ S as isPanelAvailable,
69
+ j as isSamePopupMenuGrid,
70
+ M as isSchemaV1,
71
+ B as movePopupMenuBlock,
67
72
  y as nonForkableComponentIds,
68
- H as randomPopupMenuSeed,
69
- B as resizePopupMenuBlock,
70
- K as settlePopupMenuLayout,
71
- O as snapPopupMenuHeight,
72
- R as snapPopupMenuTop
73
+ K as randomPopupMenuSeed,
74
+ V as resizePopupMenuBlock,
75
+ W as settlePopupMenuLayout,
76
+ w as snapPopupMenuHeight,
77
+ z as snapPopupMenuTop
73
78
  };
@@ -97,7 +97,8 @@ export type ComponentContentProperty = {
97
97
  min?: number;
98
98
  max?: number;
99
99
  default?: unknown;
100
- /** How the field is drawn instead in a row whose `type` is one of these keys, laid over the rest. */
100
+ /** How the field is drawn instead in a row whose `type` is one of these keys, laid over the rest; a display
101
+ * with `visible: false` leaves the field out of those rows. */
101
102
  byRowType?: Record<string, Pick<ComponentContentProperty, 'placeholder' | 'display'>>;
102
103
  };
103
104
  export type ComponentContentSchema = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.111-alpha.1",
3
+ "version": "1.0.111-alpha.2",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",