@appdirect/sfb-toolkit 3.0.6 → 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 +2 -2
- package/coverage/coverage-final.json +8 -8
- 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 +12 -7
- package/coverage/lcov-report/front-end-utils/src/components/base/SearchBar.js.html +9 -4
- 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 +9 -4
- 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 +11 -6
- 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/index.js +14 -8
- package/npm-shrinkwrap.json +34576 -7042
- package/package.json +99 -80
- package/readme.md +13 -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 +1 -1
- package/src/tools/toolkit-common-vars.js +1 -1
- package/src/tools/toolkit-package.js +1 -2
- 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"/>
|