Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: andrerpena/react-mde
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 11.3.0
Choose a base ref
...
head repository: andrerpena/react-mde
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 29, 2021

  1. Bump to 11.3.0

    andrerpena committed Apr 29, 2021
    Copy the full SHA
    0f5a2a7 View commit details
  2. Copy the full SHA
    25079f1 View commit details

Commits on May 4, 2021

  1. Copy the full SHA
    65f0d36 View commit details

Commits on Jul 4, 2021

  1. Update readme.md

    andrerpena authored Jul 4, 2021
    Copy the full SHA
    7fc2803 View commit details

Commits on May 1, 2022

  1. Remove unused files

    andrerpena committed May 1, 2022
    Copy the full SHA
    15340dd View commit details
  2. Remove unused files

    andrerpena committed May 1, 2022
    Copy the full SHA
    97257fc View commit details
  3. Name refactorings

    andrerpena committed May 1, 2022
    Copy the full SHA
    8152dc9 View commit details
  4. Bump tmpl from 1.0.4 to 1.0.5

    Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
    - [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
    - [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)
    
    ---
    updated-dependencies:
    - dependency-name: tmpl
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 1, 2022
    Copy the full SHA
    f55ca7f View commit details
  5. Update readme.md

    andrerpena authored May 1, 2022
    Copy the full SHA
    7fa3ba2 View commit details

Commits on May 2, 2022

  1. Copy the full SHA
    9fbceff View commit details
  2. Add codeblock

    andrerpena committed May 2, 2022
    Copy the full SHA
    0c4ebfe View commit details
  3. Copy the full SHA
    8f34e7b View commit details
  4. Copy the full SHA
    de51e1c View commit details
  5. Copy the full SHA
    309e1c5 View commit details
  6. Update secret thing

    andrerpena committed May 2, 2022
    Copy the full SHA
    502583e View commit details
  7. Update secret thing

    andrerpena committed May 2, 2022
    Copy the full SHA
    2a89079 View commit details
  8. Simplify build process

    andrerpena committed May 2, 2022
    Copy the full SHA
    161416f View commit details
  9. Simplify build process

    andrerpena committed May 2, 2022
    Copy the full SHA
    5b947fe View commit details
  10. Bump to 12.0.1

    andrerpena committed May 2, 2022
    Copy the full SHA
    e3c1399 View commit details
  11. Bump to 12.0.2

    andrerpena committed May 2, 2022
    Copy the full SHA
    4102c4a View commit details
  12. Bump to 12.0.3

    andrerpena committed May 2, 2022
    Copy the full SHA
    3486764 View commit details
  13. Bump to 12.0.4

    andrerpena committed May 2, 2022
    Copy the full SHA
    2467a72 View commit details
  14. Bump to 12.0.5

    andrerpena committed May 2, 2022
    Copy the full SHA
    d984119 View commit details
  15. Bump to 12.0.6

    andrerpena committed May 2, 2022
    Copy the full SHA
    6aa32cb View commit details
  16. Bump ws from 5.2.2 to 5.2.3

    Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
    - [Release notes](https://github.com/websockets/ws/releases)
    - [Commits](websockets/ws@5.2.2...5.2.3)
    
    ---
    updated-dependencies:
    - dependency-name: ws
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 2, 2022
    Copy the full SHA
    b9a15fb View commit details
  17. Bump lodash from 4.17.15 to 4.17.21

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.15...4.17.21)
    
    ---
    updated-dependencies:
    - dependency-name: lodash
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 2, 2022
    Copy the full SHA
    c26594c View commit details
  18. Bump tar from 4.4.13 to 4.4.19

    Bumps [tar](https://github.com/npm/node-tar) from 4.4.13 to 4.4.19.
    - [Release notes](https://github.com/npm/node-tar/releases)
    - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
    - [Commits](isaacs/node-tar@v4.4.13...v4.4.19)
    
    ---
    updated-dependencies:
    - dependency-name: tar
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 2, 2022
    Copy the full SHA
    c34d42b View commit details
  19. Update readme.md

    andrerpena authored May 2, 2022
    Copy the full SHA
    5691caf View commit details
  20. Update readme.md

    andrerpena authored May 2, 2022
    Copy the full SHA
    b51dd84 View commit details
  21. Merge pull request #333 from andrerpena/dependabot/npm_and_yarn/ws-5.2.3

    Bump ws from 5.2.2 to 5.2.3
    andrerpena authored May 2, 2022
    Copy the full SHA
    c411617 View commit details
  22. Merge pull request #332 from andrerpena/dependabot/npm_and_yarn/lodas…

    …h-4.17.21
    
    Bump lodash from 4.17.15 to 4.17.21
    andrerpena authored May 2, 2022
    Copy the full SHA
    c19e51e View commit details
  23. Merge pull request #331 from andrerpena/dependabot/npm_and_yarn/tar-4…

    ….4.19
    
    Bump tar from 4.4.13 to 4.4.19
    andrerpena authored May 2, 2022
    Copy the full SHA
    2d12d1f View commit details
  24. Merge pull request #330 from andrerpena/dependabot/npm_and_yarn/tmpl-…

    …1.0.5
    
    Bump tmpl from 1.0.4 to 1.0.5
    andrerpena authored May 2, 2022
    Copy the full SHA
    2447e37 View commit details

Commits on May 4, 2022

  1. Command refactoring

    andrerpena committed May 4, 2022
    Copy the full SHA
    68ec338 View commit details
  2. Update readme.md

    andrerpena authored May 4, 2022
    Copy the full SHA
    4816883 View commit details

Commits on May 10, 2022

  1. Adding heading commands

    andrerpena committed May 10, 2022
    Copy the full SHA
    cae3ee2 View commit details

Commits on Aug 15, 2022

  1. Update readme.md

    andrerpena authored Aug 15, 2022
    Copy the full SHA
    d350821 View commit details
Showing with 2,650 additions and 10,414 deletions.
  1. +0 −1 .dockerignore
  2. +23 −0 .github/workflows/npm-publish.yml
  3. +2 −0 .gitignore
  4. +0 −1 .prettierignore
  5. +0 −1 cypress.json
  6. +0 −5 cypress/fixtures/example.json
  7. +0 −19 cypress/integration/keyboard-commands.ts
  8. +0 −64 cypress/integration/mentions.ts
  9. +0 −41 cypress/integration/toolbar.ts
  10. +0 −8 cypress/plugins/index.js
  11. +0 −25 cypress/support/commands.js
  12. +0 −20 cypress/support/index.js
  13. +0 −9 cypress/tsconfig.json
  14. +0 −15 cypress/tsconfig.plugins.json
  15. +0 −23 cypress/webpack.config.js
  16. +0 −105 demo/App.tsx
  17. +0 −10 demo/client.tsx
  18. +0 −17 demo/index.html
  19. +0 −27 demo/index.prod.html
  20. +67 −0 demo/index.tsx
  21. +0 −26 demo/server.ts
  22. +0 −17 demo/styles/demo.scss
  23. +0 −1 demo/styles/variables.scss
  24. +19 −0 demo/toolbar-button.tsx
  25. +0 −203 docs-md/5-readme.md
  26. +0 −91 docs-md/ChangeLogMigrating.md
  27. +0 −103 docs-md/customButton.md
  28. +0 −289 docs-md/readme-old.md
  29. +0 −41 docs/bundle-prod.js
  30. +0 −351 docs/bundle.css
  31. +0 −27 docs/index.html
  32. +12 −0 index.html
  33. +30 −54 package.json
  34. +9 −1 readme.md
  35. +35 −0 rollup.config.js
  36. +0 −21 src/child-props.ts
  37. +0 −9 src/classes.ts
  38. +53 −0 src/commands/command-controller.ts
  39. +0 −190 src/commands/command-orchestrator.ts
  40. +0 −20 src/commands/command-utils.ts
  41. +9 −52 src/commands/command.ts
  42. +0 −23 src/commands/default-commands/boldCommand.tsx
  43. +0 −44 src/commands/default-commands/defaults.ts
  44. +0 −27 src/commands/default-commands/headerCommand.tsx
  45. +0 −24 src/commands/default-commands/italicCommand.tsx
  46. +0 −104 src/commands/default-commands/listCommands.tsx
  47. +0 −151 src/commands/default-commands/save-image-command.tsx
  48. +44 −0 src/commands/markdown-commands/boldCommand.tsx
  49. +8 −0 src/commands/markdown-commands/checkedListCommand.ts
  50. +10 −10 src/commands/{default-commands/codeCommand.tsx → markdown-commands/codeBlockCommand.tsx}
  51. +44 −0 src/commands/markdown-commands/codeCommand.tsx
  52. +9 −0 src/commands/markdown-commands/headingLevel1Command.tsx
  53. +9 −0 src/commands/markdown-commands/headingLevel2Command.tsx
  54. +9 −0 src/commands/markdown-commands/headingLevel3Command.tsx
  55. +9 −0 src/commands/markdown-commands/headingLevel4Command.tsx
  56. +9 −0 src/commands/markdown-commands/headingLevel5Command.tsx
  57. +9 −0 src/commands/markdown-commands/headingLevel6Command.tsx
  58. +2 −3 src/commands/{default-commands → markdown-commands}/imageCommand.tsx
  59. +44 −0 src/commands/markdown-commands/italicCommand.tsx
  60. +7 −8 src/commands/{default-commands → markdown-commands}/linkCommand.tsx
  61. +1 −0 src/commands/markdown-commands/list.tsx
  62. +8 −0 src/commands/markdown-commands/orderedListCommand.ts
  63. +5 −5 src/commands/{default-commands → markdown-commands}/quoteCommand.tsx
  64. +5 −6 ...commands/{default-commands/strikeThroughCommand.tsx → markdown-commands/strikethroughCommand.tsx}
  65. +8 −0 src/commands/markdown-commands/unorderedListCommand.ts
  66. +0 −89 src/components/Preview.tsx
  67. +0 −280 src/components/ReactMde.tsx
  68. +0 −79 src/components/SuggestionsDropdown.tsx
  69. +0 −457 src/components/TextArea.tsx
  70. +0 −97 src/components/Toolbar.tsx
  71. +0 −44 src/components/ToolbarButton.tsx
  72. +0 −14 src/components/ToolbarButtonGroup.tsx
  73. +0 −37 src/components/__tests__/MdePreview.test.tsx
  74. +0 −45 src/components/__tests__/ReactMde.test.tsx
  75. +0 −25 src/components/__tests__/TextArea.test.tsx
  76. +0 −8 src/components/index.tsx
  77. +22 −0 src/helpers/headerHelpers.ts
  78. +62 −0 src/helpers/listHelpers.ts
  79. +65 −4 src/{util/MarkdownUtil.ts → helpers/textHelpers.ts}
  80. +36 −0 src/hooks/use-markdown-editor.ts
  81. +0 −27 src/icons/MdeFontAwesomeIcon.tsx
  82. +0 −231 src/icons/SvgIcon.tsx
  83. +0 −6 src/icons/index.tsx
  84. +56 −0 src/index.ts
  85. +0 −69 src/index.tsx
  86. +0 −9 src/l18n/react-mde.en.ts
  87. +0 −8 src/l18n/react-mde.zh-CN.ts
  88. +0 −6 src/refs.ts
  89. +0 −5 src/styles/react-mde-all.scss
  90. +0 −14 src/styles/react-mde-editor.scss
  91. +0 −126 src/styles/react-mde-preview.scss
  92. +0 −34 src/styles/react-mde-suggestions.scss
  93. +0 −119 src/styles/react-mde-toolbar.scss
  94. +0 −39 src/styles/react-mde.scss
  95. +0 −15 src/styles/variables.scss
  96. +68 −11 src/{util/InsertTextAtPosition.ts → text/textarea-text-controller.ts}
  97. +0 −15 src/types/CommandIntruction.ts
  98. +4 −8 src/types/CommandOptions.ts
  99. +0 −13 src/types/FunctionTypes.ts
  100. +0 −11 src/types/L18n.ts
  101. +0 −6 src/types/MarkdownState.ts
  102. +1 −1 src/types/{Selection.ts → SelectionRange.ts}
  103. +0 −12 src/types/Suggestion.ts
  104. +0 −1 src/types/Tab.ts
  105. +0 −6 src/types/TextSection.ts
  106. +0 −6 src/types/index.tsx
  107. +0 −60 src/util/ClassNames.ts
  108. +0 −6 src/util/Math.ts
  109. +0 −119 src/util/TextAreaCaretPosition.ts
  110. +0 −77 src/util/__tests__/MarkdowUtils.test.ts
  111. +0 −20 src/util/files.ts
  112. +0 −8 src/util/type-utils.ts
  113. +0 −11 tsconfig.build.json
  114. +0 −31 tsconfig.demo.prod.json
  115. +16 −18 tsconfig.json
  116. +0 −46 webpack.config.demo.dev.js
  117. +0 −46 webpack.config.demo.prod.js
  118. +1,821 −5,703 yarn.lock
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish to NPM

on:
release:
types: [created]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build
- run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,5 +4,7 @@ logs
.idea
/lib/
node_modules
demo/node_modules
/.vscode/
ts-build/
dist/
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion cypress.json

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/fixtures/example.json

This file was deleted.

19 changes: 0 additions & 19 deletions cypress/integration/keyboard-commands.ts

This file was deleted.

64 changes: 0 additions & 64 deletions cypress/integration/mentions.ts

This file was deleted.

41 changes: 0 additions & 41 deletions cypress/integration/toolbar.ts

This file was deleted.

8 changes: 0 additions & 8 deletions cypress/plugins/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/support/commands.js

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/support/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions cypress/tsconfig.json

This file was deleted.

15 changes: 0 additions & 15 deletions cypress/tsconfig.plugins.json

This file was deleted.

23 changes: 0 additions & 23 deletions cypress/webpack.config.js

This file was deleted.

105 changes: 0 additions & 105 deletions demo/App.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions demo/client.tsx

This file was deleted.

Loading