| 1 |
import { elementAlignmentToJustifyContent } from "./alignment"; |
| 2 |
import { DynamicDataPanel } from "./components/DynamicDataPanel"; |
| 3 |
import { ElementDeleteButton } from "./components/ElementDeleteButton"; |
| 4 |
import { ElementOptionsButton } from "./components/ElementOptionsButton"; |
| 5 |
import { useDynamicDataBindings } from "./dynamic-data/hooks/useDynamicData"; |
| 6 |
import { useBlockCardUpdateShim } from "./hooks/block-editor-compat"; |
| 7 |
import { useClickOutside } from "./hooks/useClickOutside"; |
| 8 |
import { registerNativeElementBlock } from "./blocks/element-bridge"; |
| 9 |
import { useTableStore } from "./store"; |
| 10 |
import { ListElement, listAttrDefaults } from "./blocks/list/element"; |
| 11 |
|
| 12 |
declare global { |
| 13 |
interface Window { |
| 14 |
TablebergProHost?: { |
| 15 |
DynamicDataPanel: typeof DynamicDataPanel; |
| 16 |
ElementDeleteButton: typeof ElementDeleteButton; |
| 17 |
ElementOptionsButton: typeof ElementOptionsButton; |
| 18 |
elementAlignmentToJustifyContent: typeof elementAlignmentToJustifyContent; |
| 19 |
useBlockCardUpdateShim: typeof useBlockCardUpdateShim; |
| 20 |
useClickOutside: typeof useClickOutside; |
| 21 |
useDynamicDataBindings: typeof useDynamicDataBindings; |
| 22 |
useTableStore: typeof useTableStore; |
| 23 |
ListElement: typeof ListElement; |
| 24 |
listAttrDefaults: typeof listAttrDefaults; |
| 25 |
registerNativeElementBlock: typeof registerNativeElementBlock; |
| 26 |
}; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
if (!window.TablebergProHost) { |
| 31 |
window.TablebergProHost = { |
| 32 |
DynamicDataPanel, |
| 33 |
ElementDeleteButton, |
| 34 |
ElementOptionsButton, |
| 35 |
elementAlignmentToJustifyContent, |
| 36 |
useBlockCardUpdateShim, |
| 37 |
useClickOutside, |
| 38 |
useDynamicDataBindings, |
| 39 |
useTableStore, |
| 40 |
ListElement, |
| 41 |
listAttrDefaults, |
| 42 |
registerNativeElementBlock, |
| 43 |
}; |
| 44 |
} |
| 45 |
|