@prosekit/core 0.0.0-next-20240504134708 → 0.0.0-next-20240504152243
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.
@@ -1076,6 +1076,13 @@ declare function isAllSelection(sel: Selection_2): sel is AllSelection;
|
|
1076
1076
|
export { isAllSelection }
|
1077
1077
|
export { isAllSelection as isAllSelection_alias_1 }
|
1078
1078
|
|
1079
|
+
/**
|
1080
|
+
* @private
|
1081
|
+
*/
|
1082
|
+
declare const isApple: boolean;
|
1083
|
+
export { isApple }
|
1084
|
+
export { isApple as isApple_alias_1 }
|
1085
|
+
|
1079
1086
|
export declare function isElement(value: unknown): value is Element;
|
1080
1087
|
|
1081
1088
|
/**
|
@@ -1087,8 +1094,6 @@ declare function isInCodeBlock(selection: Selection_2): boolean | undefined;
|
|
1087
1094
|
export { isInCodeBlock }
|
1088
1095
|
export { isInCodeBlock as isInCodeBlock_alias_1 }
|
1089
1096
|
|
1090
|
-
export declare const isMac: boolean;
|
1091
|
-
|
1092
1097
|
/**
|
1093
1098
|
* @internal
|
1094
1099
|
*/
|
package/dist/prosekit-core.d.ts
CHANGED
@@ -96,6 +96,7 @@ export { SimplifyUnion } from './_tsup-dts-rollup';
|
|
96
96
|
export { canUseRegexLookbehind } from './_tsup-dts-rollup';
|
97
97
|
export { clsx } from './_tsup-dts-rollup';
|
98
98
|
export { defaultBlockAt } from './_tsup-dts-rollup';
|
99
|
+
export { isApple } from './_tsup-dts-rollup';
|
99
100
|
export { _getId } from './_tsup-dts-rollup';
|
100
101
|
export { getMarkType } from './_tsup-dts-rollup';
|
101
102
|
export { getNodeType } from './_tsup-dts-rollup';
|
package/dist/prosekit-core.js
CHANGED
@@ -1763,7 +1763,7 @@ function defineFocusChangeHandler(handler) {
|
|
1763
1763
|
import { history, redo, undo } from "@prosekit/pm/history";
|
1764
1764
|
|
1765
1765
|
// src/utils/env.ts
|
1766
|
-
var
|
1766
|
+
var isApple = typeof navigator !== "undefined" ? /Mac|iP(hone|[ao]d)/.test(navigator.platform) : false;
|
1767
1767
|
|
1768
1768
|
// src/extensions/keymap.ts
|
1769
1769
|
import { baseKeymap, chainCommands } from "@prosekit/pm/commands";
|
@@ -1827,7 +1827,7 @@ function defineHistory() {
|
|
1827
1827
|
"Mod-z": undo,
|
1828
1828
|
"Shift-Mod-z": redo
|
1829
1829
|
};
|
1830
|
-
if (!
|
1830
|
+
if (!isApple) {
|
1831
1831
|
keymap["Mod-y"] = redo;
|
1832
1832
|
}
|
1833
1833
|
return union([
|
@@ -2130,6 +2130,7 @@ export {
|
|
2130
2130
|
htmlFromNode,
|
2131
2131
|
insertNode,
|
2132
2132
|
isAllSelection,
|
2133
|
+
isApple,
|
2133
2134
|
isInCodeBlock,
|
2134
2135
|
isMark,
|
2135
2136
|
isMarkAbsent,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/core",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next-
|
4
|
+
"version": "0.0.0-next-20240504152243",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"dist"
|
36
36
|
],
|
37
37
|
"dependencies": {
|
38
|
-
"@prosekit/pm": "0.0.0-next-
|
38
|
+
"@prosekit/pm": "0.0.0-next-20240504152243",
|
39
39
|
"clsx": "^2.1.1",
|
40
40
|
"orderedmap": "^2.1.1",
|
41
41
|
"type-fest": "^4.18.1"
|