@limetech/lime-web-components 5.29.0 → 5.31.0
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/CHANGELOG.md +16 -0
- package/dist/conditionregistry/conditionregistry.d.ts +7 -0
- package/dist/conditionregistry/conditionregistry.d.ts.map +1 -1
- package/dist/conditionregistry/conditionregistry.js +9 -0
- package/dist/core/metadata.d.ts +13 -0
- package/dist/core/metadata.d.ts.map +1 -1
- package/dist/es5/conditionregistry/conditionregistry.js +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [5.31.0](https://github.com/Lundalogik/lime-web-components/compare/v5.30.0...v5.31.0) (2024-03-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* add interface describing package metadata ([dfe5806](https://github.com/Lundalogik/lime-web-components/commit/dfe580615a97ca173a2b92f25ca1c96c49f56e90))
|
|
8
|
+
|
|
9
|
+
## [5.30.0](https://github.com/Lundalogik/lime-web-components/compare/v5.29.0...v5.30.0) (2024-03-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* **is-action-condition:** add function to check if a condition is an action condition ([c902563](https://github.com/Lundalogik/lime-web-components/commit/c902563a08b28ce12b9b191fccb7946ac03d79dc))
|
|
16
|
+
|
|
1
17
|
## [5.29.0](https://github.com/Lundalogik/lime-web-components/compare/v5.28.0...v5.29.0) (2024-03-20)
|
|
2
18
|
|
|
3
19
|
|
|
@@ -48,6 +48,13 @@ export type ActionCondition = Condition<Action> & {
|
|
|
48
48
|
* @group Conditions
|
|
49
49
|
*/
|
|
50
50
|
export declare function isLimeObjectCondition(condition: Condition): condition is Condition<LimeObject>;
|
|
51
|
+
/**
|
|
52
|
+
* Check if condition expects an action to be passed when it is evaluated
|
|
53
|
+
*
|
|
54
|
+
* @alpha
|
|
55
|
+
* @group Conditions
|
|
56
|
+
*/
|
|
57
|
+
export declare function isActionCondition(condition: Condition): condition is Condition<Action>;
|
|
51
58
|
/**
|
|
52
59
|
* Service for adding and retrieving, and checking {@link Condition}s to and from the condition registry
|
|
53
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditionregistry.d.ts","sourceRoot":"","sources":["../../src/conditionregistry/conditionregistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,OAAO,IAAI;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IAKpD,EAAE,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG;IACtD,IAAI,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG;IAC9C,IAAI,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,SAAS,GACrB,SAAS,IAAI,SAAS,CAAC,UAAU,CAAC,CAEpC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,OAAE;IAEnC;;;;;OAKG;IACH,eAAe,CAAC,SAAS,EAAE,SAAS,OAAE;IAEtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAElC;;;;OAIG;IACH,aAAa,IAAI,SAAS,EAAE,CAAC;IAE7B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC"}
|
|
1
|
+
{"version":3,"file":"conditionregistry.d.ts","sourceRoot":"","sources":["../../src/conditionregistry/conditionregistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,OAAO,IAAI;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IAKpD,EAAE,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG;IACtD,IAAI,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG;IAC9C,IAAI,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,SAAS,GACrB,SAAS,IAAI,SAAS,CAAC,UAAU,CAAC,CAEpC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,SAAS,GACrB,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAEhC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,OAAE;IAEnC;;;;;OAKG;IACH,eAAe,CAAC,SAAS,EAAE,SAAS,OAAE;IAEtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAElC;;;;OAIG;IACH,aAAa,IAAI,SAAS,EAAE,CAAC;IAE7B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC"}
|
|
@@ -7,3 +7,12 @@
|
|
|
7
7
|
export function isLimeObjectCondition(condition) {
|
|
8
8
|
return condition.type === 'limeobject';
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Check if condition expects an action to be passed when it is evaluated
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
* @group Conditions
|
|
15
|
+
*/
|
|
16
|
+
export function isActionCondition(condition) {
|
|
17
|
+
return condition.type === 'action';
|
|
18
|
+
}
|
package/dist/core/metadata.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Icon } from '../action';
|
|
2
|
+
import { LimeWebComponentPlatform } from './platform';
|
|
2
3
|
/**
|
|
3
4
|
* Metadata for a configured resource
|
|
4
5
|
*
|
|
@@ -43,4 +44,16 @@ export type ConfigMetadata = {
|
|
|
43
44
|
props?: Record<string, unknown>;
|
|
44
45
|
};
|
|
45
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Metadata about a package using Lime Web Components
|
|
49
|
+
*
|
|
50
|
+
* @group Core
|
|
51
|
+
* @alpha
|
|
52
|
+
*/
|
|
53
|
+
export interface LimePackageMetadata {
|
|
54
|
+
/**
|
|
55
|
+
* The platforms this package is compatible with
|
|
56
|
+
*/
|
|
57
|
+
platforms?: Array<LimeWebComponentPlatform['type']>;
|
|
58
|
+
}
|
|
46
59
|
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/core/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/core/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAKjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,CAAC;CACL,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,CAAC;CACvD"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isLimeObjectCondition = void 0;
|
|
3
|
+
exports.isActionCondition = exports.isLimeObjectCondition = void 0;
|
|
4
4
|
function isLimeObjectCondition(condition) {
|
|
5
5
|
return condition.type === 'limeobject';
|
|
6
6
|
}
|
|
7
7
|
exports.isLimeObjectCondition = isLimeObjectCondition;
|
|
8
|
+
function isActionCondition(condition) {
|
|
9
|
+
return condition.type === 'action';
|
|
10
|
+
}
|
|
11
|
+
exports.isActionCondition = isActionCondition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-web-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.31.0",
|
|
4
4
|
"description": "Lime Web Components",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@commitlint/config-conventional": "^19.1.0",
|
|
39
|
-
"@microsoft/api-extractor": "^7.
|
|
39
|
+
"@microsoft/api-extractor": "^7.43.0",
|
|
40
40
|
"@types/jest": "^27.5.0",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
42
42
|
"@typescript-eslint/parser": "^7.3.1",
|