@gsc-basic/components 1.0.1 → 1.0.2

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.
Files changed (108) hide show
  1. package/README.md +59 -0
  2. package/dist/es/index.js +34 -30
  3. package/dist/es/node_modules/@codemirror/commands/dist/index.js +26 -20
  4. package/dist/es/node_modules/@codemirror/language/dist/index.js +77 -77
  5. package/dist/es/node_modules/@codemirror/search/dist/index.js +432 -465
  6. package/dist/es/node_modules/@codemirror/state/dist/index.js +272 -268
  7. package/dist/es/node_modules/@codemirror/view/dist/index.js +1732 -1647
  8. package/dist/es/node_modules/@lezer/common/dist/index.js +191 -190
  9. package/dist/es/node_modules/@lezer/lr/dist/index.js +3 -3
  10. package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +178 -0
  11. package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +13 -0
  12. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +406 -0
  13. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +768 -0
  14. package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +55 -0
  15. package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +109 -0
  16. package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +45 -0
  17. package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +213 -0
  18. package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +29 -0
  19. package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +74 -0
  20. package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +79 -0
  21. package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +21 -0
  22. package/dist/es/node_modules/@tanstack/store/dist/esm/types.js +6 -0
  23. package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +1885 -0
  24. package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +38 -0
  25. package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +33 -0
  26. package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +48 -0
  27. package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +159 -0
  28. package/dist/es/src/Grid/index.js +6 -0
  29. package/dist/es/src/Grid/src/Grid.css +1 -0
  30. package/dist/es/src/Grid/src/Grid.vue.js +186 -0
  31. package/dist/es/src/Grid/src/components/ActionBar.css +1 -0
  32. package/dist/es/src/Grid/src/components/ActionBar.vue.js +58 -0
  33. package/dist/es/src/Grid/src/components/CellEditor.css +1 -0
  34. package/dist/es/src/Grid/src/components/CellEditor.vue.js +121 -0
  35. package/dist/es/src/Grid/src/components/CellEditor2.css +1 -0
  36. package/dist/es/src/Grid/src/components/ColumnFilter.css +1 -0
  37. package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +61 -0
  38. package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -0
  39. package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +86 -0
  40. package/dist/es/src/Grid/src/components/DataTable.css +1 -0
  41. package/dist/es/src/Grid/src/components/DataTable.vue.js +533 -0
  42. package/dist/es/src/Grid/src/components/Pager.css +1 -0
  43. package/dist/es/src/Grid/src/components/Pager.vue.js +55 -0
  44. package/dist/es/src/Grid/src/components/QueryBar.css +1 -0
  45. package/dist/es/src/Grid/src/components/QueryBar.vue.js +184 -0
  46. package/dist/es/src/Grid/src/composables/useCellEditor.js +20 -0
  47. package/dist/es/src/Grid/src/composables/useGridTable.js +212 -0
  48. package/dist/es/src/Grid/src/styles/antd.css +1 -0
  49. package/dist/es/src/Grid/src/utils/exportCsv.js +15 -0
  50. package/dist/es/src/index.js +23 -21
  51. package/dist/es/src/locale/lang/en-US.js +40 -0
  52. package/dist/es/src/locale/lang/ja-JP.js +42 -2
  53. package/dist/es/src/locale/lang/zh-CN.js +42 -2
  54. package/dist/es/src/styles/tokens.css +1 -1
  55. package/dist/lib/index.js +1 -1
  56. package/dist/lib/node_modules/@codemirror/commands/dist/index.js +1 -1
  57. package/dist/lib/node_modules/@codemirror/language/dist/index.js +1 -1
  58. package/dist/lib/node_modules/@codemirror/search/dist/index.js +2 -2
  59. package/dist/lib/node_modules/@codemirror/state/dist/index.js +4 -4
  60. package/dist/lib/node_modules/@codemirror/view/dist/index.js +5 -5
  61. package/dist/lib/node_modules/@lezer/common/dist/index.js +1 -1
  62. package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -1
  63. package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +1 -0
  64. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +1 -0
  65. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +1 -0
  66. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +1 -0
  67. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +1 -0
  68. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +1 -0
  69. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +1 -0
  70. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +1 -0
  71. package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +1 -0
  72. package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +1 -0
  73. package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +1 -0
  74. package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +1 -0
  75. package/dist/lib/node_modules/@tanstack/store/dist/esm/types.js +1 -0
  76. package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +4 -0
  77. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +1 -0
  78. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +1 -0
  79. package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +1 -0
  80. package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +1 -0
  81. package/dist/lib/src/Grid/index.js +1 -0
  82. package/dist/lib/src/Grid/src/Grid.css +1 -0
  83. package/dist/lib/src/Grid/src/Grid.vue.js +1 -0
  84. package/dist/lib/src/Grid/src/components/ActionBar.css +1 -0
  85. package/dist/lib/src/Grid/src/components/ActionBar.vue.js +1 -0
  86. package/dist/lib/src/Grid/src/components/CellEditor.css +1 -0
  87. package/dist/lib/src/Grid/src/components/CellEditor.vue.js +1 -0
  88. package/dist/lib/src/Grid/src/components/CellEditor2.css +1 -0
  89. package/dist/lib/src/Grid/src/components/ColumnFilter.css +1 -0
  90. package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +1 -0
  91. package/dist/lib/src/Grid/src/components/ColumnSettings.css +1 -0
  92. package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +1 -0
  93. package/dist/lib/src/Grid/src/components/DataTable.css +1 -0
  94. package/dist/lib/src/Grid/src/components/DataTable.vue.js +1 -0
  95. package/dist/lib/src/Grid/src/components/Pager.css +1 -0
  96. package/dist/lib/src/Grid/src/components/Pager.vue.js +1 -0
  97. package/dist/lib/src/Grid/src/components/QueryBar.css +1 -0
  98. package/dist/lib/src/Grid/src/components/QueryBar.vue.js +1 -0
  99. package/dist/lib/src/Grid/src/composables/useCellEditor.js +1 -0
  100. package/dist/lib/src/Grid/src/composables/useGridTable.js +1 -0
  101. package/dist/lib/src/Grid/src/styles/antd.css +1 -0
  102. package/dist/lib/src/Grid/src/utils/exportCsv.js +3 -0
  103. package/dist/lib/src/index.js +1 -1
  104. package/dist/lib/src/locale/lang/en-US.js +1 -1
  105. package/dist/lib/src/locale/lang/ja-JP.js +1 -1
  106. package/dist/lib/src/locale/lang/zh-CN.js +1 -1
  107. package/dist/lib/src/styles/tokens.css +1 -1
  108. package/package.json +6 -3
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @gsc-basic/components 开发说明
2
+
3
+ 使用 Vite 以 library mode 构建,默认样式体系为 UnoCSS。
4
+
5
+ ## 目录结构(核心)
6
+
7
+ ```
8
+ packages/components
9
+ index.js # 包入口(默认导出 install + re-export src/index.js)
10
+ package.json
11
+ vite.config.mjs # library build 配置(含 @ 别名)
12
+ uno.config.mjs # 本包 UnoCSS 配置(含 shadcn preset)
13
+ tsconfig.json # TS 项目编辑器别名:@/* -> src/*(shadcn 组件使用 TS)
14
+
15
+ components.json # shadcn-vue CLI 配置(本仓库 shadcn 部分使用 TS:typescript=true)
16
+ tailwind.config.js # 仅用于满足 shadcn-vue CLI 的占位文件(真实样式用 UnoCSS)
17
+
18
+ src/
19
+ index.js # 组件库对外导出入口(仅导出业务组件)
20
+ styles/tokens.css # 设计变量(含 shadcn tokens + dark 覆盖)
21
+
22
+ <ComponentName>/ # 对外组件(示例:Grid/、ConfigProvider/ 等)
23
+ index.js # withInstall 包装导出
24
+ src/*.vue # 组件实现
25
+
26
+ components/ui/** # shadcn-vue 生成/维护的内部 UI 组件(不要从 src/index.js 导出)
27
+ lib/** # 内部工具(例如 cn class 合并)
28
+
29
+ stories/**/*.stories.js # Storybook stories
30
+ ```
31
+
32
+ ## 新增“对外组件”的推荐流程
33
+
34
+ 1. 建目录:`packages/components/src/<ComponentName>/src/<ComponentName>.vue`
35
+
36
+ 2. 写导出文件:`packages/components/src/<ComponentName>/index.js`
37
+
38
+ 推荐模板:
39
+
40
+ ```js
41
+ import { withInstall } from '@gsc-basic/utils';
42
+ import Comp from './src/<ComponentName>.vue';
43
+
44
+ export const GscComponentName = withInstall(Comp);
45
+ export default GscComponentName;
46
+ ```
47
+
48
+ 3. 在 `packages/components/src/index.js` 里 re-export:
49
+
50
+ ```js
51
+ export * from './<ComponentName>';
52
+ ```
53
+
54
+ 4. 增加 Storybook:`packages/components/stories/<ComponentName>.stories.js`
55
+
56
+ ## Storybook / stories 编写规范
57
+
58
+ - stories 目录:`packages/components/stories/**/*.stories.js`
59
+ - 组件库对外组件:推荐从 `@gsc-basic/components` 引入(走真实导出路径)
package/dist/es/index.js CHANGED
@@ -1,35 +1,39 @@
1
1
  import * as e from "./src/index.js";
2
- import { configProviderContextKey as f, defaultInitialZIndex as i, defaultNamespace as l, localeContextKey as s, sizeInjectionKey as d, zIndexContextKey as x } from "./src/ConfigProvider/src/constants.js";
3
- import { provideGlobalConfig as p, useGlobalComponentSettings as m, useGlobalConfig as u } from "./src/ConfigProvider/src/useGlobalConfig.js";
4
- import { GscConfigProvider as G } from "./src/ConfigProvider/index.js";
5
- import { GscCodeEditor as y } from "./src/CodeEditor/index.js";
6
- import { GscScaleScreen as K } from "./src/ScaleScreen/index.js";
7
- import { GscVideoBackground as b } from "./src/VideoBackground/index.js";
8
- import { default as z } from "./src/locale/lang/zh-CN.js";
9
- import { default as j } from "./src/locale/lang/en-US.js";
10
- import { default as h } from "./src/locale/lang/ja-JP.js";
11
- const r = {
12
- install: (o) => {
13
- for (const t in e)
14
- o.use(e[t]);
2
+ import { default as a } from "./src/locale/lang/zh-CN.js";
3
+ import { default as s } from "./src/locale/lang/en-US.js";
4
+ import { default as d } from "./src/locale/lang/ja-JP.js";
5
+ import { configProviderContextKey as p, defaultInitialZIndex as m, defaultNamespace as u, localeContextKey as C, sizeInjectionKey as G, zIndexContextKey as g } from "./src/ConfigProvider/src/constants.js";
6
+ import { provideGlobalConfig as b, useGlobalComponentSettings as I, useGlobalConfig as K } from "./src/ConfigProvider/src/useGlobalConfig.js";
7
+ import { GscConfigProvider as S } from "./src/ConfigProvider/index.js";
8
+ import { GscCodeEditor as v } from "./src/CodeEditor/index.js";
9
+ import { GscScaleScreen as N } from "./src/ScaleScreen/index.js";
10
+ import { GscVideoBackground as k } from "./src/VideoBackground/index.js";
11
+ import { GscGrid as E } from "./src/Grid/index.js";
12
+ const n = {
13
+ install: (t) => {
14
+ for (const r in e) {
15
+ const o = e[r];
16
+ o && (typeof o == "function" || typeof o == "object") && "install" in o && t.use(o);
17
+ }
15
18
  }
16
19
  };
17
20
  export {
18
- y as GscCodeEditor,
19
- G as GscConfigProvider,
20
- K as GscScaleScreen,
21
- b as GscVideoBackground,
22
- f as configProviderContextKey,
23
- r as default,
24
- i as defaultInitialZIndex,
25
- l as defaultNamespace,
26
- j as enUS,
27
- h as jaJP,
28
- s as localeContextKey,
29
- p as provideGlobalConfig,
30
- d as sizeInjectionKey,
31
- m as useGlobalComponentSettings,
32
- u as useGlobalConfig,
33
- x as zIndexContextKey,
34
- z as zhCN
21
+ v as GscCodeEditor,
22
+ S as GscConfigProvider,
23
+ E as GscGrid,
24
+ N as GscScaleScreen,
25
+ k as GscVideoBackground,
26
+ p as configProviderContextKey,
27
+ n as default,
28
+ m as defaultInitialZIndex,
29
+ u as defaultNamespace,
30
+ s as enUS,
31
+ d as jaJP,
32
+ C as localeContextKey,
33
+ b as provideGlobalConfig,
34
+ G as sizeInjectionKey,
35
+ I as useGlobalComponentSettings,
36
+ K as useGlobalConfig,
37
+ g as zIndexContextKey,
38
+ a as zhCN
35
39
  };
@@ -4,7 +4,7 @@ import { IndentContext as ie, getIndentation as ue, indentString as R, syntaxTre
4
4
  import { NodeProp as F } from "../../../@lezer/common/dist/index.js";
5
5
  const Ye = (e) => {
6
6
  let { state: t } = e, r = t.doc.lineAt(t.selection.main.from), n = X(e.state, r.from);
7
- return n.line ? Ze(e) : n.block ? we(e) : !1;
7
+ return n.line ? Ze(e) : n.block ? _e(e) : !1;
8
8
  };
9
9
  function Q(e, t) {
10
10
  return ({ state: r, dispatch: n }) => {
@@ -22,7 +22,7 @@ const Ze = /* @__PURE__ */ Q(
22
22
  fe,
23
23
  0
24
24
  /* CommentOption.Toggle */
25
- ), we = /* @__PURE__ */ Q(
25
+ ), _e = /* @__PURE__ */ Q(
26
26
  (e, t) => fe(e, t, et(t)),
27
27
  0
28
28
  /* CommentOption.Toggle */
@@ -32,7 +32,7 @@ function X(e, t) {
32
32
  return r.length ? r[0] : {};
33
33
  }
34
34
  const M = 50;
35
- function _e(e, { open: t, close: r }, n, l) {
35
+ function we(e, { open: t, close: r }, n, l) {
36
36
  let o = e.sliceDoc(n - M, n), c = e.sliceDoc(l, l + M), s = /\s*$/.exec(o)[0].length, i = /^\s*/.exec(c)[0].length, f = o.length - s;
37
37
  if (o.slice(f - t.length, f) == t && c.slice(i, i + r.length) == r)
38
38
  return {
@@ -67,7 +67,7 @@ function fe(e, t, r = t.selection.ranges) {
67
67
  let n = r.map((o) => X(t, o.from).block);
68
68
  if (!n.every((o) => o))
69
69
  return null;
70
- let l = r.map((o, c) => _e(t, n[c], o.from, o.to));
70
+ let l = r.map((o, c) => we(t, n[c], o.from, o.to));
71
71
  if (e != 2 && !l.every((o) => o))
72
72
  return { changes: t.changes(r.map((o, c) => l[c] ? [] : [{ from: o.from, insert: n[c].open + " " }, { from: o.to, insert: " " + n[c].close }])) };
73
73
  if (e != 1 && l.some((o) => o)) {
@@ -441,7 +441,7 @@ const be = (e) => Te(e, !1), Re = (e) => Te(e, !0);
441
441
  function ve(e, t) {
442
442
  return y(e, (r) => e.moveVertically(r, t, xe(e).height));
443
443
  }
444
- const j = (e) => ve(e, !1), w = (e) => ve(e, !0), Tt = (e) => y(e, (t) => S(e, t, !0)), bt = (e) => y(e, (t) => S(e, t, !1)), Rt = (e) => y(e, (t) => S(e, t, !d(e))), vt = (e) => y(e, (t) => S(e, t, d(e))), It = (e) => y(e, (t) => a.cursor(e.lineBlockAt(t.head).from)), Ut = (e) => y(e, (t) => a.cursor(e.lineBlockAt(t.head).to)), _ = ({ state: e, dispatch: t }) => (t(k(e, { anchor: 0 })), !0), ee = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.doc.length })), !0), te = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: 0 })), !0), ne = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: e.doc.length })), !0), Vt = ({ state: e, dispatch: t }) => (t(e.update({ selection: { anchor: 0, head: e.doc.length }, userEvent: "select" })), !0), Nt = ({ state: e, dispatch: t }) => {
444
+ const j = (e) => ve(e, !1), _ = (e) => ve(e, !0), Tt = (e) => y(e, (t) => S(e, t, !0)), bt = (e) => y(e, (t) => S(e, t, !1)), Rt = (e) => y(e, (t) => S(e, t, !d(e))), vt = (e) => y(e, (t) => S(e, t, d(e))), It = (e) => y(e, (t) => a.cursor(e.lineBlockAt(t.head).from)), Ut = (e) => y(e, (t) => a.cursor(e.lineBlockAt(t.head).to)), w = ({ state: e, dispatch: t }) => (t(k(e, { anchor: 0 })), !0), ee = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.doc.length })), !0), te = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: 0 })), !0), ne = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: e.doc.length })), !0), Vt = ({ state: e, dispatch: t }) => (t(e.update({ selection: { anchor: 0, head: e.doc.length }, userEvent: "select" })), !0), Nt = ({ state: e, dispatch: t }) => {
445
445
  let r = N(e).map(({ from: n, to: l }) => a.range(n, Math.min(l + 1, e.doc.length)));
446
446
  return t(e.update({ selection: a.create(r), userEvent: "select" })), !0;
447
447
  }, Pt = ({ state: e, dispatch: t }) => {
@@ -608,9 +608,15 @@ function Ge(e, t, r) {
608
608
  if (e.readOnly)
609
609
  return !1;
610
610
  let n = [];
611
- for (let l of N(e))
612
- r ? n.push({ from: l.from, insert: e.doc.slice(l.from, l.to) + e.lineBreak }) : n.push({ from: l.to, insert: e.lineBreak + e.doc.slice(l.from, l.to) });
613
- return t(e.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0;
611
+ for (let o of N(e))
612
+ r ? n.push({ from: o.from, insert: e.doc.slice(o.from, o.to) + e.lineBreak }) : n.push({ from: o.to, insert: e.lineBreak + e.doc.slice(o.from, o.to) });
613
+ let l = e.changes(n);
614
+ return t(e.update({
615
+ changes: l,
616
+ selection: e.selection.map(l, r ? 1 : -1),
617
+ scrollIntoView: !0,
618
+ userEvent: "input.copyline"
619
+ })), !0;
614
620
  }
615
621
  const Yt = ({ state: e, dispatch: t }) => Ge(e, t, !1), Zt = ({ state: e, dispatch: t }) => Ge(e, t, !0), jt = (e) => {
616
622
  if (e.state.readOnly)
@@ -625,19 +631,19 @@ const Yt = ({ state: e, dispatch: t }) => Ge(e, t, !1), Zt = ({ state: e, dispat
625
631
  }).map(r);
626
632
  return e.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0;
627
633
  };
628
- function wt(e, t) {
634
+ function _t(e, t) {
629
635
  if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(t - 1, t + 1)))
630
636
  return { from: t, to: t };
631
637
  let r = W(e).resolveInner(t), n = r.childBefore(t), l = r.childAfter(t), o;
632
638
  return n && l && n.to <= t && l.from >= t && (o = n.type.prop(F.closedBy)) && o.indexOf(l.name) > -1 && e.doc.lineAt(n.to).from == e.doc.lineAt(l.from).from && !/\S/.test(e.sliceDoc(n.to, l.from)) ? { from: n.to, to: l.from } : null;
633
639
  }
634
- const re = /* @__PURE__ */ Fe(!1), _t = /* @__PURE__ */ Fe(!0);
640
+ const re = /* @__PURE__ */ Fe(!1), wt = /* @__PURE__ */ Fe(!0);
635
641
  function Fe(e) {
636
642
  return ({ state: t, dispatch: r }) => {
637
643
  if (t.readOnly)
638
644
  return !1;
639
645
  let n = t.changeByRange((l) => {
640
- let { from: o, to: c } = l, s = t.doc.lineAt(o), i = !e && o == c && wt(t, o);
646
+ let { from: o, to: c } = l, s = t.doc.lineAt(o), i = !e && o == c && _t(t, o);
641
647
  e && (o = c = (c <= s.to ? s : t.doc.lineAt(c)).to);
642
648
  let f = new ie(t, { simulateBreak: o, simulateDoubleBreak: !!i }), u = ue(f, o);
643
649
  for (u == null && (u = $(/^\s*/.exec(t.doc.lineAt(o).text)[0], t.tabSize)); c < s.to && /\s/.test(s.text[c - s.from]); )
@@ -714,15 +720,15 @@ const en = ({ state: e, dispatch: t }) => {
714
720
  { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: dt, shift: Mt, preventDefault: !0 },
715
721
  { mac: "Cmd-ArrowRight", run: Bt, shift: vt, preventDefault: !0 },
716
722
  { key: "ArrowUp", run: Se, shift: be, preventDefault: !0 },
717
- { mac: "Cmd-ArrowUp", run: _, shift: te },
723
+ { mac: "Cmd-ArrowUp", run: w, shift: te },
718
724
  { mac: "Ctrl-ArrowUp", run: Z, shift: j },
719
725
  { key: "ArrowDown", run: De, shift: Re, preventDefault: !0 },
720
726
  { mac: "Cmd-ArrowDown", run: ee, shift: ne },
721
- { mac: "Ctrl-ArrowDown", run: q, shift: w },
727
+ { mac: "Ctrl-ArrowDown", run: q, shift: _ },
722
728
  { key: "PageUp", run: Z, shift: j },
723
- { key: "PageDown", run: q, shift: w },
729
+ { key: "PageDown", run: q, shift: _ },
724
730
  { key: "Home", run: kt, shift: bt, preventDefault: !0 },
725
- { key: "Mod-Home", run: _, shift: te },
731
+ { key: "Mod-Home", run: w, shift: te },
726
732
  { key: "End", run: yt, shift: Tt, preventDefault: !0 },
727
733
  { key: "Mod-End", run: ee, shift: ne },
728
734
  { key: "Enter", run: re, shift: re },
@@ -743,7 +749,7 @@ const en = ({ state: e, dispatch: t }) => {
743
749
  { key: "Mod-Alt-ArrowUp", run: Jt },
744
750
  { key: "Mod-Alt-ArrowDown", run: Gt },
745
751
  { key: "Escape", run: Ft },
746
- { key: "Mod-Enter", run: _t },
752
+ { key: "Mod-Enter", run: wt },
747
753
  { key: "Alt-l", mac: "Ctrl-l", run: Nt },
748
754
  { key: "Mod-i", run: Pt, preventDefault: !0 },
749
755
  { key: "Mod-[", run: He },
@@ -763,7 +769,7 @@ export {
763
769
  ye as cursorCharLeft,
764
770
  ke as cursorCharRight,
765
771
  ee as cursorDocEnd,
766
- _ as cursorDocStart,
772
+ w as cursorDocStart,
767
773
  ht as cursorGroupLeft,
768
774
  dt as cursorGroupRight,
769
775
  kt as cursorLineBoundaryBackward,
@@ -795,7 +801,7 @@ export {
795
801
  ze as indentMore,
796
802
  en as indentSelection,
797
803
  hn as indentWithTab,
798
- _t as insertBlankLine,
804
+ wt as insertBlankLine,
799
805
  re as insertNewlineAndIndent,
800
806
  rt as invertedEffects,
801
807
  nt as isolateHistory,
@@ -819,7 +825,7 @@ export {
819
825
  Ut as selectLineEnd,
820
826
  It as selectLineStart,
821
827
  be as selectLineUp,
822
- w as selectPageDown,
828
+ _ as selectPageDown,
823
829
  j as selectPageUp,
824
830
  Pt as selectParentSyntax,
825
831
  Et as selectSyntaxLeft,
@@ -828,7 +834,7 @@ export {
828
834
  $t as splitLine,
829
835
  rn as standardKeymap,
830
836
  je as toggleBlockComment,
831
- we as toggleBlockCommentByLine,
837
+ _e as toggleBlockCommentByLine,
832
838
  Ye as toggleComment,
833
839
  Ze as toggleLineComment,
834
840
  tn as toggleTabFocusMode,