tempo-sdk 0.0.93 → 0.0.99
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/assets/index.js +3 -3
- package/dist/astro/asset-preview-client.js +3 -3
- package/dist/astro.js +2 -2
- package/dist/canvas/astro.js +3 -3
- package/dist/canvas/index.js +36 -7
- package/dist/canvas/index.js.map +1 -1
- package/dist/canvas/interact-projection.js +4 -4
- package/dist/canvas/svelte.js +3 -3
- package/dist/canvas/vue.js +3 -3
- package/dist/{chunk-Y7EHQREO.js → chunk-27WT3XUG.js} +2 -2
- package/dist/{chunk-Y7EHQREO.js.map → chunk-27WT3XUG.js.map} +1 -1
- package/dist/{chunk-M7OOVEAR.js → chunk-6HYKKP5N.js} +3 -2
- package/dist/{chunk-M7OOVEAR.js.map → chunk-6HYKKP5N.js.map} +1 -1
- package/dist/{chunk-N5MWY4H6.js → chunk-CYDF4LYJ.js} +2 -2
- package/dist/{chunk-N5MWY4H6.js.map → chunk-CYDF4LYJ.js.map} +1 -1
- package/dist/{chunk-XB6GU4CE.js → chunk-I7VF4ZOV.js} +48 -37
- package/dist/chunk-I7VF4ZOV.js.map +1 -0
- package/dist/{chunk-HNNZM2XM.js → chunk-MIXQVPDH.js} +461 -185
- package/dist/chunk-MIXQVPDH.js.map +1 -0
- package/dist/{chunk-GHNHPVEI.js → chunk-SGTGDLOX.js} +2 -2
- package/dist/{chunk-GHNHPVEI.js.map → chunk-SGTGDLOX.js.map} +1 -1
- package/dist/chunk-T364NBR3.js +1440 -0
- package/dist/chunk-T364NBR3.js.map +1 -0
- package/dist/{chunk-FZVJVL3T.js → chunk-X5DJKVBT.js} +10 -17
- package/dist/chunk-X5DJKVBT.js.map +1 -0
- package/dist/{chunk-CVUNZBRV.js → chunk-ZT7HJ6YU.js} +3 -3
- package/dist/{chunk-3L4RRKC3.js → chunk-ZW26VZHX.js} +42 -3
- package/dist/chunk-ZW26VZHX.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/nextjs/plugin.cjs +1 -1
- package/dist/nextjs/plugin.cjs.map +1 -1
- package/dist/nextjs/plugin.js +1 -1
- package/dist/nextjs-loader.cjs +1 -1
- package/dist/nextjs-loader.cjs.map +1 -1
- package/dist/nextjs.cjs +1 -1
- package/dist/nextjs.cjs.map +1 -1
- package/dist/nextjs.js +1 -1
- package/dist/nuxt/runtime/identity.js +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/vue.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3L4RRKC3.js.map +0 -1
- package/dist/chunk-FZVJVL3T.js.map +0 -1
- package/dist/chunk-HNNZM2XM.js.map +0 -1
- package/dist/chunk-LEBVQBDH.js +0 -643
- package/dist/chunk-LEBVQBDH.js.map +0 -1
- package/dist/chunk-XB6GU4CE.js.map +0 -1
- /package/dist/{chunk-CVUNZBRV.js.map → chunk-ZT7HJ6YU.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
generateSelector,
|
|
5
5
|
observeRuntimeMutations,
|
|
6
6
|
removeScriptTags
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T364NBR3.js";
|
|
8
8
|
|
|
9
9
|
// ../../modules/iframe-projection/fiber/react-types.ts
|
|
10
10
|
var FiberTag = {
|
|
@@ -511,6 +511,41 @@ function getHook() {
|
|
|
511
511
|
return window.__REACT_DEVTOOLS_GLOBAL_HOOK__ ?? null;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
+
// canvas/client-protocol.ts
|
|
515
|
+
var CANVAS_CLIENT_PROTOCOL_PARAM = "canvasProtocol";
|
|
516
|
+
function canvasClientProtocol() {
|
|
517
|
+
if (typeof window === "undefined") return 1;
|
|
518
|
+
const value = new URLSearchParams(window.location.search).get(
|
|
519
|
+
CANVAS_CLIENT_PROTOCOL_PARAM
|
|
520
|
+
);
|
|
521
|
+
if (value === null) return 1;
|
|
522
|
+
const protocol = Number(value.trim());
|
|
523
|
+
return Number.isInteger(protocol) && protocol >= 1 ? protocol : 1;
|
|
524
|
+
}
|
|
525
|
+
var CANVAS_INTERACT_DESTINATION_PARAM = "canvasCoordinates";
|
|
526
|
+
var CANVAS_INTERACT_DESTINATION_VALUE = "destination";
|
|
527
|
+
function canvasClientPlacesInteractRoot() {
|
|
528
|
+
if (typeof window === "undefined") return false;
|
|
529
|
+
return new URLSearchParams(window.location.search).get(
|
|
530
|
+
CANVAS_INTERACT_DESTINATION_PARAM
|
|
531
|
+
) === CANVAS_INTERACT_DESTINATION_VALUE;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// canvas/v2-client-compat.ts
|
|
535
|
+
function isPreV3CanvasClient() {
|
|
536
|
+
return canvasClientProtocol() < 3;
|
|
537
|
+
}
|
|
538
|
+
function wantsLegacyInteractSourceCoordinates() {
|
|
539
|
+
return isPreV3CanvasClient() && !canvasClientPlacesInteractRoot();
|
|
540
|
+
}
|
|
541
|
+
function v2StoryboardSlotPosition(slot) {
|
|
542
|
+
const { layout, placement, fixed } = slot;
|
|
543
|
+
return {
|
|
544
|
+
left: placement?.left ?? (fixed ? layout.x : 0),
|
|
545
|
+
top: placement?.top ?? (fixed ? layout.y : 0)
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
|
|
514
549
|
// ../../modules/iframe-projection/fiber/projection-scope.ts
|
|
515
550
|
var PROJECTION_SCOPE_ROLE = "__tempoProjectionScopeRole";
|
|
516
551
|
function role(fiber) {
|
|
@@ -3125,6 +3160,10 @@ export {
|
|
|
3125
3160
|
createProjectionLayerSerializer,
|
|
3126
3161
|
isProjectionLayerFiber,
|
|
3127
3162
|
ascendToAnnotatedComponentRoot,
|
|
3128
|
-
isProjectionRootFiber
|
|
3163
|
+
isProjectionRootFiber,
|
|
3164
|
+
canvasClientProtocol,
|
|
3165
|
+
isPreV3CanvasClient,
|
|
3166
|
+
wantsLegacyInteractSourceCoordinates,
|
|
3167
|
+
v2StoryboardSlotPosition
|
|
3129
3168
|
};
|
|
3130
|
-
//# sourceMappingURL=chunk-
|
|
3169
|
+
//# sourceMappingURL=chunk-ZW26VZHX.js.map
|