@elytracms/studio 0.0.67 → 0.0.68
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/builder/property-inspector.d.ts +0 -21
- package/dist/components/builder/property-inspector.js +5 -22
- package/dist/components/builder/property-inspector.js.map +1 -1
- package/dist/components/cms/asset-picker-core.d.ts +52 -0
- package/dist/components/cms/asset-picker-core.js +69 -0
- package/dist/components/cms/asset-picker-core.js.map +1 -0
- package/dist/components/cms/asset-picker.d.ts +16 -4
- package/dist/components/cms/asset-picker.js +34 -50
- package/dist/components/cms/asset-picker.js.map +1 -1
- package/dist/components/cms/detail-editor.js +45 -54
- package/dist/components/cms/detail-editor.js.map +1 -1
- package/dist/components/cms/prop-visibility.d.ts +3 -0
- package/dist/components/cms/prop-visibility.js +31 -0
- package/dist/components/cms/prop-visibility.js.map +1 -0
- package/dist/components/cms/rich-text/component-embed.d.ts +8 -6
- package/dist/components/cms/rich-text/component-embed.js +21 -62
- package/dist/components/cms/rich-text/component-embed.js.map +1 -1
- package/dist/components/cms/rich-text/editor.d.ts +13 -3
- package/dist/components/cms/rich-text/editor.js +36 -21
- package/dist/components/cms/rich-text/editor.js.map +1 -1
- package/dist/components/cms/rich-text/embed-props.d.ts +60 -27
- package/dist/components/cms/rich-text/embed-props.js +102 -45
- package/dist/components/cms/rich-text/embed-props.js.map +1 -1
- package/dist/lib/i18n/messages.de.js +1 -2
- package/dist/lib/i18n/messages.de.js.map +1 -1
- package/dist/lib/i18n/messages.en.d.ts +0 -1
- package/dist/lib/i18n/messages.en.js +1 -2
- package/dist/lib/i18n/messages.en.js.map +1 -1
- package/dist/ui/expandable-surface.d.ts +35 -25
- package/dist/ui/expandable-surface.js +41 -21
- package/dist/ui/expandable-surface.js.map +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -0
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/surface-geometry.d.ts +68 -0
- package/dist/ui/surface-geometry.js +61 -0
- package/dist/ui/surface-geometry.js.map +1 -0
- package/package.json +2 -2
- package/src/styles/studio.css +30 -0
- package/dist/components/cms/rich-text/embed-inspector-context.d.ts +0 -50
- package/dist/components/cms/rich-text/embed-inspector-context.js +0 -12
- package/dist/components/cms/rich-text/embed-inspector-context.js.map +0 -1
- package/dist/components/cms/rich-text/embed-inspector.d.ts +0 -25
- package/dist/components/cms/rich-text/embed-inspector.js +0 -48
- package/dist/components/cms/rich-text/embed-inspector.js.map +0 -1
- package/dist/components/cms/use-embed-inspector-host.d.ts +0 -12
- package/dist/components/cms/use-embed-inspector-host.js +0 -17
- package/dist/components/cms/use-embed-inspector-host.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { EmbedInspectorApi, EmbedInspectorPayload } from './rich-text/embed-inspector-context.js';
|
|
2
|
-
/**
|
|
3
|
-
* 0.0.41 — the selection-driven embed-inspector host. A `componentEmbed` node
|
|
4
|
-
* selection in a rich-text field swaps the inspector sidebar for the embed's prop
|
|
5
|
-
* form; deselect returns the normal inspector. `clearActiveEmbed` keys on the node
|
|
6
|
-
* id so a fast A→B reselect can't let A's deselect wipe B (the selection race). Fed
|
|
7
|
-
* by the rich-text field through the EmbedInspector context (the returned api).
|
|
8
|
-
*/
|
|
9
|
-
export declare function useEmbedInspectorHost(): {
|
|
10
|
-
activeEmbed: EmbedInspectorPayload | null;
|
|
11
|
-
embedInspectorApi: EmbedInspectorApi;
|
|
12
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useMemo, useState } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 0.0.41 — the selection-driven embed-inspector host. A `componentEmbed` node
|
|
4
|
-
* selection in a rich-text field swaps the inspector sidebar for the embed's prop
|
|
5
|
-
* form; deselect returns the normal inspector. `clearActiveEmbed` keys on the node
|
|
6
|
-
* id so a fast A→B reselect can't let A's deselect wipe B (the selection race). Fed
|
|
7
|
-
* by the rich-text field through the EmbedInspector context (the returned api).
|
|
8
|
-
*/
|
|
9
|
-
export function useEmbedInspectorHost() {
|
|
10
|
-
const [activeEmbed, setActiveEmbed] = useState(null);
|
|
11
|
-
const embedInspectorApi = useMemo(() => ({
|
|
12
|
-
setActiveEmbed: (payload) => setActiveEmbed(payload),
|
|
13
|
-
clearActiveEmbed: (nodeId) => setActiveEmbed((prev) => (prev?.nodeId === nodeId ? null : prev)),
|
|
14
|
-
}), []);
|
|
15
|
-
return { activeEmbed, embedInspectorApi };
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=use-embed-inspector-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-embed-inspector-host.js","sourceRoot":"","sources":["../../../src/components/cms/use-embed-inspector-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB;IAInC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAA+B,IAAI,CAAC,CAAA;IAClF,MAAM,iBAAiB,GAAG,OAAO,CAC/B,GAAG,EAAE,CAAC,CAAC;QACL,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;QACpD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KAChG,CAAC,EACF,EAAE,CACH,CAAA;IACD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAA;AAC3C,CAAC","sourcesContent":["import { useMemo, useState } from 'react'\nimport type { EmbedInspectorApi, EmbedInspectorPayload } from './rich-text/embed-inspector-context'\n\n/**\n * 0.0.41 — the selection-driven embed-inspector host. A `componentEmbed` node\n * selection in a rich-text field swaps the inspector sidebar for the embed's prop\n * form; deselect returns the normal inspector. `clearActiveEmbed` keys on the node\n * id so a fast A→B reselect can't let A's deselect wipe B (the selection race). Fed\n * by the rich-text field through the EmbedInspector context (the returned api).\n */\nexport function useEmbedInspectorHost(): {\n activeEmbed: EmbedInspectorPayload | null\n embedInspectorApi: EmbedInspectorApi\n} {\n const [activeEmbed, setActiveEmbed] = useState<EmbedInspectorPayload | null>(null)\n const embedInspectorApi = useMemo<EmbedInspectorApi>(\n () => ({\n setActiveEmbed: (payload) => setActiveEmbed(payload),\n clearActiveEmbed: (nodeId) => setActiveEmbed((prev) => (prev?.nodeId === nodeId ? null : prev)),\n }),\n [],\n )\n return { activeEmbed, embedInspectorApi }\n}\n"]}
|