@liascript/exporter 2.4.3--0.10.11 → 2.4.3--0.10.12

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.
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link rel="stylesheet" href="index.bc84f59d.css"><script src="index.537547cb.js"></script><script defer type="module" src="index.efc08c25.js"></script><script defer src="index.3da9935f.js" nomodule=""></script><script defer type="module" src="index.1a85f95d.js"></script><script defer src="index.4f4d988f.js" nomodule=""></script><script defer type="module" src="index.25e9eb5c.js"></script><script defer src="index.e4b1965e.js" nomodule=""></script><script defer type="module" src="index.4b4447c6.js"></script><script defer src="index.7a7b44ae.js" nomodule=""></script><script defer type="module" src="index.6dee70be.js"></script><script defer src="index.717c3f88.js" nomodule=""></script><script defer type="module" src="index.14817ef5.js"></script><script defer src="index.941952d3.js" nomodule=""></script><script defer type="module" src="index.1239309c.js"></script><script defer src="index.7be8a672.js" nomodule=""></script><script defer type="module" src="index.1df2912f.js"></script><script defer src="index.2ec95257.js" nomodule=""></script><script defer type="module" src="index.641f77c1.js"></script><script defer src="index.4169121e.js" nomodule=""></script><link rel="icon shortcut" sizes="192x192" href="up_/up_/assets/logo_192.png"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Lia"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="LiaScript"><meta name="msapplication-TileImage" content="up_/up_/assets/logo_192.png"><meta name="msapplication-TileColor" content="#0071c5"><meta name="msapplication-tap-highlight" content="no"><meta name="theme-color" content="#000000"><meta name="description" content="LiaScript is a service for running free and interactive online courses, build with its own Markup-language. So check out the following course ;-)"><link rel="apple-touch-icon" href="logo.abbc2cae.png"><link rel="icon" href="logo.abbc2cae.png" type="image/png"><style>.lds-dual-ring{display:inline-block;height:150px;width:150px}.lds-dual-ring:after{animation:lds-dual-ring 1.2s linear infinite;border-color:#000 transparent;border-radius:50%;border-style:solid;border-width:5px;content:" ";display:block;height:128px;margin:1px;width:128px}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}</style><link rel="stylesheet" href="index.d7c6519f.css"></head><body> <noscript> This page requires JavaScript to be enabled! </noscript> </body></html>
1
+ <!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link rel="stylesheet" href="index.bc84f59d.css"><script src="index.537547cb.js"></script><script defer type="module" src="index.efc08c25.js"></script><script defer src="index.3da9935f.js" nomodule=""></script><script defer type="module" src="index.1a85f95d.js"></script><script defer src="index.4f4d988f.js" nomodule=""></script><script defer type="module" src="index.25e9eb5c.js"></script><script defer src="index.e4b1965e.js" nomodule=""></script><script defer type="module" src="index.3e6aa693.js"></script><script defer src="index.8050a802.js" nomodule=""></script><script defer type="module" src="index.6dee70be.js"></script><script defer src="index.717c3f88.js" nomodule=""></script><script defer type="module" src="index.14817ef5.js"></script><script defer src="index.941952d3.js" nomodule=""></script><script defer type="module" src="index.1239309c.js"></script><script defer src="index.7be8a672.js" nomodule=""></script><script defer type="module" src="index.1df2912f.js"></script><script defer src="index.2ec95257.js" nomodule=""></script><script defer type="module" src="index.641f77c1.js"></script><script defer src="index.4169121e.js" nomodule=""></script><link rel="icon shortcut" sizes="192x192" href="up_/up_/assets/logo_192.png"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Lia"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="LiaScript"><meta name="msapplication-TileImage" content="up_/up_/assets/logo_192.png"><meta name="msapplication-TileColor" content="#0071c5"><meta name="msapplication-tap-highlight" content="no"><meta name="theme-color" content="#000000"><meta name="description" content="LiaScript is a service for running free and interactive online courses, build with its own Markup-language. So check out the following course ;-)"><link rel="apple-touch-icon" href="logo.abbc2cae.png"><link rel="icon" href="logo.abbc2cae.png" type="image/png"><style>.lds-dual-ring{display:inline-block;height:150px;width:150px}.lds-dual-ring:after{animation:lds-dual-ring 1.2s linear infinite;border-color:#000 transparent;border-radius:50%;border-style:solid;border-width:5px;content:" ";display:block;height:128px;margin:1px;width:128px}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}</style><link rel="stylesheet" href="index.d7c6519f.css"></head><body> <noscript> This page requires JavaScript to be enabled! </noscript> </body></html>
package/dist/index.js CHANGED
@@ -7807,6 +7807,7 @@ type alias Process =
7807
7807
  media: $elm$core$Dict$empty,
7808
7808
  modal: $elm$core$Maybe$Nothing,
7809
7809
  origin: origin,
7810
+ persistent: false,
7810
7811
  readme: readme,
7811
7812
  repositoryUrl: $author$project$Lia$Parser$PatReplace$repo(readme),
7812
7813
  resource: _List_Nil,
@@ -7938,7 +7939,7 @@ type alias Process =
7938
7939
  var $author$project$Worker$error = function(title) {
7939
7940
  return A2($elm$core$Basics$composeR, $elm$core$Basics$append('Error (' + (title + ') -> ')), A2($elm$core$Basics$composeR, $elm$core$Tuple$pair(false), $author$project$Worker$output));
7940
7941
  };
7941
- var $author$project$Lia$Script$checkFalse = function(string) {
7942
+ var $author$project$Lia$Utils$checkFalse = function(string) {
7942
7943
  var _v0 = $elm$core$String$toList($elm$core$String$toLower($elm$core$String$trim(string)));
7943
7944
  _v0$4: while(true){
7944
7945
  if (_v0.b) {
@@ -7980,6 +7981,7 @@ type alias Process =
7980
7981
  }
7981
7982
  return true;
7982
7983
  };
7984
+ var $author$project$Lia$Utils$checkPersistency = A2($elm$core$Basics$composeR, $elm$core$Dict$get('persistent'), A2($elm$core$Basics$composeR, $elm$core$Maybe$map($author$project$Lia$Utils$checkFalse), $elm$core$Maybe$withDefault(false)));
7983
7985
  var $author$project$Translations$Ar = {
7984
7986
  $: 'Ar'
7985
7987
  };
@@ -8010,8 +8012,8 @@ type alias Process =
8010
8012
  var $author$project$Translations$Tw = {
8011
8013
  $: 'Tw'
8012
8014
  };
8013
- var $author$project$Translations$Ua = {
8014
- $: 'Ua'
8015
+ var $author$project$Translations$Uk = {
8016
+ $: 'Uk'
8015
8017
  };
8016
8018
  var $author$project$Translations$Zh = {
8017
8019
  $: 'Zh'
@@ -8039,8 +8041,8 @@ type alias Process =
8039
8041
  return $elm$core$Maybe$Just($author$project$Translations$Ru);
8040
8042
  case 'tw':
8041
8043
  return $elm$core$Maybe$Just($author$project$Translations$Tw);
8042
- case 'ua':
8043
- return $elm$core$Maybe$Just($author$project$Translations$Ua);
8044
+ case 'uk':
8045
+ return $elm$core$Maybe$Just($author$project$Translations$Uk);
8044
8046
  case 'zh':
8045
8047
  return $elm$core$Maybe$Just($author$project$Translations$Zh);
8046
8048
  case 'en':
@@ -8062,22 +8064,23 @@ type alias Process =
8062
8064
  }),
8063
8065
  langCode: definition.language,
8064
8066
  langCodeOriginal: definition.language,
8067
+ persistent: $author$project$Lia$Utils$checkPersistency(definition.macro),
8065
8068
  settings: _Utils_update(settings, {
8066
8069
  customTheme: A2($elm$core$Dict$get, 'custom', definition.macro),
8067
8070
  hasShareApi: function() {
8068
- var _v2 = A2($elm$core$Maybe$map, $author$project$Lia$Script$checkFalse, A2($elm$core$Dict$get, 'sharing', definition.macro));
8071
+ var _v2 = A2($elm$core$Maybe$map, $author$project$Lia$Utils$checkFalse, A2($elm$core$Dict$get, 'sharing', definition.macro));
8069
8072
  if (_v2.$ === 'Just' && !_v2.a) return $elm$core$Maybe$Nothing;
8070
8073
  else return settings.hasShareApi;
8071
8074
  }(),
8072
8075
  light: A2($elm$core$Maybe$withDefault, settings.light, definition.lightMode),
8073
8076
  mode: A2($elm$core$Maybe$withDefault, settings.mode, definition.mode),
8074
8077
  sync: function() {
8075
- var _v3 = A2($elm$core$Maybe$map, $author$project$Lia$Script$checkFalse, A2($elm$core$Dict$get, 'classroom', definition.macro));
8078
+ var _v3 = A2($elm$core$Maybe$map, $author$project$Lia$Utils$checkFalse, A2($elm$core$Dict$get, 'classroom', definition.macro));
8076
8079
  if (_v3.$ === 'Just' && !_v3.a) return $elm$core$Maybe$Nothing;
8077
8080
  else return settings.sync;
8078
8081
  }(),
8079
8082
  translateWithGoogle: function() {
8080
- var _v4 = A2($elm$core$Maybe$map, $author$project$Lia$Script$checkFalse, A2($elm$core$Dict$get, 'translateWithGoogle', definition.macro));
8083
+ var _v4 = A2($elm$core$Maybe$map, $author$project$Lia$Utils$checkFalse, A2($elm$core$Dict$get, 'translateWithGoogle', definition.macro));
8081
8084
  if (_v4.$ === 'Just' && !_v4.a) return $elm$core$Maybe$Nothing;
8082
8085
  else return settings.translateWithGoogle;
8083
8086
  }()
@@ -8667,6 +8670,7 @@ type alias Process =
8667
8670
  id: id,
8668
8671
  indentation: base.indentation,
8669
8672
  parsed: false,
8673
+ persistent: $elm$core$Maybe$Nothing,
8670
8674
  quiz_vector: $elm$core$Array$empty,
8671
8675
  survey_vector: $elm$core$Array$empty,
8672
8676
  sync: $elm$core$Maybe$Nothing,
@@ -8810,8 +8814,8 @@ type alias Process =
8810
8814
  return 'ru';
8811
8815
  case 'Tw':
8812
8816
  return 'tw';
8813
- case 'Ua':
8814
- return 'ua';
8817
+ case 'Uk':
8818
+ return 'uk';
8815
8819
  case 'Zh':
8816
8820
  return 'zh';
8817
8821
  default:
@@ -9471,9 +9475,9 @@ type alias Process =
9471
9475
  else {
9472
9476
  if ($elm$core$List$length(rows) * A2($elm$core$Maybe$withDefault, 1, A2($elm$core$Maybe$map, $elm$core$List$length, headLine)) >= 50) return $author$project$Lia$Markdown$Table$Types$Parallel;
9473
9477
  else {
9474
- var maxima = A2($elm$core$List$filterMap, $elm$core$Basics$identity, A2($elm$core$List$map, A2($elm$core$Basics$composeR, $elm$core$List$filterMap($elm$core$Basics$identity), $elm$core$List$maximum), A2($author$project$Lia$Markdown$Table$Matrix$map, function($) {
9478
+ var maxima = A2($elm$core$List$filterMap, A2($elm$core$Basics$composeR, $elm$core$List$filterMap($elm$core$Basics$identity), $elm$core$List$maximum), A2($author$project$Lia$Markdown$Table$Matrix$map, function($) {
9475
9479
  return $._float;
9476
- }, $author$project$Lia$Markdown$Table$Matrix$split($author$project$Lia$Markdown$Table$Matrix$transpose(rows)).b)));
9480
+ }, $author$project$Lia$Markdown$Table$Matrix$split($author$project$Lia$Markdown$Table$Matrix$transpose(rows)).b));
9477
9481
  return _Utils_cmp($elm$core$Basics$abs(A2($elm$core$Maybe$withDefault, 0, $elm$core$List$maximum(maxima))), 10 * $elm$core$Basics$abs(A2($elm$core$Maybe$withDefault, 0, $elm$core$List$minimum(maxima)))) > 0 ? $author$project$Lia$Markdown$Table$Types$Radar : $author$project$Lia$Markdown$Table$Types$BarChart;
9478
9482
  }
9479
9483
  }
@@ -10406,11 +10410,15 @@ type alias Process =
10406
10410
  return A2($andre_dietrich$parser_combinators$Combine$optional, _List_Nil, A2($andre_dietrich$parser_combinators$Combine$ignore, $andre_dietrich$parser_combinators$Combine$maybe(A2($andre_dietrich$parser_combinators$Combine$ignore, $author$project$Lia$Parser$Indentation$check, $andre_dietrich$parser_combinators$Combine$regex('[\t ]*\\n'))), A2($andre_dietrich$parser_combinators$Combine$keep, $author$project$Lia$Markdown$Inline$Parser$comment(attr), A2($andre_dietrich$parser_combinators$Combine$keep, $author$project$Lia$Markdown$Macro$Parser$macro, $author$project$Lia$Parser$Helper$spaces))));
10407
10411
  }();
10408
10412
  var $author$project$Lia$Markdown$Parser$horizontal_line = A2($andre_dietrich$parser_combinators$Combine$map, $author$project$Lia$Markdown$Types$HLine, A2($andre_dietrich$parser_combinators$Combine$ignore, $andre_dietrich$parser_combinators$Combine$regex('-{3,}'), $author$project$Lia$Markdown$Parser$md_annotations));
10413
+ var $author$project$Lia$Markdown$Types$HtmlComment = {
10414
+ $: 'HtmlComment'
10415
+ };
10416
+ var $author$project$Lia$Parser$Indentation$skip = $andre_dietrich$parser_combinators$Combine$modifyState($author$project$Lia$Parser$Indentation$skip_(true));
10417
+ var $author$project$Lia$Markdown$Parser$htmlComment = A2($andre_dietrich$parser_combinators$Combine$onsuccess, $author$project$Lia$Markdown$Types$HtmlComment, A2($andre_dietrich$parser_combinators$Combine$ignore, $author$project$Lia$Markdown$Inline$Parser$comment($andre_dietrich$parser_combinators$Combine$Char$anyChar), A2($andre_dietrich$parser_combinators$Combine$ignore, $author$project$Lia$Parser$Indentation$check, $author$project$Lia$Parser$Indentation$skip)));
10409
10418
  var $author$project$Lia$Markdown$Effect$Parser$multi = function(blocks) {
10410
10419
  return A2($andre_dietrich$parser_combinators$Combine$keep, A2($andre_dietrich$parser_combinators$Combine$manyTill, A2($andre_dietrich$parser_combinators$Combine$ignore, $author$project$Lia$Parser$Helper$newlines, blocks), $andre_dietrich$parser_combinators$Combine$regex('[\t ]*\\*{3,}')), A2($andre_dietrich$parser_combinators$Combine$ignore, $andre_dietrich$parser_combinators$Combine$regex('[\t ]*\\*{3,}\\n+'), $author$project$Lia$Parser$Indentation$check));
10411
10420
  };
10412
10421
  var $author$project$Lia$Markdown$Effect$Parser$single = $andre_dietrich$parser_combinators$Combine$map($elm$core$List$singleton);
10413
- var $author$project$Lia$Parser$Indentation$skip = $andre_dietrich$parser_combinators$Combine$modifyState($author$project$Lia$Parser$Indentation$skip_(true));
10414
10422
  var $author$project$Lia$Markdown$Effect$Parser$markdown = function(blocks) {
10415
10423
  return A2($andre_dietrich$parser_combinators$Combine$andMap, $author$project$Lia$Markdown$Effect$Parser$effect_id, A2($andre_dietrich$parser_combinators$Combine$ignore, $author$project$Lia$Markdown$Effect$Parser$reset_effect_number, A2($andre_dietrich$parser_combinators$Combine$andMap, A2($andre_dietrich$parser_combinators$Combine$or, $author$project$Lia$Markdown$Effect$Parser$multi(blocks), $author$project$Lia$Markdown$Effect$Parser$single(blocks)), A2($andre_dietrich$parser_combinators$Combine$ignore, A2($andre_dietrich$parser_combinators$Combine$or, $andre_dietrich$parser_combinators$Combine$skip($andre_dietrich$parser_combinators$Combine$string('\n')), $author$project$Lia$Parser$Indentation$skip), A2($andre_dietrich$parser_combinators$Combine$ignore, $andre_dietrich$parser_combinators$Combine$regex('}}[\t ]*'), A2($andre_dietrich$parser_combinators$Combine$map, F3(function(e, b, c) {
10416
10424
  return _Utils_update(e, {
@@ -11915,7 +11923,8 @@ type alias Process =
11915
11923
  A2($andre_dietrich$parser_combinators$Combine$andMap, $author$project$Lia$Markdown$Parser$cyclic$unordered_list(), A2($andre_dietrich$parser_combinators$Combine$map, $author$project$Lia$Markdown$Types$BulletList, $author$project$Lia$Markdown$Parser$md_annotations)),
11916
11924
  A2($andre_dietrich$parser_combinators$Combine$ignore, $andre_dietrich$parser_combinators$Combine$regex('[ \t]*\n'), A2($andre_dietrich$parser_combinators$Combine$andMap, $author$project$Lia$Markdown$HTML$Parser$parse($author$project$Lia$Markdown$Parser$cyclic$blocks()), A2($andre_dietrich$parser_combinators$Combine$map, $author$project$Lia$Markdown$Types$HTML, $author$project$Lia$Markdown$Parser$md_annotations))),
11917
11925
  A2($andre_dietrich$parser_combinators$Combine$andMap, $author$project$Lia$Markdown$Gallery$Parser$parse, A2($andre_dietrich$parser_combinators$Combine$map, $author$project$Lia$Markdown$Types$Gallery, $author$project$Lia$Markdown$Parser$md_annotations)),
11918
- A2($andre_dietrich$parser_combinators$Combine$andMap, $author$project$Lia$Markdown$Parser$paragraph, A2($andre_dietrich$parser_combinators$Combine$map, $author$project$Lia$Markdown$Parser$checkForCitation, $author$project$Lia$Markdown$Parser$md_annotations))
11926
+ A2($andre_dietrich$parser_combinators$Combine$andMap, $author$project$Lia$Markdown$Parser$paragraph, A2($andre_dietrich$parser_combinators$Combine$map, $author$project$Lia$Markdown$Parser$checkForCitation, $author$project$Lia$Markdown$Parser$md_annotations)),
11927
+ $author$project$Lia$Markdown$Parser$htmlComment
11919
11928
  ]));
11920
11929
  }
11921
11930
  function $author$project$Lia$Markdown$Parser$cyclic$unordered_list() {
@@ -12036,6 +12045,9 @@ type alias Process =
12036
12045
  if (_v2.$ === 'Ok') {
12037
12046
  var new_sec = _v2.a;
12038
12047
  return _Utils_update(new_sec, {
12048
+ persistent: A2($elm$core$Maybe$map, A2($elm$core$Basics$composeR, function($) {
12049
+ return $.macro;
12050
+ }, $author$project$Lia$Utils$checkPersistency), new_sec.definition),
12039
12051
  sync: sec.sync
12040
12052
  });
12041
12053
  } else {
@@ -12820,7 +12832,7 @@ $parcel$global.XMLHttpRequest = $9Afec$xhr2;
12820
12832
 
12821
12833
  const $ccdb061a5468de1f$var$argv = $9Afec$minimist(process.argv.slice(2));
12822
12834
  // -------------------------------Main Execution-------------------------------
12823
- if ($ccdb061a5468de1f$var$argv.v || $ccdb061a5468de1f$var$argv.version) console.log('version: 2.4.3--0.10.8');
12835
+ if ($ccdb061a5468de1f$var$argv.v || $ccdb061a5468de1f$var$argv.version) console.log('version: 2.4.3--0.10.12');
12824
12836
  else if ($ccdb061a5468de1f$var$argv.h || $ccdb061a5468de1f$var$argv.help) $ccdb061a5468de1f$var$help();
12825
12837
  else if ($ccdb061a5468de1f$var$argv.i || $ccdb061a5468de1f$var$argv.input) $ccdb061a5468de1f$var$run($ccdb061a5468de1f$var$parseArguments());
12826
12838
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liascript/exporter",
3
- "version": "2.4.3--0.10.11",
3
+ "version": "2.4.3--0.10.12",
4
4
  "description": "A generic exporter for LiaScript",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -18,7 +18,7 @@ const argv = require('minimist')(process.argv.slice(2))
18
18
 
19
19
  // -------------------------------Main Execution-------------------------------
20
20
  if (argv.v || argv.version) {
21
- console.log('version: 2.4.3--0.10.8')
21
+ console.log('version: 2.4.3--0.10.12')
22
22
  } else if (argv.h || argv.help) {
23
23
  help()
24
24
  } else if (argv.i || argv.input) {