@evlop/commons 1.0.277 → 1.0.279

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.
@@ -120,7 +120,7 @@ const RenderEDL = ({ edl, data: staticData, dataSources, scopes: scopesToInject
120
120
  ...datasourceData,
121
121
  ...lodash_1.mapValues(scopesToInject, (scopeName) => scope[scopeName]),
122
122
  }), [staticData, datasourceData, scope, scopesToInject]);
123
- const renderContext = react_1.useMemo(() => lodash_1.assign({}, scope, {
123
+ const renderContext = react_1.useMemo(() => ({
124
124
  setState: setState,
125
125
  setStates,
126
126
  state,
@@ -132,7 +132,7 @@ const RenderEDL = ({ edl, data: staticData, dataSources, scopes: scopesToInject
132
132
  ...renderContextStaticValues,
133
133
  ...lodash_1.mapValues(renderContextScopes, scopeName => scope[scopeName]),
134
134
  ...runtimeData,
135
- }), [scope, setState, runtimeData, setRuntimeData, state, renderData, scope]);
135
+ }), [scope, setState, runtimeData, setRuntimeData, state, renderData]);
136
136
  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]);
137
137
  const renderedBlocks = react_1.useMemo(() => edlBlockRenderer.renderBlocks(blocks, renderContext, null), [blocks, renderContext]);
138
138
  return react_1.useMemo(() => react_1.default.createElement(EDLContext_1.EDLProvider, { value: { setRuntimeData }, children: [...dataSourceLoaders, ...renderedBlocks] }), [dataSourceLoaders, renderedBlocks]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiE;AACjE,+CAA8D;AAC9D,0EAAkD;AAClD,0DAAsC;AACtC,oEAA+C;AAC/C,sDAAgC;AAChC,wCAAyC;AACzC,oCAAmD;AACnD,kEAA0C;AAC1C,uDAAqD;AACrD,+C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, mapValues, memoize } from 'lodash';
1
+ import { map, mapValues, memoize } from 'lodash';
2
2
  import React, { useCallback, useMemo, useState } from 'react';
3
3
  import DataSourceLoader from './DataSourceLoader';
4
4
  import coreElements from './elements';
@@ -95,7 +95,7 @@ const RenderEDL = ({ edl, data: staticData, dataSources, scopes: scopesToInject
95
95
  ...datasourceData,
96
96
  ...mapValues(scopesToInject, (scopeName) => scope[scopeName]),
97
97
  }), [staticData, datasourceData, scope, scopesToInject]);
98
- const renderContext = useMemo(() => assign({}, scope, {
98
+ const renderContext = useMemo(() => ({
99
99
  setState: setState,
100
100
  setStates,
101
101
  state,
@@ -107,7 +107,7 @@ const RenderEDL = ({ edl, data: staticData, dataSources, scopes: scopesToInject
107
107
  ...renderContextStaticValues,
108
108
  ...mapValues(renderContextScopes, scopeName => scope[scopeName]),
109
109
  ...runtimeData,
110
- }), [scope, setState, runtimeData, setRuntimeData, state, renderData, scope]);
110
+ }), [scope, setState, runtimeData, setRuntimeData, state, renderData]);
111
111
  const dataSourceLoaders = useMemo(() => map(dataSources, (dataSource, name) => (React.createElement(DataSourceLoader, { key: name, name: name, dataSource: dataSource, setDatasourceData: setDatasourceData }))), [dataSources]);
112
112
  const renderedBlocks = useMemo(() => edlBlockRenderer.renderBlocks(blocks, renderContext, null), [blocks, renderContext]);
113
113
  return useMemo(() => React.createElement(EDLProvider, { value: { setRuntimeData }, children: [...dataSourceLoaders, ...renderedBlocks] }), [dataSourceLoaders, renderedBlocks]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAU,MAAM,QAAQ,CAAC;AACjE,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,YAAY,MAAM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AAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;IAEvH,OAAO,OAAO,CAAC,GAAE,EAAE,CAAA,oBAAC,WAAW,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;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,MAAM,EAAE,SAAS;IACjB,eAAe;IACf,gBAAgB;IAChB,oBAAoB,EAAE,6BAA6B;IACnD,qBAAqB,EAAE,8BAA8B;IACrD,6BAA6B;IAC7B,8BAA8B;IAC9B,2BAA2B;IAC3B,0BAA0B;IAC1B,UAAU;IACV,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,gBAAgB;CAC1B,CAAC;AAEF,eAAe,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,26 +1,14 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.277",
3
+ "version": "1.0.279",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",
7
7
  "types": "dist/types/main.d.ts",
8
8
  "exports": {
9
- ".": {
10
- "require": "./dist/cjs/main.js",
11
- "import": "./dist/esm/main.js",
12
- "types": "./dist/types/main.d.ts"
13
- },
14
- "./helpers/*": {
15
- "require": "./dist/cjs/src/helpers/*.js",
16
- "import": "./dist/esm/src/helpers/*.js",
17
- "types": "./dist/types/src/helpers/*.d.ts"
18
- },
19
- "./constants/*": {
20
- "require": "./dist/cjs/src/constants/*.js",
21
- "import": "./dist/esm/src/constants/*.js",
22
- "types": "./dist/types/src/constants/*.d.ts"
23
- }
9
+ ".": "./dist/cjs/main.js",
10
+ "./helpers/*": "./dist/cjs/src/helpers/*.js",
11
+ "./constants/*": "./dist/cjs/src/constants/*.js"
24
12
  },
25
13
  "peerDependencies": {
26
14
  "change-case": ">=4.1.2",
@@ -28,6 +16,7 @@
28
16
  "i18next": ">=21.8.8",
29
17
  "lodash": ">=4.17.21",
30
18
  "query-string": ">=7.1.0",
19
+ "react": ">=18.2.0",
31
20
  "react-native": ">=0.68.2",
32
21
  "react-native-vector-icons": ">=10.0.3",
33
22
  "uuid": ">=8.3.2"