Skip to content

Commit

Permalink
Merge pull request #2659 from udecode/fix/dts
Browse files Browse the repository at this point in the history
Fix dts
  • Loading branch information
zbeyens authored Oct 1, 2023
2 parents e9c6548 + 7be68e7 commit fb4e05f
Show file tree
Hide file tree
Showing 64 changed files with 346 additions and 238 deletions.
6 changes: 6 additions & 0 deletions .changeset/cyan-rules-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@udecode/slate': patch
'@udecode/plate-test-utils': patch
---

fix build (types)
14 changes: 14 additions & 0 deletions config/eslint/bases/next.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ module.exports = {
'import/prefer-default-export': 'off',
},
overrides: [
{
files: ['**/packages/**'],
excludedFiles: ['**/*.test.*', '**/*.spec.*', '**/*.fixtures.*', '**/__tests__/**/*', '**/apps/**/*'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: false,
includeInternal: false,
includeTypes: false,
},
],
}
},
{
files: ['apps/www/next.config.mjs'],
rules: {
Expand Down
5 changes: 4 additions & 1 deletion config/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ export default defineConfig((opts) => {
...opts,
entry: [INPUT_FILE],
format: ['cjs', 'esm'],
external: [],
skipNodeModulesBundle: true,
dts: true,
// dts: {
// only: true,
// resolve: false,
// },
sourcemap: true,
clean: true,
minify: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"gen:package": "yarn plop --plopfile scripts/plop/plopfile.cjs package",
"g:dev": "turbo --filter=www dev",
"g:dev:cli": "yarn workspace @udecode/plate-ui dev",
"g:lint": "turbo lint",
"g:lint": "turbo --filter \"./packages/**\" lint",
"g:lint:fix": "turbo lint:fix",
"g:lint:apps": "turbo --filter=www lint && cd templates/plate-playground-template && pnpm lint",
"g:lint:apps:fix": "turbo --filter=www lint --fix && cd templates/plate-playground-template && pnpm lint:fix",
Expand Down
1 change: 1 addition & 0 deletions packages/alignment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion packages/autoformat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
"typecheck": "yarn p:typecheck"
},
"dependencies": {
"@udecode/plate-common": "24.3.0"
"@udecode/plate-common": "24.3.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/basic-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/basic-marks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/block-quote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/break/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/caption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/utils/get-package-info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path';
import fs from 'fs-extra';
// eslint-disable-next-line import/no-extraneous-dependencies
import { type PackageJson } from 'type-fest';

/**
Expand Down
1 change: 1 addition & 0 deletions packages/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion packages/comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
"typecheck": "yarn p:typecheck"
},
"dependencies": {
"@udecode/plate-common": "24.3.0"
"@udecode/plate-common": "24.3.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"dependencies": {
"@udecode/slate": "24.3.0",
"@udecode/slate-react": "24.3.0",
"@udecode/slate-utils": "24.3.0",
"@udecode/utils": "24.3.0",
"@udecode/zustood": "^1.1.3",
"clsx": "^1.2.1",
Expand All @@ -57,6 +58,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/types/PlateRenderLeafProps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EText, TRenderLeafProps, TText, Value } from '@udecode/slate';
import { EText, TText, Value } from '@udecode/slate';
import { TRenderLeafProps } from '@udecode/slate-react';

import { PlateRenderNodeProps } from './PlateRenderNodeProps';

Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/types/slate-react/TEditableProps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { RenderLeafFn, TNodeEntry } from '@udecode/slate';
import { TNodeEntry } from '@udecode/slate';
import { RenderLeafFn } from '@udecode/slate-react';
import { Range } from 'slate';
import { EditableProps } from 'slate-react/dist/components/editable';

Expand Down
1 change: 1 addition & 0 deletions packages/cursor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions packages/dnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"dependencies": {
"@udecode/plate-common": "24.3.0",
"lodash": "^4.17.21",
"raf": "^3.4.1"
},
"peerDependencies": {
Expand All @@ -49,6 +50,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/emoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/excalidraw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/find-replace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions packages/floating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"typecheck": "yarn p:typecheck"
},
"dependencies": {
"@floating-ui/core": "^1.3.1",
"@floating-ui/react": "^0.22.3",
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@udecode/plate-common": "24.3.0"
Expand All @@ -48,6 +49,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion packages/font/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
"typecheck": "yarn p:typecheck"
},
"dependencies": {
"@udecode/plate-common": "24.3.0"
"@udecode/plate-common": "24.3.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/heading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/horizontal-rule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion packages/indent-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
"dependencies": {
"@udecode/plate-common": "24.3.0",
"@udecode/plate-indent": "24.3.0",
"@udecode/plate-list": "24.3.0"
"@udecode/plate-list": "24.3.0",
"clsx": "^1.2.1"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/indent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/juice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/kbd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/line-height/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion packages/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
},
"dependencies": {
"@udecode/plate-common": "24.3.0",
"@udecode/plate-reset-node": "24.3.0"
"@udecode/plate-reset-node": "24.3.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/mention/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"react-dom": ">=16.8.0",
"slate": ">=0.94.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.95.0"
},
"keywords": [
Expand Down
Loading

0 comments on commit fb4e05f

Please sign in to comment.