@telia-ace/widget-utilities 1.0.8 → 1.0.9-next.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/dist/append-class-names.d.ts +1 -1
- package/dist/batch.d.ts +2 -2
- package/dist/category-trail.d.ts +2 -2
- package/dist/create-params.d.ts +3 -3
- package/dist/lock.d.ts +2 -2
- package/dist/wait-for.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type ArgumentHandler = string | [boolean, string | string[]] | undefined;
|
|
2
2
|
export declare function uniqueClassArray(classNames: string[]): string[];
|
|
3
3
|
export declare function append(className1?: string, className2?: string): string;
|
|
4
4
|
export declare function handleFunctionArgument(expression: boolean, classes: string | string[]): string | undefined;
|
package/dist/batch.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type BatchFunction<T> = (acc: T) => T;
|
|
2
|
+
export type Batch<T> = (fn: BatchFunction<T>) => Promise<T>;
|
|
3
3
|
declare const createBatch: <T>(delay: number, createFallback: () => T) => Batch<T>;
|
|
4
4
|
export default createBatch;
|
package/dist/category-trail.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Container } from '@webprovisions/platform';
|
|
2
|
-
|
|
2
|
+
type Item = {
|
|
3
3
|
id: string;
|
|
4
4
|
items?: Item[];
|
|
5
5
|
title: string;
|
|
6
6
|
symbol?: any;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type ChildParentStructure = {
|
|
9
9
|
[key: number]: string;
|
|
10
10
|
};
|
|
11
11
|
export declare function categoryTrail(id: string, items: Item[], ids?: string[], structure?: ChildParentStructure): string[];
|
package/dist/create-params.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Input = {
|
|
2
2
|
phrase?: string;
|
|
3
3
|
category?: ParamValue;
|
|
4
4
|
guideCategory?: ParamValue;
|
|
@@ -14,8 +14,8 @@ export declare type Input = {
|
|
|
14
14
|
} & {
|
|
15
15
|
[key: string]: ParamValue;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type ParamValue = string | number | any;
|
|
18
|
+
export type Params = {
|
|
19
19
|
[key: string]: ParamValue;
|
|
20
20
|
};
|
|
21
21
|
export default function createParams(args?: Input): Params;
|
package/dist/lock.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
type Task = () => Promise<any> | any;
|
|
2
|
+
export type AddTask = (task: Task) => Promise<any>;
|
|
3
3
|
/**
|
|
4
4
|
* Creates a lock for the specified owner that allows only one executing
|
|
5
5
|
* task simultaneously.
|
package/dist/wait-for.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9-next.0",
|
|
4
4
|
"description": "Utilities used internally by ACE Widget packages.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@webprovisions/platform": "^1.1.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@telia-ace/widget-developer-tools": "^1.0.
|
|
27
|
+
"@telia-ace/widget-developer-tools": "^1.0.15-next.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rimraf ./dist",
|