Skip to content

Commit b3ba63a

Browse files
DemonkratiyMulyukovAidarNursultan Dzhumabaevaleksandrlevochkinmicrosoft-github-policy-service[bot]
authored
main to dev (#156)
* release v2.2.0.0 (#116) * PR Version 2.2.0.0 (#110) * Initialized SelectionManager instance (Working version) * Updated packages and config files * Switched from puppeteer to playwright, and from tslint to eslint + some changes in configs * Fixed code style according to linter's suggestions * Updated packages * Removed jquery * Removed jasmine-jquery dependency and fixed tests * Increased visual's version * Increased the visual's version in pbiviz.json as well * Changed callback type for addTooltipService method * Increased version in the lock file * Removed redundant files * Updated libraries to latest versions * Increased versions of API and visual and fixed Karma config * Added support for keyboard focus * Updated build workflow * Fixed lodash imports and improved type checks in tests * Polished code * Fixed compilation errors in tests * Updated libraries * Updated changelog and set newest API version * Removed tslint file * Created formatting model * Migrated to formatting model * Changed displayName values for Quaity, Min font size and Max font size. Added minRepetitionsToDisplay to string resources * Fixed bug with ColorPicker when color was not applied * supportHighlight logic and tests * showAll, removed unused packages, packages version up * moved keys from cababilities to formatting settings * removed unused npm packages proper contextmenu handling renamed settings object renamed function names from c++ convention to js convention --------- Co-authored-by: Aleksandr Levochkin <v-alevockin@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-allevockin@microsoft.com> * removed support highlight logic (#112) * removed support highlight logic * removed unused function peviously was used by supportHighlight --------- Co-authored-by: Nursultan Dzhumabaev <v-dnursultan@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-alevockin@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-allevockin@microsoft.com> * Microsoft mandatory file (#88) Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> * version 2.2.0.0 (#119) * PR Version 2.2.0.0 (#110) * Initialized SelectionManager instance (Working version) * Updated packages and config files * Switched from puppeteer to playwright, and from tslint to eslint + some changes in configs * Fixed code style according to linter's suggestions * Updated packages * Removed jquery * Removed jasmine-jquery dependency and fixed tests * Increased visual's version * Increased the visual's version in pbiviz.json as well * Changed callback type for addTooltipService method * Increased version in the lock file * Removed redundant files * Updated libraries to latest versions * Increased versions of API and visual and fixed Karma config * Added support for keyboard focus * Updated build workflow * Fixed lodash imports and improved type checks in tests * Polished code * Fixed compilation errors in tests * Updated libraries * Updated changelog and set newest API version * Removed tslint file * Created formatting model * Migrated to formatting model * Changed displayName values for Quaity, Min font size and Max font size. Added minRepetitionsToDisplay to string resources * Fixed bug with ColorPicker when color was not applied * supportHighlight logic and tests * showAll, removed unused packages, packages version up * moved keys from cababilities to formatting settings * removed unused npm packages proper contextmenu handling renamed settings object renamed function names from c++ convention to js convention --------- Co-authored-by: Aleksandr Levochkin <v-alevockin@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-allevockin@microsoft.com> * removed support highlight logic (#112) * removed support highlight logic * removed unused function peviously was used by supportHighlight --------- Co-authored-by: Nursultan Dzhumabaev <v-dnursultan@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-alevockin@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-allevockin@microsoft.com> * Update codeql-analysis.yml * Selection fix (#129) * Change behavior * Add workaround to deselection * Increase visual version * Update comment --------- Co-authored-by: Iuliia Kulagina <v-ikulagina@microsoft.com> * Use new array with SelectionIds (#135) Co-authored-by: Iuliia Kulagina <v-ikulagina@microsoft.com> --------- Co-authored-by: MulyukovAidar <v-aimulyukov@microsoft.com> Co-authored-by: Nursultan Dzhumabaev <v-dnursultan@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-alevockin@microsoft.com> Co-authored-by: Aleksandr Levochkin <v-allevockin@microsoft.com> Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Co-authored-by: Iuliia Kulagina <86924383+kullJul@users.noreply.github.com> Co-authored-by: Iuliia Kulagina <v-ikulagina@microsoft.com>
1 parent f9bbcdb commit b3ba63a

9 files changed

Lines changed: 165 additions & 247 deletions

File tree

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
16-
branches: [ main ]
5+
branches: [main, dev, certification]
176
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ main ]
7+
branches: [main, dev, certification]
208
schedule:
21-
- cron: '38 0 * * 4'
9+
- cron: '0 0 * * 3'
2210

2311
jobs:
2412
analyze:
2513
name: Analyze
2614
runs-on: ubuntu-latest
15+
timeout-minutes: 60
2716
permissions:
2817
actions: read
2918
contents: read
@@ -32,40 +21,29 @@ jobs:
3221
strategy:
3322
fail-fast: false
3423
matrix:
35-
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37-
# Learn more:
38-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39-
24+
language: ['typescript']
25+
4026
steps:
4127
- name: Checkout repository
42-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 2
31+
32+
- name: Use Node.js 18
33+
uses: actions/setup-node@v2
34+
with:
35+
node-version: 18.x
36+
37+
- name: Install Dependencies
38+
run: npm ci
4339

44-
# Initializes the CodeQL tools for scanning.
4540
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
41+
uses: github/codeql-action/init@v3
4742
with:
4843
languages: ${{ matrix.language }}
49-
# If you wish to specify custom queries, you can do so here or in a config file.
50-
# By default, queries listed here will override any specified in a config file.
51-
# Prefix the list here with "+" to use these queries and those in the config file.
52-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5344

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below)
5645
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
58-
59-
# ℹ️ Command-line programs to run using the OS shell.
60-
# 📚 https://git.io/JvXDl
61-
62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63-
# and modify them (or add more) to build your code if your project
64-
# uses a compiled language
65-
66-
#- run: |
67-
# make bootstrap
68-
# make release
46+
uses: github/codeql-action/autobuild@v3
6947

7048
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
49+
uses: github/codeql-action/analyze@v3

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.3.4.0
2+
### Visual changes:
3+
* Fix bug with resetting the selection
4+
15
## 2.3.3.0
26
### Visual changes:
37
* Fix bug with bookmarks

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
14+
15+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

package-lock.json

Lines changed: 2 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-visuals-wordcloud",
3-
"version": "2.3.3.0",
3+
"version": "2.3.4.0",
44
"description": "Word Cloud is a visual representation of word frequency and value. Use it to get instant insight into the most important terms in a set.",
55
"repository": {
66
"type": "git",
@@ -33,9 +33,7 @@
3333
"d3-transition": "^3.0.1",
3434
"lodash.clone": "^4.5.0",
3535
"lodash.difference": "^4.5.0",
36-
"lodash.flatten": "^4.4.0",
3736
"lodash.includes": "^4.3.0",
38-
"lodash.isarray": "^4.0.0",
3937
"lodash.isempty": "^4.4.0",
4038
"lodash.isstring": "^4.0.1",
4139
"lodash.keys": "^4.2.0",
@@ -59,9 +57,7 @@
5957
"@types/karma": "^6.3.8",
6058
"@types/lodash.clone": "^4.5.9",
6159
"@types/lodash.difference": "^4.5.9",
62-
"@types/lodash.flatten": "^4.4.9",
6360
"@types/lodash.includes": "^4.3.9",
64-
"@types/lodash.isarray": "^4.0.9",
6561
"@types/lodash.isempty": "^4.4.9",
6662
"@types/lodash.isstring": "^4.0.9",
6763
"@types/lodash.keys": "^4.2.9",

pbiviz.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"visual": {
33
"name": "WordCloud",
4-
"displayName": "WordCloud 2.3.3.0",
4+
"displayName": "WordCloud 2.3.4.0",
55
"guid": "WordCloud1447959067750",
66
"visualClassName": "WordCloud",
7-
"version": "2.3.3.0",
7+
"version": "2.3.4.0",
88
"description": "Word Cloud is a visual representation of word frequency and value. Use it to get instant insight into the most important terms in a set.",
99
"supportUrl": "https://community.powerbi.com",
1010
"gitHubUrl": "https://github.com/Microsoft/PowerBI-visuals-WordCloud"

src/WordCloud.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -794,24 +794,7 @@ export class WordCloud implements IVisual {
794794
this.colorPalette = options.host.colorPalette;
795795
this.visualHost = options.host;
796796
const selectionManager: ISelectionManager = this.visualHost.createSelectionManager();
797-
this.behavior = new WordCloudBehavior(selectionManager,
798-
(text: string): ISelectionId[] => {
799-
const dataPoints: WordCloudDataPoint[] = this.data
800-
&& this.data.dataPoints
801-
&& this.data.dataPoints.filter((dataPoint: WordCloudDataPoint) => {
802-
return dataPoint.text.toLocaleLowerCase() === text;
803-
});
804-
805-
return (
806-
dataPoints && dataPoints[0] && dataPoints[0].selectionIds
807-
? dataPoints[0].selectionIds
808-
: []
809-
);
810-
},
811-
() => {
812-
return this.data.dataPoints;
813-
}
814-
);
797+
this.behavior = new WordCloudBehavior(selectionManager);
815798

816799
this.layout = new VisualLayout(null, WordCloud.DefaultMargin);
817800

@@ -1473,6 +1456,7 @@ export class WordCloud implements IVisual {
14731456
};
14741457

14751458
this.behavior.bindEvents(behaviorOptions);
1459+
this.behavior.renderSelection();
14761460
}
14771461

14781462
private scaleMainView(wordCloudDataView: WordCloudDataView): void {

0 commit comments

Comments
 (0)