@witchcraft/layout 0.5.4 → 0.5.5

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@witchcraft/layout",
3
3
  "description": "Headless layout manager.",
4
- "version": "0.5.4",
4
+ "version": "0.5.5",
5
5
  "main": "./dist/runtime/index.js",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -146,7 +146,7 @@ actionHandler.shapes = reactive([])
146
146
  actionHandler.textHints = reactive({ actions: [], errors: [] })
147
147
  const shapes = actionHandler.shapes
148
148
 
149
- const dragContext = useFrames(
149
+ const moveContext = useFrames(
150
150
  win,
151
151
  actionHandler
152
152
  )
@@ -158,9 +158,9 @@ const {
158
158
  state,
159
159
  movingFrameId,
160
160
  showMoving,
161
- } = dragContext
161
+ } = moveContext
162
162
 
163
- provide(moveContextInjectionKey, dragContext)
163
+ provide(moveContextInjectionKey, moveContext)
164
164
 
165
165
  function getWindowOffset() {
166
166
  const windowElRect = windowEl.value!.getBoundingClientRect()
@@ -209,6 +209,7 @@ defineExpose({
209
209
  win,
210
210
  getUpdateWindowSizeInfo,
211
211
  actionHandler: actionHandler as ActionHandler<any, any>,
212
+ moveContext
212
213
  })
213
214
  </script>
214
215