@zsviczian/excalidraw 0.18.115 → 0.18.116

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.
@@ -2563,7 +2563,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
2563
2563
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2564
2564
 
2565
2565
  "use strict";
2566
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ObsidianRadixPortal: () => (/* binding */ ObsidianRadixPortal)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * Purpose:\n * Render Radix floating-position wrappers directly under the owning\n * document's body. Obsidian popout windows place Excalidraw inside an\n * offset containing block, which otherwise displaces Radix's fixed wrapper.\n * The display:contents bridge retains Excalidraw's scoped theme rules and\n * inline CSS variables without creating another containing block.\n *\n * Author:\n * zsviczian\n *\n * References:\n * https://github.com/excalidraw/excalidraw/pull/10221\n *\n * Notes:\n * This is specific to Excalidraw hosted in Obsidian's Electron popouts.\n */\n\nconst ObsidianRadixPortal = ({\n children,\n container,\n portal: Portal\n}) => {\n const bridgeStyle = {\n display: \"contents\"\n };\n\n if (container) {\n Array.from(container.style).forEach(propertyName => {\n if (propertyName === \"color\" || propertyName.startsWith(\"--\")) {\n bridgeStyle[propertyName] = container.style.getPropertyValue(propertyName);\n }\n });\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Portal, {\n container: container === null || container === void 0 ? void 0 : container.ownerDocument.body\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: container === null || container === void 0 ? void 0 : container.className,\n style: bridgeStyle\n }, children));\n};\n\n//# sourceURL=webpack://ExcalidrawLib/./components/ObsidianRadixPortal.tsx?\n}");
2566
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ObsidianRadixPortal: () => (/* binding */ ObsidianRadixPortal)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * Purpose:\n * Render Radix floating-position wrappers directly under the owning\n * document's body. Obsidian popout windows place Excalidraw inside an\n * offset containing block, which otherwise displaces Radix's fixed wrapper.\n * The display:contents bridge retains Excalidraw's scoped theme rules and\n * inline CSS variables without creating another containing block.\n *\n * Author:\n * zsviczian\n *\n * References:\n * https://github.com/excalidraw/excalidraw/pull/10221\n *\n * Notes:\n * This is specific to Excalidraw hosted in Obsidian's Electron popouts.\n */\n\nconst ObsidianRadixPortal = ({\n children,\n container,\n portal: Portal\n}) => {\n const bridgeStyle = {\n display: \"contents\"\n };\n\n if (container) {\n Array.from(container.style).forEach(propertyName => {\n if (propertyName === \"color\" || propertyName.startsWith(\"--\")) {\n bridgeStyle[propertyName] = container.style.getPropertyValue(propertyName);\n }\n });\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Portal, {\n container: container === null || container === void 0 ? void 0 : container.ownerDocument.body\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: container === null || container === void 0 ? void 0 : container.className,\n style: bridgeStyle,\n \"data-radix-portal\": true\n }, children));\n};\n\n//# sourceURL=webpack://ExcalidrawLib/./components/ObsidianRadixPortal.tsx?\n}");
2567
2567
 
2568
2568
  /***/ },
2569
2569