Skip to content

Commit f29b035

Browse files
committed
Merge master
2 parents ca7b236 + 4749b0f commit f29b035

File tree

143 files changed

+4091
-1828
lines changed

Some content is hidden

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

143 files changed

+4091
-1828
lines changed

.github/workflows/mainCI.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Use Node.js 16.x
14+
uses: actions/checkout@v2
15+
with:
16+
node-version: 16.x
17+
18+
- name: Install
19+
run: npm install
20+
21+
- name: Build
22+
run: npm run build-static-data
23+
24+
- name: Scan for accessibility issues
25+
uses: microsoft/accessibility-insights-action@v2
26+
with:
27+
repo-token: ${{ secrets.GITHUB_TOKEN }}
28+
site-dir: ${{ github.workspace }}/dist/website
29+
localhost-port: 12345
30+
input-urls: http://localhost:12345/profile http://localhost:12345/500 http://localhost:12345/404
31+
32+
- name: Upload report artifact
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: accessibility-reports
36+
path: ${{ github.workspace }}/_accessibility-reports

community/widgets/document-details/ko/documentDetailsViewModelBinder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Bag } from "@paperbits/common";
2-
import { EventManager } from "@paperbits/common/events";
2+
import { EventManager, Events } from "@paperbits/common/events";
33
import { ComponentFlow, IWidgetBinding } from "@paperbits/common/editing";
44
import { ViewModelBinder } from "@paperbits/common/widgets";
55
import { DocumentDetailsViewModel } from "./documentDetailsViewModel";
@@ -28,7 +28,7 @@ export class DocumentDetailsViewModelBinder implements ViewModelBinder<DocumentD
2828
draggable: true,
2929
applyChanges: async () => {
3030
await this.updateViewModel(model, viewModel);
31-
this.eventManager.dispatchEvent("onContentUpdate");
31+
this.eventManager.dispatchEvent(Events.ContentUpdate);
3232
}
3333
};
3434
viewModel["widgetBinding"] = binding;

environmentConstants.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
const staticDataEnvironment = "staticData";
3+
4+
module.exports = {
5+
staticDataEnvironment
6+
}

examples/widgets/conference-session/ko/conferenceSessionViewModelBinder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Bag } from "@paperbits/common";
2-
import { EventManager } from "@paperbits/common/events";
2+
import { EventManager, Events } from "@paperbits/common/events";
33
import { ComponentFlow, IWidgetBinding } from "@paperbits/common/editing";
44
import { ViewModelBinder } from "@paperbits/common/widgets";
55
import { ConferenceSessionViewModel } from "./conferenceSessionViewModel";
@@ -28,7 +28,7 @@ export class ConferenceSessionViewModelBinder implements ViewModelBinder<Confere
2828
editor: widgetEditorSelector,
2929
applyChanges: async () => {
3030
await this.updateViewModel(model, viewModel);
31-
this.eventManager.dispatchEvent("onContentUpdate");
31+
this.eventManager.dispatchEvent(Events.ContentUpdate);
3232
}
3333
};
3434
viewModel["widgetBinding"] = binding;

package.json

Lines changed: 75 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"azure"
99
],
1010
"engines": {
11-
"node": ">=14.17.0"
11+
"node": ">=14.18.2"
1212
},
1313
"scripts": {
1414
"start": "webpack-dev-server --open --config webpack.develop.js",
@@ -20,88 +20,91 @@
2020
"test": "node node_modules/mocha/bin/_mocha -r mocha.js src/**/*.spec.ts tests/e2e/**/*.spec.ts --timeout 30000",
2121
"deploy-function": "npm run build-function && cd dist/function && func azure functionapp publish < function app name >",
2222
"publish": "webpack --config webpack.publisher.js && node dist/publisher/index.js && npm run serve-website",
23-
"serve-website": "webpack-dev-server --open --contentBase dist/website --quiet"
23+
"serve-website": "webpack serve --open --static ./dist/website --no-stats",
24+
"build-static-data": "webpack --config webpack.staticData.js && node dist/publisher/index.js"
2425
},
2526
"devDependencies": {
2627
"@azure/storage-blob": "12.8.0",
27-
"@types/chai": "^4.2.22",
28+
"@types/chai": "^4.3.0",
2829
"@types/google-maps": "^3.2.3",
2930
"@types/knockout": "^3.4.71",
30-
"@types/knockout.mapping": "^2.0.36",
31+
"@types/knockout.mapping": "^2.0.37",
3132
"@types/knockout.validation": "0.0.38",
3233
"@types/mime": "^2.0.3",
33-
"@types/mocha": "9.0.0",
34-
"@types/node": "^16.11.6",
34+
"@types/mocha": "9.1.0",
35+
"@types/node": "^17.0.17",
3536
"@types/puppeteer": "5.4.4",
36-
"autoprefixer": "^10.4.0",
37-
"azure-storage": "^2.10.5",
38-
"chai": "^4.3.4",
39-
"clean-webpack-plugin": "2.0.2",
40-
"copy-webpack-plugin": "^6.2.1",
41-
"css-loader": "^5.0.0",
42-
"file-loader": "^6.1.1",
43-
"html-loader": "^1.3.2",
44-
"mini-css-extract-plugin": "^1.0.0",
45-
"mocha": "^9.1.3",
37+
"autoprefixer": "^10.4.2",
38+
"buffer": "^6.0.3",
39+
"chai": "^4.3.6",
40+
"clean-webpack-plugin": "4.0.0",
41+
"copy-webpack-plugin": "^10.2.4",
42+
"css-loader": "^6.6.0",
43+
"file-loader": "^6.2.0",
44+
"html-loader": "^3.1.0",
45+
"mini-css-extract-plugin": "^2.5.3",
46+
"mocha": "^9.2.0",
4647
"path": "^0.12.7",
47-
"postcss-loader": "^4.0.4",
48-
"puppeteer": "10.4.0",
48+
"postcss-loader": "^6.2.1",
49+
"puppeteer": "13.3.1",
50+
"querystring-es3": "^0.2.1",
4951
"raw-loader": "^4.0.2",
50-
"sass": "^1.43.4",
51-
"sass-loader": "^10.1.1",
52-
"style-loader": "^2.0.0",
53-
"terser-webpack-plugin": "^4.1.0",
54-
"ts-loader": "^8.3.0",
55-
"ts-node": "10.4.0",
52+
"sass": "^1.49.7",
53+
"sass-loader": "^12.4.0",
54+
"stream-browserify": "^3.0.0",
55+
"style-loader": "^3.3.1",
56+
"terser-webpack-plugin": "^5.3.1",
57+
"ts-loader": "^9.2.6",
58+
"ts-node": "10.5.0",
5659
"tslint": "^6.1.3",
57-
"typescript": "^4.4.4",
60+
"typescript": "^4.5.5",
5861
"url-loader": "^4.1.1",
59-
"webpack": "^4.44.1",
60-
"webpack-cli": "^3.3.12",
61-
"webpack-dev-server": "^3.11.2",
62-
"webpack-merge": "^5.2.0"
62+
"webpack": "5.68.0",
63+
"webpack-cli": "4.9.2 ",
64+
"webpack-dev-server": "4.7.4",
65+
"webpack-merge": "5.8.0"
6366
},
64-
"dependencies": {
65-
"@azure/msal-browser": "^2.20.0",
66-
"@braintree/sanitize-url": "^5.0.2",
67-
"@monaco-editor/loader": "^1.2.0",
68-
"@paperbits/azure": "0.1.468",
69-
"@paperbits/common": "0.1.468",
70-
"@paperbits/core": "0.1.468",
71-
"@paperbits/prosemirror": "0.1.468",
72-
"@paperbits/styles": "0.1.468",
73-
"@webcomponents/custom-elements": "1.5.0",
74-
"@webcomponents/shadydom": "^1.9.0",
75-
"applicationinsights-js": "^1.0.21",
76-
"client-oauth2": "4.3.3",
77-
"codemirror": "^5.63.3",
78-
"core-js": "^3.19.1",
79-
"d3": "^5.11.0",
80-
"google-maps": "^4.3.3",
81-
"graphql": "15.5.0",
82-
"graphql-config": "^4.0.1",
83-
"graphql-language-service": "^3.1.4",
84-
"js-beautify": "^1.14.0",
85-
"knockout": "^3.5.1",
86-
"knockout-mapping": "^2.6.0",
87-
"knockout.validation": "^2.0.4",
88-
"liquidjs": "^9.28.4",
89-
"lunr": "^2.3.9",
90-
"mime": "^2.6.0",
91-
"moment": "^2.29.1",
92-
"monaco-editor": "^0.29.1",
93-
"msal": "^1.4.15",
94-
"prettier": "^2.4.1",
95-
"prismjs": "^1.25.0",
96-
"rehype-raw": "^6.1.0",
97-
"rehype-sanitize": "^5.0.0",
98-
"rehype-stringify": "^9.0.2",
99-
"remark": "^14.0.1",
100-
"remark-gfm": "^3.0.0",
101-
"remark-parse": "^10.0.1",
102-
"remark-rehype": "^10.0.1",
103-
"saxen": "^8.1.2",
104-
"topojson-client": "^3.1.0",
105-
"truncate-html": "^1.0.4"
106-
}
67+
"dependencies": {
68+
"@azure/msal-browser": "^2.20.0",
69+
"@braintree/sanitize-url": "^5.0.2",
70+
"@monaco-editor/loader": "^1.2.0",
71+
"@paperbits/azure": "0.1.486",
72+
"@paperbits/common": "0.1.486",
73+
"@paperbits/core": "0.1.486",
74+
"@paperbits/prosemirror": "0.1.486",
75+
"@paperbits/styles": "0.1.486",
76+
"@webcomponents/custom-elements": "1.5.0",
77+
"@webcomponents/shadydom": "^1.9.0",
78+
"applicationinsights-js": "^1.0.21",
79+
"client-oauth2": "4.3.3",
80+
"codemirror": "^5.65.1",
81+
"core-js": "^3.21.0",
82+
"d3": "^5.11.0",
83+
"google-maps": "^4.3.3",
84+
"graphql": "^15.5.0",
85+
"graphql-config": "^4.0.1",
86+
"graphql-language-service": "^3.1.4",
87+
"js-beautify": "^1.14.0",
88+
"knockout": "^3.5.1",
89+
"knockout-mapping": "^2.6.0",
90+
"knockout.validation": "^2.0.4",
91+
"liquidjs": "^9.34.0",
92+
"lunr": "^2.3.9",
93+
"mime": "^3.0.0",
94+
"moment": "^2.29.1",
95+
"monaco-editor": "^0.29.1",
96+
"msal": "^1.4.16",
97+
"prettier": "^2.5.1",
98+
"prismjs": "^1.26.0",
99+
"rehype-raw": "^6.1.1",
100+
"rehype-sanitize": "^5.0.1",
101+
"rehype-stringify": "^9.0.3",
102+
"remark": "^14.0.2",
103+
"remark-gfm": "^3.0.1",
104+
"remark-parse": "^10.0.1",
105+
"remark-rehype": "^10.1.0",
106+
"saxen": "^8.1.2",
107+
"topojson-client": "^3.1.0",
108+
"truncate-html": "^1.0.4"
109+
}
107110
}

scaffolds/widget/ko/widgetViewModelBinder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Bag } from "@paperbits/common";
2-
import { EventManager } from "@paperbits/common/events";
2+
import { EventManager, Events } from "@paperbits/common/events";
33
import { ComponentFlow, IWidgetBinding } from "@paperbits/common/editing";
44
import { widgetName, widgetDisplayName, widgetEditorSelector } from "../constants";
55
import { WidgetViewModel } from "./widgetViewModel";
@@ -33,7 +33,7 @@ export class WidgetViewModelBinder implements ViewModelBinder<WidgetModel, Widge
3333
draggable: true,
3434
applyChanges: async () => {
3535
await this.updateViewModel(model, viewModel);
36-
this.eventManager.dispatchEvent("onContentUpdate");
36+
this.eventManager.dispatchEvent(Events.ContentUpdate);
3737
}
3838
};
3939

0 commit comments

Comments
 (0)