@sprucelabs/spruce-templates 17.0.15 → 17.1.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/build/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare const templates: {
|
|
|
76
76
|
skillEventContractTypesFile: string;
|
|
77
77
|
}): string;
|
|
78
78
|
sandboxWillBootListener(): string;
|
|
79
|
+
polish(): string;
|
|
79
80
|
directoryTemplate<K extends DirectoryTemplateCode>(options: {
|
|
80
81
|
kind: K;
|
|
81
82
|
context: DirectoryTemplateContextMap[K];
|
package/build/index.js
CHANGED
|
@@ -181,6 +181,10 @@ exports.templates = {
|
|
|
181
181
|
const template = templateImporter_utility_1.default.getTemplate('sandbox/will-boot.listener.ts.hbs');
|
|
182
182
|
return template({});
|
|
183
183
|
},
|
|
184
|
+
polish() {
|
|
185
|
+
const template = templateImporter_utility_1.default.getTemplate('polish/polish.ts.hbs');
|
|
186
|
+
return template({});
|
|
187
|
+
},
|
|
184
188
|
async directoryTemplate(options) {
|
|
185
189
|
return DirectoryTemplateUtility_1.default.build(options);
|
|
186
190
|
},
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { PolishStep } from '@sprucelabs/heartwood-polish'
|
|
2
|
+
|
|
3
|
+
// Documentation: https://developer.spruce.ai/#/polish/index
|
|
4
|
+
|
|
5
|
+
const script: PolishStep[] = [
|
|
6
|
+
/**{
|
|
7
|
+
redirect: {
|
|
8
|
+
id: 'heartwood.root',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
typeText: {
|
|
13
|
+
target: [['Field', 'phone']],
|
|
14
|
+
text: '5555555555',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
assert: {
|
|
19
|
+
target: [['Field', 'phone']],
|
|
20
|
+
inputValue: {
|
|
21
|
+
equals: '+1 555-555-5555',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
click: {
|
|
27
|
+
target: [['Button', 'primary']],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
typeText: {
|
|
32
|
+
target: [['Field', 'code']],
|
|
33
|
+
text: '5555',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
click: {
|
|
38
|
+
target: [['NavMenu', 'settings']],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
click: {
|
|
43
|
+
target: [['NavLink', 'logout']],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
click: {
|
|
48
|
+
target: [['Dialog', 'primary']],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
typeText: {
|
|
53
|
+
target: [['Field', 'phone']],
|
|
54
|
+
text: '555-555-2323',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
assert: {
|
|
59
|
+
target: [['Field', 'phone']],
|
|
60
|
+
inputValue: {
|
|
61
|
+
equals: '+1 555-555-2323',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},**/
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
export default script
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "17.0
|
|
6
|
+
"version": "17.1.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"tsconfig.json",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"watch.tsc": "tsc -w"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@sprucelabs/mercury-types": "^
|
|
60
|
-
"@sprucelabs/schema": "^28.2.
|
|
59
|
+
"@sprucelabs/mercury-types": "^35.0.3",
|
|
60
|
+
"@sprucelabs/schema": "^28.2.51",
|
|
61
61
|
"@sprucelabs/spruce-event-utils": "^26.0.36",
|
|
62
|
-
"@sprucelabs/spruce-skill-utils": "^26.0.
|
|
62
|
+
"@sprucelabs/spruce-skill-utils": "^26.0.88",
|
|
63
63
|
"globby": "11.0.4",
|
|
64
64
|
"handlebars": "^4.7.7",
|
|
65
65
|
"lodash": "^4.17.21",
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/lodash": "^4.14.182",
|
|
70
|
-
"@types/node": "^
|
|
70
|
+
"@types/node": "^18.0.0",
|
|
71
71
|
"chokidar-cli": "^3.0.0",
|
|
72
|
-
"concurrently": "^7.2.
|
|
72
|
+
"concurrently": "^7.2.2",
|
|
73
73
|
"conventional-changelog-sprucelabs": "^1.1.2",
|
|
74
|
-
"prettier": "^2.7.
|
|
75
|
-
"typescript": "^4.7.
|
|
74
|
+
"prettier": "^2.7.1",
|
|
75
|
+
"typescript": "^4.7.4"
|
|
76
76
|
},
|
|
77
77
|
"yarn-upgrade-all": {
|
|
78
78
|
"ignore": [
|
|
79
79
|
"globby"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "e557a50edaaf2cc61f241f9a6b6b223f69991fe4"
|
|
83
83
|
}
|