scratch-paint 4.0.21 → 4.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.github/workflows/deploy.yml +3 -3
  2. package/.github/workflows/update-l10n.yml +2 -2
  3. package/.nvmrc +1 -1
  4. package/dist/scratch-paint.js +108 -122
  5. package/dist/scratch-paint.js.map +1 -1
  6. package/eslint.config.mjs +61 -0
  7. package/package.json +6 -8
  8. package/scripts/build-i18n-source.js +1 -1
  9. package/src/components/paint-editor/paint-editor.jsx +2 -2
  10. package/src/containers/mode-tools.jsx +3 -3
  11. package/src/helper/bit-tools/brush-tool.js +1 -1
  12. package/src/helper/bit-tools/fill-tool.js +1 -1
  13. package/src/helper/bit-tools/line-tool.js +3 -3
  14. package/src/helper/bit-tools/oval-tool.js +1 -1
  15. package/src/helper/bit-tools/rect-tool.js +1 -1
  16. package/src/helper/bit-tools/select-tool.js +2 -2
  17. package/src/helper/bitmap.js +13 -15
  18. package/src/helper/blob-tools/broad-brush-helper.js +1 -2
  19. package/src/helper/blob-tools/segment-brush-helper.js +4 -5
  20. package/src/helper/group.js +14 -16
  21. package/src/helper/hover.js +1 -1
  22. package/src/helper/layer.js +5 -5
  23. package/src/helper/math.js +1 -1
  24. package/src/helper/selection-tools/bounding-box-tool.js +5 -5
  25. package/src/helper/selection-tools/handle-tool.js +2 -2
  26. package/src/helper/selection-tools/move-tool.js +3 -3
  27. package/src/helper/selection-tools/nudge-tool.js +2 -2
  28. package/src/helper/selection-tools/point-tool.js +1 -1
  29. package/src/helper/selection-tools/reshape-tool.js +7 -7
  30. package/src/helper/selection-tools/rotate-tool.js +1 -1
  31. package/src/helper/selection-tools/scale-tool.js +3 -3
  32. package/src/helper/selection-tools/select-tool.js +3 -3
  33. package/src/helper/selection.js +19 -19
  34. package/src/helper/snapping.js +2 -2
  35. package/src/helper/style-path.js +8 -8
  36. package/src/helper/tools/fill-tool.js +1 -1
  37. package/src/helper/tools/oval-tool.js +1 -1
  38. package/src/helper/tools/rect-tool.js +1 -1
  39. package/src/helper/tools/rounded-rect-tool.js +2 -2
  40. package/src/helper/tools/text-tool.js +4 -4
  41. package/src/helper/view.js +9 -10
  42. package/src/playground/playground.jsx +28 -25
  43. package/src/playground/reducers/intl.js +1 -2
  44. package/src/reducers/cursor.js +1 -1
  45. package/src/reducers/hover.js +1 -1
  46. package/src/reducers/layout.js +1 -1
  47. package/src/reducers/selected-items.js +1 -1
  48. package/src/reducers/text-edit-target.js +1 -1
  49. package/src/reducers/undo.js +2 -2
  50. package/src/reducers/view-bounds.js +1 -1
  51. package/.eslintignore +0 -4
  52. package/.eslintrc.js +0 -3
  53. package/src/.eslintrc.js +0 -24
  54. package/tmp.js +0 -0
@@ -21,10 +21,10 @@ jobs:
21
21
  env:
22
22
  TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/beta') }}
23
23
  steps:
24
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
25
- - uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5
24
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
25
+ - uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6
26
26
  if: github.event_name == 'pull_request'
27
- - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
27
+ - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
28
28
  with:
29
29
  cache: "npm"
30
30
  node-version-file: ".nvmrc"
@@ -16,10 +16,10 @@ jobs:
16
16
  update-tx:
17
17
  runs-on: ubuntu-latest
18
18
  steps:
19
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
19
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
20
20
  with:
21
21
  ref: 'develop'
22
- - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
22
+ - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
23
23
  with:
24
24
  cache: 'npm'
25
25
  node-version-file: '.nvmrc'
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- v16
1
+ 20.19.5