Skip to content

Commit 4b498da

Browse files
committed
Update packages and increase the version.
1 parent 5f6f8cc commit 4b498da

File tree

7 files changed

+33
-15
lines changed

7 files changed

+33
-15
lines changed

gulpfile.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ var gulp = require('gulp'),
1717

1818
var Server = require("karma").Server;
1919

20-
var libraryVersion = "0.9.11";
20+
var libraryVersion = "0.9.12";
2121

2222
var paths = {
2323
webroot: "./" + project.webroot + "/",
2424
dist: "./dist/",
2525
dist_dts: "./dist/typings/",
2626
tsTests: "./tests/*.ts",
27-
package_ko_dist: "./packages/survey-knockout/dist/",
27+
package_ko: "./packages/survey-knockout/",
28+
package_react: "./packages/survey-react/",
2829
typings: "./typings/**/*.d.ts",
2930
styles: "./src/*.scss",
3031
};
@@ -40,7 +41,6 @@ var copyright = ["/*!",
4041
var tdHeader = ["// Type definitions for Survey JavaScript library v" + libraryVersion,
4142
"// Project: http://surveyjs.org/",
4243
"// Definitions by: Andrew Telnov <https://github.com/andrewtelnov/>",
43-
"// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped",
4444
"",""].join("\n");
4545

4646
var config_ko_standard = {
@@ -141,7 +141,6 @@ function buildTypeDefinition(configName) {
141141
paths.webroot + "/lib/survey/**/*.d.ts",
142142
paths.typings
143143
].concat(curConfig.src))
144-
.pipe(sourcemaps.init())
145144
.pipe(ts({
146145
target: "ES5",
147146
noExternalResolve: true,
@@ -164,6 +163,7 @@ function compressMainJS(configName) {
164163
}))
165164
.pipe(concat.header(copyright))
166165
.pipe(gulp.dest(curConfig.packagePath + "dist/"))
166+
.pipe(gulp.dest(curConfig.packagePath + "js/"))
167167
.pipe(gulp.dest(paths.dist));
168168
}
169169

@@ -294,7 +294,10 @@ gulp.task('sass', function () {
294294
.pipe(sass.sync().on('error', sass.logError))
295295
.pipe(concat("survey.css"))
296296
.pipe(gulp.dest(paths.webroot + 'css'))
297-
.pipe(gulp.dest(paths.package_ko_dist + 'css'))
297+
.pipe(gulp.dest(paths.package_ko + 'dist/css'))
298+
.pipe(gulp.dest(paths.package_ko + 'css'))
299+
.pipe(gulp.dest(paths.package_react + 'dist/css'))
300+
.pipe(gulp.dest(paths.package_react + 'css'))
298301
.pipe(gulp.dest(paths.dist + 'css'));
299302
});
300303
gulp.task("makedist", sequence(["sass", "build_ko_standard", "build_ko_bootstrap"], "buildTests_ko", "build_react_standard", "build_react_bootstrap"));

lib_typings/survey.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Type definitions for Survey JavaScript library v0.9.11
22
// Project: http://surveyjs.org/
33
// Definitions by: Andrew Telnov <https://github.com/andrewtelnov/>
4-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
54

65
declare module Survey {
76
interface HashTable<T> {
@@ -190,13 +189,15 @@ declare module Survey {
190189
valueName: string;
191190
titleName: string;
192191
getResultCallback: (items: Array<ItemValue>) => void;
192+
error: SurveyError;
193193
constructor();
194194
run(): void;
195195
getType(): string;
196196
isEmpty: boolean;
197197
setData(json: any): void;
198198
clear(): void;
199199
protected onLoad(result: any): void;
200+
private onError(status, response);
200201
private getResultAfterPath(result);
201202
private getPathes();
202203
private getValue(item);
@@ -314,6 +315,8 @@ declare module Survey {
314315
numericMin: string;
315316
numericMax: string;
316317
invalidEmail: string;
318+
urlRequestError: string;
319+
urlGetChoicesError: string;
317320
exceedMaxSize: string;
318321
otherRequiredError: string;
319322
uploadingFile: string;
@@ -422,6 +425,7 @@ declare module Survey {
422425
setWidth(): void;
423426
private onRowVisibilityChanged();
424427
private getVisibleCount();
428+
private isQuestionVisible(q);
425429
private calcVisible();
426430
}
427431
class PageModel extends Base implements IPage, IConditionRunner {
@@ -438,6 +442,7 @@ declare module Survey {
438442
constructor(name?: string);
439443
rows: Array<QuestionRowModel>;
440444
isActive: boolean;
445+
isQuestionVisible(question: QuestionBase): boolean;
441446
protected createRow(question: QuestionBase): QuestionRowModel;
442447
private isDesignMode;
443448
private buildRows();

packages/survey-knockout-bootstrap/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "survey-knockout-bootstrap",
3-
"version": "0.9.11",
3+
"version": "0.9.12",
44
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
55
"keywords": [
66
"Survey",
@@ -12,7 +12,9 @@
1212
"homepage": "https://surveyjs.org/",
1313
"license": "MIT",
1414
"files": [
15-
"dist/"
15+
"dist/",
16+
"js/",
17+
"css/"
1618
],
1719
"main": "survey.bootstrap.min.js",
1820
"repository": {

packages/survey-knockout/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "survey-knockout",
3-
"version": "0.9.11",
3+
"version": "0.9.12",
44
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
55
"keywords": [
66
"Survey",
@@ -11,7 +11,9 @@
1111
"homepage": "https://surveyjs.org/",
1212
"license": "MIT",
1313
"files": [
14-
"dist/"
14+
"dist/",
15+
"js/",
16+
"css/"
1517
],
1618
"main": "survey.min.js",
1719
"repository": {

packages/survey-react-bootstrap/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "survey-react-bootstrap",
3-
"version": "0.9.11",
3+
"version": "0.9.12",
44
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
55
"keywords": [
66
"Survey",
@@ -13,7 +13,9 @@
1313
"homepage": "https://surveyjs.org/",
1414
"license": "MIT",
1515
"files": [
16-
"dist/"
16+
"dist/",
17+
"js/",
18+
"css/"
1719
],
1820
"main": "survey.react.bootstrap.min.js",
1921
"repository": {

packages/survey-react/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "survey-react",
3-
"version": "0.9.11",
3+
"version": "0.9.12",
44
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
55
"keywords": [
66
"Survey",
@@ -12,7 +12,9 @@
1212
"homepage": "https://surveyjs.org/",
1313
"license": "MIT",
1414
"files": [
15-
"dist/"
15+
"dist/",
16+
"js/",
17+
"css/"
1618
],
1719
"main": "survey.react.min.js",
1820
"repository": {

packagetemplate.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"homepage": "https://surveyjs.org/",
1111
"license": "MIT",
1212
"files": [
13-
"dist/"
13+
"dist/",
14+
"js/",
15+
"css/"
1416
],
1517
"main": "fileName",
1618
"repository": {

0 commit comments

Comments
 (0)