Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump is-hotkey and direction to 0.2.0 and 2.0.1, add dependencies of package.json #238

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 26 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"@angular/platform-browser-dynamic": "~16.2.1",
"@angular/router": "^16.2.1",
"core-js": "3.28.0",
"direction": "^1.0.3",
"is-hotkey": "^0.1.6",
"direction": "^2.0.1",
"is-hotkey": "^0.2.0",
"rxjs": "~6.6.0",
"slate": "0.72.8",
"slate-history": "0.66.0",
Expand Down Expand Up @@ -96,4 +96,4 @@
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0"
}
}
}
9 changes: 7 additions & 2 deletions packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
"slate": ">= 0.63.0",
"slate-history": "^0.66.0",
"debug": "^4.1.1",
"direction": "^1.0.3",
"is-hotkey": "^0.1.6",
"direction": "^2.0.1",
"is-hotkey": "^0.2.0",
"scroll-into-view-if-needed": "^2.2.20"
},
"dependencies": {
"slate": "^0.72.8",
"slate-history": "^0.66.0",
"direction": "^2.0.1",
"is-hotkey": "^0.2.0",
"scroll-into-view-if-needed": "^2.2.20",
"tslib": "^2.5.0"
},
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions packages/src/components/editable/editable.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
EDITOR_TO_WINDOW
} from '../../utils/weak-maps';
import { Text as SlateText, Element, Transforms, Editor, Range, Path, NodeEntry, Node } from 'slate';
import getDirection from 'direction';
import { direction } from 'direction';
import scrollIntoView from 'scroll-into-view-if-needed';
import { AngularEditor } from '../../plugins/angular-editor';
import {
Expand Down Expand Up @@ -981,7 +981,7 @@ export class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewChe
const { selection } = editor;

const element = editor.children[selection !== null ? selection.focus.path[0] : 0];
const isRTL = getDirection(Node.string(element)) === 'rtl';
const isRTL = direction(Node.string(element)) === 'rtl';

try {
// COMPAT: Since we prevent the default behavior on
Expand Down