@fileverse-dev/ddoc 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +30 -0
- package/dist/App.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +26234 -0
- package/dist/index.umd.js +356 -0
- package/dist/main.d.ts +1 -0
- package/dist/packages/ddoc/color-selector.d.ts +14 -0
- package/dist/packages/ddoc/common/button.d.ts +20 -0
- package/dist/packages/ddoc/common/cutsom-tooltip.d.ts +8 -0
- package/dist/packages/ddoc/common/dropdown.d.ts +12 -0
- package/dist/packages/ddoc/common/icon.d.ts +8 -0
- package/dist/packages/ddoc/common/spinner.d.ts +6 -0
- package/dist/packages/ddoc/common/surface.d.ts +7 -0
- package/dist/packages/ddoc/common/toolbar.d.ts +28 -0
- package/dist/packages/ddoc/common/types.d.ts +19 -0
- package/dist/packages/ddoc/ddoc-editor.d.ts +4 -0
- package/dist/packages/ddoc/editor-bubble-menu.d.ts +12 -0
- package/dist/packages/ddoc/editor-toolbar.d.ts +6 -0
- package/dist/packages/ddoc/editor-utils.d.ts +56 -0
- package/dist/packages/ddoc/extensions/action-button/action-button-node-view.d.ts +3 -0
- package/dist/packages/ddoc/extensions/action-button/action-button.d.ts +16 -0
- package/dist/packages/ddoc/extensions/action-button/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/action-button/modal.d.ts +8 -0
- package/dist/packages/ddoc/extensions/custom-keymap.d.ts +14 -0
- package/dist/packages/ddoc/extensions/d-block/dblock-node-view.d.ts +4 -0
- package/dist/packages/ddoc/extensions/d-block/dblock.d.ts +19 -0
- package/dist/packages/ddoc/extensions/d-block/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/default-extension.d.ts +5 -0
- package/dist/packages/ddoc/extensions/doc.d.ts +3 -0
- package/dist/packages/ddoc/extensions/document/document.d.ts +2 -0
- package/dist/packages/ddoc/extensions/document/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/horizontal-rule.d.ts +2 -0
- package/dist/packages/ddoc/extensions/iframe/iframe.d.ts +27 -0
- package/dist/packages/ddoc/extensions/iframe/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/multi-column/column-selection.d.ts +17 -0
- package/dist/packages/ddoc/extensions/multi-column/column.d.ts +4 -0
- package/dist/packages/ddoc/extensions/multi-column/columns.d.ts +18 -0
- package/dist/packages/ddoc/extensions/multi-column/index.d.ts +11 -0
- package/dist/packages/ddoc/extensions/multi-column/menus/columns-menu.d.ts +4 -0
- package/dist/packages/ddoc/extensions/multi-column/menus/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/multi-column/utils.d.ts +22 -0
- package/dist/packages/ddoc/extensions/resizable-media/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/resizable-media/media-paste-drop-plugin/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/resizable-media/media-paste-drop-plugin/media-paste-drop-plugin.d.ts +12 -0
- package/dist/packages/ddoc/extensions/resizable-media/resizable-media-node-view.d.ts +3 -0
- package/dist/packages/ddoc/extensions/resizable-media/resizable-media.d.ts +27 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/index.d.ts +5 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/table-view.d.ts +18 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/table.d.ts +56 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/utilities/create-cell.d.ts +3 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/utilities/create-table.d.ts +3 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/utilities/delete-table-when-all-cells-selected.d.ts +3 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/utilities/get-table-node-types.d.ts +5 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table/utilities/is-cell-selection.d.ts +3 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-cell/index.d.ts +4 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-cell/table-cell-node-view.d.ts +4 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-cell/table-cell.d.ts +6 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-header/index.d.ts +4 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-header/table-header.d.ts +6 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-row/index.d.ts +4 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-row/table-row-node-view.d.ts +17 -0
- package/dist/packages/ddoc/extensions/supercharged-table/extension-table-row/table-row.d.ts +7 -0
- package/dist/packages/ddoc/extensions/supercharged-table/index.d.ts +5 -0
- package/dist/packages/ddoc/extensions/supercharged-table/supercharged-table-kit.d.ts +3 -0
- package/dist/packages/ddoc/extensions/trailing-node/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/trailing-node/trailing-node.d.ts +12 -0
- package/dist/packages/ddoc/extensions/twitter-embed/embedded-tweet.d.ts +18 -0
- package/dist/packages/ddoc/extensions/twitter-embed/index.d.ts +1 -0
- package/dist/packages/ddoc/extensions/twitter-embed/tweet-component-node-view.d.ts +3 -0
- package/dist/packages/ddoc/hooks/use-content-item-actions.d.ts +10 -0
- package/dist/packages/ddoc/hooks/use-editing-context.d.ts +10 -0
- package/dist/packages/ddoc/hooks/use-visibility.d.ts +21 -0
- package/dist/packages/ddoc/navbar/navbar.d.ts +6 -0
- package/dist/packages/ddoc/node-selector.d.ts +10 -0
- package/dist/packages/ddoc/props.d.ts +27 -0
- package/dist/packages/ddoc/slash-comand.d.ts +5 -0
- package/dist/packages/ddoc/utils/debounce.d.ts +1 -0
- package/dist/packages/ddoc/utils/get-render-container.d.ts +4 -0
- package/dist/packages/ddoc/utils/upload-images.d.ts +8 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +81 -0
package/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# React + TypeScript + Vite
|
2
|
+
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
4
|
+
|
5
|
+
Currently, two official plugins are available:
|
6
|
+
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
9
|
+
|
10
|
+
## Expanding the ESLint configuration
|
11
|
+
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
13
|
+
|
14
|
+
- Configure the top-level `parserOptions` property like this:
|
15
|
+
|
16
|
+
```js
|
17
|
+
export default {
|
18
|
+
// other rules...
|
19
|
+
parserOptions: {
|
20
|
+
ecmaVersion: 'latest',
|
21
|
+
sourceType: 'module',
|
22
|
+
project: ['./tsconfig.json', './tsconfig.node.json'],
|
23
|
+
tsconfigRootDir: __dirname,
|
24
|
+
},
|
25
|
+
}
|
26
|
+
```
|
27
|
+
|
28
|
+
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
29
|
+
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
30
|
+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
package/dist/App.d.ts
ADDED
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export { default as DdocEditor } from './packages/ddoc/ddoc-editor';
|