@tiptap/core 3.15.3 → 3.17.0

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": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "3.15.3",
4
+ "version": "3.17.0",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -52,10 +52,10 @@
52
52
  "jsx-dev-runtime"
53
53
  ],
54
54
  "devDependencies": {
55
- "@tiptap/pm": "^3.15.3"
55
+ "@tiptap/pm": "^3.17.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@tiptap/pm": "^3.15.3"
58
+ "@tiptap/pm": "^3.17.0"
59
59
  },
60
60
  "repository": {
61
61
  "type": "git",
@@ -8,6 +8,7 @@ export * from './findDuplicates.js'
8
8
  export * from './fromString.js'
9
9
  export * from './isAndroid.js'
10
10
  export * from './isEmptyObject.js'
11
+ export * from './isFirefox.js'
11
12
  export * from './isFunction.js'
12
13
  export * from './isiOS.js'
13
14
  export * from './isMacOS.js'
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Detects if the current browser is Firefox.
3
+ * @returns `true` if the browser is Firefox, `false` otherwise.
4
+ * @example
5
+ * if (isFirefox()) {
6
+ * // Firefox-specific handling
7
+ * }
8
+ */
9
+ export function isFirefox(): boolean {
10
+ return typeof navigator !== 'undefined' ? /Firefox/.test(navigator.userAgent) : false
11
+ }