pxt-core 7.5.16 → 7.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -801,6 +801,9 @@ declare namespace ts.pxtc {
801
801
  topblock?: boolean;
802
802
  topblockWeight?: number;
803
803
  locs?: pxt.Map<string>;
804
+ toolboxParent?: string; // The ID of a block that will wrap this block in the toolbox. Useful for having multiple instances of the same parent block with different child shadows
805
+ toolboxParentArgument?: string; // Used with toolboxParent. The name of the arg that this block should be inserted into as a shadow
806
+
804
807
  // On namepspace
805
808
  subcategories?: string[];
806
809
  groups?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.5.16",
3
+ "version": "7.5.19",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -68,7 +68,7 @@
68
68
  "browserify": "16.2.3",
69
69
  "chai": "^3.5.0",
70
70
  "cssnano": "4.1.10",
71
- "dompurify": "2.0.8",
71
+ "dompurify": "2.0.17",
72
72
  "faye-websocket": "0.11.1",
73
73
  "karma": "6.3.10",
74
74
  "karma-chai": "0.1.0",
@@ -85,7 +85,7 @@
85
85
  "request": "2.88.0",
86
86
  "rimraf": "2.5.4",
87
87
  "rtlcss": "2.2.1",
88
- "sanitize-html": "1.22.0",
88
+ "sanitize-html": "2.3.2",
89
89
  "semantic-ui-less": "2.4.1",
90
90
  "terser": "5.6.0"
91
91
  },
package/theme/common.less CHANGED
@@ -884,17 +884,21 @@ Field editors
884
884
  Editor Sidebar
885
885
  *******************************/
886
886
 
887
+ @sidebarPrimaryColor: @teal;
888
+ @sidebarSecondaryColor: @blue;
889
+ @sidbarActiveTabIconColor: @sidebarSecondaryColor;
890
+
887
891
  #editorSidebar {
888
892
  border-right: 2px solid darken(desaturate(@blocklyToolboxColor, 60%), 10%);
889
893
 
890
894
  .tab-navigation {
891
- color: @blue;
892
- background-color: @teal;
895
+ color: @sidebarSecondaryColor;
896
+ background-color: @sidebarPrimaryColor;
893
897
  }
894
898
 
895
899
  .tab-icon.active {
896
- color: @teal;
897
- background-color: @blue;
900
+ color: @sidbarActiveTabIconColor;
901
+ background-color: @sidebarPrimaryColor;
898
902
  }
899
903
  }
900
904
 
@@ -2,8 +2,11 @@
2
2
  @tutorialFontSize: 1.125rem;
3
3
  @tutorialTitleFontSize: 1.5rem;
4
4
 
5
- @tutorialPrimaryColor: @teal;
6
- @tutorialSecondaryColor: @blue;
5
+ @tutorialPrimaryColor: @sidebarPrimaryColor;
6
+ @tutorialSecondaryColor: @sidebarSecondaryColor;
7
+ @tutorialBarForegroundColor: @tutorialPrimaryColor;
8
+ @tutorialBarBackgroundColor: @tutorialSecondaryColor;
9
+
7
10
  @tutorialLinkColor: #0064BF;
8
11
  @tutorialLinkHoverColor: #003C94;
9
12
 
@@ -142,12 +145,12 @@
142
145
  height: 1rem;
143
146
  overflow: hidden;
144
147
  border-radius: 1rem;
145
- background-color: @tutorialSecondaryColor;
148
+ background-color: @tutorialBarBackgroundColor;
146
149
  cursor: pointer;
147
150
  }
148
151
 
149
152
  .tutorial-step-bar-fill {
150
- background-color: @tutorialPrimaryColor;
153
+ background-color: @tutorialBarForegroundColor;
151
154
  height: 100%;
152
155
  transition: width 0.5s ease-out;
153
156
  pointer-events: none;
@@ -530,7 +533,7 @@
530
533
  }
531
534
 
532
535
  .tutorial-step-bar-fill {
533
- background-color: @tutorialSecondaryColor;
536
+ background-color: @tutorialBarBackgroundColor;
534
537
  }
535
538
 
536
539
  /*******************************
@@ -722,11 +725,11 @@
722
725
  }
723
726
 
724
727
  .tutorial-step-bar {
725
- background-color: @tutorialSecondaryColor;
728
+ background-color: @tutorialBarBackgroundColor;
726
729
  }
727
730
 
728
731
  .tutorial-step-bar-fill {
729
- background-color: @tutorialPrimaryColor;
732
+ background-color: @tutorialBarForegroundColor;
730
733
  }
731
734
 
732
735
  .tutorial-hint .tutorial-callout-button.ui.button {