lilact 0.28.4 → 0.29.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.
- package/dist/lilact.development.js +227 -179
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +29 -29
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +29 -29
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/accessories.ErrorBoundary.html +8 -8
- package/docs/classes/accessories.Suspense.html +7 -7
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/components.cloneComponent.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createPortal.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/errors.asError.html +1 -0
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.run.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/modules/errors.html +1 -1
- package/docs/static/index.html +3 -6
- package/docs/static/lilact.development.js +227 -179
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +29 -29
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +29 -29
- package/docs/variables/components.cloneElement.html +1 -1
- package/docs/variables/errors.blocksInfo.html +1 -0
- package/examples/index.html +3 -4
- package/examples/lilact.development.js +227 -179
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +29 -29
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +29 -29
- package/package.json +1 -1
- package/src/components.jsx +118 -122
- package/src/errors.jsx +4 -4
- package/src/expscan.js +40 -15
- package/src/jsx.js +67 -38
- package/src/run.jsx +51 -39
- package/docs/variables/errors.blocks_info.html +0 -1
package/src/jsx.js
CHANGED
|
@@ -46,18 +46,21 @@
|
|
|
46
46
|
// note: JSX or preprocessors are not processed inside template strings
|
|
47
47
|
// todo: injected string try/catches should be generated by a function
|
|
48
48
|
|
|
49
|
+
|
|
50
|
+
import * as vlq from './vlq.js'
|
|
51
|
+
import {processImportExports} from './expscan.js'
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
49
55
|
/** @ignore */
|
|
50
56
|
export const transpilerConfig = {
|
|
51
57
|
setBlockLabels: true,
|
|
52
58
|
enableLabelStack: false,
|
|
53
|
-
injectLabels: true,
|
|
54
59
|
// todo: alt+shift+7 on apple abc extended layout is better i think,
|
|
55
60
|
// but my current editor doesn't support syntax highlighting with it.
|
|
56
61
|
preprocessorDelimiter: 'ʔ', // alt+shift+. on apple abc extended layout
|
|
57
62
|
}
|
|
58
63
|
|
|
59
|
-
import * as vlq from './vlq.js'
|
|
60
|
-
import {processImportExports} from './expscan.js'
|
|
61
64
|
|
|
62
65
|
let raiseError;
|
|
63
66
|
let tab=0;
|
|
@@ -766,7 +769,7 @@ function parseJS(code, index=0, is_block=false, container)
|
|
|
766
769
|
// this is for lilact internal use, it is a workaround for approximating error location
|
|
767
770
|
// in eval when transpiling and running jsx directly in browser.
|
|
768
771
|
|
|
769
|
-
function labelFunctions(node, eols,
|
|
772
|
+
function labelFunctions(node, eols, blocksInfo)
|
|
770
773
|
{
|
|
771
774
|
|
|
772
775
|
node.already_labeled = true;
|
|
@@ -809,12 +812,12 @@ function labelFunctions(node, eols, blocks_info)
|
|
|
809
812
|
|
|
810
813
|
if(transpilerConfig.injectTraceLabels && typeof(nxt)==='object' && nxt.type==='js') {
|
|
811
814
|
const begin = getRowCol(eols, chi); // begin is always the location of function args parenthesis
|
|
812
|
-
nxt.children.splice(1,0, `/*LILACTBLOCK${++
|
|
815
|
+
nxt.children.splice(1,0, `/*LILACTBLOCK${++blocksInfo.counter}:${begin}:${label}*/try{`);
|
|
813
816
|
if(transpilerConfig.enableLabelStack) {
|
|
814
|
-
nxt.children.splice(nxt.children.length-1, 0, `} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${
|
|
817
|
+
nxt.children.splice(nxt.children.length-1, 0, `} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${blocksInfo.counter},e.lilact_trace];throw e}`);
|
|
815
818
|
}
|
|
816
819
|
else {
|
|
817
|
-
nxt.children.splice(nxt.children.length-1, 0, `} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${
|
|
820
|
+
nxt.children.splice(nxt.children.length-1, 0, `} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${blocksInfo.counter};throw e}`);
|
|
818
821
|
}
|
|
819
822
|
chi += 2;
|
|
820
823
|
}
|
|
@@ -834,15 +837,15 @@ function labelFunctions(node, eols, blocks_info)
|
|
|
834
837
|
if(transpilerConfig.injectTraceLabels) {
|
|
835
838
|
|
|
836
839
|
nxt.children.splice(1,0,
|
|
837
|
-
`/*LILACTBLOCK${++
|
|
840
|
+
`/*LILACTBLOCK${++blocksInfo.counter}:${begin}:<ARROW>*/try {`);
|
|
838
841
|
|
|
839
842
|
if(transpilerConfig.enableLabelStack) {
|
|
840
843
|
nxt.children.splice(nxt.children.length-1, 0,
|
|
841
|
-
`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${
|
|
844
|
+
`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${blocksInfo.counter},e.lilact_trace];throw e}`);
|
|
842
845
|
}
|
|
843
846
|
else {
|
|
844
847
|
nxt.children.splice(nxt.children.length-1, 0,
|
|
845
|
-
`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${
|
|
848
|
+
`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${blocksInfo.counter};throw e}`);
|
|
846
849
|
}
|
|
847
850
|
|
|
848
851
|
}
|
|
@@ -970,25 +973,29 @@ function generateSourceMap(json, path, jsx_eols, out_eols, mappings=[])
|
|
|
970
973
|
|
|
971
974
|
/** @ignore */
|
|
972
975
|
export function transpileJSX( jsx, {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
976
|
+
factory = "createComponent",
|
|
977
|
+
fragment = "Fragment",
|
|
978
|
+
path = "anonymous",
|
|
979
|
+
|
|
980
|
+
appendSourcemap = true,
|
|
981
|
+
injectTraceLabels = false,
|
|
982
|
+
discardComments = false,
|
|
983
|
+
produceCJS = false,
|
|
984
|
+
referentiateImports = false,
|
|
985
|
+
importsObject = "Lilact.scriptImportsObject", // first letter must be capital so components work as expected
|
|
986
|
+
importsObjectVar = "LilactImports", // first letter must be capital so components work as expected
|
|
987
|
+
logErrors = false,
|
|
988
|
+
|
|
989
|
+
// lilact internal
|
|
990
|
+
mappings = [],
|
|
991
|
+
meta,
|
|
992
|
+
blocksInfo = {
|
|
993
|
+
labels: {},
|
|
994
|
+
counter: 0
|
|
995
|
+
},
|
|
996
|
+
|
|
997
|
+
} = {} )
|
|
990
998
|
{
|
|
991
|
-
|
|
992
999
|
transpilerConfig.preprocessorDelimiter ??= 'ʔ'; // alt+shift+. on apple abc extended layout
|
|
993
1000
|
transpilerConfig.injectTraceLabels ??= injectTraceLabels;
|
|
994
1001
|
|
|
@@ -1066,7 +1073,7 @@ export function transpileJSX( jsx, {
|
|
|
1066
1073
|
node.children = node.children.filter( (x)=>x!=="" );
|
|
1067
1074
|
|
|
1068
1075
|
if(transpilerConfig.setBlockLabels && !node.already_labeled) {
|
|
1069
|
-
labelFunctions(node, eols,
|
|
1076
|
+
labelFunctions(node, eols, blocksInfo);
|
|
1070
1077
|
}
|
|
1071
1078
|
}
|
|
1072
1079
|
}
|
|
@@ -1075,9 +1082,26 @@ export function transpileJSX( jsx, {
|
|
|
1075
1082
|
|
|
1076
1083
|
preprocessPragmas(json);
|
|
1077
1084
|
|
|
1085
|
+
const flattened_nodes = [];
|
|
1086
|
+
|
|
1078
1087
|
const codify = (outlen, node, is_attr=false, is_xml=false)=> {
|
|
1079
1088
|
|
|
1080
|
-
|
|
1089
|
+
flattened_nodes.push(node);
|
|
1090
|
+
|
|
1091
|
+
if(typeof(node)!=='object') {
|
|
1092
|
+
if(referentiateImports && typeof(node)==='string') {
|
|
1093
|
+
if(meta?.imported_names.has(node)) {
|
|
1094
|
+
let j = flattened_nodes.length-2;
|
|
1095
|
+
while( (typeof(flattened_nodes[j])==='string' && flattened_nodes[j].trim()==='') ||
|
|
1096
|
+
(typeof(flattened_nodes[j])==='object' && flattened_nodes[j].type==='comment') ) j--;
|
|
1097
|
+
|
|
1098
|
+
if( typeof(flattened_nodes[j])!=='string' || flattened_nodes[j]!==".") {
|
|
1099
|
+
return importsObjectVar+"."+node;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return node;
|
|
1104
|
+
}
|
|
1081
1105
|
if(node===null) return '';
|
|
1082
1106
|
|
|
1083
1107
|
node.out_index = outlen;
|
|
@@ -1085,7 +1109,7 @@ export function transpileJSX( jsx, {
|
|
|
1085
1109
|
//console.log("CODIFY", node, node.out_index);
|
|
1086
1110
|
|
|
1087
1111
|
if(node.type==='string') return jsx.substring(node.begin, node.end);
|
|
1088
|
-
if(node.type==='import') return node.cjs;
|
|
1112
|
+
if(node.type==='import') return referentiateImports?'':node.cjs;
|
|
1089
1113
|
if(node.type==='export') return node.cjs;
|
|
1090
1114
|
if(node.type==='regex') return jsx.substring(node.begin, node.end);
|
|
1091
1115
|
if(node.type==='comment') return (discardComments || is_attr)?'':jsx.substring(node.begin, node.end);
|
|
@@ -1096,7 +1120,7 @@ export function transpileJSX( jsx, {
|
|
|
1096
1120
|
let out = "(";
|
|
1097
1121
|
|
|
1098
1122
|
if(node.out) {
|
|
1099
|
-
if(produceCJS) processImportExports(node, jsx);
|
|
1123
|
+
if(produceCJS || referentiateImports) processImportExports(node, jsx, meta);
|
|
1100
1124
|
for(const ch of node.out) {
|
|
1101
1125
|
out+=codify(outlen+out.length-1, ch);
|
|
1102
1126
|
}
|
|
@@ -1105,12 +1129,10 @@ export function transpileJSX( jsx, {
|
|
|
1105
1129
|
}
|
|
1106
1130
|
|
|
1107
1131
|
if(node.type==='js') {
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
1132
|
let out = "";
|
|
1111
1133
|
|
|
1112
1134
|
if(node.out) {
|
|
1113
|
-
if(produceCJS) processImportExports(node, jsx);
|
|
1135
|
+
if(produceCJS || referentiateImports) processImportExports(node, jsx, meta);
|
|
1114
1136
|
for(const ch of node.out) {
|
|
1115
1137
|
if(is_xml && ch.type==='comment') continue;
|
|
1116
1138
|
out+=codify( outlen + out.length - (is_attr?1:0), ch);
|
|
@@ -1130,6 +1152,10 @@ export function transpileJSX( jsx, {
|
|
|
1130
1152
|
}
|
|
1131
1153
|
|
|
1132
1154
|
if(node.type==='xml') {
|
|
1155
|
+
|
|
1156
|
+
if(referentiateImports && meta?.imported_names?.has(node.tag) && node.tag[0]===node.tag[0].toUpperCase()) {
|
|
1157
|
+
node.tag=importsObjectVar+"."+node.tag;
|
|
1158
|
+
}
|
|
1133
1159
|
|
|
1134
1160
|
if(node.tag.length===0) {
|
|
1135
1161
|
node.tag = fragment;
|
|
@@ -1179,16 +1205,19 @@ export function transpileJSX( jsx, {
|
|
|
1179
1205
|
|
|
1180
1206
|
let out = '';
|
|
1181
1207
|
if(injectTraceLabels) {
|
|
1182
|
-
out=`/*LILACTBLOCK${++
|
|
1208
|
+
out=`/*LILACTBLOCK${++blocksInfo.counter}:0,0:<EXEC>*/try{`
|
|
1209
|
+
}
|
|
1210
|
+
if(referentiateImports) {
|
|
1211
|
+
out+=`const ${importsObjectVar} = ${importsObject};`;
|
|
1183
1212
|
}
|
|
1184
1213
|
out+=codify(out.length, json);
|
|
1185
1214
|
|
|
1186
1215
|
if(injectTraceLabels) {
|
|
1187
1216
|
if(transpilerConfig.enableLabelStack) {
|
|
1188
|
-
out += `}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${
|
|
1217
|
+
out += `}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${blocksInfo.counter},e.lilact_trace];throw e}`;
|
|
1189
1218
|
}
|
|
1190
1219
|
else {
|
|
1191
|
-
out += `}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${
|
|
1220
|
+
out += `}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${blocksInfo.counter};throw e}`;
|
|
1192
1221
|
}
|
|
1193
1222
|
}
|
|
1194
1223
|
|
package/src/run.jsx
CHANGED
|
@@ -110,19 +110,15 @@ function report(value, path) {
|
|
|
110
110
|
export const required_scripts = {};
|
|
111
111
|
|
|
112
112
|
function createModule(path, {
|
|
113
|
-
code = ""
|
|
114
|
-
isInline = false,
|
|
115
|
-
isModule = true,
|
|
113
|
+
code = ""
|
|
116
114
|
} = {}) {
|
|
117
115
|
const module = {
|
|
118
116
|
path,
|
|
119
117
|
code: String(code),
|
|
120
118
|
mappings: [],
|
|
119
|
+
meta: {},
|
|
121
120
|
exports: {},
|
|
122
121
|
|
|
123
|
-
isInline,
|
|
124
|
-
isModule,
|
|
125
|
-
|
|
126
122
|
// True only after the module has been successfully evaluated.
|
|
127
123
|
loaded: false,
|
|
128
124
|
|
|
@@ -137,13 +133,40 @@ function createModule(path, {
|
|
|
137
133
|
return module;
|
|
138
134
|
}
|
|
139
135
|
|
|
136
|
+
function makeImportsObject(mod)
|
|
137
|
+
{
|
|
138
|
+
mod.importsObject ??= {};
|
|
139
|
+
|
|
140
|
+
for(const path in mod.meta.imports) {
|
|
141
|
+
let exps = required_scripts[path];
|
|
142
|
+
let imps = mod.meta.imports[path];
|
|
143
|
+
if(!exps) {
|
|
144
|
+
exps = Lilact.require(path, {requirer: mod});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
for(const i in imps.named_imports) {
|
|
148
|
+
if(i==='') continue;
|
|
149
|
+
const j = imps.named_imports[i];
|
|
150
|
+
if(!exps.hasOwnProperty(j)) throw new Error(`Imported module does not export any "${i}".`);
|
|
151
|
+
mod.importsObject[i] = exps[j];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
for(const i of imps.import_defaults) {
|
|
155
|
+
if(!exps.hasOwnProperty('default')) throw new Error(`Imported module does not export a default.`);
|
|
156
|
+
mod.importsObject[i] = exps.default;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
for(const i of imps.import_stars) {
|
|
161
|
+
mod.importsObject[i] = {...exps};
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
140
166
|
export function run(
|
|
141
167
|
jsx,
|
|
142
168
|
path = `InlineJSX-${++Lilact.eval_num}`,
|
|
143
|
-
{
|
|
144
|
-
isInline = true,
|
|
145
|
-
isModule = true,
|
|
146
|
-
} = {}
|
|
169
|
+
{} = {}
|
|
147
170
|
) {
|
|
148
171
|
let module = required_scripts[path];
|
|
149
172
|
|
|
@@ -155,8 +178,6 @@ export function run(
|
|
|
155
178
|
if (!module) {
|
|
156
179
|
module = createModule(path, {
|
|
157
180
|
code: jsx,
|
|
158
|
-
isInline,
|
|
159
|
-
isModule,
|
|
160
181
|
});
|
|
161
182
|
} else {
|
|
162
183
|
/*
|
|
@@ -168,10 +189,10 @@ export function run(
|
|
|
168
189
|
module.code = String(jsx);
|
|
169
190
|
module.mappings = [];
|
|
170
191
|
module.exports = {};
|
|
171
|
-
module.isInline = isInline;
|
|
172
|
-
module.isModule = isModule;
|
|
173
192
|
module.loaded = false;
|
|
174
193
|
module.error = undefined;
|
|
194
|
+
module.importsObject = undefined;
|
|
195
|
+
module.meta = {};
|
|
175
196
|
}
|
|
176
197
|
|
|
177
198
|
let processed;
|
|
@@ -180,11 +201,13 @@ export function run(
|
|
|
180
201
|
processed = Lilact.transpileJSX(String(jsx), {
|
|
181
202
|
path,
|
|
182
203
|
mappings: module.mappings,
|
|
204
|
+
meta: module.meta,
|
|
183
205
|
factory: "createComponent",
|
|
184
206
|
appendSourcemap: true,
|
|
185
207
|
injectTraceLabels: true,
|
|
186
|
-
produceCJS:
|
|
187
|
-
|
|
208
|
+
produceCJS: false,
|
|
209
|
+
referentiateImports: true,
|
|
210
|
+
blocksInfo: Lilact.blocksInfo,
|
|
188
211
|
});
|
|
189
212
|
}
|
|
190
213
|
catch (value) {
|
|
@@ -207,12 +230,13 @@ export function run(
|
|
|
207
230
|
*/
|
|
208
231
|
|
|
209
232
|
try {
|
|
210
|
-
new Function(processed);
|
|
211
|
-
|
|
212
233
|
globalThis.Lilact = Lilact;
|
|
213
234
|
globalThis.createComponent = Lilact.createComponent;
|
|
214
235
|
globalThis.Fragment = Lilact.Fragment;
|
|
215
236
|
|
|
237
|
+
if(!module.importsObject) makeImportsObject(module);
|
|
238
|
+
|
|
239
|
+
Lilact.scriptImportsObject = module.importsObject;
|
|
216
240
|
const result = eval(processed);
|
|
217
241
|
module.loaded = true;
|
|
218
242
|
|
|
@@ -276,10 +300,7 @@ function loadAsyncResource(path, module) {
|
|
|
276
300
|
return undefined;
|
|
277
301
|
}
|
|
278
302
|
|
|
279
|
-
return run(module.code, path, {
|
|
280
|
-
isInline: false,
|
|
281
|
-
isModule: true,
|
|
282
|
-
});
|
|
303
|
+
return run(module.code, path, {});
|
|
283
304
|
})
|
|
284
305
|
.then(result => result?.default ?? result)
|
|
285
306
|
.catch(error => {
|
|
@@ -288,7 +309,7 @@ function loadAsyncResource(path, module) {
|
|
|
288
309
|
})
|
|
289
310
|
.finally(() => {
|
|
290
311
|
/*
|
|
291
|
-
* Do not remove a newer request accidentally if a future
|
|
312
|
+
* Do not remove a newer request accidentally if a future forceReload
|
|
292
313
|
* request replaced this one.
|
|
293
314
|
*/
|
|
294
315
|
if (module.request === request) {
|
|
@@ -315,7 +336,7 @@ export function require(path) {
|
|
|
315
336
|
return Lilact.importObjectPaths[path];
|
|
316
337
|
}
|
|
317
338
|
|
|
318
|
-
if (options
|
|
339
|
+
if (options?.requirer?.path) {
|
|
319
340
|
path = joinPaths(options.requirer.path, path);
|
|
320
341
|
}
|
|
321
342
|
|
|
@@ -324,16 +345,13 @@ export function require(path) {
|
|
|
324
345
|
Boolean(options.isLazy);
|
|
325
346
|
|
|
326
347
|
|
|
327
|
-
const module = getOrCreateModule(path, {
|
|
328
|
-
isInline: false,
|
|
329
|
-
isModule: true,
|
|
330
|
-
});
|
|
348
|
+
const module = getOrCreateModule(path, {});
|
|
331
349
|
|
|
332
350
|
/*
|
|
333
351
|
* A completed module can be returned synchronously unless the caller
|
|
334
352
|
* explicitly requests lazy loading.
|
|
335
353
|
*/
|
|
336
|
-
if (module.loaded && !options.
|
|
354
|
+
if (module.loaded && !options.forceReload) {
|
|
337
355
|
return module.exports;
|
|
338
356
|
}
|
|
339
357
|
|
|
@@ -347,7 +365,7 @@ export function require(path) {
|
|
|
347
365
|
);
|
|
348
366
|
}
|
|
349
367
|
|
|
350
|
-
return run(element.textContent || "", path);
|
|
368
|
+
return run(element.textContent || "", path, {forceReload: options.forceReload});
|
|
351
369
|
}
|
|
352
370
|
|
|
353
371
|
if (loadAsync) {
|
|
@@ -356,7 +374,7 @@ export function require(path) {
|
|
|
356
374
|
/*
|
|
357
375
|
* Every subsequent lazy require() receives the first request promise.
|
|
358
376
|
* This applies even when the module is still being fetched and even when
|
|
359
|
-
* the first caller used
|
|
377
|
+
* the first caller used forceReload.
|
|
360
378
|
*/
|
|
361
379
|
if (module.request) {
|
|
362
380
|
return module.request;
|
|
@@ -375,10 +393,7 @@ export function require(path) {
|
|
|
375
393
|
return undefined;
|
|
376
394
|
}
|
|
377
395
|
|
|
378
|
-
return run(String(resolved), path, {
|
|
379
|
-
isInline: false,
|
|
380
|
-
isModule: true,
|
|
381
|
-
});
|
|
396
|
+
return run(String(resolved), path, {forceReload: options.forceReload});
|
|
382
397
|
}
|
|
383
398
|
|
|
384
399
|
const request = new XMLHttpRequest();
|
|
@@ -398,10 +413,7 @@ export function require(path) {
|
|
|
398
413
|
return undefined;
|
|
399
414
|
}
|
|
400
415
|
|
|
401
|
-
return run(request.responseText, path, {
|
|
402
|
-
isInline: false,
|
|
403
|
-
isModule: true,
|
|
404
|
-
});
|
|
416
|
+
return run(request.responseText, path, {forceReload: options.forceReload});
|
|
405
417
|
}
|
|
406
418
|
|
|
407
419
|
throw report(
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>blocks_info | Lilact</title><meta name="description" content="Documentation for Lilact"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lilact</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/errors.html">errors</a></li><li><a href="" aria-current="page">blocks_info</a></li></ul><h1>Variable blocks_info<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">blocks_info</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">counter</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">labels</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="counter"><span class="tsd-kind-property">counter</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5 id="labels"><span class="tsd-kind-property">labels</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{}</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in errors.jsx:420</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">Lilact</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|