@measured/puck 0.19.0-canary.3bb481b1 → 0.19.0-canary.467a4bf6

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.
@@ -3190,7 +3190,7 @@ var GlobalPosition = class {
3190
3190
  var _a;
3191
3191
  this.target = target;
3192
3192
  this.original = original;
3193
- this.frameEl = document.querySelector("iframe");
3193
+ this.frameEl = document.querySelector("#preview-frame");
3194
3194
  if (this.frameEl) {
3195
3195
  this.frameRect = this.frameEl.getBoundingClientRect();
3196
3196
  this.scaleFactor = this.frameRect.width / (((_a = this.frameEl.contentWindow) == null ? void 0 : _a.innerWidth) || 1);
package/dist/index.d.mts CHANGED
@@ -259,7 +259,7 @@ type WithGet<T> = T & {
259
259
  };
260
260
  type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
261
261
  appState: AppState;
262
- config: Config;
262
+ config: UserConfig;
263
263
  dispatch: AppStore["dispatch"];
264
264
  getPermissions: GetPermissions<UserConfig>;
265
265
  refreshPermissions: RefreshPermissions<UserConfig>;
package/dist/index.d.ts CHANGED
@@ -259,7 +259,7 @@ type WithGet<T> = T & {
259
259
  };
260
260
  type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
261
261
  appState: AppState;
262
- config: Config;
262
+ config: UserConfig;
263
263
  dispatch: AppStore["dispatch"];
264
264
  getPermissions: GetPermissions<UserConfig>;
265
265
  refreshPermissions: RefreshPermissions<UserConfig>;
package/dist/index.js CHANGED
@@ -5695,7 +5695,7 @@ var GlobalPosition = class {
5695
5695
  var _a;
5696
5696
  this.target = target;
5697
5697
  this.original = original;
5698
- this.frameEl = document.querySelector("iframe");
5698
+ this.frameEl = document.querySelector("#preview-frame");
5699
5699
  if (this.frameEl) {
5700
5700
  this.frameRect = this.frameEl.getBoundingClientRect();
5701
5701
  this.scaleFactor = this.frameRect.width / (((_a = this.frameEl.contentWindow) == null ? void 0 : _a.innerWidth) || 1);
package/dist/index.mjs CHANGED
@@ -75,7 +75,7 @@ import {
75
75
  useSlots,
76
76
  useSortableSafe,
77
77
  walkTree
78
- } from "./chunk-ZOHJNF5K.mjs";
78
+ } from "./chunk-LXKK52AO.mjs";
79
79
 
80
80
  // index.ts
81
81
  init_react_import();
package/dist/rsc.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  setupZone,
11
11
  transformProps,
12
12
  useSlots
13
- } from "./chunk-ZOHJNF5K.mjs";
13
+ } from "./chunk-LXKK52AO.mjs";
14
14
 
15
15
  // rsc.tsx
16
16
  init_react_import();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.19.0-canary.3bb481b1",
3
+ "version": "0.19.0-canary.467a4bf6",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",