@evlop/commons 1.0.238 → 1.0.240

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './src/components';
2
+ export * from './src/edl';
2
3
  export * from './src/helpers';
3
4
  export * from './src/constants';
4
5
  export * from './src/providers';
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAE3D,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAE3D,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC"}
package/dist/main.js CHANGED
@@ -15,6 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.dataSources = void 0;
17
17
  __exportStar(require("./src/components"), exports);
18
+ __exportStar(require("./src/edl"), exports);
18
19
  __exportStar(require("./src/helpers"), exports);
19
20
  __exportStar(require("./src/constants"), exports);
20
21
  __exportStar(require("./src/providers"), exports);
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,gDAA8B;AAE9B,kDAAgC;AAEhC,kDAAgC;AAEhC,iDAA8B;AAE9B,gDAA6B;AAE7B,mDAA2D;AAAlD,4HAAA,OAAO,OAAe;AAE/B,gDAA8B;AAE9B,oDAAkC;AAElC,iDAA+B;AAE/B,iDAA+B;AAE/B,8CAA4B"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,4CAA0B;AAE1B,gDAA8B;AAE9B,kDAAgC;AAEhC,kDAAgC;AAEhC,iDAA8B;AAE9B,gDAA6B;AAE7B,mDAA2D;AAAlD,4HAAA,OAAO,OAAe;AAE/B,gDAA8B;AAE9B,oDAAkC;AAElC,iDAA+B;AAE/B,iDAA+B;AAE/B,8CAA4B"}
@@ -77,7 +77,7 @@ class EDLBlockRenderer {
77
77
  if (staticProps[':as'] && tag === 'DataSource') {
78
78
  const datasourceAsName = staticProps[':as'];
79
79
  const datasourceDataKey = parentBlockId ? `${parentBlockId}-${block._id}` : block._id;
80
- const dataToAdd = { [datasourceAsName]: lodash_1.get(context.data, datasourceDataKey) };
80
+ const dataToAdd = { [datasourceAsName]: lodash_1.get(context, [datasourceDataKey]) };
81
81
  childRenderContext = this.prepareNewContext(context, dataToAdd);
82
82
  }
83
83
  const childrenRendered = this.renderBlocks(children, childRenderContext, parentBlockId ? `${parentBlockId}-${block._id}` : block._id);
@@ -1 +1 @@
1
- {"version":3,"file":"BlockRenderer.js","sourceRoot":"","sources":["../../../src/edl/BlockRenderer.tsx"],"names":[],"mappings":";;;;;AAAA,mCAAuF;AACvF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EAAE;YACtE,OAAO,YAAG,CAAC,MAAM,EAAE,CAAC,KAAK,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,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const commons_1 = require("@evlop/commons");
4
3
  const react_1 = require("react");
4
+ const hooks_1 = require("../hooks");
5
5
  function DataSourceLoader({ dataSource, name, setDatasourceData }) {
6
- const data = commons_1.useDataSource(dataSource);
6
+ const data = hooks_1.useDataSource(dataSource);
7
7
  react_1.useEffect(() => {
8
8
  setDatasourceData({ [name]: data });
9
9
  }, [data, name, setDatasourceData]);
@@ -1 +1 @@
1
- {"version":3,"file":"DataSourceLoader.js","sourceRoot":"","sources":["../../../src/edl/DataSourceLoader.tsx"],"names":[],"mappings":";;AAAA,4CAA+C;AAC/C,iCAAkC;AAElC,SAAS,gBAAgB,CAAC,EAAC,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAC;IAC3D,MAAM,IAAI,GAAG,uBAAa,CAAC,UAAU,CAAC,CAAC;IAEvC,iBAAS,CAAC,GAAG,EAAE;QACX,iBAAiB,CAAC,EAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,CAAC,CAAC;IACtC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"DataSourceLoader.js","sourceRoot":"","sources":["../../../src/edl/DataSourceLoader.tsx"],"names":[],"mappings":";;AAAA,iCAAkC;AAClC,oCAAyC;AAEzC,SAAS,gBAAgB,CAAC,EAAC,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAC;IAC3D,MAAM,IAAI,GAAG,qBAAa,CAAC,UAAU,CAAC,CAAC;IAEvC,iBAAS,CAAC,GAAG,EAAE;QACX,iBAAiB,CAAC,EAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,CAAC,CAAC;IACtC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const commons_1 = require("@evlop/commons");
7
6
  const react_1 = require("react");
8
7
  const EDLContext_1 = __importDefault(require("../../contexts/EDLContext"));
8
+ const hooks_1 = require("../../hooks");
9
9
  function DataSource({ _parentBlockId, _blockId, dataSource, children }) {
10
- const data = commons_1.useDataSource(dataSource);
10
+ const data = hooks_1.useDataSource(dataSource);
11
11
  const { setRuntimeData } = react_1.useContext(EDLContext_1.default);
12
12
  react_1.useEffect(() => {
13
13
  const key = _parentBlockId ? `${_parentBlockId}-${_blockId}` : _blockId;
@@ -1 +1 @@
1
- {"version":3,"file":"DataSource.js","sourceRoot":"","sources":["../../../../src/edl/elements/DataSource.ts"],"names":[],"mappings":";;;;;AAAA,4CAA+C;AAC/C,iCAA8C;AAC9C,2EAAmD;AAEnD,SAAS,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AAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/edl/elements/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,0DAAkC;AAClC,8DAAsC;AAEtC,MAAM,YAAY,GAAG;IACjB,SAAS,EAAT,mBAAS;IACT,MAAM,EAAE,mBAAS;IACjB,QAAQ,EAAR,kBAAQ;IACR,UAAU,EAAE,oBAAU;CACzB,CAAA;AAED,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/edl/elements/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,0DAAkC;AAClC,8DAAsC;AAEtC,MAAM,YAAY,GAAG;IACjB,SAAS,EAAT,mBAAS;IACT,MAAM,EAAE,mBAAS;IACjB,QAAQ,EAAR,kBAAQ;IACR,UAAU,EAAV,oBAAU;CACb,CAAA;AAED,kBAAe,YAAY,CAAC"}
@@ -1,13 +1,20 @@
1
+ import React from 'react';
1
2
  declare function registerElement(name: any, element: any): void;
3
+ declare function registerElements(newElements: any): void;
2
4
  declare function registerRenderContextValue(name: any, value: any): void;
5
+ declare function registerContextValues(newContextValues: any): void;
6
+ declare function setOptions(newOptions: any): void;
3
7
  export declare const EDL: {
4
8
  Render: ({ edl, data: _data, dataSources }: {
5
9
  edl: any;
6
10
  data: any;
7
11
  dataSources: any;
8
- }) => any[];
12
+ }) => React.JSX.Element;
9
13
  registerElement: typeof registerElement;
14
+ registerElements: typeof registerElements;
10
15
  registerContextValue: typeof registerRenderContextValue;
16
+ registerContextValues: typeof registerContextValues;
17
+ setOptions: typeof setOptions;
11
18
  elements: {
12
19
  UseEffect: ({ ":function": fn, ":dependencies": deps }: {
13
20
  ":function": any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":"AAwBA,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAGD,iBAAS,0BAA0B,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,QAG9C;AAiED,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAMf,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AA0B9D,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,0BAA0B,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,QAG9C;AAED,iBAAS,qBAAqB,CAAC,gBAAgB,KAAA,QAG9C;AAED,iBAAS,UAAU,CAAC,UAAU,KAAA,QAE7B;AAiED,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CASf,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -32,6 +32,7 @@ const parser_1 = __importDefault(require("./parser"));
32
32
  const helpers_1 = require("../helpers");
33
33
  const hooks_1 = require("../hooks");
34
34
  const localStorage_1 = __importDefault(require("./localStorage"));
35
+ const EDLContext_1 = require("../contexts/EDLContext");
35
36
  const lodash = require('lodash');
36
37
  const edlElements = {
37
38
  ...elements_1.default,
@@ -41,17 +42,28 @@ const renderContextValues = {
41
42
  _: lodash,
42
43
  localStorage: localStorage_1.default,
43
44
  };
45
+ const options = {};
44
46
  const renderContextVariables = ['axios', 'localStorage', '_'];
45
47
  // should be called before EDL.Render
46
48
  function registerElement(name, element) {
47
49
  edlElements[name] = element;
48
50
  }
51
+ function registerElements(newElements) {
52
+ Object.assign(edlElements, newElements);
53
+ }
49
54
  // should be called before EDL.Render
50
55
  function registerRenderContextValue(name, value) {
51
56
  renderContextValues[name] = value;
52
57
  renderContextVariables.push(name);
53
58
  }
54
- const edlBlockRenderer = new BlockRenderer_1.default(edlElements, {});
59
+ function registerContextValues(newContextValues) {
60
+ Object.assign(renderContextValues, newContextValues);
61
+ renderContextVariables.push(...lodash_1.keys(newContextValues));
62
+ }
63
+ function setOptions(newOptions) {
64
+ Object.assign(options, newOptions);
65
+ }
66
+ const edlBlockRenderer = new BlockRenderer_1.default(edlElements, options);
55
67
  /**
56
68
  * @typedef {{ jsx: string, injectScope: string[] }} JsxRendererComponentProps
57
69
  * @type {React.FC<JsxRendererComponentProps>}
@@ -94,12 +106,15 @@ const RenderEDL = ({ edl, data: _data, dataSources }) => {
94
106
  }), [scope, setState, runtimeData, setRuntimeData, state, renderData]);
95
107
  const dataSourceLoaders = react_1.useMemo(() => lodash_1.map(dataSources, (dataSource, name) => (react_1.default.createElement(DataSourceLoader_1.default, { key: name, name: name, dataSource: dataSource, setDatasourceData: setDatasourceData }))), [dataSources]);
96
108
  const renderedBlocks = react_1.useMemo(() => edlBlockRenderer.renderBlocks(blocks, renderContext, null), [blocks, renderContext]);
97
- return react_1.useMemo(() => [...dataSourceLoaders, ...renderedBlocks], [dataSourceLoaders, renderedBlocks]);
109
+ return react_1.useMemo(() => react_1.default.createElement(EDLContext_1.EDLProvider, { value: { setRuntimeData }, children: [...dataSourceLoaders, ...renderedBlocks] }), [dataSourceLoaders, renderedBlocks]);
98
110
  };
99
111
  exports.EDL = {
100
112
  Render: RenderEDL,
101
113
  registerElement,
114
+ registerElements,
102
115
  registerContextValue: registerRenderContextValue,
116
+ registerContextValues,
117
+ setOptions,
103
118
  elements: edlElements,
104
119
  parse: parseEDLMemoized,
105
120
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA8C;AAC9C,+CAA8D;AAC9D,0EAAkD;AAClD,0DAAsC;AACtC,oEAA+C;AAC/C,sDAAgC;AAChC,wCAAyC;AACzC,oCAAmD;AACnD,kEAA0C;AAC1C,MAAM,MAAM,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EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAA;IAEtE,MAAM,iBAAiB,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,YAAG,CACvC,WAAW,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,8BAAC,0BAAgB,IAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,GAAI,CAAC,CAC/I,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IAEjB,MAAM,cAAc,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,gBAAgB,CAAC,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;IAEvH,OAAO,eAAO,CAAC,GAAE,EAAE,CAAA,8BAAC,wBAAW,IAAC,KAAK,EAAE,EAAC,cAAc,EAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,iBAAiB,EAAE,GAAG,cAAc,CAAC,GAAI,EAAE,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC,CAAC;AACzJ,CAAC,CAAC;AAEW,QAAA,GAAG,GAAG;IACf,MAAM,EAAE,SAAS;IACjB,eAAe;IACf,gBAAgB;IAChB,oBAAoB,EAAE,0BAA0B;IAChD,qBAAqB;IACrB,UAAU;IACV,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,gBAAgB;CAC1B,CAAC;AAEF,kBAAe,WAAG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/edl/parser.ts"],"names":[],"mappings":"AAkEA,iBAAS,QAAQ,CAAC,SAAS,KAAA,EAAE,mBAAmB,KAAA,SA6H7C;AAGD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/edl/parser.ts"],"names":[],"mappings":"AAoEA,iBAAS,QAAQ,CAAC,SAAS,KAAA,EAAE,mBAAmB,KAAA,SA6H7C;AAGD,eAAe,QAAQ,CAAC"}
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const lodash_1 = require("lodash");
4
4
  const inbuiltVariables = ['context', 'data', 'setRuntimeData', 'setState', 'setStates', 'state', 'dispatchAction', 'createAction'];
5
+ const expressionRegex = /{(\((?:(?!\)\}).)*\)|[^{}]*)}/g;
5
6
  const TemplateCompiler = {
6
7
  compileStringTemplate: (variables) => {
7
8
  const variableNamesString = `{ ${variables.join(', ')} }`;
8
9
  return templateString => {
9
10
  try {
10
11
  // replace all the {expression} with ${ expression } and wrap the whole template in a function
11
- const processedTemplate = templateString.replace(/{(\((?:(?!\)\}).)*\)|[^{}]*)}/g, "${ $1 }");
12
+ const processedTemplate = templateString.replace(expressionRegex, "${ $1 }");
12
13
  return new Function(variableNamesString, `return \`${processedTemplate}\`;`);
13
14
  }
14
15
  catch (e) { }
@@ -44,11 +45,11 @@ function extractScriptsAndVariables(inputString) {
44
45
  });
45
46
  return { cleanedString, scriptsById, variables: Array.from(allVariables) };
46
47
  }
48
+ const asVariableRegex = /:as="([^"]+)"/g;
47
49
  function extractAsVariables(inputString) {
48
- const asAttributeRegex = /:as="(\$[a-zA-Z0-9_]+)"/g;
49
50
  const asVariables = new Set();
50
51
  let asMatch;
51
- while ((asMatch = asAttributeRegex.exec(inputString)) !== null) {
52
+ while ((asMatch = asVariableRegex.exec(inputString)) !== null) {
52
53
  asVariables.add(asMatch[1]);
53
54
  }
54
55
  return Array.from(asVariables);
@@ -1 +1 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../src/edl/parser.ts"],"names":[],"mappings":";;AAAA,mCAAsE;AAEtE,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,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