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

[Snyk] Upgrade grapesjs from 0.17.29 to 0.21.10 #83

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

aleHRevirtus
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade grapesjs from 0.17.29 to 0.21.10.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 20 versions ahead of your current version.

  • The recommended version was released on 2 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Cross-site Scripting (XSS)
SNYK-JS-GRAPESJS-2342412
444 No Known Exploit
medium severity Cross-site Scripting (XSS)
SNYK-JS-GRAPESJS-2935960
444 Proof of Concept
Release notes
Package name: grapesjs
  • 0.21.10 - 2024-04-03

    Added

    • Added the ability to preselect page on project load via new config.pageManager.selected option #5463
    • Added new command events. Added these events mainly for consistency with other module events. Previous are still there and working but should be considered from now as deprecated.

    Fixed

    • Fix ColorPickerOptions TS #5739
    • Remove by default unsafe attribute values from HTML #5743
    • Skip component resizer if already enabled #5753
    • Always place the tools above the highlighter by @ bernesto in #5736

    Full Changelog: v0.21.9...v0.21.10

  • 0.21.9 - 2024-03-09

    Docs

    Added

    Changed

    • Color picker offset relative to editor container by @ bernesto in #5704
    • Allow to unlock components inside a locked one #5635
    • Take into account borders during a component move #5621

    Fixed

    • Fix Layers view not changing on page switch #5593
    • Fix update of layers #5607
    • Fix TS in StyleManagerConfig.sectors.properties #5613
    • Fix SelectComponent resizer with custom options #5630
    • Fix ComponentDelete command #5633
    • Allow comment Components in Text #5657
    • Prevent errors with layerable textnodes #5720
    • Fix boolean values when getting HTML with withProp

    New Contributors

    Full Changelog: v0.21.8...v0.21.9

  • 0.21.8 - 2023-12-20

    Added

    • Allow / in class names by @ mahmudz #5433
    • Added CSS variables #5437 by @ quentin-bettoum
    • Support nomodule attribute for canvas.scripts options
    • Added a new built-in delegate property to Component. Example of usage #5507

    Changed

    • Updates default layers layout to flex style #5422 by @ mapsmarketing
    • Update Component.replaceWith (now returns always an array of components)

    Fixed

    • Fixed resizing when zoomed by @ UnderKoen #5436
    • Trigger component:styleUpdate on component.addStyle/setStyle #5424
    • Update rules id with remapped duplicate components in Pages #5425
    • Ensure components with script return id in HTML export #5441
    • Preserve custom styles on text component change #5442
    • Prevent crash if block category id is an object builtin method name #5478
    • Fix style bg image property with URLs containing parentheses #5497
    • Fix default Resizer on style update #5501
    • Fix TS type for replaceWith method by @ MaxwellTheSecond #5504
    • Allow paste when nothing is selected by @ lexoyo #5524
    • Fix UndoManager start/stop #5530
    • Fix built-in RTE with custom rendered components #5536
    • Fix autoplay for Youtube videos #5542
    • Fix Portuguese translations by @ brenoassp #5546
    • Avoid triggering rte:disable on component move #5545
    • Fix performance issues with components having a lot of classes #5525
    • Allow ComponentScriptView with custom type attribute #5563
    • Spelling fix in docs - Components.md by @ bryanjamesmiller #5488

    New Contributors

    Full Changelog: v0.21.7...v0.21.8

  • 0.21.7 - 2023-09-22

    Added

    • Added missing type export by @ padcom in #5399
    • Added src/styles back to the distributed package (will be removed with the next breaking change release) #5392

    Full Changelog: v0.21.6...v0.21.7

  • 0.21.6 - 2023-09-17

    Added

    • Added unminified module file to the package (dist/grapes.mjs)
    • Support for @ container CSS at-rule #5372

    Fixed

    Full Changelog: v0.21.5...v0.21.6

  • 0.21.5 - 2023-08-30

    Added

    Fixed

    • Fixed undo/redo when using component.setClass #5319
    • Prevent default event with undo/redo shortcuts #5325
    • Hide badge if component.badgable is false #5340
    • Fixed canvas scroll on component select from layers #5342

    Full Changelog: v0.21.4...v0.21.5

  • 0.21.4 - 2023-08-07

    Added

    • Added config.canvas.allowExternalDrop option #5242
    • Support multiple style values for the same property #4434

    Fixed

    • Prevent exporting textnodes with null #5229
    • Ignore current state and device for component related styles #5213
    • Fix video component import #2357
    • Up panels config TS #5269
    • Clean inline styles from comments #1577
    • Fixes bug with broken autoplay from video component (issue #5268); by @ SLain123 in #5270

    Full Changelog: v0.21.3...v0.21.4

  • 0.21.3 - 2023-07-04

    Docs

    Added

    • Added addStyles option to editor.Css.setRule #5173

    Changed

    Fixed

    • Fixed usePlugin is not a function #5167
    • Fixed PropertyStack in bundled dts file #5154
    • Handle properly Component model defaults as functions #5199
    • Fixed broken link in README.md by @ pfaffmann in #5188

    Full Changelog: v0.21.2...v0.21.3

  • 0.21.2 - 2023-05-31

    Docs

    Added

    • Added experimental disableTextInnerChilds option to Components module configuration.
      With this option, you're able to decide which inner component inside text should be disabled (eg. no select, no hover, no layer visibility) once edited.
      grapesjs.init({
        // ...
        domComponents: {
          // disable all inner childs
          disableTextInnerChilds: true,
          // disable all except link components
          disableTextInnerChilds: (child) => !child.is('link'),
        }
      })
    • Added usePlugin for a better TS support with plugins
    • Added Component.forEachChild method.
    • Added more TS exports and fixed Editor#setZoom type by @ PaulRill00 in #5106

    Changed

    • Improve TS for Components.addType
    • Updated German locale by @ c9a2334 in #5114
    • Trigger component:styleUpdate on component style changes #4897

    Fixed

    • Fixed addStyle(string, string) #5105
    • Take into account scroll data on drop in absolute mode
    • Fixed element jumping when resizing on zoomed frame #5103
    • Fixed TS autocomplete for editor events
    • Fix StyleManager.addProperty TS #5135

    Removed

    • Removed unused fonts folder

    New Contributors

    Full Changelog: v0.21.1...v0.21.2

  • 0.21.1 - 2023-04-03

    ⚠️ POSSIBLY BREAKING CHANGE

    What's Changed

    The biggest change we introduce with this release is the complete rewrite of modules to Typescript. This deprecates the old ./index.d.ts (manually updated) in favor of ./dist/index.d.ts (generated from the source).
    So there are no real changes to the core API itself if not the new TS declaration file which includes type/interfaces changes in order to bring more naming consistency with the code.
    This is how you might have used the import of types in the previous version:

    import type grapesjs from 'grapesjs';

    // plugin
    const plugin: grapesjs.Plugin = function (editor: grapesjs.Editor, opt: ...) {...};

    Now you can get types directly without specifying the grapesjs namespace (which is the most common way to import types):

    import type { Editor, Plugin } from 'grapesjs';

    // plugin
    const plugin: Plugin = function (editor: Editor, opt: ...) {...};

    Added

    • Added new noCustom option to Component.getName() in order to skip custom name assigned to the component.
    • Added rename method to SelectorManager
    • Added fetchOptions to AssetManager configs
    • Added options to ExportTemplate command

    Fixed

Snyk has created this PR to upgrade grapesjs from 0.17.29 to 0.21.10.

See this package in npm:
grapesjs

See this project in Snyk:
https://app.snyk.io/org/alejandro.hermosilla/project/a65ae588-711c-441d-8392-2d3f8b803761?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants