@robotical/martyblocksjr 3.5.17 → 3.5.20

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.
@@ -75,7 +75,7 @@
75
75
  display: block;
76
76
  margin: ${css_vh(0.00)};
77
77
  padding: ${css_vh(0.00)};
78
- width: ${css_vh(31.25)};
78
+ width: ${css_vh(41.67)};
79
79
  height: ${css_vh(8.46)};
80
80
  }
81
81
 
@@ -101,6 +101,17 @@
101
101
  -webkit-tap-highlight-color: transparent;
102
102
  }
103
103
 
104
+ .uploadicon {
105
+ display: inline-block;
106
+ position: relative;
107
+ margin: ${css_vh(0.00)} ${css_vh(0.91)} ${css_vh(0.00)};
108
+ width: ${css_vh(8.46)};
109
+ height: ${css_vh(8.46)};
110
+ background: url('../assets/paint/upload.svg');
111
+ background-size: 100%;
112
+ -webkit-tap-highlight-color: transparent;
113
+ }
114
+
104
115
  .okicon {
105
116
  display: inline-block;
106
117
  position: relative;
@@ -136,6 +147,19 @@
136
147
  background-size: 100%;
137
148
  }
138
149
 
150
+ .uploadicon:active {
151
+ background: url('../assets/paint/uploadPressed.svg');
152
+ background-size: 100%;
153
+ }
154
+
155
+ .uploadicon.disabled, .uploadicon.disabled:active {
156
+ opacity: 0.4;
157
+ cursor: default;
158
+ background: url('../assets/paint/upload.svg');
159
+ background-size: 100%;
160
+ pointer-events: none;
161
+ }
162
+
139
163
  /*
140
164
  Assets chooser
141
165
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/martyblocksjr",
3
- "version": "3.5.17",
3
+ "version": "3.5.20",
4
4
  "description": "ScratchJr",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
package/REPORT.md DELETED
@@ -1,17 +0,0 @@
1
- # Marty Colour Sensed Event Block
2
-
3
- ## Completed Work
4
- - Added `martycoloursensed` block definition with argument options in `src/editor/blocks/BlockSpecs.js`.
5
- - Surface block documentation entry with title, image placeholder, and description container in `editions/free/src/inapp/blocks.html`.
6
- - Added temporary English localisation strings (`BLOCK_DESC_MARTY_ON_COLOUR_SENSED*`) in `editions/free/src/localizations/en.json`.
7
- - Wired runtime behaviour by delegating Marty colour sensor events through `Prims.OnMartyEvent` and `MartyBlocks` subscriptions.
8
-
9
- ## Outstanding Items
10
- - Provide the `images/marty_colour_sensed.png` asset (currently referenced by the in-app guide but not present in the tree).
11
- - Extend localisations beyond English (other locale JSON files still miss the new strings).
12
- - Follow-up feature work: add `martyobstaclesensed` (two options) and `martyLightSensed` blocks per the roadmap.
13
-
14
- ## Open Questions / Observations
15
- - The new guide markup in `blocks.html` needs closing `</div>` tags for the `block-wrapper-right` and its parent to match the surrounding structure.
16
- - `Prims.OnMartyEvent` mirrors `OnCogEvent`, including the zero millisecond debounce guard; confirm whether additional throttling or deduplication is required once hardware behaviour is validated.
17
- - No automated tests or runtime verification performed yet; integration should be exercised on-device when ready.