@blockly/theme-dark 13.2.0 → 13.2.2-beta.2

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.
package/LICENSE CHANGED
@@ -199,4 +199,4 @@
199
199
  distributed under the License is distributed on an "AS IS" BASIS,
200
200
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
201
  See the License for the specific language governing permissions and
202
- limitations under the License.
202
+ limitations under the License.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A [Blockly](https://www.npmjs.com/package/blockly) dark theme.
4
4
 
5
- ![A Blockly workspace using the dark theme.](https://github.com/RaspberryPiFoundation/blockly-samples/raw/master/plugins/theme-dark/readme-media/DarkTheme.png)
5
+ ![A Blockly workspace using the dark theme.](https://github.com/RaspberryPiFoundation/blockly/raw/main/packages/plugins/theme-dark/readme-media/DarkTheme.png)
6
6
 
7
7
  ## Installation
8
8
 
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("blockly/core"));else if("function"==typeof define&&define.amd)define(["blockly/core"],o);else{var r="object"==typeof exports?o(require("blockly/core")):o(e.Blockly);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(this,e=>(()=>{"use strict";var o={370(o){o.exports=e}},r={};function t(e){var l=r[e];if(void 0!==l)return l.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,t),n.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};t.r(l),t.d(l,{default:()=>u});var n=t(370);const u=n.Theme.defineTheme("dark",{name:"dark",base:n.Themes.Classic,componentStyles:{workspaceBackgroundColour:"#1e1e1e",toolboxBackgroundColour:"#333",toolboxForegroundColour:"#fff",flyoutBackgroundColour:"#252526",flyoutForegroundColour:"#ccc",flyoutOpacity:1,scrollbarColour:"#797979",insertionMarkerColour:"#fff",insertionMarkerOpacity:.3,scrollbarOpacity:.4,cursorColour:"#d0d0d0"}});return l})());
2
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("blockly/core"));else if("function"==typeof define&&define.amd)define(["blockly/core"],o);else{var r="object"==typeof exports?o(require("blockly/core")):o(e.Blockly);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(this,e=>(()=>{"use strict";var o={370(o){o.exports=e}};const r={};function t(e){const l=r[e];if(void 0!==l)return l.exports;const n=r[e]={exports:{}};return o[e](n,n.exports,t),n.exports}t.n=e=>{const o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{if(Array.isArray(o))for(var r=0;r<o.length;){var l=o[r++],n=o[r++];t.o(e,l)?0===n&&r++:0===n?Object.defineProperty(e,l,{enumerable:!0,value:o[r++]}):Object.defineProperty(e,l,{enumerable:!0,get:n})}else for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let l={};t.r(l);var n=t(370);const c=n.Theme.defineTheme("dark",{name:"dark",base:n.Themes.Classic,componentStyles:{workspaceBackgroundColour:"#1e1e1e",toolboxBackgroundColour:"#333",toolboxForegroundColour:"#fff",flyoutBackgroundColour:"#252526",flyoutForegroundColour:"#ccc",flyoutOpacity:1,scrollbarColour:"#797979",insertionMarkerColour:"#fff",insertionMarkerOpacity:.3,scrollbarOpacity:.4,cursorColour:"#d0d0d0"}});return t.d(l,["default",0,c]),l})());
3
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":";CAAA,SAAAA,EAAAC,GACA,oBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,sBACA,sBAAAC,QAAAA,OAAAC,IACAD,OAAA,iBAAAJ,OACA,CACA,IAAAM,EAAA,iBAAAL,QAAAD,EAAAG,QAAA,iBAAAH,EAAAD,EAAA,SACA,QAAAQ,KAAAD,GAAA,iBAAAL,QAAAA,QAAAF,GAAAQ,GAAAD,EAAAC,EACA,CACC,CATD,CASCC,KAAAC,oCCTDP,EAAAD,QAAAQ,ICCAC,EAAA,GAGA,SAAAC,EAAAC,GAEA,IAAAC,EAAAH,EAAAE,GACA,QAAAE,IAAAD,EACA,OAAAA,EAAAZ,QAGA,IAAAC,EAAAQ,EAAAE,GAAA,CAGAX,QAAA,IAOA,OAHAc,EAAAH,GAAAV,EAAAA,EAAAD,QAAAU,GAGAT,EAAAD,OACA,CCrBAU,EAAAK,EAAAd,IACA,IAAAe,EAAAf,GAAAA,EAAAgB,WACA,IAAAhB,EAAA,QACA,MAEA,OADAS,EAAAQ,EAAAF,EAAA,CAAiCX,EAAAW,IACjCA,GCLAN,EAAAQ,EAAA,CAAAlB,EAAAmB,KACA,QAAAC,KAAAD,EACAT,EAAAW,EAAAF,EAAAC,KAAAV,EAAAW,EAAArB,EAAAoB,IACAE,OAAAC,eAAAvB,EAAAoB,EAAA,CAAyCI,YAAA,EAAAC,IAAAN,EAAAC,MCJzCV,EAAAW,EAAA,CAAAK,EAAAC,IAAAL,OAAAM,UAAAC,eAAAC,KAAAJ,EAAAC,GCCAjB,EAAAqB,EAAA/B,IACA,oBAAAgC,QAAAA,OAAAC,aACAX,OAAAC,eAAAvB,EAAAgC,OAAAC,YAAA,CAAuDC,MAAA,WAEvDZ,OAAAC,eAAAvB,EAAA,cAAgDkC,OAAA,yDCUhD,MAAAC,EAAeC,EAAAC,MAAcC,YAAY,OAAQ,CAC/CC,KAAM,OACNC,KAAMJ,EAAAK,OAAeC,QACrBC,gBAAiB,CACfC,0BAA2B,UAC3BC,wBAAyB,OACzBC,wBAAyB,OACzBC,uBAAwB,UACxBC,uBAAwB,OACxBC,cAAe,EACfC,gBAAiB,UACjBC,sBAAuB,OACvBC,uBAAwB,GACxBC,iBAAkB,GAClBC,aAAc","sources":["webpack://@blockly/theme-dark/webpack/universalModuleDefinition","webpack://@blockly/theme-dark/external umd {\"root\":\"Blockly\",\"commonjs\":\"blockly/core\",\"commonjs2\":\"blockly/core\",\"amd\":\"blockly/core\"}","webpack://@blockly/theme-dark/webpack/bootstrap","webpack://@blockly/theme-dark/webpack/runtime/compat get default export","webpack://@blockly/theme-dark/webpack/runtime/define property getters","webpack://@blockly/theme-dark/webpack/runtime/hasOwnProperty shorthand","webpack://@blockly/theme-dark/webpack/runtime/make namespace object","webpack://@blockly/theme-dark/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"blockly/core\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"blockly/core\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"blockly/core\")) : factory(root[\"Blockly\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, (__WEBPACK_EXTERNAL_MODULE__370__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__370__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Dark theme.\n */\n\nimport * as Blockly from 'blockly/core';\n\n/**\n * Dark theme.\n */\nexport default Blockly.Theme.defineTheme('dark', {\n name: 'dark',\n base: Blockly.Themes.Classic,\n componentStyles: {\n workspaceBackgroundColour: '#1e1e1e',\n toolboxBackgroundColour: '#333',\n toolboxForegroundColour: '#fff',\n flyoutBackgroundColour: '#252526',\n flyoutForegroundColour: '#ccc',\n flyoutOpacity: 1,\n scrollbarColour: '#797979',\n insertionMarkerColour: '#fff',\n insertionMarkerOpacity: 0.3,\n scrollbarOpacity: 0.4,\n cursorColour: '#d0d0d0',\n },\n});\n"],"names":["root","factory","exports","module","require","define","amd","a","i","this","__WEBPACK_EXTERNAL_MODULE__370__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","src","blockly_core__WEBPACK_IMPORTED_MODULE_0__","Theme","defineTheme","name","base","Themes","Classic","componentStyles","workspaceBackgroundColour","toolboxBackgroundColour","toolboxForegroundColour","flyoutBackgroundColour","flyoutForegroundColour","flyoutOpacity","scrollbarColour","insertionMarkerColour","insertionMarkerOpacity","scrollbarOpacity","cursorColour"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":";CAAA,SAAAA,EAAAC,GACA,oBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,sBACA,sBAAAC,QAAAA,OAAAC,IACAD,OAAA,iBAAAJ,OACA,CACA,IAAAM,EAAA,iBAAAL,QAAAD,EAAAG,QAAA,iBAAAH,EAAAD,EAAA,SACA,QAAAQ,KAAAD,GAAA,iBAAAL,QAAAA,QAAAF,GAAAQ,GAAAD,EAAAC,EACA,CACC,CATD,CASCC,KAAAC,oCCTDP,EAAAD,QAAAQ,ICCA,MAAAC,EAAA,GAGA,SAAAC,EAAAC,GAEA,MAAAC,EAAAH,EAAAE,GACA,QAAAE,IAAAD,EACA,OAAAA,EAAAZ,QAGA,MAAAC,EAAAQ,EAAAE,GAAA,CAGAX,QAAA,IAOA,OAHAc,EAAAH,GAAAV,EAAAA,EAAAD,QAAAU,GAGAT,EAAAD,OACA,CCrBAU,EAAAK,EAAAd,IACA,MAAAe,EAAAf,GAAAA,EAAAgB,WACA,IAAAhB,EAAA,QACA,MAEA,OADAS,EAAAQ,EAAAF,EAAA,CAAiCX,EAAAW,IACjCA,GCLAN,EAAAQ,EAAA,CAAAlB,EAAAmB,KACA,GAAAC,MAAAC,QAAAF,GAEA,IADA,IAAAb,EAAA,EACAA,EAAAa,EAAAG,QAAA,CACA,IAAAC,EAAAJ,EAAAb,KACAkB,EAAAL,EAAAb,KACAI,EAAAe,EAAAzB,EAAAuB,GAMK,IAAAC,GAAyBlB,IAL9B,IAAAkB,EACAE,OAAAC,eAAA3B,EAAAuB,EAAA,CAA2CK,YAAA,EAAAC,MAAAV,EAAAb,OAE3CoB,OAAAC,eAAA3B,EAAAuB,EAAA,CAA2CK,YAAA,EAAAE,IAAAN,GAG3C,MAEA,QAAAD,KAAAJ,EACAT,EAAAe,EAAAN,EAAAI,KAAAb,EAAAe,EAAAzB,EAAAuB,IACAG,OAAAC,eAAA3B,EAAAuB,EAAA,CAA0CK,YAAA,EAAAE,IAAAX,EAAAI,MClB1Cb,EAAAe,EAAA,CAAAM,EAAAC,IAAAN,OAAAO,UAAAC,eAAAC,KAAAJ,EAAAC,GCCAtB,EAAA0B,EAAApC,IACAqC,OAAAC,aACAZ,OAAAC,eAAA3B,EAAAqC,OAAAC,YAAA,CAAuDT,MAAA,WAEvDH,OAAAC,eAAA3B,EAAA,cAAgD6B,OAAA,kCCUhD,MAAAU,EAAeC,EAAAC,MAAcC,YAAY,OAAQ,CAC/CC,KAAM,OACNC,KAAMJ,EAAAK,OAAeC,QACrBC,gBAAiB,CACfC,0BAA2B,UAC3BC,wBAAyB,OACzBC,wBAAyB,OACzBC,uBAAwB,UACxBC,uBAAwB,OACxBC,cAAe,EACfC,gBAAiB,UACjBC,sBAAuB,OACvBC,uBAAwB,GACxBC,iBAAkB,GAClBC,aAAc","sources":["webpack://@blockly/theme-dark/webpack/universalModuleDefinition","webpack://@blockly/theme-dark/external umd {\"root\":\"Blockly\",\"commonjs\":\"blockly/core\",\"commonjs2\":\"blockly/core\",\"amd\":\"blockly/core\"}","webpack://@blockly/theme-dark/webpack/bootstrap","webpack://@blockly/theme-dark/webpack/runtime/compat get default export","webpack://@blockly/theme-dark/webpack/runtime/define property getters","webpack://@blockly/theme-dark/webpack/runtime/hasOwnProperty shorthand","webpack://@blockly/theme-dark/webpack/runtime/make namespace object","webpack://@blockly/theme-dark/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"blockly/core\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"blockly/core\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"blockly/core\")) : factory(root[\"Blockly\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, (__WEBPACK_EXTERNAL_MODULE__370__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__370__;","// The module cache\nconst __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tconst cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tconst module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tconst getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter/value functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tif(Array.isArray(definition)) {\n\t\tvar i = 0;\n\t\twhile(i < definition.length) {\n\t\t\tvar key = definition[i++];\n\t\t\tvar binding = definition[i++];\n\t\t\tif(!__webpack_require__.o(exports, key)) {\n\t\t\t\tif(binding === 0) {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, value: definition[i++] });\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: binding });\n\t\t\t\t}\n\t\t\t} else if(binding === 0) { i++; }\n\t\t}\n\t} else {\n\t\tfor(var key in definition) {\n\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t\t}\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Dark theme.\n */\n\nimport * as Blockly from 'blockly/core';\n\n/**\n * Dark theme.\n */\nexport default Blockly.Theme.defineTheme('dark', {\n name: 'dark',\n base: Blockly.Themes.Classic,\n componentStyles: {\n workspaceBackgroundColour: '#1e1e1e',\n toolboxBackgroundColour: '#333',\n toolboxForegroundColour: '#fff',\n flyoutBackgroundColour: '#252526',\n flyoutForegroundColour: '#ccc',\n flyoutOpacity: 1,\n scrollbarColour: '#797979',\n insertionMarkerColour: '#fff',\n insertionMarkerOpacity: 0.3,\n scrollbarOpacity: 0.4,\n cursorColour: '#d0d0d0',\n },\n});\n"],"names":["root","factory","exports","module","require","define","amd","a","i","this","__WEBPACK_EXTERNAL_MODULE__370__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","definition","Array","isArray","length","key","binding","o","Object","defineProperty","enumerable","value","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","src","blockly_core__WEBPACK_IMPORTED_MODULE_0__","Theme","defineTheme","name","base","Themes","Classic","componentStyles","workspaceBackgroundColour","toolboxBackgroundColour","toolboxForegroundColour","flyoutBackgroundColour","flyoutForegroundColour","flyoutOpacity","scrollbarColour","insertionMarkerColour","insertionMarkerOpacity","scrollbarOpacity","cursorColour"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockly/theme-dark",
3
- "version": "13.2.0",
3
+ "version": "13.2.2-beta.2",
4
4
  "description": "A Blockly dark theme.",
5
5
  "scripts": {
6
6
  "audit:fix": "blockly-scripts auditFix",
@@ -21,14 +21,14 @@
21
21
  "blockly-theme",
22
22
  "dark"
23
23
  ],
24
- "homepage": "https://github.com/RaspberryPiFoundation/blockly-samples/tree/master/plugins/theme-dark#readme",
24
+ "homepage": "https://github.com/RaspberryPiFoundation/blockly/tree/main/packages/plugins/theme-dark#readme",
25
25
  "bugs": {
26
- "url": "https://github.com/RaspberryPiFoundation/blockly-samples/issues"
26
+ "url": "https://github.com/RaspberryPiFoundation/blockly/issues"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
30
- "url": "https://github.com/RaspberryPiFoundation/blockly-samples.git",
31
- "directory": "plugins/theme-dark"
30
+ "url": "https://github.com/RaspberryPiFoundation/blockly.git",
31
+ "directory": "packages/plugins/theme-dark"
32
32
  },
33
33
  "license": "Apache-2.0",
34
34
  "directories": {
@@ -40,7 +40,7 @@
40
40
  "src"
41
41
  ],
42
42
  "devDependencies": {
43
- "@blockly/dev-scripts": "^13.2.0"
43
+ "@blockly/dev-scripts": "^13.2.2-beta.2"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "blockly": "^13.2.0"
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "6342e384d23ea91f63caf3581d7bd50580aeedb2"
51
+ "gitHead": "dcf214e449c29a25fa95b7378477305c79963738"
52
52
  }