@gmb/bitmark-parser-generator 4.9.0 → 4.10.0

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.
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>@gmb/bitmark-parser-generator [15 Sep 2025 at 01:33]</title>
6
+ <title>@gmb/bitmark-parser-generator [16 Sep 2025 at 04:52]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9Ib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nRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
@@ -31,7 +31,7 @@
31
31
  <body>
32
32
  <div id="app"></div>
33
33
  <script>
34
- window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1151858,"parsedSize":500933,"gzipSize":97722,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1144878,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1144878,"parsedSize":500829,"gzipSize":97722}],"parsedSize":500829,"gzipSize":97722},{"label":"node_modules/@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6980,"groups":[{"id":718,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6980}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
34
+ window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1153399,"parsedSize":502152,"gzipSize":97989,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1146419,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1146419,"parsedSize":502048,"gzipSize":97989}],"parsedSize":502048,"gzipSize":97989},{"label":"node_modules/@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6980,"groups":[{"id":718,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6980}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
35
35
  window.entrypoints = ["main"];
36
36
  window.defaultSizes = "stat";
37
37
  </script>
@@ -79,6 +79,7 @@ var BitType = (0, import_superenum.superenum)({
79
79
  appAiPrompt: "app-ai-prompt",
80
80
  appBitmarkFromEditor: "app-bitmark-from-editor",
81
81
  appBitmarkFromJavascript: "app-bitmark-from-javascript",
82
+ appCalculatorLatex: "app-calculator-latex",
82
83
  appCodeCell: "app-code-cell",
83
84
  appCodeEditor: "app-code-editor",
84
85
  appCodeIde: "app-code-ide",
@@ -498,6 +499,10 @@ var BitType = (0, import_superenum.superenum)({
498
499
  reviewRequestForReviewNote: "review-request-for-review-note",
499
500
  reviewReviewerNote: "review-reviewer-note",
500
501
  sampleSolution: "sample-solution",
502
+ sandbox: "sandbox",
503
+ sandboxOutputJson: "sandbox-output-json",
504
+ sandboxOutputMarkup: "sandbox-output-markup",
505
+ sandboxOutputRender: "sandbox-output-render",
501
506
  scorm: "scorm",
502
507
  screenshot: "screenshot",
503
508
  selfAssessment: "self-assessment",
@@ -1199,6 +1204,7 @@ var propertyKeys = {
1199
1204
  property_focusX: "@focusX",
1200
1205
  property_focusY: "@focusY",
1201
1206
  property_format: "@format",
1207
+ property_formula: "@formula",
1202
1208
  property_fullName: "@fullName",
1203
1209
  property_groupTag: "@groupTag",
1204
1210
  property_handInAcceptFileType: "@handInAcceptFileType",
@@ -5123,6 +5129,26 @@ var BITS = {
5123
5129
  baseBitType: BitType.code,
5124
5130
  description: "Standard output bit, used to display standard output from code snippets"
5125
5131
  },
5132
+ [BitType.sandbox]: {
5133
+ since: "4.10.0",
5134
+ baseBitType: BitType.code,
5135
+ description: "A sandbox bit, used to create a sandboxed environment for code execution"
5136
+ },
5137
+ [BitType.sandboxOutputJson]: {
5138
+ since: "4.10.0",
5139
+ baseBitType: BitType.code,
5140
+ description: "A sandbox output JSON bit, used to display JSON output from sandboxed code"
5141
+ },
5142
+ [BitType.sandboxOutputMarkup]: {
5143
+ since: "4.10.0",
5144
+ baseBitType: BitType.code,
5145
+ description: "A sandbox output markup bit, used to display markup output from sandboxed code"
5146
+ },
5147
+ [BitType.sandboxOutputRender]: {
5148
+ since: "4.10.0",
5149
+ baseBitType: BitType.code,
5150
+ description: "A sandbox output render bit, used to display rendered output from sandboxed code"
5151
+ },
5126
5152
  [BitType.step]: {
5127
5153
  since: "1.5.1",
5128
5154
  baseBitType: BitType.article,
@@ -6118,6 +6144,18 @@ var BITS = {
6118
6144
  }
6119
6145
  ]
6120
6146
  },
6147
+ [BitType.appCalculatorLatex]: {
6148
+ since: "4.10.0",
6149
+ baseBitType: BitType.article,
6150
+ description: "A LaTeX calculator bit, used to create a calculator that can interpret LaTeX expressions",
6151
+ tags: [
6152
+ {
6153
+ key: ConfigKey.property_formula,
6154
+ description: "The LaTeX formula for the calculator, used to define the calculation logic",
6155
+ format: TagFormat.plainText
6156
+ }
6157
+ ]
6158
+ },
6121
6159
  [BitType.container]: {
6122
6160
  since: "1.9.0",
6123
6161
  baseBitType: BitType.article,
@@ -9133,7 +9171,7 @@ var instance2 = new Config();
9133
9171
  // src/generated/package_info.ts
9134
9172
  var PACKAGE_INFO = {
9135
9173
  "name": "@gmb/bitmark-parser-generator",
9136
- "version": "4.9.0",
9174
+ "version": "4.10.0",
9137
9175
  "author": "Get More Brain Ltd",
9138
9176
  "license": "ISC",
9139
9177
  "description": "A bitmark parser and generator using Peggy.js"
@@ -9659,6 +9697,8 @@ var NodeType = (0, import_superenum20.superenum)({
9659
9697
  footerText: "footerText",
9660
9698
  forKeys: "forKeys",
9661
9699
  format: "format",
9700
+ formula: "formula",
9701
+ formulaValue: "formulaValue",
9662
9702
  forValues: "forValues",
9663
9703
  forValuesValue: "forValuesValue",
9664
9704
  fullName: "fullName",
@@ -22979,6 +23019,7 @@ var Builder = class extends BaseBuilder {
22979
23019
  data.ratingLevelSelected,
22980
23020
  options
22981
23021
  ),
23022
+ formula: this.toAstProperty(bitType, ConfigKey.property_formula, data.formula, options),
22982
23023
  markConfig: this.buildMarkConfigs(context, data.markConfig),
22983
23024
  imageSource: this.buildImageSource(context, data.imageSource),
22984
23025
  person: this.buildPerson(context, data.person),