@appdirect/sfb-toolkit 3.0.5 → 4.0.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/.babelrc +8 -13
- package/Dockerfile +2 -2
- package/bin/index.js +0 -14
- package/coverage/clover.xml +32 -32
- package/coverage/coverage-final.json +10 -10
- package/coverage/lcov-report/block-navigation.js +8 -0
- package/coverage/lcov-report/constants/customUserAttributesMock.js.html +8 -3
- package/coverage/lcov-report/constants/index.html +8 -3
- package/coverage/lcov-report/constants/pageUrls.js.html +8 -3
- package/coverage/lcov-report/constants/userMock.js.html +8 -3
- package/coverage/lcov-report/controllers/controllers-utils/assetsUtils.js.html +8 -3
- package/coverage/lcov-report/controllers/controllers-utils/index.html +8 -3
- package/coverage/lcov-report/controllers/data-filters/bootstrap-data-filter.js.html +9 -4
- package/coverage/lcov-report/controllers/data-filters/call-to-actions-filter.js.html +8 -3
- package/coverage/lcov-report/controllers/data-filters/index.html +12 -7
- package/coverage/lcov-report/controllers/index.html +8 -3
- package/coverage/lcov-report/controllers/index.js.html +11 -6
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/front-end-utils/src/components/base/ResultItem.js.html +18 -13
- package/coverage/lcov-report/front-end-utils/src/components/base/SearchBar.js.html +11 -6
- package/coverage/lcov-report/front-end-utils/src/components/base/index.html +13 -8
- package/coverage/lcov-report/front-end-utils/src/components/base/item.js.html +19 -14
- package/coverage/lcov-report/front-end-utils/src/components/container.js.html +11 -6
- package/coverage/lcov-report/front-end-utils/src/components/data-view.js.html +10 -5
- package/coverage/lcov-report/front-end-utils/src/components/header-view.js.html +10 -5
- package/coverage/lcov-report/front-end-utils/src/components/index.html +17 -12
- package/coverage/lcov-report/front-end-utils/src/components/search.js.html +23 -18
- package/coverage/lcov-report/front-end-utils/src/constants/index.html +8 -3
- package/coverage/lcov-report/front-end-utils/src/constants/pageUrl.js.html +8 -3
- package/coverage/lcov-report/front-end-utils/src/constants/roleType.js.html +8 -3
- package/coverage/lcov-report/front-end-utils/src/constants/searchType.js.html +8 -3
- package/coverage/lcov-report/front-end-utils/src/utils/debounce.js.html +8 -3
- package/coverage/lcov-report/front-end-utils/src/utils/index.html +8 -3
- package/coverage/lcov-report/index.html +18 -13
- package/coverage/lcov-report/middlewares/config.js.html +8 -3
- package/coverage/lcov-report/middlewares/index.html +8 -3
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +26 -0
- package/coverage/lcov.info +81 -81
- package/index.js +14 -8
- package/npm-shrinkwrap.json +34576 -7042
- package/package.json +99 -80
- package/readme.md +18 -6
- package/src/controllers/index.js +1 -1
- package/src/front-end-utils/dist/toolbar.bundle.js +2 -49
- package/src/front-end-utils/dist/toolbar.bundle.js.LICENSE.txt +52 -0
- package/src/front-end-utils/src/components/base/ResultItem.js +2 -2
- package/src/front-end-utils/src/components/base/SearchBar.js +1 -1
- package/src/front-end-utils/src/components/container.js +1 -1
- package/src/front-end-utils/src/components/data-view.js +1 -1
- package/src/front-end-utils/src/components/header-view.js +1 -1
- package/src/front-end-utils/src/components/search.js +1 -1
- package/src/tools/compiler-components-prod.js +1 -1
- package/src/tools/gulp-tasks.js +2 -2
- package/src/tools/toolkit-common-fun.js +88 -4
- package/src/tools/toolkit-common-vars.js +1 -1
- package/src/tools/toolkit-components.js +11 -5
- package/src/tools/toolkit-create.js +19 -2
- package/src/tools/toolkit-install.js +20 -2
- package/src/tools/toolkit-package.js +4 -3
- package/src/tools/toolkit-setup.js +41 -7
- package/src/tools/toolkit-storybook.js +5 -5
- package/{webpack-components.config.js → webpack-components.config.cjs} +1 -3
- package/{webpack-components.config.prod.js → webpack-components.config.prod.cjs} +1 -3
- package/{webpack.config.js → webpack.config.cjs} +8 -5
- package/src/tools/toolkit-tests.js +0 -99
package/.babelrc
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"presets": [
|
|
3
3
|
"@babel/preset-env",
|
|
4
|
-
"@babel/preset-react"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}]
|
|
4
|
+
"@babel/preset-react"
|
|
5
|
+
],
|
|
6
|
+
"plugins": [
|
|
7
|
+
"@babel/plugin-proposal-class-properties",
|
|
8
|
+
"@babel/transform-runtime"
|
|
10
9
|
],
|
|
11
|
-
"plugins": ["@babel/plugin-proposal-class-properties"],
|
|
12
10
|
"env": {
|
|
13
11
|
"test": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"@babel/preset-react",
|
|
17
|
-
]
|
|
12
|
+
"plugins": ["@babel/plugin-transform-modules-commonjs"]
|
|
13
|
+
}
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
}
|
|
15
|
+
}
|
package/Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM node:
|
|
1
|
+
FROM node:16
|
|
2
2
|
|
|
3
3
|
ENV NO_UPDATE_NOTIFIER=true
|
|
4
4
|
ENV SFB_TOOLKIT=/app/bin/index.js
|
|
@@ -11,7 +11,7 @@ RUN adduser node root && \
|
|
|
11
11
|
USER node:root
|
|
12
12
|
|
|
13
13
|
COPY --chown=node:root . ./
|
|
14
|
-
RUN npm ci && \
|
|
14
|
+
RUN npm ci --legacy-peer-deps && \
|
|
15
15
|
npm cache clean --force
|
|
16
16
|
|
|
17
17
|
RUN chmod a+x /app/commands.sh
|
package/bin/index.js
CHANGED
|
@@ -141,20 +141,6 @@ program
|
|
|
141
141
|
})
|
|
142
142
|
})
|
|
143
143
|
|
|
144
|
-
program
|
|
145
|
-
.command("test")
|
|
146
|
-
.description("Execute tests for current theme")
|
|
147
|
-
.option("-h, --headless", "test in headless mode", true, 0)
|
|
148
|
-
.on("option:headless", () => {
|
|
149
|
-
process.env.HEADLESS = "true"
|
|
150
|
-
})
|
|
151
|
-
.action(name => {
|
|
152
|
-
spawn(`node "${__dirname}/../${TESTS_PATH}"`, {
|
|
153
|
-
stdio: "inherit",
|
|
154
|
-
shell: true
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
|
-
|
|
158
144
|
program
|
|
159
145
|
.command("storybook")
|
|
160
146
|
.description("Start storybook for the currently selected theme.")
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1665610378541" clover="3.2.0">
|
|
3
|
+
<project timestamp="1665610378541" name="All files">
|
|
4
4
|
<metrics statements="486" coveredstatements="403" conditionals="239" coveredconditionals="170" methods="131" coveredmethods="104" elements="856" coveredelements="677" complexity="0" loc="486" ncloc="486" packages="9" files="19" classes="19"/>
|
|
5
5
|
<package name="constants">
|
|
6
6
|
<metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
@@ -362,9 +362,9 @@
|
|
|
362
362
|
<file name="search.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/search.js">
|
|
363
363
|
<metrics statements="76" coveredstatements="73" conditionals="57" coveredconditionals="47" methods="31" coveredmethods="29"/>
|
|
364
364
|
<line num="13" count="2" type="stmt"/>
|
|
365
|
-
<line num="15" count="
|
|
366
|
-
<line num="17" count="
|
|
367
|
-
<line num="25" count="
|
|
365
|
+
<line num="15" count="57" type="cond" truecount="2" falsecount="0"/>
|
|
366
|
+
<line num="17" count="57" type="cond" truecount="2" falsecount="0"/>
|
|
367
|
+
<line num="25" count="57" type="cond" truecount="2" falsecount="0"/>
|
|
368
368
|
<line num="29" count="2" type="stmt"/>
|
|
369
369
|
<line num="40" count="2" type="stmt"/>
|
|
370
370
|
<line num="48" count="2" type="stmt"/>
|
|
@@ -381,13 +381,13 @@
|
|
|
381
381
|
<line num="90" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
382
382
|
<line num="91" count="5" type="stmt"/>
|
|
383
383
|
<line num="98" count="11" type="cond" truecount="2" falsecount="0"/>
|
|
384
|
-
<line num="103" count="
|
|
385
|
-
<line num="104" count="
|
|
384
|
+
<line num="103" count="16" type="stmt"/>
|
|
385
|
+
<line num="104" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
386
386
|
<line num="105" count="4" type="stmt"/>
|
|
387
|
-
<line num="114" count="
|
|
388
|
-
<line num="115" count="
|
|
387
|
+
<line num="114" count="12" type="cond" truecount="1" falsecount="1"/>
|
|
388
|
+
<line num="115" count="12" type="stmt"/>
|
|
389
389
|
<line num="131" count="0" type="stmt"/>
|
|
390
|
-
<line num="136" count="
|
|
390
|
+
<line num="136" count="16" type="stmt"/>
|
|
391
391
|
<line num="140" count="7" type="stmt"/>
|
|
392
392
|
<line num="141" count="7" type="stmt"/>
|
|
393
393
|
<line num="143" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
<line num="185" count="8" type="stmt"/>
|
|
409
409
|
<line num="186" count="8" type="stmt"/>
|
|
410
410
|
<line num="189" count="8" type="stmt"/>
|
|
411
|
-
<line num="190" count="
|
|
411
|
+
<line num="190" count="4" type="stmt"/>
|
|
412
412
|
<line num="196" count="13" type="stmt"/>
|
|
413
413
|
<line num="197" count="10" type="stmt"/>
|
|
414
414
|
<line num="198" count="10" type="cond" truecount="4" falsecount="0"/>
|
|
@@ -434,9 +434,9 @@
|
|
|
434
434
|
<line num="244" count="5" type="stmt"/>
|
|
435
435
|
<line num="250" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
436
436
|
<line num="251" count="5" type="stmt"/>
|
|
437
|
-
<line num="266" count="
|
|
438
|
-
<line num="267" count="
|
|
439
|
-
<line num="290" count="
|
|
437
|
+
<line num="266" count="57" type="stmt"/>
|
|
438
|
+
<line num="267" count="57" type="stmt"/>
|
|
439
|
+
<line num="290" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
440
440
|
</file>
|
|
441
441
|
</package>
|
|
442
442
|
<package name="front-end-utils.src.components.base">
|
|
@@ -444,12 +444,12 @@
|
|
|
444
444
|
<file name="ResultItem.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/base/ResultItem.js">
|
|
445
445
|
<metrics statements="33" coveredstatements="24" conditionals="29" coveredconditionals="15" methods="12" coveredmethods="7"/>
|
|
446
446
|
<line num="10" count="2" type="stmt"/>
|
|
447
|
-
<line num="12" count="
|
|
447
|
+
<line num="12" count="17" type="cond" truecount="2" falsecount="0"/>
|
|
448
448
|
<line num="14" count="2" type="stmt"/>
|
|
449
449
|
<line num="19" count="2" type="stmt"/>
|
|
450
|
-
<line num="21" count="
|
|
450
|
+
<line num="21" count="17" type="cond" truecount="1" falsecount="1"/>
|
|
451
451
|
<line num="24" count="2" type="stmt"/>
|
|
452
|
-
<line num="26" count="
|
|
452
|
+
<line num="26" count="17" type="cond" truecount="2" falsecount="0"/>
|
|
453
453
|
<line num="30" count="2" type="stmt"/>
|
|
454
454
|
<line num="34" count="2" type="stmt"/>
|
|
455
455
|
<line num="41" count="2" type="stmt"/>
|
|
@@ -473,9 +473,9 @@
|
|
|
473
473
|
<line num="95" count="0" type="stmt"/>
|
|
474
474
|
<line num="97" count="0" type="stmt"/>
|
|
475
475
|
<line num="102" count="0" type="stmt"/>
|
|
476
|
-
<line num="110" count="
|
|
477
|
-
<line num="111" count="
|
|
478
|
-
<line num="112" count="
|
|
476
|
+
<line num="110" count="17" type="stmt"/>
|
|
477
|
+
<line num="111" count="17" type="stmt"/>
|
|
478
|
+
<line num="112" count="17" type="stmt"/>
|
|
479
479
|
</file>
|
|
480
480
|
<file name="SearchBar.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/base/SearchBar.js">
|
|
481
481
|
<metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="1"/>
|
|
@@ -488,29 +488,29 @@
|
|
|
488
488
|
<line num="53" count="2" type="stmt"/>
|
|
489
489
|
<line num="71" count="2" type="stmt"/>
|
|
490
490
|
<line num="79" count="2" type="stmt"/>
|
|
491
|
-
<line num="94" count="
|
|
492
|
-
<line num="95" count="
|
|
491
|
+
<line num="94" count="57" type="stmt"/>
|
|
492
|
+
<line num="95" count="57" type="stmt"/>
|
|
493
493
|
</file>
|
|
494
494
|
<file name="item.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/base/item.js">
|
|
495
495
|
<metrics statements="18" coveredstatements="18" conditionals="12" coveredconditionals="12" methods="11" coveredmethods="9"/>
|
|
496
496
|
<line num="5" count="2" type="stmt"/>
|
|
497
|
-
<line num="9" count="
|
|
498
|
-
<line num="23" count="
|
|
499
|
-
<line num="26" count="
|
|
500
|
-
<line num="27" count="
|
|
501
|
-
<line num="29" count="
|
|
497
|
+
<line num="9" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
498
|
+
<line num="23" count="256" type="stmt"/>
|
|
499
|
+
<line num="26" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
500
|
+
<line num="27" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
501
|
+
<line num="29" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
502
502
|
<line num="33" count="2" type="stmt"/>
|
|
503
|
-
<line num="36" count="
|
|
504
|
-
<line num="40" count="
|
|
503
|
+
<line num="36" count="256" type="stmt"/>
|
|
504
|
+
<line num="40" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
505
505
|
<line num="42" count="2" type="stmt"/>
|
|
506
506
|
<line num="46" count="2" type="stmt"/>
|
|
507
507
|
<line num="50" count="2" type="stmt"/>
|
|
508
|
-
<line num="54" count="
|
|
508
|
+
<line num="54" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
509
509
|
<line num="57" count="2" type="stmt"/>
|
|
510
510
|
<line num="67" count="2" type="stmt"/>
|
|
511
511
|
<line num="80" count="2" type="stmt"/>
|
|
512
|
-
<line num="105" count="
|
|
513
|
-
<line num="106" count="
|
|
512
|
+
<line num="105" count="256" type="stmt"/>
|
|
513
|
+
<line num="106" count="256" type="stmt"/>
|
|
514
514
|
</file>
|
|
515
515
|
</package>
|
|
516
516
|
<package name="front-end-utils.src.constants">
|