@difizen/libro-core 0.1.21 → 0.1.23

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.
@@ -73,7 +73,7 @@ export var DefaultDatePicker = function DefaultDatePicker(_ref6) {
73
73
  return /*#__PURE__*/_jsx(DatePicker, {
74
74
  value: dayjs(value, dateFormat),
75
75
  onChange: function onChange(date, dateString) {
76
- return _onChange6(dateString);
76
+ return _onChange6(dateString.toString());
77
77
  }
78
78
  });
79
79
  };
@@ -1,7 +1,7 @@
1
1
  import { ModalContribution, ToolbarContribution } from '@difizen/mana-app';
2
2
  import type { ToolbarRegistry } from '@difizen/mana-app';
3
3
  export declare class SettingsContribution implements ModalContribution, ToolbarContribution {
4
- registerModal(): import("@difizen/mana-app").ModalItem<void>;
4
+ registerModal(): import("@difizen/mana-app").ModalItem<any>;
5
5
  registerToolbarItems(registry: ToolbarRegistry): void;
6
6
  }
7
7
  //# sourceMappingURL=settings-contribution.d.ts.map
@@ -103,22 +103,19 @@ export var LibroToolbarContribution = (_dec = singleton({
103
103
  group: ['group2'],
104
104
  order: 'c-all'
105
105
  });
106
- registry.registerItem({
107
- id: DocumentCommands['FormatCell'].id,
108
- command: DocumentCommands['FormatCell'].id,
109
- tooltip: /*#__PURE__*/_jsxs("div", {
110
- className: "libro-side-tooltip",
111
- children: [/*#__PURE__*/_jsx("span", {
112
- className: "libro-tooltip-text",
113
- children: l10n.t('格式化代码')
114
- }), /*#__PURE__*/_jsx("span", {
115
- className: "libro-tooltip-keybind",
116
- children: "Shift+Option+F"
117
- })]
118
- }),
119
- group: ['sidetoolbar1'],
120
- order: 'd'
121
- });
106
+ // registry.registerItem({
107
+ // id: DocumentCommands['FormatCell'].id,
108
+ // command: DocumentCommands['FormatCell'].id,
109
+ // tooltip: (
110
+ // <div className="libro-side-tooltip">
111
+ // <span className="libro-tooltip-text">{l10n.t('格式化代码')}</span>
112
+ // <span className="libro-tooltip-keybind">Shift+Option+F</span>
113
+ // </div>
114
+ // ),
115
+
116
+ // group: ['sidetoolbar1'],
117
+ // order: 'd',
118
+ // });
122
119
  registry.registerItem({
123
120
  id: NotebookCommands['MoveCellUp'].id,
124
121
  command: NotebookCommands['MoveCellUp'].id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-core",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@ant-design/icons": "^5.1.0",
37
- "@difizen/libro-code-editor": "^0.1.21",
38
- "@difizen/libro-common": "^0.1.21",
39
- "@difizen/libro-shared-model": "^0.1.21",
40
- "@difizen/libro-virtualized": "^0.1.21",
37
+ "@difizen/libro-code-editor": "^0.1.23",
38
+ "@difizen/libro-common": "^0.1.23",
39
+ "@difizen/libro-shared-model": "^0.1.23",
40
+ "@difizen/libro-virtualized": "^0.1.23",
41
41
  "@difizen/mana-app": "latest",
42
42
  "@difizen/mana-l10n": "latest",
43
43
  "@difizen/mana-react": "latest",
@@ -60,6 +60,6 @@ export const DefaultDatePicker: React.FC<RenderProps<string>> = ({
60
60
  }) => (
61
61
  <DatePicker
62
62
  value={dayjs(value, dateFormat)}
63
- onChange={(date, dateString) => onChange(dateString)}
63
+ onChange={(date, dateString) => onChange(dateString.toString())}
64
64
  />
65
65
  );
@@ -94,19 +94,19 @@ export class LibroToolbarContribution implements ToolbarContribution {
94
94
  group: ['group2'],
95
95
  order: 'c-all',
96
96
  });
97
- registry.registerItem({
98
- id: DocumentCommands['FormatCell'].id,
99
- command: DocumentCommands['FormatCell'].id,
100
- tooltip: (
101
- <div className="libro-side-tooltip">
102
- <span className="libro-tooltip-text">{l10n.t('格式化代码')}</span>
103
- <span className="libro-tooltip-keybind">Shift+Option+F</span>
104
- </div>
105
- ),
106
-
107
- group: ['sidetoolbar1'],
108
- order: 'd',
109
- });
97
+ // registry.registerItem({
98
+ // id: DocumentCommands['FormatCell'].id,
99
+ // command: DocumentCommands['FormatCell'].id,
100
+ // tooltip: (
101
+ // <div className="libro-side-tooltip">
102
+ // <span className="libro-tooltip-text">{l10n.t('格式化代码')}</span>
103
+ // <span className="libro-tooltip-keybind">Shift+Option+F</span>
104
+ // </div>
105
+ // ),
106
+
107
+ // group: ['sidetoolbar1'],
108
+ // order: 'd',
109
+ // });
110
110
  registry.registerItem({
111
111
  id: NotebookCommands['MoveCellUp'].id,
112
112
  command: NotebookCommands['MoveCellUp'].id,