tempo-sdk 0.0.92 → 0.0.94

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.
Files changed (47) hide show
  1. package/dist/assets/index.js +3 -3
  2. package/dist/astro/asset-preview-client.js +3 -3
  3. package/dist/astro.js +2 -2
  4. package/dist/canvas/astro.js +3 -3
  5. package/dist/canvas/index.js +157 -7
  6. package/dist/canvas/index.js.map +1 -1
  7. package/dist/canvas/interact-projection.js +4 -4
  8. package/dist/canvas/svelte.js +3 -3
  9. package/dist/canvas/vue.js +3 -3
  10. package/dist/{chunk-FENUT2N2.js → chunk-3W6B75UK.js} +2 -2
  11. package/dist/{chunk-FENUT2N2.js.map → chunk-3W6B75UK.js.map} +1 -1
  12. package/dist/{chunk-3XEEVCM3.js → chunk-6QGMLNO3.js} +137 -69
  13. package/dist/chunk-6QGMLNO3.js.map +1 -0
  14. package/dist/{chunk-DNERBE7A.js → chunk-KY52JZZL.js} +17 -11
  15. package/dist/chunk-KY52JZZL.js.map +1 -0
  16. package/dist/{chunk-NXPP3CSM.js → chunk-LEW24RRZ.js} +2 -2
  17. package/dist/{chunk-TWW2DL7E.js → chunk-OYNR6D7K.js} +2 -2
  18. package/dist/{chunk-TWW2DL7E.js.map → chunk-OYNR6D7K.js.map} +1 -1
  19. package/dist/{chunk-RZ3TG6MV.js → chunk-REYOX4JT.js} +2 -2
  20. package/dist/{chunk-RZ3TG6MV.js.map → chunk-REYOX4JT.js.map} +1 -1
  21. package/dist/chunk-T364NBR3.js +1440 -0
  22. package/dist/chunk-T364NBR3.js.map +1 -0
  23. package/dist/{chunk-KQSOE4KZ.js → chunk-VRNJI4Y6.js} +2 -2
  24. package/dist/{chunk-I5MJ342V.js → chunk-WRILG6GR.js} +3 -3
  25. package/dist/{chunk-XN2K7GED.js → chunk-YHGUAOBM.js} +45 -19
  26. package/dist/chunk-YHGUAOBM.js.map +1 -0
  27. package/dist/index.js +2 -2
  28. package/dist/nextjs/plugin.cjs +1 -1
  29. package/dist/nextjs/plugin.cjs.map +1 -1
  30. package/dist/nextjs/plugin.js +1 -1
  31. package/dist/nextjs-loader.cjs +1 -1
  32. package/dist/nextjs-loader.cjs.map +1 -1
  33. package/dist/nextjs.cjs +1 -1
  34. package/dist/nextjs.cjs.map +1 -1
  35. package/dist/nextjs.js +1 -1
  36. package/dist/nuxt/runtime/identity.js +1 -1
  37. package/dist/nuxt.js +1 -1
  38. package/dist/vue.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunk-3XEEVCM3.js.map +0 -1
  41. package/dist/chunk-5M45Z7K6.js +0 -611
  42. package/dist/chunk-5M45Z7K6.js.map +0 -1
  43. package/dist/chunk-DNERBE7A.js.map +0 -1
  44. package/dist/chunk-XN2K7GED.js.map +0 -1
  45. /package/dist/{chunk-NXPP3CSM.js.map → chunk-LEW24RRZ.js.map} +0 -0
  46. /package/dist/{chunk-KQSOE4KZ.js.map → chunk-VRNJI4Y6.js.map} +0 -0
  47. /package/dist/{chunk-I5MJ342V.js.map → chunk-WRILG6GR.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  generateSelector,
5
5
  observeRuntimeMutations,
6
6
  removeScriptTags
7
- } from "./chunk-5M45Z7K6.js";
7
+ } from "./chunk-T364NBR3.js";
8
8
 
9
9
  // ../../modules/iframe-projection/fiber/react-types.ts
10
10
  var FiberTag = {
@@ -1414,14 +1414,20 @@ function capturePortalCoordinateSpace(root, portal) {
1414
1414
  };
1415
1415
  }
1416
1416
  function choosePortalCoordinateOrigin(rootRect, portal) {
1417
- const portalRect = measurePortalBounds(portal);
1417
+ const view = portal.ownerDocument.defaultView;
1418
+ return choosePortalRectOrigin(rootRect, measurePortalBounds(portal), {
1419
+ width: view?.innerWidth ?? 0,
1420
+ height: view?.innerHeight ?? 0
1421
+ });
1422
+ }
1423
+ function choosePortalRectOrigin(rootRect, portalRect, viewport) {
1418
1424
  const localViewport = {
1419
1425
  left: 0,
1420
1426
  top: 0,
1421
1427
  right: rootRect.width,
1422
1428
  bottom: rootRect.height
1423
1429
  };
1424
- const coversSourceViewport = portalRect.left <= 0 && portalRect.top <= 0 && portalRect.right >= (portal.ownerDocument.defaultView?.innerWidth ?? 0) && portalRect.bottom >= (portal.ownerDocument.defaultView?.innerHeight ?? 0);
1430
+ const coversSourceViewport = portalRect.left <= 0 && portalRect.top <= 0 && portalRect.right >= viewport.width && portalRect.bottom >= viewport.height;
1425
1431
  if (coversSourceViewport) return "viewport";
1426
1432
  if (rectanglesOverlap(rootRect, portalRect)) return "root";
1427
1433
  const directScore = visibleArea(portalRect, localViewport);
@@ -3105,6 +3111,12 @@ export {
3105
3111
  stripSourceAnnotations,
3106
3112
  captureRegionWithoutAnnotations,
3107
3113
  captureProjectionAncestorIds,
3114
+ DOM_LAYER_ROOT_ID,
3115
+ createProjectionDomLayerSerializer,
3116
+ serializeDomLayerNode,
3117
+ captureProjectionDomLayerProps,
3118
+ invocationSourceLayerProps,
3119
+ parseInlineStyle,
3108
3120
  svgLayerAttributesOf,
3109
3121
  layerPropsEqual,
3110
3122
  recordEqual,
@@ -3113,12 +3125,6 @@ export {
3113
3125
  createProjectionLayerSerializer,
3114
3126
  isProjectionLayerFiber,
3115
3127
  ascendToAnnotatedComponentRoot,
3116
- isProjectionRootFiber,
3117
- DOM_LAYER_ROOT_ID,
3118
- createProjectionDomLayerSerializer,
3119
- serializeDomLayerNode,
3120
- captureProjectionDomLayerProps,
3121
- invocationSourceLayerProps,
3122
- parseInlineStyle
3128
+ isProjectionRootFiber
3123
3129
  };
3124
- //# sourceMappingURL=chunk-DNERBE7A.js.map
3130
+ //# sourceMappingURL=chunk-KY52JZZL.js.map