@notionhq/custom-blocks 0.1.27 → 0.1.28

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.
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import { type InitCustomBlockOptions } from "../index.js";
2
+ import { type InitCustomBlockOptions } from "../init.js";
3
3
  import "./NotionCustomBlock.css";
4
4
  /**
5
5
  * Props accepted by {@link NotionCustomBlock}.
@@ -1 +1 @@
1
- {"version":3,"file":"NotionCustomBlock.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/NotionCustomBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAwC,MAAM,OAAO,CAAA;AAE5E,OAAO,EAAE,KAAK,sBAAsB,EAAoB,MAAM,aAAa,CAAA;AAM3E,OAAO,yBAAyB,CAAA;AAEhC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GAAG;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAA;IACzD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,QAAe,EACf,aAAa,EACb,UAAiB,GACjB,EAAE,sBAAsB,2CAsExB"}
1
+ {"version":3,"file":"NotionCustomBlock.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/custom-blocks/custom-blocks/sdk/src/react/NotionCustomBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAwC,MAAM,OAAO,CAAA;AAE5E,OAAO,EAAE,KAAK,sBAAsB,EAAoB,MAAM,YAAY,CAAA;AAM1E,OAAO,yBAAyB,CAAA;AAEhC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GAAG;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAA;IACzD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,QAAe,EACf,aAAa,EACb,UAAiB,GACjB,EAAE,sBAAsB,2CAsExB"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useLayoutEffect, useState } from "react";
3
3
  import { customBlockHost } from "../bridge/sandboxClient.js";
4
- import { NotInIframeError } from "../index.js";
4
+ import { NotInIframeError } from "../init.js";
5
5
  import { DebugMessageLog } from "./DebugMessageLog.js";
6
6
  import { seedStandalonePreviewState } from "./standalonePreview.js";
7
7
  import { useCustomBlockAutoResize } from "./useCustomBlockAutoResize.js";
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { customBlock } from "../index.js";
2
+ import { customBlock } from "../customBlock.js";
3
3
  /**
4
4
  * Measures the sandbox's `#root` element and posts `resize` messages so the host iframe
5
5
  * matches the block's border-box height. Unchanged values are deduped.
package/dist/version.js CHANGED
@@ -4,4 +4,4 @@
4
4
  *
5
5
  * WARNING: Generated during SDK publish. Do not edit in the published package.
6
6
  */
7
- export const CUSTOM_BLOCKS_SDK_VERSION = "0.1.27"
7
+ export const CUSTOM_BLOCKS_SDK_VERSION = "0.1.28"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, useEffect, useLayoutEffect, useState } from "react"
2
2
  import { customBlockHost } from "../bridge/sandboxClient.js"
3
- import { type InitCustomBlockOptions, NotInIframeError } from "../index.js"
3
+ import { type InitCustomBlockOptions, NotInIframeError } from "../init.js"
4
4
  import { DebugMessageLog } from "./DebugMessageLog.js"
5
5
  import { seedStandalonePreviewState } from "./standalonePreview.js"
6
6
  import { useCustomBlockAutoResize } from "./useCustomBlockAutoResize.js"
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react"
2
- import { customBlock } from "../index.js"
2
+ import { customBlock } from "../customBlock.js"
3
3
 
4
4
  /**
5
5
  * Measures the sandbox's `#root` element and posts `resize` messages so the host iframe