@elytracms/studio 0.0.58 → 0.0.60
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/components/app-views/studio-config.d.ts +34 -0
- package/dist/components/app-views/studio-config.js.map +1 -1
- package/dist/components/builder/blocks-model.js +12 -7
- package/dist/components/builder/blocks-model.js.map +1 -1
- package/dist/components/builder/canvas-chrome.d.ts +65 -0
- package/dist/components/builder/canvas-chrome.js +125 -0
- package/dist/components/builder/canvas-chrome.js.map +1 -0
- package/dist/components/builder/canvas-dnd.d.ts +59 -0
- package/dist/components/builder/canvas-dnd.js +207 -0
- package/dist/components/builder/canvas-dnd.js.map +1 -0
- package/dist/components/builder/canvas-dom.d.ts +11 -0
- package/dist/components/builder/canvas-dom.js +17 -0
- package/dist/components/builder/canvas-dom.js.map +1 -0
- package/dist/components/builder/canvas-inline-editing.d.ts +91 -0
- package/dist/components/builder/canvas-inline-editing.js +242 -0
- package/dist/components/builder/canvas-inline-editing.js.map +1 -0
- package/dist/components/builder/canvas-render-context.d.ts +83 -0
- package/dist/components/builder/canvas-render-context.js +196 -0
- package/dist/components/builder/canvas-render-context.js.map +1 -0
- package/dist/components/builder/canvas.d.ts +4 -1
- package/dist/components/builder/canvas.js +44 -657
- package/dist/components/builder/canvas.js.map +1 -1
- package/dist/components/builder/composition-field-editor.js +14 -4
- package/dist/components/builder/composition-field-editor.js.map +1 -1
- package/dist/components/builder/insert-context.d.ts +5 -2
- package/dist/components/builder/insert-context.js +1 -3
- package/dist/components/builder/insert-context.js.map +1 -1
- package/dist/components/builder/node-factory.d.ts +12 -0
- package/dist/components/builder/node-factory.js +18 -1
- package/dist/components/builder/node-factory.js.map +1 -1
- package/dist/components/cms/asset-field.d.ts +22 -0
- package/dist/components/cms/asset-field.js +300 -0
- package/dist/components/cms/asset-field.js.map +1 -0
- package/dist/components/cms/field-control-lib.d.ts +43 -0
- package/dist/components/cms/field-control-lib.js +98 -0
- package/dist/components/cms/field-control-lib.js.map +1 -0
- package/dist/components/cms/field-control.d.ts +7 -35
- package/dist/components/cms/field-control.js +13 -556
- package/dist/components/cms/field-control.js.map +1 -1
- package/dist/components/cms/object-array-field.d.ts +29 -0
- package/dist/components/cms/object-array-field.js +205 -0
- package/dist/components/cms/object-array-field.js.map +1 -0
- package/dist/components/cms/prop-fields.d.ts +15 -0
- package/dist/components/cms/prop-fields.js +38 -1
- package/dist/components/cms/prop-fields.js.map +1 -1
- package/dist/components/cms/rich-text/editor.d.ts +8 -0
- package/dist/components/cms/rich-text/editor.js +46 -3
- package/dist/components/cms/rich-text/editor.js.map +1 -1
- package/dist/components/cms/rich-text/toolbar.d.ts +5 -1
- package/dist/components/cms/rich-text/toolbar.js +4 -4
- package/dist/components/cms/rich-text/toolbar.js.map +1 -1
- package/dist/components/project-session.d.ts +50 -1
- package/dist/components/project-session.js +75 -14
- package/dist/components/project-session.js.map +1 -1
- package/dist/components/use-hydration-phase.d.ts +6 -4
- package/dist/components/use-hydration-phase.js.map +1 -1
- package/dist/customization.d.ts +1 -1
- package/dist/customization.js.map +1 -1
- package/dist/lib/data/collection-content.d.ts +12 -7
- package/dist/lib/data/collection-content.js +6 -4
- package/dist/lib/data/collection-content.js.map +1 -1
- package/dist/lib/i18n/messages.en.js +5 -0
- package/dist/lib/i18n/messages.en.js.map +1 -1
- package/dist/lib/operations/session-hydration.d.ts +4 -1
- package/dist/lib/operations/session-hydration.js +4 -1
- package/dist/lib/operations/session-hydration.js.map +1 -1
- package/dist/lib/persistence/index.js +13 -1
- package/dist/lib/persistence/index.js.map +1 -1
- package/dist/lib/workspace/index.d.ts +9 -1
- package/dist/lib/workspace/index.js +11 -1
- package/dist/lib/workspace/index.js.map +1 -1
- package/dist/lib/workspace/workspace-source.d.ts +17 -22
- package/dist/lib/workspace/workspace-source.js +1 -49
- package/dist/lib/workspace/workspace-source.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldDef
|
|
1
|
+
import type { FieldDef } from '@elytracms/core/cms-core';
|
|
2
2
|
interface FieldControlProps {
|
|
3
3
|
field: FieldDef;
|
|
4
4
|
value: unknown;
|
|
@@ -15,40 +15,12 @@ interface FieldControlProps {
|
|
|
15
15
|
* naming a control with NO renderer and NO built-in name (a typo) shows the
|
|
16
16
|
* built-in with a loud issue — never a silent fall-through; otherwise the built-in
|
|
17
17
|
* renders alone.
|
|
18
|
+
*
|
|
19
|
+
* EC-330 split: the asset-field family lives in `asset-field.tsx`, the object /
|
|
20
|
+
* repeater editors in `object-array-field.tsx`, and their pure companions
|
|
21
|
+
* (reorder/summary/depth/table decisions, the `options` segmented control) in
|
|
22
|
+
* `field-control-lib.tsx` — this file keeps the dispatcher plus the slug and
|
|
23
|
+
* relation controls.
|
|
18
24
|
*/
|
|
19
25
|
export declare function FieldControl(props: FieldControlProps): import("react").JSX.Element;
|
|
20
|
-
/**
|
|
21
|
-
* EC-295: the `options` control — a `select` shown as inline segmented buttons
|
|
22
|
-
* (`[[Page]] [URL] [File]`) instead of a dropdown. Engine built-in (no consumer
|
|
23
|
-
* registration); single-select only. Each option shows `label ?? value` and a
|
|
24
|
-
* `title` tooltip from the option's `description`; the field `default` + `readOnly`
|
|
25
|
-
* flow through the shared form. Picks one — to allow an empty/unset value use the
|
|
26
|
-
* default dropdown control.
|
|
27
|
-
*/
|
|
28
|
-
export declare function SegmentedOptions({ field, value, onChange, readOnly, id, }: {
|
|
29
|
-
field: SelectFieldDef;
|
|
30
|
-
value: unknown;
|
|
31
|
-
onChange: (value: unknown) => void;
|
|
32
|
-
readOnly: boolean;
|
|
33
|
-
id: string;
|
|
34
|
-
}): import("react").JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
* Move `from` → `to`, returning a NEW array (all elements preserved). The repeater
|
|
37
|
-
* applies the same `(from, to)` to its value array AND its parallel stable-key array,
|
|
38
|
-
* so the two stay aligned through a reorder — a row's child/DOM state (an open
|
|
39
|
-
* relation/asset picker, focus) never mis-associates (EC-253 C2, EC-294).
|
|
40
|
-
*/
|
|
41
|
-
export declare function reorder<T>(list: readonly T[], from: number, to: number): T[];
|
|
42
|
-
/**
|
|
43
|
-
* A scannable one-line summary for a collapsed repeater item (EC-294): the first
|
|
44
|
-
* meaningful scalar subfield value — preferring title-ish field names — else `#n`.
|
|
45
|
-
* Pure (no store): summarises from the item's own scalar values, so it works for
|
|
46
|
-
* any object shape without resolving relations/assets.
|
|
47
|
-
*/
|
|
48
|
-
export declare function objectItemSummary(fields: readonly {
|
|
49
|
-
name: string;
|
|
50
|
-
}[], item: Record<string, unknown>, index: number): string;
|
|
51
|
-
export declare const depthRail: (d: number) => string;
|
|
52
|
-
export declare const depthTint: (d: number) => string;
|
|
53
|
-
export declare function isTabularObjectType(field: ObjectFieldDef): boolean;
|
|
54
26
|
export {};
|