@sprucelabs/heartwood-polish 6.1.0 → 6.2.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.
|
@@ -13,7 +13,6 @@ class RedirectAction extends AbstractAction_1.default {
|
|
|
13
13
|
}
|
|
14
14
|
async go() {
|
|
15
15
|
const destination = this.baseUrl + `/#views/${this.destinationId}`;
|
|
16
|
-
console.log('redirecting to', destination);
|
|
17
16
|
await this.page.goto(destination);
|
|
18
17
|
const selector = '.' + this.destinationId.replace(/[^A-Za-z0-9]/, '_').replace('__*', '_');
|
|
19
18
|
await this.page.waitForSelector(selector);
|
package/build/polish.types.d.ts
CHANGED
|
@@ -10,7 +10,12 @@ export type TargetedComponent = 'Button' | 'Card' | 'Calendar' | 'Dialog' | 'Fie
|
|
|
10
10
|
type TargetedComponentId = string;
|
|
11
11
|
type NthTargetedComponent = number;
|
|
12
12
|
export type PolishTargetItem = TargetedComponent | [TargetedComponent, TargetedComponentId | NthTargetedComponent];
|
|
13
|
-
export type PolishTarget = PolishTargetItem[];
|
|
13
|
+
export type PolishTarget = PolishTargetItem[] | PolishTargetVariable;
|
|
14
|
+
export interface PolishTargetVariable {
|
|
15
|
+
key: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
}
|
|
14
19
|
export interface PolishStep {
|
|
15
20
|
seed?: {
|
|
16
21
|
organizations?: number;
|
|
@@ -23,11 +28,14 @@ export interface PolishStep {
|
|
|
23
28
|
groupManagers?: number;
|
|
24
29
|
};
|
|
25
30
|
}
|
|
26
|
-
export
|
|
31
|
+
export interface PolishStepTemplate extends PolishStep {
|
|
32
|
+
}
|
|
33
|
+
export interface PolishScriptTemplate {
|
|
27
34
|
name: string;
|
|
28
35
|
description: string;
|
|
29
|
-
steps:
|
|
30
|
-
}
|
|
36
|
+
steps: PolishStepTemplate[];
|
|
37
|
+
}
|
|
38
|
+
export type PolishScript = PolishStep[];
|
|
31
39
|
export interface PolishActionMap {
|
|
32
40
|
}
|
|
33
41
|
export type ActionName = keyof PolishActionMap;
|