@zipify/wysiwyg 1.0.0-dev.85 → 1.0.0-dev.86

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/dist/wysiwyg.mjs CHANGED
@@ -22828,25 +22828,27 @@ function useToolbar({ wrapperRef, offsets, isActiveRef }) {
22828
22828
  const wrapperEl = useElementRef(wrapperRef);
22829
22829
  let popper2;
22830
22830
  function mount(element) {
22831
+ const modifiers2 = [
22832
+ {
22833
+ name: "offset",
22834
+ options: { offset: offsets }
22835
+ },
22836
+ {
22837
+ name: "preventOverflow",
22838
+ options: {
22839
+ altAxis: true,
22840
+ padding: 2
22841
+ }
22842
+ },
22843
+ {
22844
+ name: "flip",
22845
+ options: { boundary: "document" }
22846
+ }
22847
+ ];
22848
+ console.log(modifiers2, ContextWindow);
22831
22849
  popper2 = createPopper(wrapperEl.value, element, {
22832
22850
  placement: "top-start",
22833
- modifiers: [
22834
- {
22835
- name: "offset",
22836
- options: { offset: offsets }
22837
- },
22838
- {
22839
- name: "preventOverflow",
22840
- options: {
22841
- altAxis: true,
22842
- padding: 2
22843
- }
22844
- },
22845
- {
22846
- name: "flip",
22847
- options: { enabled: false }
22848
- }
22849
- ]
22851
+ modifiers: modifiers2
22850
22852
  });
22851
22853
  }
22852
22854
  const update = () => popper2 == null ? void 0 : popper2.update();
@@ -1,30 +1,36 @@
1
1
  import { createPopper } from '@popperjs/core';
2
2
  import { useElementRef } from '../components/base';
3
+ import { ContextWindow } from '../services';
3
4
 
4
5
  export function useToolbar({ wrapperRef, offsets, isActiveRef }) {
5
6
  const wrapperEl = useElementRef(wrapperRef);
6
7
  let popper;
7
8
 
8
9
  function mount(element) {
10
+ const modifiers = [
11
+ {
12
+ name: 'offset',
13
+ options: { offset: offsets }
14
+ },
15
+ {
16
+ name: 'preventOverflow',
17
+ options: {
18
+ altAxis: true,
19
+ padding: 2
20
+ }
21
+ },
22
+ {
23
+ name: 'flip',
24
+ options: { boundary: 'document' }
25
+ }
26
+ ];
27
+
28
+ // eslint-disable-next-line no-console
29
+ console.log(modifiers, ContextWindow);
30
+
9
31
  popper = createPopper(wrapperEl.value, element, {
10
32
  placement: 'top-start',
11
- modifiers: [
12
- {
13
- name: 'offset',
14
- options: { offset: offsets }
15
- },
16
- {
17
- name: 'preventOverflow',
18
- options: {
19
- altAxis: true,
20
- padding: 2
21
- }
22
- },
23
- {
24
- name: 'flip',
25
- options: { enabled: false }
26
- }
27
- ]
33
+ modifiers
28
34
  });
29
35
  }
30
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.0.0-dev.85",
3
+ "version": "1.0.0-dev.86",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "repository": {