Skip to content

Commit a83084c

Browse files
author
pipeline
committed
v30.1.37 is released
1 parent a647b3e commit a83084c

File tree

137 files changed

+592
-1095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+592
-1095
lines changed

components/barcodegenerator/CHANGELOG.md

Lines changed: 1 addition & 1 deletion

components/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-react-base",
3-
"version": "29.1.33",
3+
"version": "17.33.0",
44
"description": "A common package of Essential JS 2 React base, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/blockeditor/CHANGELOG.md

Lines changed: 4 additions & 0 deletions

components/blockeditor/README.md

Lines changed: 83 additions & 0 deletions

components/blockeditor/gulpfile.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
'use strict';
2+
3+
var gulp = require('gulp');
4+
5+
/**
6+
* Build ts and scss files
7+
*/
8+
gulp.task('build', gulp.series('scripts', 'styles'));
9+
10+
/**
11+
* Compile ts files
12+
*/
13+
gulp.task('scripts', function(done) {
14+
var ts = require('gulp-typescript');
15+
var tsProject = ts.createProject('tsconfig.json', { typescript: require('typescript') });
16+
17+
var tsResult = gulp.src(['./**/*.ts','./**/*.tsx', '!./node_modules/**/*.ts','!./node_modules/**/*.tsx'], { base: '.' })
18+
.pipe(tsProject());
19+
tsResult.js.pipe(gulp.dest('./'))
20+
.on('end', function() {
21+
done();
22+
});
23+
});
24+
25+
/**
26+
* Compile styles
27+
*/
28+
gulp.task('styles', function() {
29+
var sass = require('gulp-sass');
30+
return gulp.src(['./**/*.scss', '!./node_modules/**/*.scss'], { base: './' })
31+
.pipe(sass({
32+
outputStyle: 'expanded',
33+
includePaths: './node_modules/@syncfusion/'
34+
}))
35+
.pipe(gulp.dest('.'));
36+
});

components/blockeditor/license

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
3+
Customers who do not qualify for the community license can contact [email protected] for commercial licensing options.
4+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
5+
The Syncfusion license that contains the terms and conditions can be found at
6+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf

components/blockeditor/package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "@syncfusion/ej2-react-blockeditor",
3+
"version": "27.1.48",
4+
"description": "Feature Rich Block Editor control with built in support editing, formatting content. for React",
5+
"author": "Syncfusion Inc.",
6+
"license": "SEE LICENSE IN license",
7+
"keywords": [
8+
"react",
9+
"reactjs",
10+
"ej2-react-blockeditor",
11+
"react-blockeditor"
12+
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/syncfusion/ej2-react-blockeditor.git"
16+
},
17+
"main": "./dist/ej2-react-blockeditor.umd.min.js",
18+
"module": "./index.js",
19+
"es2015": "dist/es6/ej2-react-blockeditor.es2015.js",
20+
"readme": "ReadMe.md",
21+
"dependencies": {
22+
"@syncfusion/ej2-base": "*",
23+
"@syncfusion/ej2-react-base": "*",
24+
"@syncfusion/ej2-blockeditor": "*"
25+
},
26+
"devDependencies": {
27+
"@types/chai": "3.5.2",
28+
"@types/es6-promise": "0.0.33",
29+
"@types/jasmine": "2.8.22",
30+
"@types/jasmine-ajax": "3.3.5",
31+
"@types/react": "16.4.7",
32+
"@types/react-dom": "16.9.7",
33+
"@types/requirejs": "2.1.37",
34+
"es6-promise": "^3.2.1",
35+
"gulp": "^3.9.1",
36+
"gulp-sass": "^3.1.0",
37+
"gulp-typescript": "^3.1.6",
38+
"requirejs": "^2.3.3",
39+
"typescript": "2.3.4"
40+
},
41+
"scripts": {
42+
"build": "gulp build"
43+
}
44+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import * as React from 'react';
2+
import { BlockEditor, BlockEditorModel } from '@syncfusion/ej2-blockeditor';
3+
import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base';
4+
5+
6+
7+
/**
8+
* Represents the React BlockEditor Component
9+
* ```tsx
10+
* <BlockEditor></BlockEditor>
11+
* ```
12+
*/
13+
export class BlockEditorComponent extends BlockEditor {
14+
public state: Readonly<{ children?: React.ReactNode | React.ReactNode[] }>
15+
& Readonly<BlockEditorModel | DefaultHtmlAttributes>;
16+
public setState: any;
17+
private getDefaultAttributes: Function;
18+
public initRenderCalled: boolean = false;
19+
private checkInjectedModules: boolean = false;
20+
public directivekeys: { [key: string]: Object } = {'blocks': 'block'};
21+
private statelessTemplateProps: string[] = null;
22+
private templateProps: string[] = null;
23+
private immediateRender: boolean = true;
24+
private isReactMock: boolean = true;
25+
public props: Readonly<{ children?: React.ReactNode | React.ReactNode[] }>
26+
& Readonly<BlockEditorModel | DefaultHtmlAttributes>;
27+
public forceUpdate: (callBack?: () => any) => void;
28+
public context: Object;
29+
public portals: any = [];
30+
public isReactComponent: Object;
31+
public refs: {
32+
[key: string]: React.ReactInstance
33+
};
34+
constructor(props: any) {
35+
super(props);
36+
}
37+
38+
public render(): any {
39+
this.isReactMock = false;
40+
if (((this.element && !this.initRenderCalled) || this.refreshing) && !(this as any).isReactForeceUpdate) {
41+
super.render();
42+
this.initRenderCalled = true;
43+
} else {
44+
return React.createElement('div', this.getDefaultAttributes(),[].concat(this.props.children,this.portals));
45+
}
46+
47+
}
48+
}
49+
50+
applyMixins(BlockEditorComponent, [ComponentBase, React.Component]);
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { ComplexBase } from '@syncfusion/ej2-react-base';
2+
import { BlockModel } from '@syncfusion/ej2-blockeditor';
3+
4+
5+
/**
6+
* `Block` directive represent a block of the React BlockEditor.
7+
* It must be contained in a BlockEditor component(`BlockEditor`).
8+
* ```tsx
9+
* <BlockEditor>
10+
* <Blocks>
11+
* <Block></Block>
12+
* <Block></Block>
13+
* <Blocks>
14+
* </BlockEditor>
15+
* ```
16+
*/
17+
export class BlockDirective extends ComplexBase<BlockModel & { children?: React.ReactNode }, BlockModel> {
18+
public static moduleName: string = 'block';
19+
}
20+
21+
export class BlocksDirective extends ComplexBase<{}, {}> {
22+
public static propertyName: string = 'blocks';
23+
public static moduleName: string = 'blocks';
24+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './blocks-directive';
2+
export * from './blockeditor.component';

0 commit comments

Comments
 (0)