mirror of
https://github.com/codex-team/editor.js
synced 2024-05-10 02:16:46 +02:00
6c0555a322
* the popover component, vertical toolbox * toolbox position improved * popover width improved * always show the plus button * search field added * search input in popover * trying to create mobile toolbox * FIx mobile popover fixed positioning * Add mobile popover overlay * Hide mobile popover on scroll * Tmp * feat(toolbox): popover adapted for mobile devices (#2004) * FIx mobile popover fixed positioning * Add mobile popover overlay * Hide mobile popover on scroll * Alter toolbox buttons hover * Fix closing popover on overlay click * Tests fix * Fix onchange test * restore focus after toolbox closing by ESC * don't move toolbar by block-hover on mobile Resolves #1972 * popover mobile styles improved * Cleanup * Remove scroll event listener * Lock scroll on mobile * don't show shortcuts in mobile popover * Change data attr name * Remove unused styles * Remove unused listeners * disable hover on mobile popover * Scroll fix * Lint * Revert "Scroll fix" This reverts commit82deae543e
. * Return back background color for active state of toolbox buttons Co-authored-by: Peter Savchenko <specc.dev@gmail.com> * Vertical toolbox fixes (#2017) * Replace visibility property with display for hiding popover * Disable arrow right and left keys for popover * Revert "Replace visibility property with display for hiding popover" This reverts commitaf521cf6f2
. * Hide popover via setting max-height to 0 to fix animation in safari * Remove redundant condition * Extend element interface to avoid ts errors * Do not subscribe to block hovered if mobile * Add unsubscribing from overlay click event * Rename isMobile to isMobileScreen * Cleanup * fix: popover opening direction (#2022) * Change popover opening direction based on available space below it * Update check * Use cacheable decorator * Update src/components/flipper.ts Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com> * Fixes * Fix test * Clear search on popover hide * Fix popover width * Fix for tests * Update todos * Linter fixes * rm todo about beforeInsert because I have no idea what does it mean * i18n for search labels done * rm methods for hiding/showing of + * some code style update * Update CHANGELOG.md * make the list items a little bit compact * fix z-index issue caused by block-appearing animation also, improve popover padding for two reasons: - make the popover more consistent with the Table tool popover (in future, it can be done with the same api method) - make popover looks better * Some progress Use overriden config tmp * Cleanup * Proceed cleanup * Update tool-settings.d.ts * Get rid of isToolboxItemActive * Get rid of key * Filter out duplicates in conversion menu * Rename hash to id * Change function for generating hash * Cleanup * Further cleanup * [Feature] Multiple toolbox items: using of data overrides instead of config overrides (#2064) * Use data instead of config * check if active toolbox entry exists * comparison improved * eslint fix * rename toolbox types, simplify hasTools method * add empty line * wrong line * add multiple toobox note to the doc * Update toolbox configs merge logic * Add a test case * Add toolbox ui tests * Update tests * upd doc * Update header * Update changelog and package.json * Update changelog * Update jsdoc * Remove unused dependency * Make BlockTool's toolbox getter always return an array * Fix for unconfigured toolbox * Revert "Fix for unconfigured toolbox" This reverts commitdff1df2304
. * Change return type * Merge data overrides with actual block data when inserting a block * Revert "Merge data overrides with actual block data when inserting a block" This reverts commiteb0a59cc64
. * Merge tool's data with data overrides * Move merging block data with data overrides to insertNewBlock * Update changelog * Rename getDefaultBlockData to composeBlockData * Create block data on condition * Update types/api/blocks.d.ts Co-authored-by: Peter Savchenko <specc.dev@gmail.com> * Update src/components/modules/api/blocks.ts Co-authored-by: Peter Savchenko <specc.dev@gmail.com> Co-authored-by: Peter Savchenko <specc.dev@gmail.com> Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
106 lines
3.7 KiB
JSON
106 lines
3.7 KiB
JSON
{
|
|
"name": "@editorjs/editorjs",
|
|
"version": "2.25.0",
|
|
"description": "Editor.js — Native JS, based on API and Open Source",
|
|
"main": "dist/editor.js",
|
|
"types": "./types/index.d.ts",
|
|
"keywords": [
|
|
"codex editor",
|
|
"text editor",
|
|
"editor",
|
|
"editor.js",
|
|
"editorjs"
|
|
],
|
|
"scripts": {
|
|
"clear": "rimraf dist && mkdirp dist",
|
|
"build": "yarn clear && yarn svg && yarn build:webpack:prod",
|
|
"build:dev": "yarn clear && yarn svg && yarn build:webpack:dev",
|
|
"build:webpack:dev": "webpack --mode development --progress --display-error-details --display-entrypoints --watch",
|
|
"build:webpack:prod": "webpack --mode production",
|
|
"lint": "eslint src/ --ext .ts && yarn lint:tests",
|
|
"lint:errors": "eslint src/ --ext .ts --quiet",
|
|
"lint:fix": "eslint src/ --ext .ts --fix",
|
|
"lint:tests": "eslint test/ --ext .ts",
|
|
"svg": "svg-sprite-generate -d src/assets/ -o dist/sprite.svg",
|
|
"ci:pull_paragraph": "git submodule update --init ./src/tools/paragraph",
|
|
"pull_tools": "git submodule update --init --recursive",
|
|
"_tools:checkout": "git submodule foreach \"git checkout master || git checkout main\"",
|
|
"_tools:pull": "git submodule foreach git pull",
|
|
"_tools:yarn": "git submodule foreach yarn",
|
|
"_tools:build": "git submodule foreach yarn build",
|
|
"_tools:make": "yarn _tools:yarn && yarn _tools:build",
|
|
"tools:update": "yarn _tools:checkout && yarn _tools:pull && yarn _tools:make",
|
|
"test:e2e": "yarn build && cypress run",
|
|
"test:e2e:open": "yarn build && cypress open",
|
|
"devserver:start": "yarn build && node ./devserver.js"
|
|
},
|
|
"author": "CodeX",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/codex-team/editor.js.git"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.9.0",
|
|
"@babel/plugin-transform-runtime": "^7.9.0",
|
|
"@babel/polyfill": "^7.8.7",
|
|
"@babel/preset-env": "^7.9.5",
|
|
"@babel/preset-typescript": "^7.13.0",
|
|
"@babel/register": "^7.9.0",
|
|
"@babel/runtime": "^7.9.2",
|
|
"@codexteam/shortcuts": "^1.1.1",
|
|
"@cypress/code-coverage": "^3.9.2",
|
|
"@cypress/webpack-preprocessor": "^5.6.0",
|
|
"@editorjs/code": "^2.7.0",
|
|
"@editorjs/delimiter": "^1.2.0",
|
|
"@editorjs/header": "^2.6.1",
|
|
"@editorjs/simple-image": "^1.4.1",
|
|
"@types/node": "^14.14.35",
|
|
"@types/webpack": "^4.41.12",
|
|
"@types/webpack-env": "^1.15.2",
|
|
"babel-loader": "^8.1.0",
|
|
"babel-plugin-add-module-exports": "^1.0.0",
|
|
"babel-plugin-class-display-name": "^2.1.0",
|
|
"babel-plugin-istanbul": "^6.0.0",
|
|
"core-js": "3.6.5",
|
|
"css-loader": "^3.5.3",
|
|
"cssnano": "^4.1.10",
|
|
"cypress": "^6.8.0",
|
|
"cypress-intellij-reporter": "^0.0.6",
|
|
"eslint": "^6.8.0",
|
|
"eslint-config-codex": "^1.3.3",
|
|
"eslint-loader": "^4.0.2",
|
|
"eslint-plugin-chai-friendly": "^0.6.0",
|
|
"eslint-plugin-cypress": "^2.11.2",
|
|
"extract-text-webpack-plugin": "^3.0.2",
|
|
"html-janitor": "^2.0.4",
|
|
"license-webpack-plugin": "^2.1.4",
|
|
"mkdirp": "^1.0.4",
|
|
"postcss-apply": "^0.12.0",
|
|
"postcss-import": "^12.0.1",
|
|
"postcss-loader": "^3.0.0",
|
|
"postcss-nested": "^4.1.2",
|
|
"postcss-nested-ancestors": "^2.0.0",
|
|
"postcss-preset-env": "^6.6.0",
|
|
"raw-loader": "^4.0.1",
|
|
"rimraf": "^3.0.2",
|
|
"stylelint": "^13.3.3",
|
|
"svg-sprite-generator": "^0.0.7",
|
|
"terser-webpack-plugin": "^2.3.6",
|
|
"ts-loader": "^7.0.1",
|
|
"tslint": "^6.1.1",
|
|
"typescript": "3.8.3",
|
|
"webpack": "^4.43.0",
|
|
"webpack-cli": "^3.3.11"
|
|
},
|
|
"collective": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/editorjs"
|
|
},
|
|
"dependencies": {
|
|
"codex-notifier": "^1.1.2",
|
|
"codex-tooltip": "^1.0.5",
|
|
"nanoid": "^3.1.22"
|
|
}
|
|
}
|