mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-01 04:50:27 +02:00
Next (#3093)
* remove some key usage from core, refactor Operations.apply * undeprecate some methods * convert more key usage to paths * update deprecations * convert selection commands to use all paths * refactor word boundary selection logic * convert many at-range commands to use paths * convert wrapBlock and wrapInline to not use keys * cleanup * remove chainability from editor * simplify commands, queries and middleware * convert deleteAtRange * remove key usage from schema, deprecate *ByKey methods * migrate *ByKey tests, remove index from *ByPath signatures * rename at-current-range tests * deprecate mode key usage, migrate more tests away from keys * deprecate range and point methods which rely on keys to work * refactor insertBlock, without fixing warnings * add pathRef/pointRef, fix insertBlock/Inline deprecations, work on insertFragment * refactor insertFragment * get rich-text example rendering * fix lint * refactor query files, fix more tests * remove unused queries, refactor others * deprecate splitDescendantsByPath * merge master * add typescript, convert slate, slate-hyperscript, slate-plain-serializer * add Point, Path, Range, Annotation tests * add Annotation, Change, Element, Fragment, Mark, Range, Selection, Value interfaces tests * add Operation and Text tests * add Node tests * get operations and normalization tests working for slate * get *AtPath command tests passing * rename *AtPath command tests * rename * get *AtPoint tests working * rename * rename * add value queries tests * add element, mark and path queries tests * convert most on-selection tests * convert on-selection commands * rename * get addMarks and delete commands working * rename * rename * rename * refactor value.positions(), work on delete tests * progress on delete tests * more delete work * finish delete tests * start converting to at-based commands * restructure query tests * restructure operations tests * more work converting to multi-purpose commands * lots of progress on converting to at-based commands * add unwrapNodes * remove setValue * more progress * refactor node commands to use consistent matching logic * cleanup, get non-fragment commands passing * remove annotations and isAtomic * rename surround/pluck to cover/uncover * add location concept, change at-path to from-path for iterables * refactor batches * add location-based queries * refactor hanging logic * more location query work * renaming * use getMatch more * add split to wrap/unwrap * flip levels/ancestors ordering * switch splitNodes to use levels * change split to always:false by default * fix tests * add more queries tests * fixing more delete logic * add more splitNodes tests * get rest of delete tests passing * fix location-based logic in some commands * cleanup * get previous packages tests passing again * add slate-history package * start slate-schema work * start of react working * rendering fixes * get rich and plain text examples working * get image example working with hooks and dropping * refactor onDrop to be internal * inline more event handlers * refactor lots of event-related logic * change rendering to use render props * delete unused stuff * cleanup dom utils * remove unused deps * remove unnecessary packages, add placeholder * remove slate-react-placeholder package * remove unused dep * remove unnecessary tests, fix readonly example * convert checklists example * switch to next from webpack * get link example working * convert more examples * preserve keys, memoized leafs/texts, fix node lookup * fix to always useLayoutEffect for ordering * fix annotations to be maps, memoize elements * remove Change interface * remove String interface * rename Node.entries to Node.nodes * remove unnecessary value queries * default to selection when iterating, cleanup * remove unused files * update scroll into view logic * fix undoing, remove constructor types * dont sync selection while composing * add workflows * remove unused deps * convert mentions example * tweaks * convert remaining examples * rename h to jsx, update schema * fix schema tests * fix slate-schema logic and tests * really fix slate-schema and forced-layout example * get start of insertFragment tests working * remove Fragment interface * remove debugger * get all non-skipped tests passing * cleanup deps * run prettier * configure eslint for typescript * more eslint fixes... * more passing * update some docs * fix examples * port windows undo hotkey change * fix deps, add basic firefox support * add event overriding, update walkthroughs * add commands, remove classes, cleanup examples * cleanup rollup config * update tests * rename queries tests * update other tests * update walkthroughs * cleanup interface exports * cleanup, change mark transforms to require location * undo mark transform change * more * fix tests * fix example * update walkthroughs * update docs * update docs * remove annotations * remove value, move selection and children to editor * add migrating doc * fix lint * fix tests * fix DOM types aliasing * add next export * update deps, fix prod build * fix prod build * update scripts * update docs and changelogs * update workflow and pull request template
This commit is contained in:
186
package.json
186
package.json
@@ -1,114 +1,92 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "slate-packages",
|
||||
"type": "module",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-eslint": "^8.2.1",
|
||||
"babel-loader": "^7.1.2",
|
||||
"babel-plugin-external-helpers": "^6.22.0",
|
||||
"babel-plugin-module-resolver": "^3.1.1",
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"blanket": "^1.2.3",
|
||||
"chalk": "^1.1.3",
|
||||
"commander": "^2.15.1",
|
||||
"copy-webpack-plugin": "^4.4.1",
|
||||
"cross-env": "^5.1.3",
|
||||
"css-loader": "^0.28.9",
|
||||
"element-closest": "^2.0.2",
|
||||
"emojis": "^1.0.10",
|
||||
"emotion": "^10.0.9",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-config-prettier": "^2.9.0",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
"eslint-plugin-prettier": "^2.5.0",
|
||||
"eslint-plugin-react": "^7.6.0",
|
||||
"extract-text-webpack-plugin": "^3.0.2",
|
||||
"faker": "^3.1.0",
|
||||
"figures": "^2.0.0",
|
||||
"fs-promise": "^1.0.0",
|
||||
"gh-pages": "^0.11.0",
|
||||
"html-webpack-plugin": "^2.30.1",
|
||||
"html-webpack-template": "^6.1.0",
|
||||
"image-extensions": "^1.1.0",
|
||||
"immutable": "^3.8.1",
|
||||
"is-hotkey": "^0.1.4",
|
||||
"is-url": "^1.2.2",
|
||||
"jsdom": "^11.5.1",
|
||||
"lerna": "^2.7.1",
|
||||
"lodash": "^4.17.4",
|
||||
"matcha": "^0.7.0",
|
||||
"memoize-one": "^4.0.0",
|
||||
"mocha": "^2.5.3",
|
||||
"mocha-lcov-reporter": "^1.3.0",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"prettier": "^1.10.2",
|
||||
"prismjs": "^1.5.1",
|
||||
"react": "^16.6.3",
|
||||
"react-dom": "^16.6.3",
|
||||
"react-hot-loader": "^3.1.3",
|
||||
"react-portal": "^4.1.5",
|
||||
"react-router-dom": "^4.3.1",
|
||||
"react-values": "^0.3.0",
|
||||
"read-metadata": "^1.0.0",
|
||||
"rollup": "^0.55.1",
|
||||
"rollup-plugin-alias": "^1.4.0",
|
||||
"rollup-plugin-babel": "^3.0.3",
|
||||
"rollup-plugin-commonjs": "^8.3.0",
|
||||
"rollup-plugin-json": "^2.3.0",
|
||||
"rollup-plugin-node-builtins": "^2.1.2",
|
||||
"rollup-plugin-node-globals": "^1.1.0",
|
||||
"rollup-plugin-node-resolve": "^3.0.2",
|
||||
"rollup-plugin-replace": "^2.0.0",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"rollup-plugin-uglify": "^3.0.0",
|
||||
"source-map-loader": "^0.2.3",
|
||||
"source-map-support": "^0.4.0",
|
||||
"style-loader": "^0.20.2",
|
||||
"to-camel-case": "^1.0.0",
|
||||
"to-snake-case": "^1.0.0",
|
||||
"uglifyjs-webpack-plugin": "^1.1.8",
|
||||
"webpack": "^3.11.0",
|
||||
"webpack-dev-server": "^3.1.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"slate": "*",
|
||||
"slate-dev-benchmark": "*",
|
||||
"slate-dev-environment": "*",
|
||||
"slate-dev-test-utils": "*",
|
||||
"slate-html-serializer": "*",
|
||||
"slate-plain-serializer": "*",
|
||||
"slate-react": "*",
|
||||
"slate-react-placeholder": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"benchmark": "cross-env COMPARE=compare node --expose-gc ./tmp/benchmark/index.js",
|
||||
"benchmark:save": " yarn benchmark:prepare && node --expose-gc ./tmp/benchmark/index.js",
|
||||
"benchmark:prepare": "mkdir -p ./tmp && cross-env BABEL_ENV=benchmark babel benchmark --out-dir tmp/benchmark/",
|
||||
"bootstrap": "lerna bootstrap && yarn build",
|
||||
"build": "rollup --config ./support/rollup/config.js",
|
||||
"build:production": "cross-env NODE_ENV=production rollup --config ./support/rollup/config.js && cross-env NODE_ENV=production webpack --config support/webpack/config.js",
|
||||
"build:clean-fork": "rm ./build/CNAME",
|
||||
"clean": "lerna run clean && rm -rf ./node_modules ./dist ./build",
|
||||
"gh-pages": "gh-pages --dist ./build",
|
||||
"gh-pages:fork": "npm-run-all build:production build:clean-fork gh-pages",
|
||||
"build": "yarn build:rollup && yarn build:next",
|
||||
"build:next": "cd ./site && next build && next export",
|
||||
"build:rollup": "rollup --config ./config/rollup/rollup.config.js",
|
||||
"clean": "rm -rf ./node_modules ./packages/*/{dist,lib,node_modules} ./site/{.next,out}",
|
||||
"fix": "yarn fix:prettier && yarn fix:eslint",
|
||||
"fix:eslint": "yarn lint:eslint --fix",
|
||||
"fix:prettier": "yarn lint:prettier --write",
|
||||
"lint": "yarn lint:eslint && yarn lint:prettier",
|
||||
"lint:eslint": "eslint benchmark packages/*/src packages/*/test examples/*/*.js examples/dev/*/*.js",
|
||||
"lint:prettier": "prettier --list-different '**/*.{md,json,css}'",
|
||||
"open": "open http://localhost:8080",
|
||||
"prettier": "prettier --write '**/*.{js,jsx,md,json,css}'",
|
||||
"release": "yarn build:production && yarn test && yarn lint && lerna publish && yarn gh-pages",
|
||||
"server": "webpack-dev-server --config ./support/webpack/config.js",
|
||||
"start": "npm-run-all --parallel --print-label watch server",
|
||||
"test": "cross-env BABEL_ENV=test FORBID_WARNINGS=true mocha --require babel-core/register ./packages/*/test/index.js",
|
||||
"watch": "rollup --config ./support/rollup/config.js --watch"
|
||||
"lint:eslint": "eslint '**/*.{js,jsx,ts,tsx}'",
|
||||
"lint:prettier": "prettier --list-different '**/*.{css,md,js,jsx,json,ts,tsx}'",
|
||||
"open": "open http://localhost:3000",
|
||||
"release": "cross-env NODE_ENV=production yarn build:rollup && yarn test && yarn lint && lerna publish",
|
||||
"serve": "cd ./site && next",
|
||||
"start": "npm-run-all --parallel --print-label watch serve",
|
||||
"test": "FORBID_WARNINGS=true mocha --require ./config/babel/register ./packages/*/test/index.js",
|
||||
"test:debug": "FORBID_WARNINGS=true mocha debug --require ./config/babel/register ./packages/*/test/index.js",
|
||||
"watch": "yarn build:rollup --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.7.4",
|
||||
"@babel/core": "^7.7.4",
|
||||
"@babel/plugin-external-helpers": "^7.7.4",
|
||||
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.7.4",
|
||||
"@babel/plugin-transform-runtime": "^7.7.4",
|
||||
"@babel/polyfill": "^7.6.0",
|
||||
"@babel/preset-env": "^7.7.4",
|
||||
"@babel/preset-react": "^7.7.4",
|
||||
"@babel/preset-typescript": "^7.7.4",
|
||||
"@babel/register": "^7.7.4",
|
||||
"@babel/runtime": "^7.7.4",
|
||||
"@types/mocha": "^5.2.7",
|
||||
"@types/node": "^12.12.14",
|
||||
"@typescript-eslint/eslint-plugin": "^2.9.0",
|
||||
"@typescript-eslint/parser": "^2.9.0",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"babel-plugin-dev-expression": "^0.2.2",
|
||||
"babel-plugin-module-resolver": "^3.1.1",
|
||||
"cross-env": "^6.0.3",
|
||||
"emotion": "^10.0.9",
|
||||
"eslint": "^6.7.1",
|
||||
"eslint-config-prettier": "^6.7.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-prettier": "^3.1.1",
|
||||
"eslint-plugin-react": "^7.16.0",
|
||||
"faker": "^4.1.0",
|
||||
"image-extensions": "^1.1.0",
|
||||
"is-hotkey": "^0.1.6",
|
||||
"is-url": "^1.2.2",
|
||||
"lerna": "^3.19.0",
|
||||
"lodash": "^4.17.4",
|
||||
"mocha": "^6.2.0",
|
||||
"next": "^9.1.4",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"prettier": "^1.19.1",
|
||||
"prismjs": "^1.5.1",
|
||||
"react": "^16.12.0",
|
||||
"react-dom": "^16.12.0",
|
||||
"react-error-boundary": "^1.2.5",
|
||||
"react-router-dom": "^5.1.2",
|
||||
"react-values": "^0.3.0",
|
||||
"rollup": "^1.27.5",
|
||||
"rollup-plugin-babel": "^4.3.3",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-json": "^4.0.0",
|
||||
"rollup-plugin-node-builtins": "^2.1.2",
|
||||
"rollup-plugin-node-globals": "^1.4.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-replace": "^2.2.0",
|
||||
"rollup-plugin-terser": "^5.1.2",
|
||||
"rollup-plugin-typescript2": "^0.25.2",
|
||||
"rollup-plugin-uglify": "^6.0.3",
|
||||
"slate": "^0.47.8",
|
||||
"slate-history": "^0.47.8",
|
||||
"slate-hyperscript": "^0.13.8",
|
||||
"slate-react": "^0.22.9",
|
||||
"slate-schema": "^0.47.8",
|
||||
"typescript": "^3.7.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/lodash": "^4.14.149",
|
||||
"@types/react": "^16.9.13"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user