Browse Source

Bump v0.17.26

pull/3813/head v0.17.26
Artur Arseniev 5 years ago
parent
commit
88162aaee4
  1. 2
      dist/css/grapes.min.css
  2. 4
      dist/grapes.min.js
  3. 2
      dist/grapes.min.js.map
  4. 4
      docs/api/assets.md
  5. 3
      package.json
  6. 1
      webpack.config.js

2
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

4
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
dist/grapes.min.js.map

File diff suppressed because one or more lines are too long

4
docs/api/assets.md

@ -20,7 +20,8 @@ const assetManager = editor.AssetManager;
## Available Events ## Available Events
* `asset:add` - Added new asset. The [Asset] is passed as an argument to the callback. * `asset:open` - Asset Manager opened.
* `asset:close` - Asset Manager closed.
* `asset:remove` - Asset removed. The [Asset] is passed as an argument to the callback. * `asset:remove` - Asset removed. The [Asset] is passed as an argument to the callback.
* `asset:update` - Asset updated. The updated [Asset] and the object containing changes are passed as arguments to the callback. * `asset:update` - Asset updated. The updated [Asset] and the object containing changes are passed as arguments to the callback.
* `asset:upload:start` - Before the upload is started. * `asset:upload:start` - Before the upload is started.
@ -28,6 +29,7 @@ const assetManager = editor.AssetManager;
* `asset:upload:error` - On any error in upload, passes the error as an argument. * `asset:upload:error` - On any error in upload, passes the error as an argument.
* `asset:upload:response` - On upload response, passes the result as an argument. * `asset:upload:response` - On upload response, passes the result as an argument.
* `asset` - Catch-all event for all the events mentioned above. An object containing all the available data about the triggered event is passed as an argument to the callback. * `asset` - Catch-all event for all the events mentioned above. An object containing all the available data about the triggered event is passed as an argument to the callback.
* `asset:custom` - Event for handling custom Asset Manager UI.
## Methods ## Methods

3
package.json

@ -1,7 +1,7 @@
{ {
"name": "grapesjs", "name": "grapesjs",
"description": "Free and Open Source Web Builder Framework", "description": "Free and Open Source Web Builder Framework",
"version": "0.17.25", "version": "0.17.26",
"author": "Artur Arseniev", "author": "Artur Arseniev",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"homepage": "http://grapesjs.com", "homepage": "http://grapesjs.com",
@ -103,7 +103,6 @@
"build": "npm run check && run-s build:*", "build": "npm run check && run-s build:*",
"build:js": "grapesjs-cli build --targets=\"> 1%, ie 11, safari 8, not dead\" --statsOutput=\"stats.json\" --localePath=\"src/i18n/locale\"", "build:js": "grapesjs-cli build --targets=\"> 1%, ie 11, safari 8, not dead\" --statsOutput=\"stats.json\" --localePath=\"src/i18n/locale\"",
"build:css": "sass src/styles/scss/main.scss dist/css/grapes.min.css --no-source-map --style=compressed --load-path=node_modules", "build:css": "sass src/styles/scss/main.scss dist/css/grapes.min.css --no-source-map --style=compressed --load-path=node_modules",
"build:locale": "rm -rf ./locale && node scripts/build-locale.js && babel locale -d locale --copy-files --no-comments",
"start": "run-p start:*", "start": "run-p start:*",
"start:js": "grapesjs-cli serve", "start:js": "grapesjs-cli serve",
"start:css": "npm run build:css -- --watch", "start:css": "npm run build:css -- --watch",

1
webpack.config.js

@ -9,7 +9,6 @@ export default ({ config }) => ({
...config.output, ...config.output,
filename: 'grapes.min.js', filename: 'grapes.min.js',
libraryExport: 'default', libraryExport: 'default',
globalObject: `typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this)`,
}, },
devServer: { devServer: {
headers: { 'Access-Control-Allow-Origin': '*' }, headers: { 'Access-Control-Allow-Origin': '*' },

Loading…
Cancel
Save