Skip to content

Commit

Permalink
Update dependencies 8/11/22 (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoitch committed Aug 11, 2022
1 parent 305b1a2 commit 4b40e51
Show file tree
Hide file tree
Showing 10 changed files with 5,354 additions and 7,107 deletions.
11,971 changes: 5,130 additions & 6,841 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,32 @@
],
"license": "MIT",
"dependencies": {
"mobiledoc-dom-renderer": "0.7.0",
"mobiledoc-dom-renderer": "0.7.1",
"mobiledoc-text-renderer": "0.4.1"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-typescript": "^5.0.2",
"@types/jquery": "^3.5.2",
"@types/qunit": "^2.9.5",
"@types/jquery": "^3.5.14",
"@types/qunit": "^2.19.2",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"conventional-changelog-cli": "^2.0.34",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^7.4.0",
"eslint-config-prettier": "^6.11.0",
"jquery": "^3.5.1",
"jquery": "^3.6.0",
"jsdoc": "^3.6.5",
"prettier": "^2.1.1",
"qunit": "^2.11.1",
"rollup": "^2.26.9",
"rollup-plugin-copy": "^3.3.0",
"prettier": "^2.7.1",
"qunit": "^2.19.1",
"rollup": "^2.77.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-glob-import": "^0.4.5",
"rollup-plugin-serve": "^1.0.4",
"saucie": "^3.3.3",
"testem": "^3.2.0",
"tslib": "^2.0.0",
"tslib": "^2.4.0",
"typescript": "^3.9.3"
},
"prettier": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/editor/edit-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class EditState {
// In addition, to catch changes from ul -> ol, we keep track of the
// un-nested tag names (otherwise we'd only see li -> li change)
state.activeSectionTagNames = state.activeSections!.map(s => {
return s.isNested ? ((s.parent as unknown) as TagNameable).tagName : ((s as unknown) as TagNameable).tagName
return s.isNested ? (s.parent as unknown as TagNameable).tagName : (s as unknown as TagNameable).tagName
})
state.activeSectionAttributes = this._readSectionAttributes(state.activeSections!)

Expand Down
10 changes: 5 additions & 5 deletions src/js/editor/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,13 +694,13 @@ export default class PostEditor {

_replaceSection(section: Section, newSections: Section[]) {
let nextSection = section.next
let collection = ((section.parent as unknown) as HasChildSections).sections
let collection = (section.parent as unknown as HasChildSections).sections

let nextNewSection = newSections[0]
if (isMarkupSection(nextNewSection) && isListItem(section)) {
// put the new section after the ListSection (section.parent)
// instead of after the ListItem
collection = ((section.parent.parent as unknown) as HasChildSections).sections
collection = (section.parent.parent as unknown as HasChildSections).sections
nextSection = section.parent.next
}

Expand Down Expand Up @@ -922,7 +922,7 @@ export default class PostEditor {
let attribute = `data-md-${key}`

post.walkMarkerableSections(range, section => {
const cbSection: Attributable = isListItem(section) ? section.parent : ((section as unknown) as Attributable)
const cbSection: Attributable = isListItem(section) ? section.parent : (section as unknown as Attributable)

if (cb(cbSection, attribute) === true) {
this._markDirty(section)
Expand Down Expand Up @@ -1090,7 +1090,7 @@ export default class PostEditor {

_changeSectionToListItem(section: ListSection | Markerable, newTagName: string) {
let isAlreadyCorrectListItem =
section.isListItem && ((section.parent as unknown) as TagNameable).tagName === newTagName
section.isListItem && (section.parent as unknown as TagNameable).tagName === newTagName

if (isAlreadyCorrectListItem) {
return section
Expand Down Expand Up @@ -1149,7 +1149,7 @@ export default class PostEditor {
const activeSection = this.editor.activeSection
const nextSection = activeSection && activeSection.next

const collection = (this.editor.post.sections as unknown) as LinkedList<Section>
const collection = this.editor.post.sections as unknown as LinkedList<Section>
this.insertSectionBefore(collection, section, nextSection)
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/editor/text-input-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TextInputHandler {
const { head } = range
const { section } = head

let preText = ((section! as unknown) as Markerable).textUntil(head) + string
let preText = (section! as unknown as Markerable).textUntil(head) + string

for (let i = 0; i < this._handlers.length; i++) {
let handler = this._handlers[i]
Expand Down
14 changes: 13 additions & 1 deletion src/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,16 @@ import Renderer, { MOBILEDOC_VERSION } from './renderers/mobiledoc'
import DOMParser from './parsers/dom'
import PostNodeBuilder from './models/post-node-builder'

export { Editor, UI, ImageCard, Range, Position, Error, DOMParser, PostNodeBuilder, Renderer, VERSION, MOBILEDOC_VERSION }
export {
Editor,
UI,
ImageCard,
Range,
Position,
Error,
DOMParser,
PostNodeBuilder,
Renderer,
VERSION,
MOBILEDOC_VERSION,
}
2 changes: 1 addition & 1 deletion src/js/models/_markerable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default abstract class Markerable extends tagNameable(Section) implements

clone(): this {
const newMarkers = this.markers.map(m => m.clone())
return (this.builder.createMarkerableSection(this.type, this.tagName, newMarkers) as any) as this
return this.builder.createMarkerableSection(this.type, this.tagName, newMarkers) as any as this
}

get isBlank() {
Expand Down
2 changes: 1 addition & 1 deletion src/js/renderers/editor-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ let destroyHooks = {
}

// an atom is a kind of marker so just call its destroy hook vs copying here
destroyHooks[Type.MARKER](renderNode, (atom as unknown) as Marker)
destroyHooks[Type.MARKER](renderNode, atom as unknown as Marker)
},
}

Expand Down
7 changes: 4 additions & 3 deletions src/js/utils/cursor/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const { FORWARD, BACKWARD } = Direction
// generated via http://xregexp.com/ to cover chars that \w misses
// (new XRegExp('\\p{Alphabetic}|[0-9]|_|:')).toString()
// eslint-disable-next-line no-misleading-character-class
const WORD_CHAR_REGEX = /[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևְ-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࢠ-ࢴࣣ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣲ-ꣷꣻꣽꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]|[0-9]|_|:/
const WORD_CHAR_REGEX =
/[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևְ-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࢠ-ࢴࣣ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣲ-ꣷꣻꣽꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]|[0-9]|_|:/

function findParentSectionFromNode(renderTree: RenderTree, node: Node) {
let renderNode = renderTree.findRenderNodeFromElement(node, renderNode => (renderNode.postNode as Section).isSection)
Expand Down Expand Up @@ -498,11 +499,11 @@ class BlankPosition extends Position {
}

move(): Position {
return (this as unknown) as Position
return this as unknown as Position
}

moveWord(): Position {
return (this as unknown) as Position
return this as unknown as Position
}

get markerPosition() {
Expand Down
Loading

0 comments on commit 4b40e51

Please sign in to comment.