veo-sdk 0.5.28 → 0.5.29
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/builder-HVJ6W5VT.mjs +5 -0
- package/dist/{builder-RSWK3RIB.mjs.map → builder-HVJ6W5VT.mjs.map} +1 -1
- package/dist/builder.cjs +4 -3
- package/dist/builder.cjs.map +1 -1
- package/dist/builder.mjs +4 -4
- package/dist/{chunk-L5X4AGR7.mjs → chunk-47RJ4SV7.mjs} +3 -3
- package/dist/{chunk-L5X4AGR7.mjs.map → chunk-47RJ4SV7.mjs.map} +1 -1
- package/dist/{chunk-WLW5Y5LU.mjs → chunk-D7V7NVBJ.mjs} +3 -3
- package/dist/{chunk-WLW5Y5LU.mjs.map → chunk-D7V7NVBJ.mjs.map} +1 -1
- package/dist/{chunk-CWIUNHWA.mjs → chunk-QQOV35FD.mjs} +6 -5
- package/dist/chunk-QQOV35FD.mjs.map +1 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/veo-builder.js +5 -5
- package/dist/veo-builder.js.map +1 -1
- package/dist/veo-guides.js +4 -4
- package/dist/veo-guides.js.map +1 -1
- package/package.json +1 -1
- package/dist/builder-RSWK3RIB.mjs +0 -5
- package/dist/chunk-CWIUNHWA.mjs.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { VEO_BLOCK_MIME, attachBlockDropTarget, attachDesignManipulator, createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-47RJ4SV7.mjs';
|
|
2
|
+
import './chunk-QQOV35FD.mjs';
|
|
3
|
+
import './chunk-PTG3BTJE.mjs';
|
|
4
|
+
//# sourceMappingURL=builder-HVJ6W5VT.mjs.map
|
|
5
|
+
//# sourceMappingURL=builder-HVJ6W5VT.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"builder-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"builder-HVJ6W5VT.mjs"}
|
package/dist/builder.cjs
CHANGED
|
@@ -2579,6 +2579,7 @@ var CompositeRenderer = class extends BaseRenderer {
|
|
|
2579
2579
|
*/
|
|
2580
2580
|
renderBadgeMode(step, card, anchor, anchorSelector, host, root, doc, context, idx, design) {
|
|
2581
2581
|
const trigger = step.badge?.trigger === "click" ? "click" : "hover";
|
|
2582
|
+
const placement = step.badge?.placement === "top" || step.badge?.placement === "left" || step.badge?.placement === "right" ? step.badge.placement : "bottom";
|
|
2582
2583
|
const badge = doc.createElement("div");
|
|
2583
2584
|
badge.className = "veo-composite-badge";
|
|
2584
2585
|
badge.setAttribute("role", "button");
|
|
@@ -2607,7 +2608,7 @@ var CompositeRenderer = class extends BaseRenderer {
|
|
|
2607
2608
|
if (open) return;
|
|
2608
2609
|
open = true;
|
|
2609
2610
|
wrapper.style.display = "block";
|
|
2610
|
-
void anchorPosition(badge, wrapper, caretEl).then((stop) => {
|
|
2611
|
+
void anchorPosition(badge, wrapper, caretEl, placement).then((stop) => {
|
|
2611
2612
|
if (open) stopFloat = stop;
|
|
2612
2613
|
else stop();
|
|
2613
2614
|
});
|
|
@@ -2714,10 +2715,10 @@ function liftTarget(anchor, zIndex) {
|
|
|
2714
2715
|
el.style.zIndex = prevZ;
|
|
2715
2716
|
};
|
|
2716
2717
|
}
|
|
2717
|
-
async function anchorPosition(anchor, wrapper, caret) {
|
|
2718
|
+
async function anchorPosition(anchor, wrapper, caret, preferred = "bottom") {
|
|
2718
2719
|
const update = async () => {
|
|
2719
2720
|
const { x, y, placement, middlewareData } = await dom.computePosition(anchor, wrapper, {
|
|
2720
|
-
placement:
|
|
2721
|
+
placement: preferred,
|
|
2721
2722
|
strategy: "fixed",
|
|
2722
2723
|
middleware: [
|
|
2723
2724
|
dom.offset(caret ? 10 : 8),
|