soinproduction-gutenberg 0.1.15 → 0.1.17
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/README.md +17 -0
- package/components/choice/index.tsx +1 -1
- package/components/heading/editor.tsx +13 -6
- package/components/heading/index.tsx +1 -1
- package/core/editor/inspector.tsx +9 -0
- package/core/editor/styles.css +18 -5
- package/core/fields/editor.tsx +14 -9
- package/core/fields/order.ts +11 -0
- package/core/fields/render.tsx +1 -1
- package/core/fields/schema.ts +1 -0
- package/core/fields/view-classes.ts +2 -0
- package/dist/components/background/index.d.ts +41 -1
- package/dist/components/button/index.d.ts +41 -1
- package/dist/components/buttons/index.d.ts +41 -1
- package/dist/components/categories/index.d.ts +41 -1
- package/dist/components/choice/index.d.ts +1 -0
- package/dist/components/choice/index.js.map +2 -2
- package/dist/components/forms/index.d.ts +41 -1
- package/dist/components/gallery/index.d.ts +41 -1
- package/dist/components/heading/editor.js +14 -7
- package/dist/components/heading/editor.js.map +2 -2
- package/dist/components/heading/index.d.ts +41 -1
- package/dist/components/heading/index.js +1 -1
- package/dist/components/heading/index.js.map +2 -2
- package/dist/components/icon/index.d.ts +41 -1
- package/dist/components/image/index.d.ts +41 -1
- package/dist/components/link/index.d.ts +41 -1
- package/dist/components/media/index.d.ts +41 -1
- package/dist/components/paragraphs/index.d.ts +41 -1
- package/dist/components/pricing-plans/index.d.ts +41 -1
- package/dist/components/records/index.d.ts +41 -1
- package/dist/components/reviews-carousel/index.d.ts +41 -1
- package/dist/components/slider/index.d.ts +82 -2
- package/dist/components/text/index.d.ts +41 -1
- package/dist/core/editor/inspector.d.ts +7 -0
- package/dist/core/editor/inspector.js +13 -0
- package/dist/core/editor/inspector.js.map +7 -0
- package/dist/core/editor/styles.css +18 -5
- package/dist/core/fields/editor.js +11 -6
- package/dist/core/fields/editor.js.map +2 -2
- package/dist/core/fields/order.d.ts +4 -0
- package/dist/core/fields/order.js +11 -0
- package/dist/core/fields/order.js.map +7 -0
- package/dist/core/fields/render.js +1 -1
- package/dist/core/fields/render.js.map +2 -2
- package/dist/core/fields/schema.d.ts +1 -0
- package/dist/core/fields/schema.js.map +2 -2
- package/dist/core/fields/view-classes.d.ts +2 -0
- package/dist/core/fields/view-classes.js.map +2 -2
- package/dist/schema/index.js +2 -1
- package/dist/schema/index.js.map +2 -2
- package/dist/shared/index.d.ts +41 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/index.js.map +2 -2
- package/dist/tooling/build-doc-props.mjs +11 -5
- package/package.json +1 -1
- package/schema/index.tsx +2 -2
- package/shared/index.tsx +1 -1
- package/tooling/build-doc-props.mjs +11 -5
package/README.md
CHANGED
|
@@ -189,3 +189,20 @@ Bare numbers are pixels; explicit CSS units such as `px`, `rem`, `em` and `%` ar
|
|
|
189
189
|
## Plain links
|
|
190
190
|
|
|
191
191
|
`<Link name="action" label="Link" icon="custom:library:arrow" className="..." />` uses the same stored `{text, url, linkId, modalId, icon}` value as `Button`, with plain link presentation in both views. Existing values and field names stay intact when replacing a Button. Caption text edits on the canvas; the link control or Ctrl/Cmd+K edits the destination, and Ctrl/Cmd+Shift+K removes it. Section classes own its appearance.
|
|
192
|
+
|
|
193
|
+
### Settings order in the editor
|
|
194
|
+
|
|
195
|
+
Every public JSX component accepts `order?: number`. Lower values appear first inside the same Item or settings group; the default is `0`, and ties keep JSX order. Negative values are allowed. `order` does not change frontend DOM order, grid placement, stored field names or list item order. Structural components without their own settings do not add a sidebar panel.
|
|
196
|
+
|
|
197
|
+
```tsx
|
|
198
|
+
<List name="cards">
|
|
199
|
+
<article>
|
|
200
|
+
<Background name="image" order={10} />
|
|
201
|
+
<Heading name="title" order={20} />
|
|
202
|
+
<Text name="description" order={30} />
|
|
203
|
+
<Link name="action" order={40} />
|
|
204
|
+
</article>
|
|
205
|
+
</List>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
The component reference includes all public JSX props, including inherited props. Its type table is regenerated from TypeScript before each documentation build. Run `node tooling/build-doc-props.mjs --check` to check it without writing files.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
export const Choice = Object.assign(
|
|
4
|
-
(_props: { name: string; label: string; choices: Record<string, string
|
|
4
|
+
(_props: { name: string; label: string; choices: Record<string, string>; order?: number }) => null,
|
|
5
5
|
{
|
|
6
6
|
kind: 'choice',
|
|
7
7
|
field: ({ label, choices }: any) => ({
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { OrderedInspectorControls } from '../../core/editor/inspector.js';
|
|
3
|
+
import { ChevronDown } from 'lucide-react';
|
|
4
|
+
import { useId, useState, type KeyboardEvent} from 'react';
|
|
3
5
|
import { headingTags, headingStyles, isHeadingTag, isHeadingStyle, type HeadingSettings } from './model.js';
|
|
4
6
|
declare const wp: any;
|
|
5
7
|
|
|
6
8
|
export function HeadingSettingsControl(props: any) {
|
|
7
9
|
// A grouped row owns all its controls; canvas headings must not add sibling panels.
|
|
8
|
-
return props.options?.itemPanel && !props.controls ? null :
|
|
10
|
+
return props.options?.itemPanel && !props.controls ? null : <HeadingSettings {...props} />;
|
|
9
11
|
}
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
+
function HeadingSettings({ field, value = {}, setValue, options = {}, controls = false }: any) {
|
|
13
|
+
const [open, setOpen] = useState(false);
|
|
14
|
+
const id = useId();
|
|
12
15
|
const { PanelBody, Button } = wp.components;
|
|
13
16
|
const defaults = options.defaults ?? {};
|
|
14
17
|
const select = (key: keyof HeadingSettings, selected: string) => {
|
|
@@ -48,6 +51,10 @@ function headingSettings({ field, value = {}, setValue, options = {}, controls =
|
|
|
48
51
|
</fieldset>;
|
|
49
52
|
})}
|
|
50
53
|
</>;
|
|
51
|
-
return controls ? <
|
|
52
|
-
<
|
|
54
|
+
return controls ? <div className="site-item-heading-settings">
|
|
55
|
+
<Button className="site-item-heading-toggle" aria-expanded={open} aria-controls={id} onClick={() => setOpen(current => !current)}>
|
|
56
|
+
<span>Heading settings</span><ChevronDown size={16} aria-hidden="true" />
|
|
57
|
+
</Button>
|
|
58
|
+
<div id={id} className="site-item-heading-content" hidden={!open}>{fields}</div>
|
|
59
|
+
</div> : <OrderedInspectorControls><PanelBody title={field.label ?? 'Heading'} initialOpen>{fields}</PanelBody></OrderedInspectorControls>;
|
|
53
60
|
}
|
|
@@ -14,7 +14,7 @@ export function HeadingView({ name, label, level = 2, tag, textStyle, className
|
|
|
14
14
|
return <>
|
|
15
15
|
{field.edit && field.edit({
|
|
16
16
|
name,
|
|
17
|
-
field: { name, type: 'custom', control: 'heading-settings', label: label ?? field.field.label ?? 'Heading' },
|
|
17
|
+
field: { name, order: field.field.order, type: 'custom', control: 'heading-settings', label: label ?? field.field.label ?? 'Heading' },
|
|
18
18
|
value: stored ?? {},
|
|
19
19
|
setValue: (next) => scope.onChange?.(updateHeadingSettings(scope.value, name, next)),
|
|
20
20
|
site: scope.site,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createContext, useContext, type ReactNode } from 'react';
|
|
2
|
+
import { fieldOrder } from '../fields/order.js';
|
|
3
|
+
declare const wp: any;
|
|
4
|
+
export const InspectorOrderContext = createContext<number | undefined>(undefined);
|
|
5
|
+
/** Keep an editor-only priority out of authored DOM attributes and frontend CSS. */
|
|
6
|
+
export function OrderedInspectorControls({ children, order }: { children: ReactNode; order?: number }) {
|
|
7
|
+
const inherited = useContext(InspectorOrderContext);
|
|
8
|
+
return <wp.blockEditor.InspectorControls><div className="site-inspector-group" style={{order: fieldOrder(order ?? inherited)}}>{children}</div></wp.blockEditor.InspectorControls>;
|
|
9
|
+
}
|
package/core/editor/styles.css
CHANGED
|
@@ -1220,8 +1220,21 @@
|
|
|
1220
1220
|
.site-inline-link:hover>.site-button-tools,.site-inline-link:focus-within>.site-button-tools{opacity:1;}
|
|
1221
1221
|
.site-inline-link .block-editor-rich-text__editable{display:inline;font:inherit;line-height:inherit;color:inherit;}
|
|
1222
1222
|
|
|
1223
|
-
/*
|
|
1224
|
-
.site-
|
|
1225
|
-
.site-item-field
|
|
1226
|
-
.site-item-
|
|
1227
|
-
.site-item-
|
|
1223
|
+
/* Settings use one spacing system; nested WordPress margins must not add a second gap. */
|
|
1224
|
+
.site-field-controls { gap: 16px; }
|
|
1225
|
+
.site-item-field { display: grid; gap: 12px; min-width: 0; }
|
|
1226
|
+
.site-item-field > :is(.site-field-rich-control, .components-base-control, .site-media-setting, .site-background-settings, .site-item-field-label) { margin: 0; }
|
|
1227
|
+
.site-item-field .components-base-control:last-child { margin-bottom: 0; }
|
|
1228
|
+
.site-item-field-label { display: block; font-size: 12px; }
|
|
1229
|
+
.site-item-heading-settings { min-width: 0; }
|
|
1230
|
+
.site-item-heading-toggle.components-button { display: flex; width: 100%; height: 32px; min-height: 32px; padding: 0; justify-content: space-between; border: 0; color: #50575e; background: transparent; box-shadow: none; font-size: 12px; font-weight: 500; }
|
|
1231
|
+
.site-item-heading-toggle svg { flex: none; transition: transform 150ms ease; }
|
|
1232
|
+
.site-item-heading-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
1233
|
+
.site-item-heading-toggle.components-button:is(:focus, :focus-visible):not(:disabled) { outline: none; box-shadow: none; }
|
|
1234
|
+
.site-item-heading-content:not([hidden]) { display: grid; gap: 16px; padding: 12px 0 0; }
|
|
1235
|
+
.site-item-heading-content[hidden] { display: none !important; }
|
|
1236
|
+
.site-item-heading-content .site-heading-setting { margin: 0; }
|
|
1237
|
+
/* Inspector fills are siblings in Gutenberg; priority affects only their editor groups. */
|
|
1238
|
+
:has(> .site-inspector-group) { display: flex; flex-direction: column; }
|
|
1239
|
+
.site-inspector-group { min-width: 0; }
|
|
1240
|
+
@media (prefers-reduced-motion: reduce) { .site-item-heading-toggle svg { transition: none; } }
|
package/core/fields/editor.tsx
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { orderedFields } from './order.js';
|
|
2
|
+
import { InspectorOrderContext, OrderedInspectorControls } from '../editor/inspector.js';
|
|
1
3
|
import { updateHeadingSettings } from '../../components/heading/model.js';
|
|
2
4
|
import { InlineLinkEditor } from '../editor/inline-link.js';
|
|
3
5
|
import { ButtonIconSettings } from '../editor/button-icon-settings.js';
|
|
@@ -55,7 +57,7 @@ function ItemSettings({ field, value, setValue, site, options }: Props) {
|
|
|
55
57
|
reveal(selectedListItem());
|
|
56
58
|
return () => { unsubscribe(); cancelAnimationFrame(frame); };
|
|
57
59
|
}, [key]);
|
|
58
|
-
return <
|
|
60
|
+
return <OrderedInspectorControls><div ref={panel}
|
|
59
61
|
className={'site-item-settings' + (drop ? ' is-drop-' + drop : '') + (dragging ? ' is-dragging' : '')}
|
|
60
62
|
onDragOver={event => {
|
|
61
63
|
if (!options?.listKey || !event.dataTransfer.types.includes('application/x-site-list-item')) return;
|
|
@@ -89,7 +91,7 @@ function ItemSettings({ field, value, setValue, site, options }: Props) {
|
|
|
89
91
|
<wp.components.PanelBody title={field.label} opened={open} onToggle={() => setOpen(current => !current)}>
|
|
90
92
|
<FieldControls schema={field.fields ?? []} value={value} onChange={setValue} site={site} />
|
|
91
93
|
</wp.components.PanelBody>
|
|
92
|
-
</div></
|
|
94
|
+
</div></OrderedInspectorControls>;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
function MediaPicker({ value, setValue, label = 'Image' }: any) {
|
|
@@ -186,7 +188,7 @@ function LinkControls({ value = {}, setValue, site = {}, textLabel = 'Button tex
|
|
|
186
188
|
function FieldControls({ schema, value, onChange, site }: any) {
|
|
187
189
|
return (
|
|
188
190
|
<div className="site-field-controls">
|
|
189
|
-
{schema.map((field: FieldDefinition) => (
|
|
191
|
+
{orderedFields<FieldDefinition>(schema).map((field: FieldDefinition) => (
|
|
190
192
|
<div key={field.name} className="site-item-field" data-field-name={field.name}>
|
|
191
193
|
{['custom', 'media', 'link'].includes(field.type) && <strong className="site-item-field-label">{labelOf(field)}</strong>}
|
|
192
194
|
<FieldEditor
|
|
@@ -273,20 +275,23 @@ function CollectionControls({ field, value, setValue, site, focusRequest }: Prop
|
|
|
273
275
|
);
|
|
274
276
|
}
|
|
275
277
|
function FieldEditor(props: Props) {
|
|
278
|
+
return <InspectorOrderContext.Provider value={props.field.order}><FieldEditorView {...props} /></InspectorOrderContext.Provider>;
|
|
279
|
+
}
|
|
280
|
+
function FieldEditorView(props: Props) {
|
|
276
281
|
const scope = useFieldScope(), recordLink = useRecordLink();
|
|
277
282
|
const [focusRequest, setFocusRequest] = useState<{ index: number } | null>(null);
|
|
278
283
|
const { field, setValue, site, controls = false } = props;
|
|
279
284
|
const value = props.value ?? emptyValues([field])[field.name],
|
|
280
285
|
label = labelOf(field);
|
|
281
|
-
const { RichText
|
|
286
|
+
const { RichText } = wp.blockEditor;
|
|
282
287
|
const { TextControl, TextareaControl, ToggleControl, PanelBody, ColorPalette } = wp.components;
|
|
283
288
|
const inspector = (children: any) => (
|
|
284
|
-
<
|
|
289
|
+
<OrderedInspectorControls>
|
|
285
290
|
<PanelBody title={label}>
|
|
286
291
|
{field.instructions && <p>{field.instructions}</p>}
|
|
287
292
|
{children}
|
|
288
293
|
</PanelBody>
|
|
289
|
-
</
|
|
294
|
+
</OrderedInspectorControls>
|
|
290
295
|
);
|
|
291
296
|
if (field.control === 'row-settings') return <ItemSettings {...props} />;
|
|
292
297
|
if (field.control === 'list-display') return <CollectionDisplaySettings label={label} value={value} onChange={setValue} />;
|
|
@@ -708,9 +713,9 @@ function FieldEditor(props: Props) {
|
|
|
708
713
|
}
|
|
709
714
|
function SchemaSettings({ schema }: any) {
|
|
710
715
|
const scope = useFieldScope();
|
|
711
|
-
const fields = schema.filter((field:
|
|
716
|
+
const fields = orderedFields<FieldDefinition>(schema.filter((field: FieldDefinition) => field.settings));
|
|
712
717
|
return fields.length ? (
|
|
713
|
-
<
|
|
718
|
+
<OrderedInspectorControls>
|
|
714
719
|
<wp.components.PanelBody title="Section settings">
|
|
715
720
|
{fields.map((field: any) => (
|
|
716
721
|
<FieldEditor
|
|
@@ -724,7 +729,7 @@ function SchemaSettings({ schema }: any) {
|
|
|
724
729
|
/>
|
|
725
730
|
))}
|
|
726
731
|
</wp.components.PanelBody>
|
|
727
|
-
</
|
|
732
|
+
</OrderedInspectorControls>
|
|
728
733
|
) : null;
|
|
729
734
|
}
|
|
730
735
|
const editField: EditField = (props) => <FieldEditor {...props} />;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FieldDefinition } from './schema.js';
|
|
2
|
+
|
|
3
|
+
/** Unordered fields have priority zero; equal priorities retain markup order. */
|
|
4
|
+
export function fieldOrder(order: unknown): number {
|
|
5
|
+
return typeof order === 'number' && Number.isFinite(order) ? order : 0;
|
|
6
|
+
}
|
|
7
|
+
export function orderedFields<T extends Pick<FieldDefinition, 'order'>>(fields: readonly T[]): T[] {
|
|
8
|
+
return fields.map((field, index) => ({ field, index }))
|
|
9
|
+
.sort((a, b) => fieldOrder(a.field.order) - fieldOrder(b.field.order) || a.index - b.index)
|
|
10
|
+
.map(({ field }) => field);
|
|
11
|
+
}
|
package/core/fields/render.tsx
CHANGED
|
@@ -364,7 +364,7 @@ export function Repeater({ name, children, className, renderRow, addText, button
|
|
|
364
364
|
listKey: itemFocusKey, index, total: rows.length,
|
|
365
365
|
onMove: (from: number, target: number) => scope.setValue(reorderListItems(rows, from, target)),
|
|
366
366
|
},
|
|
367
|
-
field: { name: scope.field.name, type: 'custom', control: 'row-settings', label: `Item ${index + 1}`, fields: settings },
|
|
367
|
+
field: { name: scope.field.name, order: scope.field.order, type: 'custom', control: 'row-settings', label: `Item ${index + 1}`, fields: settings },
|
|
368
368
|
value: row,
|
|
369
369
|
setValue: next => scope.setValue(rows.map((old: any, i: number) => i === index ? next : old)),
|
|
370
370
|
site: scope.site,
|
package/core/fields/schema.ts
CHANGED
|
@@ -6,5 +6,45 @@ export declare function BackgroundView({ name, className }: {
|
|
|
6
6
|
}): import("react").JSX.Element;
|
|
7
7
|
export declare const Background: ((props: Props) => import("react").ReactNode) & {
|
|
8
8
|
kind: string;
|
|
9
|
-
field: (props: Props) =>
|
|
9
|
+
field: (props: Props) => {
|
|
10
|
+
order?: number;
|
|
11
|
+
manual?: boolean | undefined;
|
|
12
|
+
type: import("../../core/fields/schema.js").FieldType;
|
|
13
|
+
defaultValue?: any;
|
|
14
|
+
itemType?: "string" | undefined;
|
|
15
|
+
label?: string | undefined;
|
|
16
|
+
step?: number | undefined;
|
|
17
|
+
max?: number | undefined;
|
|
18
|
+
media?: import("../../core/media/universal/model.js").MediaOptions | undefined;
|
|
19
|
+
min?: number | undefined;
|
|
20
|
+
storage?: "url" | undefined;
|
|
21
|
+
fields?: import("../../core/fields/schema.js").FieldDefinition[] | undefined;
|
|
22
|
+
area?: import("../../core/content/areas/data.js").ContentAreaDefinition | undefined;
|
|
23
|
+
instructions?: string | undefined;
|
|
24
|
+
placeholder?: string | undefined;
|
|
25
|
+
choices?: Record<string, string> | undefined;
|
|
26
|
+
postType?: import("../../core/fields/schema.js").PostType | undefined;
|
|
27
|
+
tag?: string | undefined;
|
|
28
|
+
settings?: boolean | undefined;
|
|
29
|
+
scaffold?: boolean | undefined;
|
|
30
|
+
optional?: boolean | undefined;
|
|
31
|
+
control?: string | undefined;
|
|
32
|
+
recordField?: string | undefined;
|
|
33
|
+
recordMeta?: string | undefined;
|
|
34
|
+
recordSource?: string | undefined;
|
|
35
|
+
collection?: string | undefined;
|
|
36
|
+
taxonomy?: string | undefined;
|
|
37
|
+
basePath?: string | null | undefined;
|
|
38
|
+
readOnly?: boolean | undefined;
|
|
39
|
+
resolveValue?: (context: {
|
|
40
|
+
value: any;
|
|
41
|
+
site: any;
|
|
42
|
+
record: any;
|
|
43
|
+
}) => any;
|
|
44
|
+
resolveRecords?: boolean | undefined;
|
|
45
|
+
fromPosts?: boolean | undefined;
|
|
46
|
+
excludeCurrent?: boolean | undefined;
|
|
47
|
+
controlOptions?: Record<string, unknown> | undefined;
|
|
48
|
+
elements?: any[] | undefined;
|
|
49
|
+
};
|
|
10
50
|
};
|
|
@@ -19,5 +19,45 @@ export declare const Button: ((props: import("../../core/fields/view-classes.js"
|
|
|
19
19
|
label?: string;
|
|
20
20
|
} & {
|
|
21
21
|
style?: string;
|
|
22
|
-
}) =>
|
|
22
|
+
}) => {
|
|
23
|
+
order?: number;
|
|
24
|
+
manual?: boolean | undefined;
|
|
25
|
+
type: import("../../core/fields/schema.js").FieldType;
|
|
26
|
+
defaultValue?: any;
|
|
27
|
+
itemType?: "string" | undefined;
|
|
28
|
+
label?: string | undefined;
|
|
29
|
+
step?: number | undefined;
|
|
30
|
+
max?: number | undefined;
|
|
31
|
+
media?: import("../../core/media/universal/model.js").MediaOptions | undefined;
|
|
32
|
+
min?: number | undefined;
|
|
33
|
+
storage?: "url" | undefined;
|
|
34
|
+
fields?: import("../../core/fields/schema.js").FieldDefinition[] | undefined;
|
|
35
|
+
area?: import("../../core/content/areas/data.js").ContentAreaDefinition | undefined;
|
|
36
|
+
instructions?: string | undefined;
|
|
37
|
+
placeholder?: string | undefined;
|
|
38
|
+
choices?: Record<string, string> | undefined;
|
|
39
|
+
postType?: import("../../core/fields/schema.js").PostType | undefined;
|
|
40
|
+
tag?: string | undefined;
|
|
41
|
+
settings?: boolean | undefined;
|
|
42
|
+
scaffold?: boolean | undefined;
|
|
43
|
+
optional?: boolean | undefined;
|
|
44
|
+
control?: string | undefined;
|
|
45
|
+
recordField?: string | undefined;
|
|
46
|
+
recordMeta?: string | undefined;
|
|
47
|
+
recordSource?: string | undefined;
|
|
48
|
+
collection?: string | undefined;
|
|
49
|
+
taxonomy?: string | undefined;
|
|
50
|
+
basePath?: string | null | undefined;
|
|
51
|
+
readOnly?: boolean | undefined;
|
|
52
|
+
resolveValue?: (context: {
|
|
53
|
+
value: any;
|
|
54
|
+
site: any;
|
|
55
|
+
record: any;
|
|
56
|
+
}) => any;
|
|
57
|
+
resolveRecords?: boolean | undefined;
|
|
58
|
+
fromPosts?: boolean | undefined;
|
|
59
|
+
excludeCurrent?: boolean | undefined;
|
|
60
|
+
controlOptions?: Record<string, unknown> | undefined;
|
|
61
|
+
elements?: any[] | undefined;
|
|
62
|
+
};
|
|
23
63
|
};
|
|
@@ -27,5 +27,45 @@ export declare const Buttons: ((props: import("../../core/fields/view-classes.js
|
|
|
27
27
|
} & AddButton & {
|
|
28
28
|
max?: number;
|
|
29
29
|
styles?: string[];
|
|
30
|
-
}) =>
|
|
30
|
+
}) => {
|
|
31
|
+
order?: number;
|
|
32
|
+
manual?: boolean | undefined;
|
|
33
|
+
type: import("../../core/fields/schema.js").FieldType;
|
|
34
|
+
defaultValue?: any;
|
|
35
|
+
itemType?: "string" | undefined;
|
|
36
|
+
label?: string | undefined;
|
|
37
|
+
step?: number | undefined;
|
|
38
|
+
max?: number | undefined;
|
|
39
|
+
media?: import("../../core/media/universal/model.js").MediaOptions | undefined;
|
|
40
|
+
min?: number | undefined;
|
|
41
|
+
storage?: "url" | undefined;
|
|
42
|
+
fields?: import("../../core/fields/schema.js").FieldDefinition[] | undefined;
|
|
43
|
+
area?: import("../../core/content/areas/data.js").ContentAreaDefinition | undefined;
|
|
44
|
+
instructions?: string | undefined;
|
|
45
|
+
placeholder?: string | undefined;
|
|
46
|
+
choices?: Record<string, string> | undefined;
|
|
47
|
+
postType?: import("../../core/fields/schema.js").PostType | undefined;
|
|
48
|
+
tag?: string | undefined;
|
|
49
|
+
settings?: boolean | undefined;
|
|
50
|
+
scaffold?: boolean | undefined;
|
|
51
|
+
optional?: boolean | undefined;
|
|
52
|
+
control?: string | undefined;
|
|
53
|
+
recordField?: string | undefined;
|
|
54
|
+
recordMeta?: string | undefined;
|
|
55
|
+
recordSource?: string | undefined;
|
|
56
|
+
collection?: string | undefined;
|
|
57
|
+
taxonomy?: string | undefined;
|
|
58
|
+
basePath?: string | null | undefined;
|
|
59
|
+
readOnly?: boolean | undefined;
|
|
60
|
+
resolveValue?: (context: {
|
|
61
|
+
value: any;
|
|
62
|
+
site: any;
|
|
63
|
+
record: any;
|
|
64
|
+
}) => any;
|
|
65
|
+
resolveRecords?: boolean | undefined;
|
|
66
|
+
fromPosts?: boolean | undefined;
|
|
67
|
+
excludeCurrent?: boolean | undefined;
|
|
68
|
+
controlOptions?: Record<string, unknown> | undefined;
|
|
69
|
+
elements?: any[] | undefined;
|
|
70
|
+
};
|
|
31
71
|
};
|
|
@@ -37,5 +37,45 @@ export declare const Categories: ((props: import("../../core/fields/view-classes
|
|
|
37
37
|
children: ReactNode;
|
|
38
38
|
countField?: string;
|
|
39
39
|
countClassName?: string;
|
|
40
|
-
}) =>
|
|
40
|
+
}) => {
|
|
41
|
+
order?: number;
|
|
42
|
+
manual?: boolean | undefined;
|
|
43
|
+
type: import("../../core/fields/schema.js").FieldType;
|
|
44
|
+
defaultValue?: any;
|
|
45
|
+
itemType?: "string" | undefined;
|
|
46
|
+
label?: string | undefined;
|
|
47
|
+
step?: number | undefined;
|
|
48
|
+
max?: number | undefined;
|
|
49
|
+
media?: import("../../core/media/universal/model.js").MediaOptions | undefined;
|
|
50
|
+
min?: number | undefined;
|
|
51
|
+
storage?: "url" | undefined;
|
|
52
|
+
fields?: import("../../core/fields/schema.js").FieldDefinition[] | undefined;
|
|
53
|
+
area?: import("../../core/content/areas/data.js").ContentAreaDefinition | undefined;
|
|
54
|
+
instructions?: string | undefined;
|
|
55
|
+
placeholder?: string | undefined;
|
|
56
|
+
choices?: Record<string, string> | undefined;
|
|
57
|
+
postType?: import("../../core/fields/schema.js").PostType | undefined;
|
|
58
|
+
tag?: string | undefined;
|
|
59
|
+
settings?: boolean | undefined;
|
|
60
|
+
scaffold?: boolean | undefined;
|
|
61
|
+
optional?: boolean | undefined;
|
|
62
|
+
control?: string | undefined;
|
|
63
|
+
recordField?: string | undefined;
|
|
64
|
+
recordMeta?: string | undefined;
|
|
65
|
+
recordSource?: string | undefined;
|
|
66
|
+
collection?: string | undefined;
|
|
67
|
+
taxonomy?: string | undefined;
|
|
68
|
+
basePath?: string | null | undefined;
|
|
69
|
+
readOnly?: boolean | undefined;
|
|
70
|
+
resolveValue?: (context: {
|
|
71
|
+
value: any;
|
|
72
|
+
site: any;
|
|
73
|
+
record: any;
|
|
74
|
+
}) => any;
|
|
75
|
+
resolveRecords?: boolean | undefined;
|
|
76
|
+
fromPosts?: boolean | undefined;
|
|
77
|
+
excludeCurrent?: boolean | undefined;
|
|
78
|
+
controlOptions?: Record<string, unknown> | undefined;
|
|
79
|
+
elements?: any[] | undefined;
|
|
80
|
+
};
|
|
41
81
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../components/choice/index.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client';\n\nexport const Choice = Object.assign(\n (_props: { name: string; label: string; choices: Record<string, string
|
|
5
|
-
"mappings": ";AAEO,MAAM,SAAS,OAAO;AAAA,EAC3B,CAAC,
|
|
4
|
+
"sourcesContent": ["'use client';\n\nexport const Choice = Object.assign(\n (_props: { name: string; label: string; choices: Record<string, string>; order?: number }) => null,\n {\n kind: 'choice',\n field: ({ label, choices }: any) => ({\n type: 'select' as const,\n label,\n choices,\n settings: true,\n defaultValue: Object.keys(choices)[0],\n }),\n }\n);\n"],
|
|
5
|
+
"mappings": ";AAEO,MAAM,SAAS,OAAO;AAAA,EAC3B,CAAC,WAA6F;AAAA,EAC9F;AAAA,IACE,MAAM;AAAA,IACN,OAAO,CAAC,EAAE,OAAO,QAAQ,OAAY;AAAA,MACnC,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,cAAc,OAAO,KAAK,OAAO,EAAE,CAAC;AAAA,IACtC;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,5 +2,45 @@ import { Props } from '../../shared/index.js';
|
|
|
2
2
|
/** A published form chosen in the sidebar. */
|
|
3
3
|
export declare const Form: ((props: Props) => import("react").ReactNode) & {
|
|
4
4
|
kind: string;
|
|
5
|
-
field: (props: Props) =>
|
|
5
|
+
field: (props: Props) => {
|
|
6
|
+
order?: number;
|
|
7
|
+
manual?: boolean | undefined;
|
|
8
|
+
type: import("../../core/fields/schema.js").FieldType;
|
|
9
|
+
defaultValue?: any;
|
|
10
|
+
itemType?: "string" | undefined;
|
|
11
|
+
label?: string | undefined;
|
|
12
|
+
step?: number | undefined;
|
|
13
|
+
max?: number | undefined;
|
|
14
|
+
media?: import("../../core/media/universal/model.js").MediaOptions | undefined;
|
|
15
|
+
min?: number | undefined;
|
|
16
|
+
storage?: "url" | undefined;
|
|
17
|
+
fields?: import("../../core/fields/schema.js").FieldDefinition[] | undefined;
|
|
18
|
+
area?: import("../../core/content/areas/data.js").ContentAreaDefinition | undefined;
|
|
19
|
+
instructions?: string | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
choices?: Record<string, string> | undefined;
|
|
22
|
+
postType?: import("../../core/fields/schema.js").PostType | undefined;
|
|
23
|
+
tag?: string | undefined;
|
|
24
|
+
settings?: boolean | undefined;
|
|
25
|
+
scaffold?: boolean | undefined;
|
|
26
|
+
optional?: boolean | undefined;
|
|
27
|
+
control?: string | undefined;
|
|
28
|
+
recordField?: string | undefined;
|
|
29
|
+
recordMeta?: string | undefined;
|
|
30
|
+
recordSource?: string | undefined;
|
|
31
|
+
collection?: string | undefined;
|
|
32
|
+
taxonomy?: string | undefined;
|
|
33
|
+
basePath?: string | null | undefined;
|
|
34
|
+
readOnly?: boolean | undefined;
|
|
35
|
+
resolveValue?: (context: {
|
|
36
|
+
value: any;
|
|
37
|
+
site: any;
|
|
38
|
+
record: any;
|
|
39
|
+
}) => any;
|
|
40
|
+
resolveRecords?: boolean | undefined;
|
|
41
|
+
fromPosts?: boolean | undefined;
|
|
42
|
+
excludeCurrent?: boolean | undefined;
|
|
43
|
+
controlOptions?: Record<string, unknown> | undefined;
|
|
44
|
+
elements?: any[] | undefined;
|
|
45
|
+
};
|
|
6
46
|
};
|
|
@@ -14,5 +14,45 @@ export declare const Gallery: ((props: import("../../core/fields/view-classes.js
|
|
|
14
14
|
label?: string;
|
|
15
15
|
} & {
|
|
16
16
|
max?: number;
|
|
17
|
-
}) =>
|
|
17
|
+
}) => {
|
|
18
|
+
order?: number;
|
|
19
|
+
manual?: boolean | undefined;
|
|
20
|
+
type: import("../../core/fields/schema.js").FieldType;
|
|
21
|
+
defaultValue?: any;
|
|
22
|
+
itemType?: "string" | undefined;
|
|
23
|
+
label?: string | undefined;
|
|
24
|
+
step?: number | undefined;
|
|
25
|
+
max?: number | undefined;
|
|
26
|
+
media?: import("../../core/media/universal/model.js").MediaOptions | undefined;
|
|
27
|
+
min?: number | undefined;
|
|
28
|
+
storage?: "url" | undefined;
|
|
29
|
+
fields?: import("../../core/fields/schema.js").FieldDefinition[] | undefined;
|
|
30
|
+
area?: import("../../core/content/areas/data.js").ContentAreaDefinition | undefined;
|
|
31
|
+
instructions?: string | undefined;
|
|
32
|
+
placeholder?: string | undefined;
|
|
33
|
+
choices?: Record<string, string> | undefined;
|
|
34
|
+
postType?: import("../../core/fields/schema.js").PostType | undefined;
|
|
35
|
+
tag?: string | undefined;
|
|
36
|
+
settings?: boolean | undefined;
|
|
37
|
+
scaffold?: boolean | undefined;
|
|
38
|
+
optional?: boolean | undefined;
|
|
39
|
+
control?: string | undefined;
|
|
40
|
+
recordField?: string | undefined;
|
|
41
|
+
recordMeta?: string | undefined;
|
|
42
|
+
recordSource?: string | undefined;
|
|
43
|
+
collection?: string | undefined;
|
|
44
|
+
taxonomy?: string | undefined;
|
|
45
|
+
basePath?: string | null | undefined;
|
|
46
|
+
readOnly?: boolean | undefined;
|
|
47
|
+
resolveValue?: (context: {
|
|
48
|
+
value: any;
|
|
49
|
+
site: any;
|
|
50
|
+
record: any;
|
|
51
|
+
}) => any;
|
|
52
|
+
resolveRecords?: boolean | undefined;
|
|
53
|
+
fromPosts?: boolean | undefined;
|
|
54
|
+
excludeCurrent?: boolean | undefined;
|
|
55
|
+
controlOptions?: Record<string, unknown> | undefined;
|
|
56
|
+
elements?: any[] | undefined;
|
|
57
|
+
};
|
|
18
58
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { OrderedInspectorControls } from "../../core/editor/inspector.js";
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
5
|
+
import { useId, useState } from "react";
|
|
3
6
|
import { headingTags, headingStyles, isHeadingTag, isHeadingStyle } from "./model.js";
|
|
4
7
|
function HeadingSettingsControl(props) {
|
|
5
|
-
return props.options?.itemPanel && !props.controls ? null :
|
|
8
|
+
return props.options?.itemPanel && !props.controls ? null : /* @__PURE__ */ jsx(HeadingSettings, { ...props });
|
|
6
9
|
}
|
|
7
|
-
function
|
|
8
|
-
const
|
|
10
|
+
function HeadingSettings({ field, value = {}, setValue, options = {}, controls = false }) {
|
|
11
|
+
const [open, setOpen] = useState(false);
|
|
12
|
+
const id = useId();
|
|
9
13
|
const { PanelBody, Button } = wp.components;
|
|
10
14
|
const defaults = options.defaults ?? {};
|
|
11
15
|
const select = (key, selected) => {
|
|
@@ -62,10 +66,13 @@ function headingSettings({ field, value = {}, setValue, options = {}, controls =
|
|
|
62
66
|
)) })
|
|
63
67
|
] }, key);
|
|
64
68
|
}) });
|
|
65
|
-
return controls ? /* @__PURE__ */ jsxs("
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
return controls ? /* @__PURE__ */ jsxs("div", { className: "site-item-heading-settings", children: [
|
|
70
|
+
/* @__PURE__ */ jsxs(Button, { className: "site-item-heading-toggle", "aria-expanded": open, "aria-controls": id, onClick: () => setOpen((current) => !current), children: [
|
|
71
|
+
/* @__PURE__ */ jsx("span", { children: "Heading settings" }),
|
|
72
|
+
/* @__PURE__ */ jsx(ChevronDown, { size: 16, "aria-hidden": "true" })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ jsx("div", { id, className: "site-item-heading-content", hidden: !open, children: fields })
|
|
75
|
+
] }) : /* @__PURE__ */ jsx(OrderedInspectorControls, { children: /* @__PURE__ */ jsx(PanelBody, { title: field.label ?? "Heading", initialOpen: true, children: fields }) });
|
|
69
76
|
}
|
|
70
77
|
export {
|
|
71
78
|
HeadingSettingsControl
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../components/heading/editor.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client';\nimport {type KeyboardEvent} from 'react';\nimport { headingTags, headingStyles, isHeadingTag, isHeadingStyle, type HeadingSettings } from './model.js';\ndeclare const wp: any;\n\nexport function HeadingSettingsControl(props: any) {\n // A grouped row owns all its controls; canvas headings must not add sibling panels.\n return props.options?.itemPanel && !props.controls ? null :
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["'use client';\nimport { OrderedInspectorControls } from '../../core/editor/inspector.js';\nimport { ChevronDown } from 'lucide-react';\nimport { useId, useState, type KeyboardEvent} from 'react';\nimport { headingTags, headingStyles, isHeadingTag, isHeadingStyle, type HeadingSettings } from './model.js';\ndeclare const wp: any;\n\nexport function HeadingSettingsControl(props: any) {\n // A grouped row owns all its controls; canvas headings must not add sibling panels.\n return props.options?.itemPanel && !props.controls ? null : <HeadingSettings {...props} />;\n}\nfunction HeadingSettings({ field, value = {}, setValue, options = {}, controls = false }: any) {\n const [open, setOpen] = useState(false);\n const id = useId();\n const { PanelBody, Button } = wp.components;\n const defaults = options.defaults ?? {};\n const select = (key: keyof HeadingSettings, selected: string) => {\n const next = { ...value };\n if (key === 'tag' ? isHeadingTag(selected) : isHeadingStyle(selected)) next[key] = selected;\n else next[key] = undefined;\n setValue(next);\n };\n const navigate = (event: KeyboardEvent<HTMLDivElement>, key: keyof HeadingSettings) => {\n const current = (event.target as HTMLElement).closest<HTMLElement>('[data-heading-value]');\n if (!current) return;\n const choices: readonly string[] = key === 'tag' ? headingTags : headingStyles;\n const index = choices.indexOf(current.dataset.headingValue ?? '');\n const target = event.key === 'Home' ? 0 : event.key === 'End' ? choices.length - 1 :\n ['ArrowRight', 'ArrowDown'].includes(event.key) ? (index + 1) % choices.length :\n ['ArrowLeft', 'ArrowUp'].includes(event.key) ? (index + choices.length - 1) % choices.length : null;\n if (target === null) return;\n event.preventDefault();\n const next = choices[target];\n select(key, next);\n event.currentTarget.querySelector<HTMLButtonElement>(`[data-heading-value=\"${next}\"]`)?.focus();\n };\n const fields = <>\n {([{key:'tag',label:'HTML tag',fallback:defaults.tag ?? 'h2'},\n {key:'textStyle',label:'Heading style',fallback:defaults.textStyle}] as const).map(({key,label,fallback}) => {\n const choices: readonly string[] = key === 'tag' ? headingTags : headingStyles;\n const valid = key === 'tag' ? isHeadingTag : isHeadingStyle;\n const selected = valid(value[key]) ? value[key] : fallback;\n return <fieldset className=\"site-heading-setting\" key={key}>\n <legend><span>{label}</span><Button variant=\"link\" disabled={!valid(value[key])}\n aria-label={`Reset ${label.toLowerCase()} to section default`} onClick={() => select(key, '')}>Reset</Button></legend>\n <div className={key === 'tag' ? 'site-heading-options is-tag' : 'site-heading-options'} role=\"radiogroup\" aria-label={label} onKeyDown={event => navigate(event,key)}>\n {choices.map((tag,index) => <Button key={tag} type=\"button\" role=\"radio\" aria-checked={selected === tag}\n tabIndex={selected === tag || (!valid(selected) && index === 0) ? 0 : -1}\n data-heading-value={tag} onClick={() => select(key,tag)}>{tag.startsWith('h') ? tag.toUpperCase() : tag}</Button>)}\n </div>\n </fieldset>;\n })}\n </>;\n return controls ? <div className=\"site-item-heading-settings\">\n <Button className=\"site-item-heading-toggle\" aria-expanded={open} aria-controls={id} onClick={() => setOpen(current => !current)}>\n <span>Heading settings</span><ChevronDown size={16} aria-hidden=\"true\" />\n </Button>\n <div id={id} className=\"site-item-heading-content\" hidden={!open}>{fields}</div>\n </div> : <OrderedInspectorControls><PanelBody title={field.label ?? 'Heading'} initialOpen>{fields}</PanelBody></OrderedInspectorControls>;\n}\n"],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