@j2inn/resolvable-ui-elements 1.1.2-beta.3 → 1.1.2
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/README.md +36 -36
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/resolvableElements/elements/section/{resolveUtils.js → resolveSection.js} +4 -2
- package/dist/resolvableElements/elements/section/resolveSection.js.map +1 -0
- package/dist/resolvableElements/react/useResolveSection.js +2 -2
- package/dist/resolvableElements/react/useResolveSection.js.map +1 -1
- package/dist_es/index.d.ts +1 -2
- package/dist_es/index.js +1 -2
- package/dist_es/index.js.map +1 -1
- package/dist_es/resolvableElements/elements/section/{resolveUtils.js → resolveSection.js} +4 -2
- package/dist_es/resolvableElements/elements/section/resolveSection.js.map +1 -0
- package/dist_es/resolvableElements/react/useResolveSection.js +1 -1
- package/dist_es/resolvableElements/react/useResolveSection.js.map +1 -1
- package/package.json +1 -1
- package/dist/resolvableElements/elements/section/resolveUtils.js.map +0 -1
- package/dist_es/resolvableElements/elements/section/resolveUtils.js.map +0 -1
- /package/dist/resolvableElements/elements/section/{resolveUtils.d.ts → resolveSection.d.ts} +0 -0
- /package/dist_es/resolvableElements/elements/section/{resolveUtils.d.ts → resolveSection.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# What is resolvable-ui-elements?
|
|
2
|
-
The main goal of this library is to enhance the flexibility of the UI code written, by adding a layer that separates the queries and information used to interact with the backend from the UI code, moving it to a separated JSON file.
|
|
3
|
-
|
|
4
|
-
The JSON file (typically called `elements.json`) can be generated from a spreadsheet used to simplify the data management for a project UI.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## How do I get set up? ###
|
|
8
|
-
To install this package run `npm i @j2inn/resolvable-ui-elements`
|
|
9
|
-
|
|
10
|
-
## Where do I get more info? ###
|
|
11
|
-
See: https://finproducts.atlassian.net/wiki/spaces/ECO/pages/32881311778/Element+Types
|
|
12
|
-
|
|
13
|
-
## Codebase Structure ##
|
|
14
|
-
|
|
15
|
-
src
|
|
16
|
-
├── resolvableElements
|
|
17
|
-
│ ├── elements # Element classes implementation
|
|
18
|
-
│ ├── interfacesGeneration # Code for generating interfaces from an elements.json file
|
|
19
|
-
│ ├── react # React hooks to use resolvable elements.
|
|
20
|
-
│ └── ...
|
|
21
|
-
└── ...
|
|
22
|
-
|
|
23
|
-
## BE libraries dependencies ##
|
|
24
|
-
If you decide to use the Resolver's `evalFuncName` feature, this library should be used in combination with [finOemAuthzExt](https://bitbucket.org/finproducts/finoemauthzext). The pod allows the usage of the wrapper function.
|
|
25
|
-
```typescript
|
|
26
|
-
/**
|
|
27
|
-
* Function name to be used for expressions eval,
|
|
28
|
-
* used to enable custom backend permission check using elements path
|
|
29
|
-
* @example
|
|
30
|
-
* customEval(\`page/section/elementName\`, parametersDict)
|
|
31
|
-
*/
|
|
32
|
-
evalFuncName?: string
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### v1.0.4 ###
|
|
36
|
-
Version 1.0.4 of this library introduces the usage of optional parameters in function evaluation. To be able to use them, [finOemAuthzExt](https://bitbucket.org/finproducts/finoemauthzext) 1.0.2+ should be used for the BE.
|
|
1
|
+
# What is resolvable-ui-elements?
|
|
2
|
+
The main goal of this library is to enhance the flexibility of the UI code written, by adding a layer that separates the queries and information used to interact with the backend from the UI code, moving it to a separated JSON file.
|
|
3
|
+
|
|
4
|
+
The JSON file (typically called `elements.json`) can be generated from a spreadsheet used to simplify the data management for a project UI.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## How do I get set up? ###
|
|
8
|
+
To install this package run `npm i @j2inn/resolvable-ui-elements`
|
|
9
|
+
|
|
10
|
+
## Where do I get more info? ###
|
|
11
|
+
See: https://finproducts.atlassian.net/wiki/spaces/ECO/pages/32881311778/Element+Types
|
|
12
|
+
|
|
13
|
+
## Codebase Structure ##
|
|
14
|
+
|
|
15
|
+
src
|
|
16
|
+
├── resolvableElements
|
|
17
|
+
│ ├── elements # Element classes implementation
|
|
18
|
+
│ ├── interfacesGeneration # Code for generating interfaces from an elements.json file
|
|
19
|
+
│ ├── react # React hooks to use resolvable elements.
|
|
20
|
+
│ └── ...
|
|
21
|
+
└── ...
|
|
22
|
+
|
|
23
|
+
## BE libraries dependencies ##
|
|
24
|
+
If you decide to use the Resolver's `evalFuncName` feature, this library should be used in combination with [finOemAuthzExt](https://bitbucket.org/finproducts/finoemauthzext). The pod allows the usage of the wrapper function.
|
|
25
|
+
```typescript
|
|
26
|
+
/**
|
|
27
|
+
* Function name to be used for expressions eval,
|
|
28
|
+
* used to enable custom backend permission check using elements path
|
|
29
|
+
* @example
|
|
30
|
+
* customEval(\`page/section/elementName\`, parametersDict)
|
|
31
|
+
*/
|
|
32
|
+
evalFuncName?: string
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### v1.0.4 ###
|
|
36
|
+
Version 1.0.4 of this library introduces the usage of optional parameters in function evaluation. To be able to use them, [finOemAuthzExt](https://bitbucket.org/finproducts/finoemauthzext) 1.0.2+ should be used for the BE.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from './resolvableElements/elements/section/
|
|
1
|
+
export * from './resolvableElements/elements/section/resolveSection';
|
|
2
2
|
export * from './resolvableElements/Resolver';
|
|
3
3
|
export { type ResolvableValueElementMeta } from './resolvableElements/elements/ResolvableValueElement';
|
|
4
4
|
export { type UiElementData } from './resolvableElements/elements/UiElement';
|
|
5
5
|
export { type ResolvableExprElementMeta } from './resolvableElements/elements/expr/ResolvableExprElementMeta';
|
|
6
6
|
export { type FunctionResult } from './resolvableElements/elements/function/FunctionElement';
|
|
7
7
|
export { isSectionData, type ParametersOfSection, type ResolvedSection, } from './resolvableElements/elements/section/SectionElementMeta';
|
|
8
|
-
export * from './resolvableElements/elements/section/resolveUtils';
|
|
9
8
|
export { resolveTemplateExpression } from './resolvableElements/resolveTemplatedExpression';
|
|
10
9
|
export * from './resolvableElements/react/SectionChecker';
|
|
11
10
|
export * from './resolvableElements/react/useResolveSection';
|
package/dist/index.js
CHANGED
|
@@ -21,11 +21,10 @@ exports.resolveTemplateExpression = exports.isSectionData = void 0;
|
|
|
21
21
|
//////////////////////////////////////////////////////////////////////////
|
|
22
22
|
// Elements
|
|
23
23
|
//////////////////////////////////////////////////////////////////////////
|
|
24
|
-
__exportStar(require("./resolvableElements/elements/section/
|
|
24
|
+
__exportStar(require("./resolvableElements/elements/section/resolveSection"), exports);
|
|
25
25
|
__exportStar(require("./resolvableElements/Resolver"), exports);
|
|
26
26
|
var SectionElementMeta_1 = require("./resolvableElements/elements/section/SectionElementMeta");
|
|
27
27
|
Object.defineProperty(exports, "isSectionData", { enumerable: true, get: function () { return SectionElementMeta_1.isSectionData; } });
|
|
28
|
-
__exportStar(require("./resolvableElements/elements/section/resolveUtils"), exports);
|
|
29
28
|
var resolveTemplatedExpression_1 = require("./resolvableElements/resolveTemplatedExpression");
|
|
30
29
|
Object.defineProperty(exports, "resolveTemplateExpression", { enumerable: true, get: function () { return resolveTemplatedExpression_1.resolveTemplateExpression; } });
|
|
31
30
|
//////////////////////////////////////////////////////////////////////////
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,0EAA0E;AAC1E,WAAW;AACX,0EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,0EAA0E;AAC1E,WAAW;AACX,0EAA0E;AAC1E,uFAAoE;AACpE,gEAA6C;AAK7C,+FAIiE;AAHhE,mHAAA,aAAa,OAAA;AAId,8FAA2F;AAAlF,uIAAA,yBAAyB,OAAA;AAClC,0EAA0E;AAC1E,QAAQ;AACR,0EAA0E;AAC1E,4EAAyD;AACzD,+EAA4D;AAC5D,gFAA6D;AAC7D,0EAA0E;AAC1E,QAAQ;AACR,0EAA0E;AAC1E,mDAAgC"}
|
|
@@ -19,7 +19,9 @@ async function resolveSection(resolver, sectionData, parameters) {
|
|
|
19
19
|
const sectionElement = new ResolvableSectionElement_1.ResolvableSectionElement({
|
|
20
20
|
element: sectionData,
|
|
21
21
|
resolver,
|
|
22
|
-
onUpdate: (
|
|
22
|
+
onUpdate: () => {
|
|
23
|
+
return;
|
|
24
|
+
},
|
|
23
25
|
});
|
|
24
26
|
await sectionElement
|
|
25
27
|
.initialize(parametersDict)
|
|
@@ -37,4 +39,4 @@ const areParametersValid = (parameters) => {
|
|
|
37
39
|
return true;
|
|
38
40
|
};
|
|
39
41
|
exports.areParametersValid = areParametersValid;
|
|
40
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=resolveSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveSection.js","sourceRoot":"","sources":["../../../../src/resolvableElements/elements/section/resolveSection.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,iEAAgE;AAChE,yEAAqE;AAGrE;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CACnC,QAAkB,EAClB,WAAc,EACd,UAAmC;IAEnC,MAAM,cAAc,GAAG,IAAA,oCAAkB,EAAC,UAAU,CAAC,CAAA;IACrD,IAAI,IAAA,0BAAkB,EAAC,UAAU,CAAC,EAAE;QACnC,MAAM,cAAc,GAAG,IAAI,mDAAwB,CAAC;YACnD,OAAO,EAAE,WAAW;YACpB,QAAQ;YACR,QAAQ,EAAE,GAAG,EAAE;gBACd,OAAM;YACP,CAAC;SACD,CAAC,CAAA;QAEF,MAAM,cAAc;aAClB,UAAU,CAAC,cAAc,CAAC;aAC1B,OAAO,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,KAAK,EAAE,CAAC,CAAA;QAExC,OAAO,cAAc,CAAC,KAA2B,CAAA;KACjD;IAED,OAAO,SAAS,CAAA;AACjB,CAAC;AAvBD,wCAuBC;AAEM,MAAM,kBAAkB,GAAG,CACjC,UAAkC,EACjC,EAAE;IACH,IACC,UAAU;QACV,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,EAC5D;QACD,OAAO,KAAK,CAAA;KACZ;IACD,OAAO,IAAI,CAAA;AACZ,CAAC,CAAA;AAVY,QAAA,kBAAkB,sBAU9B"}
|
|
@@ -7,7 +7,7 @@ exports.useResolveSection = void 0;
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const FunctionElement_1 = require("../elements/function/FunctionElement");
|
|
9
9
|
const ResolvableSectionElement_1 = require("../elements/section/ResolvableSectionElement");
|
|
10
|
-
const
|
|
10
|
+
const resolveSection_1 = require("../elements/section/resolveSection");
|
|
11
11
|
const useResolverContext_1 = require("./useResolverContext");
|
|
12
12
|
/**
|
|
13
13
|
* Resolves a section UI element.
|
|
@@ -32,7 +32,7 @@ function useResolveSection(sectionData, parameters) {
|
|
|
32
32
|
}
|
|
33
33
|
const parametersDict = (0, FunctionElement_1.makeParametersDict)(parameters);
|
|
34
34
|
(0, react_1.useEffect)(() => {
|
|
35
|
-
if ((0,
|
|
35
|
+
if ((0, resolveSection_1.areParametersValid)(parameters)) {
|
|
36
36
|
ref.current = new ResolvableSectionElement_1.ResolvableSectionElement({
|
|
37
37
|
element: sectionData,
|
|
38
38
|
resolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResolveSection.js","sourceRoot":"","sources":["../../../src/resolvableElements/react/useResolveSection.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,iCAA+D;AAE/D,0EAAyE;AACzE,2FAAuF;AAKvF,
|
|
1
|
+
{"version":3,"file":"useResolveSection.js","sourceRoot":"","sources":["../../../src/resolvableEl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AA;YAChB,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO;iBACzB,UAAU,CAAC,cAAc,CAAC;iBAC1B,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;iBAC/B,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;YAElC,OAAO,GAAG,EAAE;gBACX,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,CAAA;gBAClC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE;oBACpB,cAAc,EAAE,KAAK,EAAE,CAAA;gBACxB,CAAC,CAAC,CAAA;YACH,CAAC,CAAA;SACD;QACD,OAAM;IACP,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IAE/D,OAAO;QACN,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAuB;QAC/C;YACC,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,KAAK;YACL,SAAS;SACT;KACD,CAAA;AACF,CAAC;AAtDD,8CAsDC"}
|
package/dist_es/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from './resolvableElements/elements/section/
|
|
1
|
+
export * from './resolvableElements/elements/section/resolveSection';
|
|
2
2
|
export * from './resolvableElements/Resolver';
|
|
3
3
|
export { type ResolvableValueElementMeta } from './resolvableElements/elements/ResolvableValueElement';
|
|
4
4
|
export { type UiElementData } from './resolvableElements/elements/UiElement';
|
|
5
5
|
export { type ResolvableExprElementMeta } from './resolvableElements/elements/expr/ResolvableExprElementMeta';
|
|
6
6
|
export { type FunctionResult } from './resolvableElements/elements/function/FunctionElement';
|
|
7
7
|
export { isSectionData, type ParametersOfSection, type ResolvedSection, } from './resolvableElements/elements/section/SectionElementMeta';
|
|
8
|
-
export * from './resolvableElements/elements/section/resolveUtils';
|
|
9
8
|
export { resolveTemplateExpression } from './resolvableElements/resolveTemplatedExpression';
|
|
10
9
|
export * from './resolvableElements/react/SectionChecker';
|
|
11
10
|
export * from './resolvableElements/react/useResolveSection';
|
package/dist_es/index.js
CHANGED
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
//////////////////////////////////////////////////////////////////////////
|
|
5
5
|
// Elements
|
|
6
6
|
//////////////////////////////////////////////////////////////////////////
|
|
7
|
-
export * from './resolvableElements/elements/section/
|
|
7
|
+
export * from './resolvableElements/elements/section/resolveSection';
|
|
8
8
|
export * from './resolvableElements/Resolver';
|
|
9
9
|
export { isSectionData, } from './resolvableElements/elements/section/SectionElementMeta';
|
|
10
|
-
export * from './resolvableElements/elements/section/resolveUtils';
|
|
11
10
|
export { resolveTemplateExpression } from './resolvableElements/resolveTemplatedExpression';
|
|
12
11
|
//////////////////////////////////////////////////////////////////////////
|
|
13
12
|
// React
|
package/dist_es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,0EAA0E;AAC1E,WAAW;AACX,0EAA0E;AAC1E,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,0EAA0E;AAC1E,WAAW;AACX,0EAA0E;AAC1E,cAAc,sDAAsD,CAAA;AACpE,cAAc,+BAA+B,CAAA;AAK7C,OAAO,EACN,aAAa,GAGb,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAA;AAC3F,0EAA0E;AAC1E,QAAQ;AACR,0EAA0E;AAC1E,cAAc,2CAA2C,CAAA;AACzD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,+CAA+C,CAAA;AAC7D,0EAA0E;AAC1E,QAAQ;AACR,0EAA0E;AAC1E,cAAc,kBAAkB,CAAA"}
|
|
@@ -16,7 +16,9 @@ export async function resolveSection(resolver, sectionData, parameters) {
|
|
|
16
16
|
const sectionElement = new ResolvableSectionElement({
|
|
17
17
|
element: sectionData,
|
|
18
18
|
resolver,
|
|
19
|
-
onUpdate: (
|
|
19
|
+
onUpdate: () => {
|
|
20
|
+
return;
|
|
21
|
+
},
|
|
20
22
|
});
|
|
21
23
|
await sectionElement
|
|
22
24
|
.initialize(parametersDict)
|
|
@@ -32,4 +34,4 @@ export const areParametersValid = (parameters) => {
|
|
|
32
34
|
}
|
|
33
35
|
return true;
|
|
34
36
|
};
|
|
35
|
-
//# sourceMappingURL=
|
|
37
|
+
//# sourceMappingURL=resolveSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveSection.js","sourceRoot":"","sources":["../../../../src/resolvableElements/elements/section/resolveSection.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,QAAkB,EAClB,WAAc,EACd,UAAmC;IAEnC,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IACrD,IAAI,kBAAkB,CAAC,UAAU,CAAC,EAAE;QACnC,MAAM,cAAc,GAAG,IAAI,wBAAwB,CAAC;YACnD,OAAO,EAAE,WAAW;YACpB,QAAQ;YACR,QAAQ,EAAE,GAAG,EAAE;gBACd,OAAM;YACP,CAAC;SACD,CAAC,CAAA;QAEF,MAAM,cAAc;aAClB,UAAU,CAAC,cAAc,CAAC;aAC1B,OAAO,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,KAAK,EAAE,CAAC,CAAA;QAExC,OAAO,cAAc,CAAC,KAA2B,CAAA;KACjD;IAED,OAAO,SAAS,CAAA;AACjB,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,UAAkC,EACjC,EAAE;IACH,IACC,UAAU;QACV,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,EAC5D;QACD,OAAO,KAAK,CAAA;KACZ;IACD,OAAO,IAAI,CAAA;AACZ,CAAC,CAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useEffect, useReducer, useRef, useState } from 'react';
|
|
5
5
|
import { makeParametersDict } from '../elements/function/FunctionElement';
|
|
6
6
|
import { ResolvableSectionElement } from '../elements/section/ResolvableSectionElement';
|
|
7
|
-
import { areParametersValid } from '../elements/section/
|
|
7
|
+
import { areParametersValid } from '../elements/section/resolveSection';
|
|
8
8
|
import { useResolverContext } from './useResolverContext';
|
|
9
9
|
/**
|
|
10
10
|
* Resolves a section UI element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResolveSection.js","sourceRoot":"","sources":["../../../src/resolvableElements/react/useResolveSection.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AAKvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useResolveSection.js","sourceRoot":"","sources":["../../../src/resolvableElements/react/useResolveSection.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,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zB,UAAU,CAAC,cAAc,CAAC;iBAC1B,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;iBAC/B,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;YAElC,OAAO,GAAG,EAAE;gBACX,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,CAAA;gBAClC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE;oBACpB,cAAc,EAAE,KAAK,EAAE,CAAA;gBACxB,CAAC,CAAC,CAAA;YACH,CAAC,CAAA;SACD;QACD,OAAM;IACP,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IAE/D,OAAO;QACN,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAuB;QAC/C;YACC,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,KAAK;YACL,SAAS;SACT;KACD,CAAA;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveUtils.js","sourceRoot":"","sources":["../../../../src/resolvableElements/elements/section/resolveUtils.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,iEAAgE;AAChE,yEAAqE;AAGrE;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CACnC,QAAkB,EAClB,WAAc,EACd,UAAmC;IAEnC,MAAM,cAAc,GAAG,IAAA,oCAAkB,EAAC,UAAU,CAAC,CAAA;IACrD,IAAI,IAAA,0BAAkB,EAAC,UAAU,CAAC,EAAE;QACnC,MAAM,cAAc,GAAG,IAAI,mDAAwB,CAAC;YACnD,OAAO,EAAE,WAAW;YACpB,QAAQ;YACR,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;SACvC,CAAC,CAAA;QAEF,MAAM,cAAc;aAClB,UAAU,CAAC,cAAc,CAAC;aAC1B,OAAO,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,KAAK,EAAE,CAAC,CAAA;QAExC,OAAO,cAAc,CAAC,KAA2B,CAAA;KACjD;IAED,OAAO,SAAS,CAAA;AACjB,CAAC;AArBD,wCAqBC;AAEM,MAAM,kBAAkB,GAAG,CACjC,UAAkC,EACjC,EAAE;IACH,IACC,UAAU;QACV,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,EAC5D;QACD,OAAO,KAAK,CAAA;KACZ;IACD,OAAO,IAAI,CAAA;AACZ,CAAC,CAAA;AAVY,QAAA,kBAAkB,sBAU9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveUtils.js","sourceRoot":"","sources":["../../../../src/resolvableElements/elements/section/resolveUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,QAAkB,EAClB,WAAc,EACd,UAAmC;IAEnC,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IACrD,IAAI,kBAAkB,CAAC,UAAU,CAAC,EAAE;QACnC,MAAM,cAAc,GAAG,IAAI,wBAAwB,CAAC;YACnD,OAAO,EAAE,WAAW;YACpB,QAAQ;YACR,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;SACvC,CAAC,CAAA;QAEF,MAAM,cAAc;aAClB,UAAU,CAAC,cAAc,CAAC;aAC1B,OAAO,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,KAAK,EAAE,CAAC,CAAA;QAExC,OAAO,cAAc,CAAC,KAA2B,CAAA;KACjD;IAED,OAAO,SAAS,CAAA;AACjB,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,UAAkC,EACjC,EAAE;IACH,IACC,UAAU;QACV,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,EAC5D;QACD,OAAO,KAAK,CAAA;KACZ;IACD,OAAO,IAAI,CAAA;AACZ,CAAC,CAAA"}
|
|
File without changes
|
/package/dist_es/resolvableElements/elements/section/{resolveUtils.d.ts → resolveSection.d.ts}
RENAMED
|
File without changes
|