@evlop/commons 1.0.313 → 1.0.314

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.
Files changed (28) hide show
  1. package/dist/cjs/src/components/RenderTemplate.d.ts +7 -0
  2. package/dist/cjs/src/components/RenderTemplate.d.ts.map +1 -0
  3. package/dist/cjs/src/components/RenderTemplate.js +11 -0
  4. package/dist/cjs/src/components/RenderTemplate.js.map +1 -0
  5. package/dist/cjs/src/components/index.d.ts +1 -0
  6. package/dist/cjs/src/components/index.d.ts.map +1 -1
  7. package/dist/cjs/src/components/index.js +1 -0
  8. package/dist/cjs/src/components/index.js.map +1 -1
  9. package/dist/cjs/src/hooks/useTemplate.d.ts.map +1 -1
  10. package/dist/cjs/src/hooks/useTemplate.js +4 -5
  11. package/dist/cjs/src/hooks/useTemplate.js.map +1 -1
  12. package/dist/esm/src/components/RenderTemplate.d.ts +7 -0
  13. package/dist/esm/src/components/RenderTemplate.d.ts.map +1 -0
  14. package/dist/esm/src/components/RenderTemplate.js +7 -0
  15. package/dist/esm/src/components/RenderTemplate.js.map +1 -0
  16. package/dist/esm/src/components/index.d.ts +1 -0
  17. package/dist/esm/src/components/index.d.ts.map +1 -1
  18. package/dist/esm/src/components/index.js +1 -0
  19. package/dist/esm/src/components/index.js.map +1 -1
  20. package/dist/esm/src/hooks/useTemplate.d.ts.map +1 -1
  21. package/dist/esm/src/hooks/useTemplate.js +6 -7
  22. package/dist/esm/src/hooks/useTemplate.js.map +1 -1
  23. package/dist/types/src/components/RenderTemplate.d.ts +7 -0
  24. package/dist/types/src/components/RenderTemplate.d.ts.map +1 -0
  25. package/dist/types/src/components/index.d.ts +1 -0
  26. package/dist/types/src/components/index.d.ts.map +1 -1
  27. package/dist/types/src/hooks/useTemplate.d.ts.map +1 -1
  28. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type RenderTemplateProps = {
3
+ template: string;
4
+ };
5
+ export declare const RenderTemplate: React.FC<RenderTemplateProps>;
6
+ export default RenderTemplate;
7
+ //# sourceMappingURL=RenderTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,mBAAmB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAGxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RenderTemplate = void 0;
4
+ const hooks_1 = require("../hooks");
5
+ const RenderTemplate = ({ template }) => {
6
+ const applyTemplate = (0, hooks_1.useTemplate)();
7
+ return applyTemplate(template);
8
+ };
9
+ exports.RenderTemplate = RenderTemplate;
10
+ exports.default = exports.RenderTemplate;
11
+ //# sourceMappingURL=RenderTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderTemplate.js","sourceRoot":"","sources":["../../../../src/components/RenderTemplate.tsx"],"names":[],"mappings":";;;AACA,oCAAuC;AAMhC,MAAM,cAAc,GAAkC,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IACxE,MAAM,aAAa,GAAG,IAAA,mBAAW,GAAE,CAAC;IACpC,OAAO,aAAa,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB;AAEF,kBAAe,sBAAc,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './EmptyComponent';
2
2
  export * from './hoc';
3
3
  export * from './SkipSSR';
4
+ export * from './RenderTemplate';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -34,5 +34,6 @@ __exportStar(require("./EmptyComponent"), exports);
34
34
  // export * from './BackgroundCho';
35
35
  __exportStar(require("./hoc"), exports);
36
36
  __exportStar(require("./SkipSSR"), exports);
37
+ __exportStar(require("./RenderTemplate"), exports);
37
38
  // export {default as Modal} from './Modal';
38
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAiC;AACjC,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,wCAAwC;AACxC,kCAAkC;AAClC,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AACrC,gCAAgC;AAChC,mDAAiC;AACjC,mCAAmC;AACnC,wCAAsB;AACtB,4CAA0B;AAE1B,4CAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAiC;AACjC,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,wCAAwC;AACxC,kCAAkC;AAClC,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AACrC,gCAAgC;AAChC,mDAAiC;AACjC,mCAAmC;AACnC,wCAAsB;AACtB,4CAA0B;AAC1B,mDAAiC;AAEjC,4CAA4C"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,QAsBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -10,18 +10,17 @@ const react_1 = require("react");
10
10
  const useScope_1 = require("./useScope");
11
11
  const handlebarsCompile = (0, lodash_1.memoize)((stringValue) => handlebars_min_js_1.default.compile(stringValue, { noEscape: true }));
12
12
  const useTemplate = (templateString) => {
13
- const _scope = (0, useScope_1.useScope)();
14
- const deferredScope = (0, react_1.useDeferredValue)(_scope);
13
+ const scope = (0, useScope_1.useScope)();
15
14
  const applyTemplate = (0, react_1.useCallback)((stringValue) => {
16
- if ((0, lodash_1.isString)(stringValue)) {
15
+ if (typeof stringValue === 'string') {
17
16
  try {
18
17
  const template = handlebarsCompile(stringValue);
19
- return template(deferredScope, { allowProtoMethodsByDefault: true, allowProtoPropertiesByDefault: true });
18
+ return template(scope, { allowProtoMethodsByDefault: true, allowProtoPropertiesByDefault: true });
20
19
  }
21
20
  catch (e) { }
22
21
  }
23
22
  return stringValue;
24
- }, [deferredScope]);
23
+ }, [scope]);
25
24
  const finalValue = (0, react_1.useMemo)(() => {
26
25
  if (templateString)
27
26
  return applyTemplate(templateString);
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.js","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":";;;;;;AAAA,0FAA2D;AAC3D,mCAA2C;AAC3C,iCAA+D;AAC/D,yCAAsC;AAEtC,MAAM,iBAA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C;AACjC,iCAA6C;AAC7C,yCAAsC;AAEtC,MAAM,iBAAiB,GAAG,IAAA,gBAAO,EAAC,CAAC,WAAkB,EAAE,EAAE,CAAC,2BAAU,CAAC,OAAO,CAAC,WAAW,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,CAAA;AAErG,MAAM,WAAW,GAAG,CAAC,cAAuB,EAAC,EAAE;IAElD,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAC;IACzB,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,CAAC,WAAmB,EAAC,EAAE;QACrD,IAAG,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACjC,IAAG,CAAC;gBACA,MAAM,QAAQ,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;gBAChD,OAAO,QAAQ,CAAC,KAAK,EAAE,EAAC,0BAA0B,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,EAAC,CAAC,CAAC;YACpG,CAAC;YAAC,OAAM,CAAC,EAAC,CAAC,CAAA,CAAC;QAChB,CAAC;QACD,OAAO,WAAW,CAAC;IACvB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,MAAM,UAAU,GAAG,IAAA,eAAO,EAAC,GAAE,EAAE;QAC3B,IAAG,cAAc;YAAE,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC;QACxD,OAAO,cAAc,CAAC;IAC1B,CAAC,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IAEpC,IAAG,cAAc,KAAK,SAAS;QAAE,OAAO,aAAa,CAAC;IAEtD,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AArBW,QAAA,WAAW,eAqBtB;AAEF,kBAAe,mBAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type RenderTemplateProps = {
3
+ template: string;
4
+ };
5
+ export declare const RenderTemplate: React.FC<RenderTemplateProps>;
6
+ export default RenderTemplate;
7
+ //# sourceMappingURL=RenderTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,mBAAmB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAGxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { useTemplate } from "../hooks";
2
+ export const RenderTemplate = ({ template }) => {
3
+ const applyTemplate = useTemplate();
4
+ return applyTemplate(template);
5
+ };
6
+ export default RenderTemplate;
7
+ //# sourceMappingURL=RenderTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderTemplate.js","sourceRoot":"","sources":["../../../../src/components/RenderTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMvC,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IACxE,MAAM,aAAa,GAAG,WAAW,EAAE,CAAC;IACpC,OAAO,aAAa,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './EmptyComponent';
2
2
  export * from './hoc';
3
3
  export * from './SkipSSR';
4
+ export * from './RenderTemplate';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -18,5 +18,6 @@ export * from './EmptyComponent';
18
18
  // export * from './BackgroundCho';
19
19
  export * from './hoc';
20
20
  export * from './SkipSSR';
21
+ export * from './RenderTemplate';
21
22
  // export {default as Modal} from './Modal';
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,iCAAiC;AACjC,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,wCAAwC;AACxC,kCAAkC;AAClC,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AACrC,gCAAgC;AAChC,cAAc,kBAAkB,CAAC;AACjC,mCAAmC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAE1B,4CAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,iCAAiC;AACjC,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,iCAAiC;AACjC,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,wCAAwC;AACxC,kCAAkC;AAClC,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AACrC,gCAAgC;AAChC,cAAc,kBAAkB,CAAC;AACjC,mCAAmC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AAEjC,4CAA4C"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,QAsBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,21 +1,20 @@
1
1
  import Handlebars from 'handlebars/dist/handlebars.min.js';
2
- import { isString, memoize } from 'lodash';
3
- import { useCallback, useDeferredValue, useMemo } from 'react';
2
+ import { memoize } from 'lodash';
3
+ import { useCallback, useMemo } from 'react';
4
4
  import { useScope } from "./useScope";
5
5
  const handlebarsCompile = memoize((stringValue) => Handlebars.compile(stringValue, { noEscape: true }));
6
6
  export const useTemplate = (templateString) => {
7
- const _scope = useScope();
8
- const deferredScope = useDeferredValue(_scope);
7
+ const scope = useScope();
9
8
  const applyTemplate = useCallback((stringValue) => {
10
- if (isString(stringValue)) {
9
+ if (typeof stringValue === 'string') {
11
10
  try {
12
11
  const template = handlebarsCompile(stringValue);
13
- return template(deferredScope, { allowProtoMethodsByDefault: true, allowProtoPropertiesByDefault: true });
12
+ return template(scope, { allowProtoMethodsByDefault: true, allowProtoPropertiesByDefault: true });
14
13
  }
15
14
  catch (e) { }
16
15
  }
17
16
  return stringValue;
18
- }, [deferredScope]);
17
+ }, [scope]);
19
18
  const finalValue = useMemo(() => {
20
19
  if (templateString)
21
20
  return applyTemplate(templateString);
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.js","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,QAA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
4
+ };
5
+ export declare const RenderTemplate: React.FC<RenderTemplateProps>;
6
+ export default RenderTemplate;
7
+ //# sourceMappingURL=RenderTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/RenderTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,mBAAmB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAGxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './EmptyComponent';
2
2
  export * from './hoc';
3
3
  export * from './SkipSSR';
4
+ export * from './RenderTemplate';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,QAsBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.313",
3
+ "version": "1.0.314",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",