Skip to content

Commit

Permalink
Bumps mwdk to 3.0.1. Fixes font paths. Fixes issue w loading v1 qsets…
Browse files Browse the repository at this point in the history
… in mwdk creator.
  • Loading branch information
clpetersonucf committed Nov 16, 2023
1 parent d456f0b commit 89ae60b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"version": "2.3.1",
"dependencies": {
"materia-widget-development-kit": "~3.0.0",
"materia-widget-development-kit": "^3.0.1",
"micromarkdown": "^0.3.0"
},
"scripts": {
Expand Down
10 changes: 5 additions & 5 deletions src/assets/icomoon.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?iwicyl');
src: url('fonts/icomoon.eot?iwicyl#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?iwicyl') format('truetype'),
url('fonts/icomoon.woff?iwicyl') format('woff'),
url('fonts/icomoon.svg?iwicyl#icomoon') format('svg');
src: url('assets/fonts/icomoon.eot?iwicyl');
src: url('assets/fonts/icomoon.eot?iwicyl#iefix') format('embedded-opentype'),
url('assets/fonts/icomoon.ttf?iwicyl') format('truetype'),
url('assets/fonts/icomoon.woff?iwicyl') format('woff'),
url('assets/fonts/icomoon.svg?iwicyl#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
Expand Down
4 changes: 3 additions & 1 deletion src/src-assets/legacyQsetSrv.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ angular.module "Adventure"

item.type = "Adventure"
item.nodeId = item.options.id
item.id = item.options.id
# extreme edge-case detection to ensure a mwdk mock id isn't being passed around
# this would generally only affect a v1 qset when viewed in the context of the mwdk
item.id = if typeof(item.options.id) is "string" and item.options.id.match(/^(mwdk-mock-id-[A-Za-z0-9\-]+)$/)[0] then item.options.id = 0 else item.options.id

delete item.assets

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4546,10 +4546,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/materia-widget-dependencies/-/materia-widget-dependencies-0.2.0.tgz#ebec53a9c10991bacf8b8ea9d6dfba5cd40ed912"
integrity sha512-eqab8DdPD0tzEicJWfgc/BJko/MSZarECmXENNwt4NUr757HCQJl7M+q70eXYO84Ssk3kHySTELgOTLES/FODg==

materia-widget-development-kit@~3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/materia-widget-development-kit/-/materia-widget-development-kit-3.0.0.tgz#266e7f2e3d774845838e25d1d775c93cd3f418fb"
integrity sha512-sybUgRn7BGUIyiLHecTrwMumZrFUI2kW7f/2+D9v7GiNCbJDPLqNA04KL38hiy69ISNhGcEgL17TVXsYf6QD0Q==
materia-widget-development-kit@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/materia-widget-development-kit/-/materia-widget-development-kit-3.0.1.tgz#16b48010d68c52a2382f117e628b714c5a2be47d"
integrity sha512-qVd9yzFPleu+FAYvboiA+EGvbP1e2GsVvhl4IG/YIxNXCvEtP7jZcCtpqXVY9p8piUPBAmxXY5E/NAS06iXRIw==
dependencies:
"@babel/core" "^7.22.17"
"@babel/preset-env" "^7.20.2"
Expand Down

0 comments on commit 89ae60b

Please sign in to comment.