@evlop/commons 1.0.268 → 1.0.269

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.
@@ -37,8 +37,8 @@ class EDLBlockRenderer {
37
37
  };
38
38
  return this.renderBlock(newBlock, newContext, parentBlockId);
39
39
  }
40
- else if ((variableProps[":forEach"])) {
41
- const items = safelyRunFunction(variableProps[":forEach"], context);
40
+ else if (variableProps[":forEach"] || staticProps.hasOwnProperty(':forEach')) {
41
+ const items = staticProps.hasOwnProperty(':forEach') ? staticProps[':forEach'] : safelyRunFunction(variableProps[":forEach"], context);
42
42
  return lodash_1.map(items, (item, index) => {
43
43
  const asName = staticProps[':as'] || 'loopItem';
44
44
  const dataToAdd = { [asName]: item, [`${asName}Index`]: index };
@@ -54,8 +54,8 @@ class EDLBlockRenderer {
54
54
  return this.renderBlock(newBlock, newContext, parentBlockId);
55
55
  });
56
56
  }
57
- else if (variableProps[":if"]) {
58
- const shouldShow = safelyRunFunction(variableProps[":if"], context);
57
+ else if (variableProps[":if"] || staticProps.hasOwnProperty(':if')) {
58
+ const shouldShow = staticProps.hasOwnProperty(':if') ? staticProps[':if'] : safelyRunFunction(variableProps[":if"], context);
59
59
  if (!shouldShow)
60
60
  return null;
61
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BlockRenderer.js","sourceRoot":"","sources":["../../../../src/edl/BlockRenderer.tsx"],"names":[],"mappings":";;;;;AAAA,mCAAuF;AACvF,kDAA0B;AAI1B,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;AACjE,MAAM,cAAc,GAAG,kBAAS,CAAC,YAAG,CAAC,aAAa,EAAE,QAAQ,CAAA,EAAE,CAAA,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;AAEhF,SAAS,iBAAiB,CAAC,EAAE,EAAE,IAAI;IACjC,IAAG;QACD,OAAO,EAAE,CAAC,IAAI,CA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,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;QAC5F,CAAC,CAAA;QAlFC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,iBAAiB,CAAC,OAAY,EAAE,SAAc;QAC5C,MAAM,cAAc,GAAG,eAAM,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC3D,OAAO,eAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;CA4EF;AAxFD,mCAwFC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAoLA,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SA0KnE;AAGD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAoLA,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SAyKnE;AAGD,eAAe,QAAQ,CAAC"}
@@ -187,9 +187,9 @@ function parseEDL(_edlString, additionalVariables) {
187
187
  }
188
188
  };
189
189
  // Initialize an empty array to store the final JSX objects
190
- const jsxObjects = [];
190
+ const rootElements = [];
191
191
  // Initialize an empty stack to keep track of the nested JSX elements
192
- const jsxStack = [];
192
+ const parentElementsStack = [];
193
193
  // split the string by tag positions
194
194
  const tagPositions = [...edlTagPositions];
195
195
  if (tagPositions[0] !== 0)
@@ -209,13 +209,13 @@ function parseEDL(_edlString, additionalVariables) {
209
209
  }
210
210
  // If the token is not an opening or closing JSX tag, treat it as plain text
211
211
  if (token[0] !== '<') {
212
- const parentNode = jsxStack[jsxStack.length - 1];
212
+ const parentNode = parentElementsStack[parentElementsStack.length - 1];
213
213
  const parts = breakTemplateStringToExpressionsAndStaticString(he_1.decode(token)).map(({ type, value }) => type == 'expression' ? safelyEvaluateExpressionForValueOrFunction(expressionsById[value]) : value);
214
214
  if (parentNode) {
215
215
  parentNode.children.push(...parts);
216
216
  }
217
217
  else {
218
- jsxObjects.push(...parts);
218
+ rootElements.push(...parts);
219
219
  }
220
220
  return;
221
221
  }
@@ -226,7 +226,7 @@ function parseEDL(_edlString, additionalVariables) {
226
226
  const tagName = closingTagMatch[1];
227
227
  const isSelfClosing = selfClosingTags.has(tagName); // in case this is a closing for a self closing tag, we dont pop it from the stack as we never push it
228
228
  if (!isSelfClosing) {
229
- jsxStack.pop();
229
+ parentElementsStack.pop();
230
230
  }
231
231
  return;
232
232
  }
@@ -291,21 +291,21 @@ function parseEDL(_edlString, additionalVariables) {
291
291
  newElement.variableProps[':function'] = safelyCompileExpression(`()=>{ ${code} \n setRuntimeData({ ${exportVariables.join(', ')} }); }`);
292
292
  }
293
293
  // If there's a parent node, add the new element as a child to the parent node
294
- if (jsxStack.length > 0) {
295
- const parentNode = jsxStack[jsxStack.length - 1];
294
+ if (parentElementsStack.length > 0) {
295
+ const parentNode = parentElementsStack[parentElementsStack.length - 1];
296
296
  parentNode.children.push(newElement);
297
297
  }
298
298
  else {
299
299
  // If there's no parent node, add the new element to the root-level jsxObjects array
300
- jsxObjects.push(newElement);
300
+ rootElements.push(newElement);
301
301
  }
302
302
  // If the tag is not self-closing, push the new element onto the JSX stack
303
303
  if (!isSelfClosing) {
304
- jsxStack.push(newElement);
304
+ parentElementsStack.push(newElement);
305
305
  }
306
306
  }
307
307
  });
308
- return jsxObjects;
308
+ return rootElements;
309
309
  }
310
310
  exports.default = parseEDL;
311
311
  //# sourceMappingURL=parser.js.map
@@ -1 +1 @@
1
- {"version":3,"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AQ,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC;YAExH,sGAAsG;YACtG,IAAG,UAAU,CAAC,GAAG,KAAK,QAAQ,EAAC;gBAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBACrD,OAAO,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBAE3C,MAAM,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;gBACxC,MAAM,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;gBAExD,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,uBAAuB,CAAC,SAAS,IAAI,wBAAwB,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1I;YAED,8EAA8E;YAC9E,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAClC,MAAM,UAAU,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACvE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACtC;iBAAM;gBACL,oFAAoF;gBACpF,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC/B;YAED,0EAA0E;YAC1E,IAAI,CAAC,aAAa,EAAE;gBAClB,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACtC;SACF;IACH,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC;AAGD,kBAAe,QAAQ,CAAC"}
@@ -32,8 +32,8 @@ export default class EDLBlockRenderer {
32
32
  };
33
33
  return this.renderBlock(newBlock, newContext, parentBlockId);
34
34
  }
35
- else if ((variableProps[":forEach"])) {
36
- const items = safelyRunFunction(variableProps[":forEach"], context);
35
+ else if (variableProps[":forEach"] || staticProps.hasOwnProperty(':forEach')) {
36
+ const items = staticProps.hasOwnProperty(':forEach') ? staticProps[':forEach'] : safelyRunFunction(variableProps[":forEach"], context);
37
37
  return map(items, (item, index) => {
38
38
  const asName = staticProps[':as'] || 'loopItem';
39
39
  const dataToAdd = { [asName]: item, [`${asName}Index`]: index };
@@ -49,8 +49,8 @@ export default class EDLBlockRenderer {
49
49
  return this.renderBlock(newBlock, newContext, parentBlockId);
50
50
  });
51
51
  }
52
- else if (variableProps[":if"]) {
53
- const shouldShow = safelyRunFunction(variableProps[":if"], context);
52
+ else if (variableProps[":if"] || staticProps.hasOwnProperty(':if')) {
53
+ const shouldShow = staticProps.hasOwnProperty(':if') ? staticProps[':if'] : safelyRunFunction(variableProps[":if"], context);
54
54
  if (!shouldShow)
55
55
  return null;
56
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BlockRenderer.js","sourceRoot":"","sources":["../../../../src/edl/BlockRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AACvF,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;AACjE,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAA,EAAE,CAAA,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;AAEhF,SAAS,iBAAiB,CAAC,EAAE,EAAE,IAAI;IACjC,IAAG;QACD,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC5B;IAAC,OAAM,CAAC,EAAC;KACT;AACH,CAAC;AAED,MAAM,KAAK,GAAG,OAAO,eAAe,KAAK,UAAU,CAAA,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;AAEjF,MAAM,CAAC,OAA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EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;QAC5F,CAAC,CAAA;QAlFC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,iBAAiB,CAAC,OAAY,EAAE,SAAc;QAC5C,MAAM,cAAc,GAAG,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC3D,OAAO,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;CA4EF"}
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAoLA,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SA0KnE;AAGD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAoLA,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SAyKnE;AAGD,eAAe,QAAQ,CAAC"}
@@ -182,9 +182,9 @@ function parseEDL(_edlString, additionalVariables) {
182
182
  }
183
183
  };
184
184
  // Initialize an empty array to store the final JSX objects
185
- const jsxObjects = [];
185
+ const rootElements = [];
186
186
  // Initialize an empty stack to keep track of the nested JSX elements
187
- const jsxStack = [];
187
+ const parentElementsStack = [];
188
188
  // split the string by tag positions
189
189
  const tagPositions = [...edlTagPositions];
190
190
  if (tagPositions[0] !== 0)
@@ -204,13 +204,13 @@ function parseEDL(_edlString, additionalVariables) {
204
204
  }
205
205
  // If the token is not an opening or closing JSX tag, treat it as plain text
206
206
  if (token[0] !== '<') {
207
- const parentNode = jsxStack[jsxStack.length - 1];
207
+ const parentNode = parentElementsStack[parentElementsStack.length - 1];
208
208
  const parts = breakTemplateStringToExpressionsAndStaticString(decodeHtmlEntities(token)).map(({ type, value }) => type == 'expression' ? safelyEvaluateExpressionForValueOrFunction(expressionsById[value]) : value);
209
209
  if (parentNode) {
210
210
  parentNode.children.push(...parts);
211
211
  }
212
212
  else {
213
- jsxObjects.push(...parts);
213
+ rootElements.push(...parts);
214
214
  }
215
215
  return;
216
216
  }
@@ -221,7 +221,7 @@ function parseEDL(_edlString, additionalVariables) {
221
221
  const tagName = closingTagMatch[1];
222
222
  const isSelfClosing = selfClosingTags.has(tagName); // in case this is a closing for a self closing tag, we dont pop it from the stack as we never push it
223
223
  if (!isSelfClosing) {
224
- jsxStack.pop();
224
+ parentElementsStack.pop();
225
225
  }
226
226
  return;
227
227
  }
@@ -286,21 +286,21 @@ function parseEDL(_edlString, additionalVariables) {
286
286
  newElement.variableProps[':function'] = safelyCompileExpression(`()=>{ ${code} \n setRuntimeData({ ${exportVariables.join(', ')} }); }`);
287
287
  }
288
288
  // If there's a parent node, add the new element as a child to the parent node
289
- if (jsxStack.length > 0) {
290
- const parentNode = jsxStack[jsxStack.length - 1];
289
+ if (parentElementsStack.length > 0) {
290
+ const parentNode = parentElementsStack[parentElementsStack.length - 1];
291
291
  parentNode.children.push(newElement);
292
292
  }
293
293
  else {
294
294
  // If there's no parent node, add the new element to the root-level jsxObjects array
295
- jsxObjects.push(newElement);
295
+ rootElements.push(newElement);
296
296
  }
297
297
  // If the tag is not self-closing, push the new element onto the JSX stack
298
298
  if (!isSelfClosing) {
299
- jsxStack.push(newElement);
299
+ parentElementsStack.push(newElement);
300
300
  }
301
301
  }
302
302
  });
303
- return jsxObjects;
303
+ return rootElements;
304
304
  }
305
305
  export default parseEDL;
306
306
  //# sourceMappingURL=parser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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AGD,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAoLA,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SA0KnE;AAGD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/edl/parser.ts"],"names":[],"mappings":"AAoLA,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SAyKnE;AAGD,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.268",
3
+ "version": "1.0.269",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",