feat: Update version to 1.3.1 and ensure title trimming in DynamicPollWebPart

This commit is contained in:
Torsten Brendgen
2026-08-27 00:36:38 +02:00
parent 8c8613afb8
commit 4e9b36b1cb
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "dynamic-poll-web-part",
"title": "dynamic-poll-web-part",
"id": "900239c9-b6c7-495d-a386-2d08a81a66f3",
"version": "1.3.0.0",
"version": "1.3.1.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true
},
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dynamic-poll-web-part",
"version": "1.3.0",
"version": "1.3.1",
"private": true,
"main": "lib/index.js",
"engines": { "node": ">=6.9.0 <9.0.0" },
@@ -172,7 +172,7 @@ export default class DynamicPollWebPart extends BaseClientSideWebPart<IDynamicPo
pollNavigationLabel: strings.PollNavigationLabel
};
const element: React.ReactElement<IDynamicPollCollectionProps> = React.createElement(DynamicPollCollection, {
title: this.properties.title || strings.DefaultTitle,
title: String(this.properties.title || '').trim(),
snapshots: snapshots,
displayMode: this.properties.displayMode === 'accordion' ? 'accordion' : 'slider',
showResultsBeforeVote: this.properties.showResultsBeforeVote === true,
+3 -1
View File
@@ -16,7 +16,7 @@ var component = read('src/webparts/dynamicPoll/components/DynamicPoll.tsx');
var collection = read('src/webparts/dynamicPoll/components/DynamicPollCollection.tsx');
var styles = read('src/webparts/dynamicPoll/components/DynamicPoll.module.scss');
assert(packageJson.version === '1.3.0' && solution.version === '1.3.0.0', 'Version mismatch.');
assert(packageJson.version === '1.3.1' && solution.version === '1.3.1.0', 'Version mismatch.');
assert(solution.includeClientSideAssets === true && solution.skipFeatureDeployment === true, 'Central deployment missing.');
assert(packageJson.name === 'dynamic-poll-web-part' && solution.name === 'dynamic-poll-web-part' &&
solution.title === 'dynamic-poll-web-part', 'Dynamic Poll package naming is inconsistent.');
@@ -31,6 +31,8 @@ assert(webPart.indexOf("PropertyPaneDropdown('pollKeyField'") >= 0 &&
assert(webPart.indexOf("PropertyPaneTextField('title'") >= 0 &&
collection.indexOf('styles.webPartHeading') >= 0,
'Configurable web part title is missing.');
assert(webPart.indexOf("String(this.properties.title || '').trim()") >= 0,
'An empty web part title must remain hidden.');
assert(webPart.indexOf("PropertyPaneDropdown('displayMode'") >= 0 &&
webPart.indexOf('DynamicPollCollection') >= 0, 'Multiple-poll display mode is missing.');
assert(service.indexOf('getSnapshots') >= 0 && service.indexOf('getActivePolls') >= 0,