@pubwave/editor 0.2.0 → 0.2.1

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/index.cjs CHANGED
@@ -5365,6 +5365,9 @@ function LinkButton({ editor, isOpen, onToggle, onClose, selectionState }) {
5365
5365
  }
5366
5366
  }, [isOpen, currentLinkHref, editor]);
5367
5367
  React.useEffect(() => {
5368
+ if (isMobileDevice()) {
5369
+ return;
5370
+ }
5368
5371
  if (!isOpen) {
5369
5372
  tippyInstancesRef.current.forEach((instance) => instance.destroy());
5370
5373
  tippyInstancesRef.current = [];
@@ -5712,6 +5715,9 @@ function ColorPicker({ editor, onClose, buttonRef }) {
5712
5715
  }
5713
5716
  };
5714
5717
  React.useEffect(() => {
5718
+ if (isMobileDevice()) {
5719
+ return;
5720
+ }
5715
5721
  if (!pickerRef.current) return;
5716
5722
  tippyInstancesRef.current.forEach((instance) => instance.destroy());
5717
5723
  tippyInstancesRef.current = [];
@@ -6291,6 +6297,9 @@ function BubbleToolbar({
6291
6297
  }, [shouldShow, updatePosition]);
6292
6298
  const locale = useLocale();
6293
6299
  React.useEffect(() => {
6300
+ if (isMobileDevice()) {
6301
+ return;
6302
+ }
6294
6303
  if (!shouldShow || !position.visible || !toolbarRef.current) {
6295
6304
  tippyInstancesRef.current.forEach((instance) => instance.destroy());
6296
6305
  tippyInstancesRef.current = [];
package/dist/index.js CHANGED
@@ -5363,6 +5363,9 @@ function LinkButton({ editor, isOpen, onToggle, onClose, selectionState }) {
5363
5363
  }
5364
5364
  }, [isOpen, currentLinkHref, editor]);
5365
5365
  useEffect(() => {
5366
+ if (isMobileDevice()) {
5367
+ return;
5368
+ }
5366
5369
  if (!isOpen) {
5367
5370
  tippyInstancesRef.current.forEach((instance) => instance.destroy());
5368
5371
  tippyInstancesRef.current = [];
@@ -5710,6 +5713,9 @@ function ColorPicker({ editor, onClose, buttonRef }) {
5710
5713
  }
5711
5714
  };
5712
5715
  useEffect(() => {
5716
+ if (isMobileDevice()) {
5717
+ return;
5718
+ }
5713
5719
  if (!pickerRef.current) return;
5714
5720
  tippyInstancesRef.current.forEach((instance) => instance.destroy());
5715
5721
  tippyInstancesRef.current = [];
@@ -6289,6 +6295,9 @@ function BubbleToolbar({
6289
6295
  }, [shouldShow, updatePosition]);
6290
6296
  const locale = useLocale();
6291
6297
  useEffect(() => {
6298
+ if (isMobileDevice()) {
6299
+ return;
6300
+ }
6292
6301
  if (!shouldShow || !position.visible || !toolbarRef.current) {
6293
6302
  tippyInstancesRef.current.forEach((instance) => instance.destroy());
6294
6303
  tippyInstancesRef.current = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubwave/editor",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A Notion-level block editor built with React and Tiptap",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",