@blokkli/editor 2.0.0-alpha.22 → 2.0.0-alpha.24

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 (229) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +150 -226
  3. package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +1 -1
  4. package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +20 -14
  5. package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue.d.ts +8 -4
  6. package/dist/runtime/blokkliPlugins/Sidebar/index.vue +55 -25
  7. package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +5 -4
  8. package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue +9 -2
  9. package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue.d.ts +2 -0
  10. package/dist/runtime/blokkliPlugins/TourItem/index.vue +22 -13
  11. package/dist/runtime/blokkliPlugins/TourItem/index.vue.d.ts +1 -0
  12. package/dist/runtime/blokkliPlugins/ViewOption/index.vue +3 -1
  13. package/dist/runtime/blokkliPlugins/index.d.ts +1 -5
  14. package/dist/runtime/blokkliPlugins/index.js +0 -8
  15. package/dist/runtime/components/Blocks/FromLibrary/index.vue +0 -5
  16. package/dist/runtime/components/BlokkliEditable.vue +6 -1
  17. package/dist/runtime/components/BlokkliField.vue +1 -1
  18. package/dist/runtime/components/BlokkliProvider.vue +4 -4
  19. package/dist/runtime/components/BlokkliProvider.vue.d.ts +1 -1
  20. package/dist/runtime/components/Edit/Actions/ItemDropdown.vue +66 -0
  21. package/dist/runtime/components/Edit/Actions/ItemDropdown.vue.d.ts +6 -0
  22. package/dist/runtime/components/Edit/Actions/index.vue +80 -117
  23. package/dist/runtime/components/Edit/AddListItem/index.vue +8 -29
  24. package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +2 -3
  25. package/dist/runtime/components/Edit/AnimationCanvas/index.vue +23 -68
  26. package/dist/runtime/components/Edit/AppMenu/MenuButton.vue +39 -0
  27. package/dist/runtime/{blokkliPlugins/MenuButton/index.vue.d.ts → components/Edit/AppMenu/MenuButton.vue.d.ts} +0 -4
  28. package/dist/runtime/components/Edit/AppMenu/index.vue +62 -40
  29. package/dist/runtime/components/Edit/BlockProxy/index.vue +2 -8
  30. package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue +33 -49
  31. package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue.d.ts +14 -1
  32. package/dist/runtime/components/Edit/BlokkliRootErrorBoundary.vue +93 -0
  33. package/dist/runtime/components/Edit/BlokkliRootErrorBoundary.vue.d.ts +12 -0
  34. package/dist/runtime/components/Edit/Dialog/index.vue +26 -5
  35. package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +2 -0
  36. package/dist/runtime/components/Edit/DraggableList.vue +5 -25
  37. package/dist/runtime/components/Edit/EditProvider.vue +71 -41
  38. package/dist/runtime/components/Edit/EditProvider.vue.d.ts +1 -1
  39. package/dist/runtime/components/Edit/Features/AddList/Actions/Action.vue +52 -0
  40. package/dist/runtime/components/Edit/Features/AddList/Actions/Action.vue.d.ts +7 -0
  41. package/dist/runtime/components/Edit/Features/AddList/Actions/index.vue +41 -0
  42. package/dist/runtime/components/Edit/Features/{Selection/OverlayFallback → AddList/Actions}/index.vue.d.ts +1 -1
  43. package/dist/runtime/components/Edit/Features/{BlockAddList → AddList/Blocks}/index.vue +36 -108
  44. package/dist/runtime/components/Edit/Features/{Hover/Overlay → AddList/Blocks}/index.vue.d.ts +7 -2
  45. package/dist/runtime/components/Edit/Features/AddList/index.vue +76 -110
  46. package/dist/runtime/components/Edit/Features/Analyze/{Renderer.vue → Main.vue} +4 -8
  47. package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/fragment.glsl +10 -6
  48. package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/index.vue +43 -15
  49. package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/index.vue.d.ts +0 -2
  50. package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/vertex.glsl +11 -9
  51. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue +15 -3
  52. package/dist/runtime/components/Edit/Features/Analyze/index.vue +7 -3
  53. package/dist/runtime/components/Edit/Features/Anchors/index.vue +2 -2
  54. package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue +41 -20
  55. package/dist/runtime/components/Edit/Features/Artboard/Scrollbar/index.vue +3 -2
  56. package/dist/runtime/components/Edit/Features/Assistant/Overlay/index.vue +2 -28
  57. package/dist/runtime/components/Edit/Features/Assistant/index.vue +18 -14
  58. package/dist/runtime/components/Edit/Features/BlockScheduler/Dialog/index.vue +1 -0
  59. package/dist/runtime/components/Edit/Features/BlockScheduler/index.vue +2 -2
  60. package/dist/runtime/components/Edit/Features/Clipboard/List/index.vue +22 -11
  61. package/dist/runtime/components/Edit/Features/Clipboard/index.vue +70 -29
  62. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Item/index.vue +0 -2
  63. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Item/index.vue.d.ts +6 -4
  64. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +77 -27
  65. package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +7 -4
  66. package/dist/runtime/components/Edit/Features/Comments/index.vue +2 -2
  67. package/dist/runtime/components/Edit/Features/Conversions/index.vue +16 -9
  68. package/dist/runtime/components/Edit/Features/Debug/DebugSection.vue +24 -0
  69. package/dist/runtime/components/Edit/Features/Debug/DebugSection.vue.d.ts +16 -0
  70. package/dist/runtime/components/Edit/Features/Debug/Main.vue +80 -0
  71. package/dist/runtime/components/Edit/Features/Debug/Section/Features.vue +34 -0
  72. package/dist/runtime/components/Edit/Features/Debug/Section/Icons.vue +15 -0
  73. package/dist/runtime/components/Edit/Features/Debug/Section/Icons.vue.d.ts +2 -0
  74. package/dist/runtime/components/Edit/Features/Debug/Section/Keyboard.vue +17 -0
  75. package/dist/runtime/components/Edit/Features/Debug/Section/Keyboard.vue.d.ts +2 -0
  76. package/dist/runtime/components/Edit/Features/Debug/Section/Logging.vue +66 -0
  77. package/dist/runtime/components/Edit/Features/Debug/Section/Logging.vue.d.ts +6 -0
  78. package/dist/runtime/components/Edit/Features/Debug/Section/Rendering.vue +96 -0
  79. package/dist/runtime/components/Edit/Features/Debug/Section/Rendering.vue.d.ts +2 -0
  80. package/dist/runtime/components/Edit/Features/Debug/Section/Selection.vue +25 -0
  81. package/dist/runtime/components/Edit/Features/Debug/Section/Selection.vue.d.ts +2 -0
  82. package/dist/runtime/components/Edit/Features/Debug/index.vue +2 -2
  83. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/DragItem.vue +113 -0
  84. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/DragItem.vue.d.ts +25 -0
  85. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +23 -119
  86. package/dist/runtime/components/Edit/Features/DraggingOverlay/Renderer/fragment.glsl +77 -0
  87. package/dist/runtime/components/Edit/Features/DraggingOverlay/{DropTargets → Renderer}/index.vue +138 -92
  88. package/dist/runtime/components/Edit/Features/DraggingOverlay/{DropTargets → Renderer}/vertex.glsl +60 -8
  89. package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +4 -5
  90. package/dist/runtime/components/Edit/Features/EditForm/index.vue +2 -2
  91. package/dist/runtime/components/Edit/Features/EditableField/Overlay/index.vue +0 -6
  92. package/dist/runtime/components/Edit/Features/EditableField/index.vue +8 -4
  93. package/dist/runtime/components/Edit/Features/Exit/index.vue +12 -9
  94. package/dist/runtime/components/Edit/Features/Fragments/Dialog/Item/index.vue +1 -5
  95. package/dist/runtime/components/Edit/Features/Fragments/index.vue +27 -31
  96. package/dist/runtime/components/Edit/Features/Hover/Renderer/fragment.glsl +141 -0
  97. package/dist/runtime/components/Edit/Features/Hover/{Overlay → Renderer}/index.vue +225 -38
  98. package/dist/runtime/components/Edit/Features/Hover/Renderer/index.vue.d.ts +2 -0
  99. package/dist/runtime/components/Edit/Features/Hover/{Overlay → Renderer}/vertex.glsl +49 -11
  100. package/dist/runtime/components/Edit/Features/Hover/index.vue +9 -6
  101. package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +1 -0
  102. package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +25 -24
  103. package/dist/runtime/components/Edit/Features/Library/EditReusable/index.vue +2 -2
  104. package/dist/runtime/components/Edit/Features/Library/LibraryDialog/Item/index.vue +1 -5
  105. package/dist/runtime/components/Edit/Features/Library/ReusableDialog/index.vue +1 -0
  106. package/dist/runtime/components/Edit/Features/Library/index.vue +50 -36
  107. package/dist/runtime/components/Edit/Features/MediaLibrary/Library/Item.vue +1 -1
  108. package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +26 -13
  109. package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue.d.ts +0 -1
  110. package/dist/runtime/components/Edit/Features/MediaLibrary/index.vue +3 -47
  111. package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/fragment.glsl +13 -26
  112. package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/index.vue +131 -75
  113. package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/index.vue.d.ts +0 -1
  114. package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/vertex.glsl +27 -2
  115. package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +25 -12
  116. package/dist/runtime/components/Edit/Features/Ownership/index.vue +2 -2
  117. package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +2 -1
  118. package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +1 -0
  119. package/dist/runtime/components/Edit/Features/Publish/index.vue +17 -15
  120. package/dist/runtime/components/Edit/Features/ResponsivePreview/index.vue +1 -1
  121. package/dist/runtime/components/Edit/Features/Revert/index.vue +24 -18
  122. package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Content/index.vue +23 -6
  123. package/dist/runtime/components/Edit/Features/Search/index.vue +1 -1
  124. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue +21 -17
  125. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue.d.ts +6 -6
  126. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/fragment.glsl +19 -17
  127. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/index.vue +242 -131
  128. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/vertex.glsl +29 -12
  129. package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue +15 -10
  130. package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/fragment.glsl +23 -14
  131. package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/index.vue +121 -28
  132. package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/index.vue.d.ts +0 -2
  133. package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/vertex.glsl +23 -14
  134. package/dist/runtime/components/Edit/Features/Selection/index.vue +46 -59
  135. package/dist/runtime/components/Edit/Features/Settings/Dialog/index.vue +1 -0
  136. package/dist/runtime/components/Edit/Features/Settings/index.vue +25 -17
  137. package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +2 -2
  138. package/dist/runtime/components/Edit/Features/Tour/Overlay/index.vue +1 -1
  139. package/dist/runtime/components/Edit/Features/Tour/Popup/index.vue +2 -2
  140. package/dist/runtime/components/Edit/Features/Tour/index.vue +12 -10
  141. package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue +5 -5
  142. package/dist/runtime/components/Edit/Features/Transform/index.vue +30 -23
  143. package/dist/runtime/components/Edit/Features/Translations/index.vue +18 -17
  144. package/dist/runtime/components/Edit/Form/Checkboxes/index.vue +43 -0
  145. package/dist/runtime/components/Edit/Form/Checkboxes/index.vue.d.ts +20 -0
  146. package/dist/runtime/components/Edit/FormOverlay/index.vue +13 -4
  147. package/dist/runtime/components/Edit/ItemIconBox/index.vue +41 -0
  148. package/dist/runtime/components/Edit/{AddListItemIcon → ItemIconBox}/index.vue.d.ts +5 -5
  149. package/dist/runtime/components/Edit/Konami/Game/index.vue +0 -1
  150. package/dist/runtime/components/Edit/Konami/index.vue +3 -5
  151. package/dist/runtime/components/Edit/Messages/Item/index.vue +11 -2
  152. package/dist/runtime/components/Edit/Messages/Item/index.vue.d.ts +1 -1
  153. package/dist/runtime/components/Edit/Messages/index.vue +6 -1
  154. package/dist/runtime/components/Edit/Overlay/index.vue +66 -0
  155. package/dist/runtime/components/Edit/Overlay/index.vue.d.ts +2 -0
  156. package/dist/runtime/components/Edit/PreviewProvider.vue +1 -1
  157. package/dist/runtime/components/Edit/Sortli/index.vue +5 -8
  158. package/dist/runtime/components/Edit/Sortli/index.vue.d.ts +2 -0
  159. package/dist/runtime/components/Edit/SystemRequirements/index.vue +36 -36
  160. package/dist/runtime/components/Edit/Toolbar/index.vue +47 -51
  161. package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue +9 -2
  162. package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue.d.ts +4 -1
  163. package/dist/runtime/components/Edit/index.d.ts +7 -5
  164. package/dist/runtime/components/Edit/index.js +13 -9
  165. package/dist/runtime/css/output.css +1 -1
  166. package/dist/runtime/helpers/animationProvider.d.ts +58 -9
  167. package/dist/runtime/helpers/animationProvider.js +318 -75
  168. package/dist/runtime/helpers/composables/defineAddAction.d.ts +2 -0
  169. package/dist/runtime/helpers/composables/defineAddAction.js +10 -0
  170. package/dist/runtime/helpers/composables/defineItemDropdownAction.d.ts +2 -0
  171. package/dist/runtime/helpers/composables/defineItemDropdownAction.js +10 -0
  172. package/dist/runtime/helpers/composables/defineMenuButton.d.ts +2 -0
  173. package/dist/runtime/helpers/composables/defineMenuButton.js +10 -0
  174. package/dist/runtime/helpers/composables/defineRenderer.d.ts +5 -2
  175. package/dist/runtime/helpers/composables/defineRenderer.js +3 -2
  176. package/dist/runtime/helpers/composables/useDialog.d.ts +3 -0
  177. package/dist/runtime/helpers/composables/useDialog.js +16 -0
  178. package/dist/runtime/helpers/composables/useGlobalBlokkliObject.d.ts +16 -0
  179. package/dist/runtime/helpers/composables/useGlobalBlokkliObject.js +36 -0
  180. package/dist/runtime/helpers/debugProvider.d.ts +13 -3
  181. package/dist/runtime/helpers/debugProvider.js +80 -12
  182. package/dist/runtime/helpers/defineElementStyle.d.ts +2 -0
  183. package/dist/runtime/helpers/defineElementStyle.js +33 -0
  184. package/dist/runtime/helpers/domProvider.d.ts +1 -0
  185. package/dist/runtime/helpers/domProvider.js +51 -32
  186. package/dist/runtime/helpers/dropTargets/index.d.ts +1 -1
  187. package/dist/runtime/helpers/dropTargets/index.js +18 -4
  188. package/dist/runtime/helpers/eventBus.d.ts +1 -1
  189. package/dist/runtime/helpers/index.d.ts +1 -6
  190. package/dist/runtime/helpers/index.js +0 -81
  191. package/dist/runtime/helpers/pluginProvider.d.ts +38 -3
  192. package/dist/runtime/helpers/pluginProvider.js +49 -18
  193. package/dist/runtime/helpers/providers/blocks.js +10 -0
  194. package/dist/runtime/helpers/providers/directive.d.ts +4 -1
  195. package/dist/runtime/helpers/providers/directive.js +9 -2
  196. package/dist/runtime/helpers/providers/fields.d.ts +9 -1
  197. package/dist/runtime/helpers/stateProvider.js +1 -0
  198. package/dist/runtime/helpers/uiProvider.d.ts +13 -12
  199. package/dist/runtime/helpers/uiProvider.js +117 -81
  200. package/dist/runtime/helpers/webgl/index.d.ts +2 -3
  201. package/dist/runtime/helpers/webgl/index.js +9 -14
  202. package/dist/runtime/icons/click.svg +1 -0
  203. package/dist/runtime/icons/dock-left.svg +1 -0
  204. package/dist/runtime/icons/dock-right.svg +1 -0
  205. package/dist/runtime/icons/dock-window.svg +1 -0
  206. package/dist/runtime/plugins/blokkliDirectives.js +1 -1
  207. package/dist/runtime/types/index.d.ts +16 -26
  208. package/package.json +1 -1
  209. package/dist/runtime/blokkliPlugins/AddAction/index.vue +0 -96
  210. package/dist/runtime/blokkliPlugins/AddAction/index.vue.d.ts +0 -26
  211. package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +0 -56
  212. package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue.d.ts +0 -24
  213. package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +0 -76
  214. package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +0 -31
  215. package/dist/runtime/blokkliPlugins/MenuButton/index.vue +0 -66
  216. package/dist/runtime/components/Edit/AddListItemIcon/index.vue +0 -19
  217. package/dist/runtime/components/Edit/Features/BlockAddList/docs.md +0 -15
  218. package/dist/runtime/components/Edit/Features/Debug/Renderer.vue +0 -240
  219. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +0 -96
  220. package/dist/runtime/components/Edit/Features/Hover/Overlay/fragment.glsl +0 -139
  221. package/dist/runtime/components/Edit/Features/Selection/OverlayFallback/index.vue +0 -42
  222. /package/dist/runtime/components/Edit/Features/Analyze/{Renderer.vue.d.ts → Main.vue.d.ts} +0 -0
  223. /package/dist/runtime/components/Edit/Features/Anchors/{Renderer.vue → Overlay/index.vue} +0 -0
  224. /package/dist/runtime/components/Edit/Features/{BlockAddList → Anchors/Overlay}/index.vue.d.ts +0 -0
  225. /package/dist/runtime/components/Edit/Features/Debug/{Renderer.vue.d.ts → Main.vue.d.ts} +0 -0
  226. /package/dist/runtime/components/Edit/Features/{Anchors/Renderer.vue.d.ts → Debug/Section/Features.vue.d.ts} +0 -0
  227. /package/dist/runtime/components/Edit/Features/DraggingOverlay/{DropTargets → Renderer}/index.vue.d.ts +0 -0
  228. /package/dist/runtime/components/Edit/Features/Ownership/{Renderer.vue → Banner/index.vue} +0 -0
  229. /package/dist/runtime/components/Edit/Features/Ownership/{Renderer.vue.d.ts → Banner/index.vue.d.ts} +0 -0
@@ -1,53 +1,53 @@
1
1
  <template>
2
- <Teleport v-if="showDialog" to="body">
3
- <BlokkliTransition name="slide-up">
4
- <DialogModal
5
- :title="$t('systemRequirementsDialogTitle', 'System Requirements')"
6
- :width="700"
7
- :submit-label="$t('systemRequirementsDialogButton', 'Continue anyway')"
8
- :lead="
2
+ <BlokkliTransition name="slide-up">
3
+ <DialogModal
4
+ v-if="showDialog"
5
+ id="system-requirements"
6
+ :title="$t('systemRequirementsDialogTitle', 'System Requirements')"
7
+ :width="700"
8
+ :submit-label="$t('systemRequirementsDialogButton', 'Continue anyway')"
9
+ :lead="
9
10
  $t(
10
11
  'systemRequirementsDialogLead',
11
12
  'bl\xF6kkli has detected that your browser does not meet one or more system requirements. For the best experience, please use a browser that supports all the listed requirements.'
12
13
  )
13
14
  "
14
- icon="sad"
15
- @submit="dismiss"
16
- @cancel="dismiss"
17
- >
18
- <ul class="bk-system-requirements">
19
- <li
20
- v-for="requirement in requirements"
21
- :key="requirement.id"
22
- :class="{
15
+ icon="sad"
16
+ @submit="dismiss"
17
+ @cancel="dismiss"
18
+ >
19
+ <ul class="bk-system-requirements">
20
+ <li
21
+ v-for="requirement in requirements"
22
+ :key="requirement.id"
23
+ :class="{
23
24
  'bk-is-success': requirement.supported === true,
24
25
  'bk-is-error': requirement.supported === false,
25
26
  'bk-is-warning': requirement.supported === null
26
27
  }"
27
- >
28
- <div>
29
- <h3>
30
- <span>{{ requirement.title }}</span>
31
- <div class="bk-system-requirements-icon">
32
- <Icon :name="requirement.supported ? 'check' : 'close'" />
33
- </div>
34
- </h3>
35
- <p>{{ requirement.description }}</p>
36
- </div>
37
- </li>
38
- </ul>
28
+ >
29
+ <div>
30
+ <h3>
31
+ <span>{{ requirement.title }}</span>
32
+ <div class="bk-system-requirements-icon">
33
+ <Icon :name="requirement.supported ? 'check' : 'close'" />
34
+ </div>
35
+ </h3>
36
+ <p>{{ requirement.description }}</p>
37
+ </div>
38
+ </li>
39
+ </ul>
39
40
 
40
- <p>
41
- {{
42
- $t(
41
+ <p>
42
+ {{
43
+ $t(
43
44
  "systemRequirementsDialogText",
44
45
  "bl\xF6kkli has been tested and optimized for the latest versions of Chrome, Firefox, Edge, and Safari. Features like WebGL are well supported, but they may sometimes be disabled for performance or security reasons."
45
46
  )
46
- }}
47
- </p>
48
- </DialogModal>
49
- </BlokkliTransition>
50
- </Teleport>
47
+ }}
48
+ </p>
49
+ </DialogModal>
50
+ </BlokkliTransition>
51
51
  </template>
52
52
 
53
53
  <script setup>
@@ -1,65 +1,61 @@
1
1
  <template>
2
- <Teleport to="body">
2
+ <div
3
+ v-show="activeSidebarLeft && sidebarVisible"
4
+ id="bk-sidebar-content-left"
5
+ class="bk-sidebar bk-is-left"
6
+ :class="{ 'bk-is-hidden': !sidebarVisible }"
7
+ />
8
+
9
+ <div
10
+ v-show="activeSidebarRight"
11
+ id="bk-sidebar-content-right"
12
+ class="bk-sidebar bk-is-right"
13
+ :class="{ 'bk-is-hidden': !sidebarVisible }"
14
+ />
15
+
16
+ <AppMenu />
17
+
18
+ <div class="bk bk-toolbar" @touchstart.stop.passive @touchmove.stop.passive>
19
+ <div class="bk bk-toolbar-menu">
20
+ <button class="bk-toolbar-menu-button" @click.prevent.stop="openMenu">
21
+ <Icon name="menu" />
22
+ </button>
23
+ </div>
24
+ <div class="bk-toolbar-container">
25
+ <div
26
+ id="bk-sidebar-tabs-left"
27
+ class="bk-sidebar-container-tabs bk-is-left"
28
+ />
29
+ </div>
30
+ <div id="bk-toolbar-after-menu" class="bk-toolbar-container" />
31
+ <div id="bk-toolbar-before-title" class="bk-toolbar-container" />
32
+ <div id="bk-toolbar-title" class="bk-toolbar-container" />
33
+ <div id="bk-toolbar-after-title" class="bk-toolbar-container" />
34
+ <div id="bk-toolbar-view-options" class="bk-toolbar-container" />
3
35
  <div
4
- v-show="activeSidebarLeft && sidebarVisible"
5
- id="bk-sidebar-content-left"
6
- class="bk-sidebar bk-is-left"
7
- :class="{ 'bk-is-hidden': !sidebarVisible }"
36
+ id="bk-toolbar-before-sidebar"
37
+ class="bk-sidebar-container-tabs bk-toolbar-container"
8
38
  />
39
+ </div>
40
+
41
+ <div class="bk bk-sidebar-tabs">
42
+ <div id="bk-toolbar-before-sidebar-right" />
9
43
  <div
10
- v-show="activeSidebarRight"
11
- id="bk-sidebar-content-right"
12
- class="bk-sidebar bk-is-right"
13
- :class="{ 'bk-is-hidden': !sidebarVisible }"
44
+ id="bk-sidebar-tabs-right"
45
+ class="bk-sidebar-container-tabs bk-is-right"
14
46
  />
15
-
16
- <BlokkliTransition name="toolbar">
17
- <div v-show="showToolbar" class="bk bk-top">
18
- <div
19
- class="bk-toolbar bk-control"
20
- @touchstart.stop.passive
21
- @touchmove.stop.passive
22
- >
23
- <div id="bk-toolbar-menu" class="bk-toolbar-area bk-is-menu" />
24
- <div class="bk-toolbar-container bk-is-sidebar">
25
- <div
26
- id="bk-sidebar-tabs-left"
27
- class="bk-sidebar-container-tabs bk-is-left"
28
- />
29
- </div>
30
- <div id="bk-toolbar-after-menu" class="bk-toolbar-container" />
31
- <div id="bk-toolbar-before-title" class="bk-toolbar-container" />
32
- <div id="bk-toolbar-title" class="bk-toolbar-container" />
33
- <div id="bk-toolbar-after-title" class="bk-toolbar-container" />
34
- <div id="bk-toolbar-view-options" class="bk-toolbar-container" />
35
- <div
36
- id="bk-toolbar-before-sidebar"
37
- class="bk-sidebar-container-tabs bk-toolbar-container"
38
- />
39
- </div>
40
- <div
41
- class="bk bk-sidebar-tabs"
42
- :class="{ 'bk-has-sidebar-open': activeSidebarRight }"
43
- >
44
- <div id="bk-toolbar-before-sidebar-right" />
45
- <div
46
- id="bk-sidebar-tabs-right"
47
- class="bk-sidebar-container-tabs bk-is-right"
48
- />
49
- </div>
50
- </div>
51
- </BlokkliTransition>
52
- </Teleport>
47
+ </div>
53
48
  </template>
54
49
 
55
50
  <script setup>
56
51
  import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
52
+ import { Icon } from "#blokkli/components";
57
53
  import { onMounted, useBlokkli, onBeforeUnmount, computed } from "#imports";
58
- import { BlokkliTransition } from "#blokkli/components";
54
+ import AppMenu from "./../AppMenu/index.vue";
59
55
  const { ui, selection, storage } = useBlokkli();
60
- const showToolbar = computed(
61
- () => !ui.isMobile.value || !selection.isDragging.value && !selection.isMultiSelecting.value
62
- );
56
+ function openMenu() {
57
+ ui.openDialog({ id: "menu", alignment: "left" });
58
+ }
63
59
  const sidebarVisible = computed(() => {
64
60
  if (ui.isMobile.value) {
65
61
  return !selection.isDragging.value;
@@ -12,7 +12,8 @@ import {
12
12
  computed,
13
13
  onMounted,
14
14
  onBeforeUnmount,
15
- watch
15
+ watch,
16
+ useTemplateRef
16
17
  } from "#imports";
17
18
  const props = defineProps({
18
19
  id: { type: String, required: true }
@@ -30,7 +31,13 @@ const rect = computed(() => {
30
31
  height: height.value
31
32
  };
32
33
  });
33
- const el = ref(null);
34
+ const el = useTemplateRef("el");
35
+ function getRootElement() {
36
+ return el.value;
37
+ }
38
+ defineExpose({
39
+ getRootElement
40
+ });
34
41
  useAnimationFrame(() => {
35
42
  if (!el.value) {
36
43
  return;
@@ -1,11 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  id: string;
3
3
  };
4
+ declare function getRootElement(): HTMLElement | null;
4
5
  declare var __VLS_1: {};
5
6
  type __VLS_Slots = {} & {
6
7
  default?: (props: typeof __VLS_1) => any;
7
8
  };
8
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
10
+ getRootElement: typeof getRootElement;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
12
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
13
  export default _default;
11
14
  type __VLS_WithSlots<T, S> = T & {
@@ -1,11 +1,13 @@
1
1
  import AddListItem from './AddListItem/index.vue.js';
2
- import AddListItemIcon from './AddListItemIcon/index.vue.js';
2
+ import ItemIconBox from './ItemIconBox/index.vue.js';
3
3
  import ArtboardTooltip from './ArtboardTooltip/index.vue.js';
4
+ import Banner from './Banner/index.vue.js';
4
5
  import BlokkliTransition from './Transition/index.vue.js';
5
- import TransitionHeight from './Transition/Height.vue.js';
6
6
  import ConfigForm from './PluginConfigForm/index.vue.js';
7
7
  import DialogModal from './Dialog/index.vue.js';
8
8
  import DiffViewerState from './DiffViewer/State.vue.js';
9
+ import ErrorBoundary from './BlokkliErrorBoundary.vue.js';
10
+ import FormCheckboxes from './Form/Checkboxes/index.vue.js';
9
11
  import FormDatepicker from './Form/Datepicker/index.vue.js';
10
12
  import FormGroup from './Form/Group/index.vue.js';
11
13
  import FormItem from './Form/Item/index.vue.js';
@@ -25,10 +27,10 @@ import Pagination from './Pagination/index.vue.js';
25
27
  import RelativeTime from './RelativeTime/index.vue.js';
26
28
  import Resizable from './Resizable/index.vue.js';
27
29
  import ScaleToFit from './ScaleToFit/index.vue.js';
30
+ import ScheduleDate from './ScheduleDate/index.vue.js';
28
31
  import ScrollBoundary from './ScrollBoundary/index.vue.js';
29
32
  import ShortcutIndicator from './ShortcutIndicator/index.vue.js';
30
33
  import Sortli from './Sortli/index.vue.js';
31
- import Banner from './Banner/index.vue.js';
32
- import ScheduleDate from './ScheduleDate/index.vue.js';
34
+ import TransitionHeight from './Transition/Height.vue.js';
33
35
  import ViewportBlockingRect from './ViewportBlockingRect/index.vue.js';
34
- export { AddListItem, AddListItemIcon, ArtboardTooltip, BlokkliTransition, ConfigForm, DialogModal, DiffViewerState, FormDatepicker, FormGroup, FormItem, FormOverlay, FormRadio, FormRadioTabs, FormSelect, FormText, FormTextarea, FormToggle, Highlight, Icon, InfoBox, ItemIcon, Loading, Pagination, RelativeTime, Resizable, ScaleToFit, ScrollBoundary, ShortcutIndicator, Sortli, ViewportBlockingRect, Banner, ScheduleDate, TransitionHeight, };
36
+ export { AddListItem, ItemIconBox, ArtboardTooltip, Banner, BlokkliTransition, ConfigForm, DialogModal, DiffViewerState, ErrorBoundary, FormCheckboxes, FormDatepicker, FormGroup, FormItem, FormOverlay, FormRadio, FormRadioTabs, FormSelect, FormText, FormTextarea, FormToggle, Highlight, Icon, InfoBox, ItemIcon, Loading, Pagination, RelativeTime, Resizable, ScaleToFit, ScheduleDate, ScrollBoundary, ShortcutIndicator, Sortli, TransitionHeight, ViewportBlockingRect, };
@@ -1,11 +1,13 @@
1
1
  import AddListItem from "./AddListItem/index.vue";
2
- import AddListItemIcon from "./AddListItemIcon/index.vue";
2
+ import ItemIconBox from "./ItemIconBox/index.vue";
3
3
  import ArtboardTooltip from "./ArtboardTooltip/index.vue";
4
+ import Banner from "./Banner/index.vue";
4
5
  import BlokkliTransition from "./Transition/index.vue";
5
- import TransitionHeight from "./Transition/Height.vue";
6
6
  import ConfigForm from "./PluginConfigForm/index.vue";
7
7
  import DialogModal from "./Dialog/index.vue";
8
8
  import DiffViewerState from "./DiffViewer/State.vue";
9
+ import ErrorBoundary from "./BlokkliErrorBoundary.vue";
10
+ import FormCheckboxes from "./Form/Checkboxes/index.vue";
9
11
  import FormDatepicker from "./Form/Datepicker/index.vue";
10
12
  import FormGroup from "./Form/Group/index.vue";
11
13
  import FormItem from "./Form/Item/index.vue";
@@ -25,20 +27,23 @@ import Pagination from "./Pagination/index.vue";
25
27
  import RelativeTime from "./RelativeTime/index.vue";
26
28
  import Resizable from "./Resizable/index.vue";
27
29
  import ScaleToFit from "./ScaleToFit/index.vue";
30
+ import ScheduleDate from "./ScheduleDate/index.vue";
28
31
  import ScrollBoundary from "./ScrollBoundary/index.vue";
29
32
  import ShortcutIndicator from "./ShortcutIndicator/index.vue";
30
33
  import Sortli from "./Sortli/index.vue";
31
- import Banner from "./Banner/index.vue";
32
- import ScheduleDate from "./ScheduleDate/index.vue";
34
+ import TransitionHeight from "./Transition/Height.vue";
33
35
  import ViewportBlockingRect from "./ViewportBlockingRect/index.vue";
34
36
  export {
35
37
  AddListItem,
36
- AddListItemIcon,
38
+ ItemIconBox,
37
39
  ArtboardTooltip,
40
+ Banner,
38
41
  BlokkliTransition,
39
42
  ConfigForm,
40
43
  DialogModal,
41
44
  DiffViewerState,
45
+ ErrorBoundary,
46
+ FormCheckboxes,
42
47
  FormDatepicker,
43
48
  FormGroup,
44
49
  FormItem,
@@ -58,11 +63,10 @@ export {
58
63
  RelativeTime,
59
64
  Resizable,
60
65
  ScaleToFit,
66
+ ScheduleDate,
61
67
  ScrollBoundary,
62
68
  ShortcutIndicator,
63
69
  Sortli,
64
- ViewportBlockingRect,
65
- Banner,
66
- ScheduleDate,
67
- TransitionHeight
70
+ TransitionHeight,
71
+ ViewportBlockingRect
68
72
  };