@sprucelabs/heartwood-polish 6.0.25 → 6.0.27
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
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [6.0.27](https://github.com/sprucelabsai/heartwood-polish/compare/v6.0.26...v6.0.27) (2023-06-14)
|
|
2
|
+
|
|
3
|
+
## [6.0.26](https://github.com/sprucelabsai/heartwood-polish/compare/v6.0.25...v6.0.26) (2023-06-13)
|
|
4
|
+
|
|
1
5
|
## [6.0.25](https://github.com/sprucelabsai/heartwood-polish/compare/v6.0.24...v6.0.25) (2023-06-13)
|
|
2
6
|
|
|
3
7
|
## [6.0.24](https://github.com/sprucelabsai/heartwood-polish/compare/v6.0.23...v6.0.24) (2023-06-13)
|
|
@@ -74,8 +74,11 @@ class TargetingTest extends test_utils_1.default {
|
|
|
74
74
|
this.assertTargetGeneratesSelector(['ToolBelt', 'Card'], '.tool_belt__inner_column .card');
|
|
75
75
|
this.assertTargetGeneratesSelector(['ToolBelt', 'Tool'], '.tool_belt__inner_column .tool');
|
|
76
76
|
this.assertTargetGeneratesSelector(['ToolBelt', ['Tool', 'people']], '.tool_belt__inner_column .tool[data-id="people"]');
|
|
77
|
-
this.assertTargetGeneratesSelector(['ToolBelt', 'Card', ['Button', 'secondary']], '.tool_belt__inner_column .card .button.
|
|
78
|
-
this.assertTargetGeneratesSelector(['
|
|
77
|
+
this.assertTargetGeneratesSelector(['ToolBelt', 'Card', ['Button', 'secondary']], '.tool_belt__inner_column .card .button.secondary');
|
|
78
|
+
this.assertTargetGeneratesSelector(['ToolBelt', 'Card', ['Button', 'testing']], '.tool_belt__inner_column .card .button.btn_testing');
|
|
79
|
+
this.assertTargetGeneratesSelector(['ToolBelt', 'Card', ['Button', 'primary']], '.tool_belt__inner_column .card .button.primary');
|
|
80
|
+
this.assertTargetGeneratesSelector(['ToolBelt', 'Card', ['Button', 'tilly']], '.tool_belt__inner_column .card .button.btn_tilly');
|
|
81
|
+
this.assertTargetGeneratesSelector(['Dialog', 'Card', ['Button', 'secondary']], '.dialog .card .button.secondary');
|
|
79
82
|
this.assertTargetGeneratesSelector(['Dialog', ['Field', 'phone']], '.dialog [name="phone"]');
|
|
80
83
|
this.assertTargetGeneratesSelector(['ToolBelt', ['ListRow', '62ebb7cc850f1bbc1c695ca7']], '.tool_belt__inner_column .list__row.row_62ebb7cc850f1bbc1c695ca7');
|
|
81
84
|
this.assertTargetGeneratesSelector(['Dropdown', ['DrodownItem', 0]], '.dropdown.visible li:nth-of-type(1) button');
|
|
@@ -40,7 +40,7 @@ class TargetSelectorGenerator {
|
|
|
40
40
|
CalendarTime: (id) => `[data-time="${id}"]`,
|
|
41
41
|
CalendarDay: (id) => `[data-date="${id}"]`,
|
|
42
42
|
ListRow: (id) => `.row_${id}`,
|
|
43
|
-
Button: (id) => `.btn_${id}`,
|
|
43
|
+
Button: (id) => id === 'primary' || id === 'secondary' ? `.${id}` : `.btn_${id}`,
|
|
44
44
|
NavLink: (id) => `.btn_${id}`,
|
|
45
45
|
_default: (id) => `.${id}`,
|
|
46
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/heartwood-polish",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.27",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"access": "public",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@sprucelabs/schema": "^28.6.46",
|
|
45
45
|
"@sprucelabs/spruce-core-schemas": "^38.1.47",
|
|
46
46
|
"@sprucelabs/spruce-skill-utils": "^29.1.12",
|
|
47
|
-
"puppeteer": "^20.
|
|
47
|
+
"puppeteer": "^20.7.1",
|
|
48
48
|
"yargs": "^17.7.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@sprucelabs/jest-sheets-reporter": "^3.0.24",
|
|
53
53
|
"@sprucelabs/resolve-path-aliases": "^1.1.226",
|
|
54
54
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
55
|
-
"@sprucelabs/spruce-test-fixtures": "^59.0.
|
|
55
|
+
"@sprucelabs/spruce-test-fixtures": "^59.0.73",
|
|
56
56
|
"@sprucelabs/test": "^7.7.452",
|
|
57
57
|
"@sprucelabs/test-utils": "^3.4.72",
|
|
58
58
|
"@types/node": "^20.3.1",
|
|
@@ -207,11 +207,23 @@ export default class TargetingTest extends AbstractSpruceTest {
|
|
|
207
207
|
|
|
208
208
|
this.assertTargetGeneratesSelector(
|
|
209
209
|
['ToolBelt', 'Card', ['Button', 'secondary']],
|
|
210
|
-
'.tool_belt__inner_column .card .button.
|
|
210
|
+
'.tool_belt__inner_column .card .button.secondary'
|
|
211
|
+
)
|
|
212
|
+
this.assertTargetGeneratesSelector(
|
|
213
|
+
['ToolBelt', 'Card', ['Button', 'testing']],
|
|
214
|
+
'.tool_belt__inner_column .card .button.btn_testing'
|
|
215
|
+
)
|
|
216
|
+
this.assertTargetGeneratesSelector(
|
|
217
|
+
['ToolBelt', 'Card', ['Button', 'primary']],
|
|
218
|
+
'.tool_belt__inner_column .card .button.primary'
|
|
219
|
+
)
|
|
220
|
+
this.assertTargetGeneratesSelector(
|
|
221
|
+
['ToolBelt', 'Card', ['Button', 'tilly']],
|
|
222
|
+
'.tool_belt__inner_column .card .button.btn_tilly'
|
|
211
223
|
)
|
|
212
224
|
this.assertTargetGeneratesSelector(
|
|
213
225
|
['Dialog', 'Card', ['Button', 'secondary']],
|
|
214
|
-
'.dialog .card .button.
|
|
226
|
+
'.dialog .card .button.secondary'
|
|
215
227
|
)
|
|
216
228
|
this.assertTargetGeneratesSelector(
|
|
217
229
|
['Dialog', ['Field', 'phone']],
|
|
@@ -42,7 +42,8 @@ export class TargetSelectorGenerator {
|
|
|
42
42
|
CalendarTime: (id) => `[data-time="${id}"]`,
|
|
43
43
|
CalendarDay: (id) => `[data-date="${id}"]`,
|
|
44
44
|
ListRow: (id) => `.row_${id}`,
|
|
45
|
-
Button: (id) =>
|
|
45
|
+
Button: (id) =>
|
|
46
|
+
id === 'primary' || id === 'secondary' ? `.${id}` : `.btn_${id}`,
|
|
46
47
|
NavLink: (id) => `.btn_${id}`,
|
|
47
48
|
_default: (id) => `.${id}`,
|
|
48
49
|
}
|