@tiptap/core 3.16.0 → 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/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/utilities/index.ts +1 -0
- package/src/utilities/isFirefox.ts +11 -0
package/dist/index.cjs
CHANGED
|
@@ -97,6 +97,7 @@ __export(index_exports, {
|
|
|
97
97
|
isAtStartOfNode: () => isAtStartOfNode,
|
|
98
98
|
isEmptyObject: () => isEmptyObject,
|
|
99
99
|
isExtensionRulesEnabled: () => isExtensionRulesEnabled,
|
|
100
|
+
isFirefox: () => isFirefox,
|
|
100
101
|
isFunction: () => isFunction,
|
|
101
102
|
isList: () => isList,
|
|
102
103
|
isMacOS: () => isMacOS,
|
|
@@ -5963,6 +5964,11 @@ function escapeForRegEx(string) {
|
|
|
5963
5964
|
return string.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
5964
5965
|
}
|
|
5965
5966
|
|
|
5967
|
+
// src/utilities/isFirefox.ts
|
|
5968
|
+
function isFirefox() {
|
|
5969
|
+
return typeof navigator !== "undefined" ? /Firefox/.test(navigator.userAgent) : false;
|
|
5970
|
+
}
|
|
5971
|
+
|
|
5966
5972
|
// src/utilities/isString.ts
|
|
5967
5973
|
function isString(value) {
|
|
5968
5974
|
return typeof value === "string";
|
|
@@ -6959,6 +6965,7 @@ var Tracker = class {
|
|
|
6959
6965
|
isAtStartOfNode,
|
|
6960
6966
|
isEmptyObject,
|
|
6961
6967
|
isExtensionRulesEnabled,
|
|
6968
|
+
isFirefox,
|
|
6962
6969
|
isFunction,
|
|
6963
6970
|
isList,
|
|
6964
6971
|
isMacOS,
|