Skip to content

Commit

Permalink
4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shamcode committed Jan 7, 2021
1 parent f64faae commit 845f7e7
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 45 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 4.2.0
* Update dependencies

## 4.1.1
* Reset `activePageComponent` before load lazy page

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Router for sham-ui",
"main": "index.js",
"author": "Eugeny Burnashov <[email protected]>",
"version": "4.1.1",
"version": "4.2.0",
"scripts": {
"start": "node demo-app/server.js",
"test:clear-cache": "jest --clearCache",
Expand Down Expand Up @@ -44,11 +44,11 @@
"jest-runner-stylelint": "^1.0.0",
"node-sass": "^4.12.0",
"sass-loader": "~7.1.0",
"sham-ui-jest-preprocessor": "^4.0.3",
"sham-ui-macro": "^1.0.0",
"sham-ui-templates": "^4.1.0",
"sham-ui-templates-loader": "^4.0.3",
"sham-ui-test-helpers": "^4.0.3",
"sham-ui-jest-preprocessor": "^4.1.1",
"sham-ui-macro": "^1.1.0",
"sham-ui-templates": "^4.2.1",
"sham-ui-templates-loader": "^4.1.1",
"sham-ui-test-helpers": "^4.1.1",
"style-loader": "~0.22.1",
"stylelint": "^10.1.0",
"stylelint-config-recommended-scss": "^3.3.0",
Expand All @@ -60,8 +60,8 @@
},
"dependencies": {
"navigo": "^7.1.2",
"sham-ui": "^4.0.1",
"sham-ui-data-storage": "^1.0.5"
"sham-ui": "^4.1.0",
"sham-ui-data-storage": "^1.1.0"
},
"babel": {
"presets": [
Expand Down
13 changes: 9 additions & 4 deletions src/components/ActivePageContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ class ActivePageContainer extends Component {
this.lastRendererdURL = null;
this.lastRenderedComponent = null;
this.ref = null;
this.spots = {
routerData( routerData ) {
this._insertComponent( routerData );
}
};
}

updateSpots() {
const url = this.options.routerData.url;
const activePageComponent = this.options.routerData.activePageComponent;
_insertComponent( routerData ) {
const url = routerData.url;
const activePageComponent = routerData.activePageComponent;
if (
null !== this.lastRendererdURL &&
(
Expand All @@ -56,7 +61,7 @@ class ActivePageContainer extends Component {
this.container,
this,
activePageComponent,
this.options.routerData.activePageOptions,
routerData.activePageOptions,
this.owner,
this.blocks
);
Expand Down
66 changes: 33 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10009,63 +10009,63 @@ shallow-clone@^1.0.0:
kind-of "^5.0.0"
mixin-object "^2.0.1"

sham-ui-data-storage@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/sham-ui-data-storage/-/sham-ui-data-storage-1.0.5.tgz#50d8178f2f67d493538275e8fb5250787140699e"
integrity sha512-eH4FjRUF/Z48xPi5JZpu2PcGYOytJjo9p1C6QNRWmtkuuozZSKC/Ypl2NvlSjtrfqCbXt8U4TcGvC7QPpn22tA==
sham-ui-data-storage@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/sham-ui-data-storage/-/sham-ui-data-storage-1.1.0.tgz#1de6bd284a969f7bc31882b7ffcfeed6d9c95694"
integrity sha512-ODtlYCanY4ps9DAYs6tr5yPOkRRiTFyviv7uo/dGMSDW1rEjgV71bcSsT3ojv2huFSBlN6fO+iEN4mMdfplqtQ==
dependencies:
sham-ui "^4.0.1"
sham-ui "^4.1.0"

sham-ui-jest-preprocessor@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/sham-ui-jest-preprocessor/-/sham-ui-jest-preprocessor-4.0.3.tgz#910f8816238b66acca13eec48da702c10959b93e"
integrity sha512-+TwVsNB76FZbtPr9CRb8JYj/+jLBe6CN1y1ZM3Rb5Gs3UJ3rjRHTzjw7OkpA0ZSvhpEXEX/++mCLtkBi0TfMhA==
sham-ui-jest-preprocessor@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/sham-ui-jest-preprocessor/-/sham-ui-jest-preprocessor-4.1.1.tgz#44a563f6684be263c2cf8a4bd72b89cf61ee289e"
integrity sha512-EANqwLsaZjNapqSaDdnm0mfsohLsnE9bypJFsz4vcAHDxI9Sa50+W6F0jnWA02wNagZSKVbCREMxL6cwB3T58g==
dependencies:
sham-ui-templates "^4.1.0"
sham-ui-templates "^4.2.1"
source-map "^0.5.6"

sham-ui-macro@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/sham-ui-macro/-/sham-ui-macro-1.0.0.tgz#5c89602b02b4882865f4b372c65e207e3c8c0412"
integrity sha512-IUqEC6pfzD2yMjxtfdmrKB95mq1LUQLPXAN/a2Ppu6AsPmhjx5ZLEykBmjR6aa+KHOFQwxu3eTuY+sPvG0Tzqg==
sham-ui-macro@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/sham-ui-macro/-/sham-ui-macro-1.1.0.tgz#858971e2bf6f665518f46f14bcd82fdae1b40ba5"
integrity sha512-qcXk+aDOGehkJZ1e49ZwVV939Faf/ss8oSeQy+6s5a2llMXxc0jycAwILYfTArFGH9FTxOrNMt7fDMwv/l5WZw==
dependencies:
babel-generator "^6.26.1"
babel-macros "^1.0.2"
babel-types "^6.26.0"

sham-ui-templates-loader@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/sham-ui-templates-loader/-/sham-ui-templates-loader-4.0.3.tgz#20c3e4ea59ce53795cb341ce8accbf8941772ebc"
integrity sha512-h5ZFyW2jt/QfBK5BJN1p47JEKiwlB7C80LdjdB+sdLvUWgbfjx20x10M5M4iK4YtSN18SGSEUe+pf0jlX/jbSg==
sham-ui-templates-loader@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/sham-ui-templates-loader/-/sham-ui-templates-loader-4.1.1.tgz#ca1109c02fdd447d7f589cd9c9c5cdf599080652"
integrity sha512-VQbOgApie99MNAPnGzg5N5SDi8qvtF7S+v5P1tprr3dr9UPhiwVcA1MHPJ+kFC89qQC5bLz8NEjGnIBPXV1fXA==
dependencies:
loader-utils "^1.1.0"
sham-ui-templates "^4.1.0"
sham-ui-templates "^4.2.1"

sham-ui-templates@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/sham-ui-templates/-/sham-ui-templates-4.1.0.tgz#67924541bb18bfc2b01c295c001aff3cde6fdc5d"
integrity sha512-NYdX3ftb0L852ZzoGvhAjuDQ0reFzvuWiorEvhWWcmsoSrQ158xh1UlpF4GZMEAxk/IBRfjLS6TgQRHFMaujWQ==
sham-ui-templates@^4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/sham-ui-templates/-/sham-ui-templates-4.2.1.tgz#b6e14c71bc56235d981e4c838869f6934ffd8cc6"
integrity sha512-21qtyGFUIzXysQYHiQZsnD00l6ekRF6OLmOkrMyK5cUjkOJFqkTQehpHPfJQOdFtcNo8orVMPeY5+wBMx++NSQ==
dependencies:
asciitree "^1.0.2"
sham-ui "4.0.1"
sham-ui "4.1.0"
source-map "^0.5.7"

sham-ui-test-helpers@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/sham-ui-test-helpers/-/sham-ui-test-helpers-4.0.3.tgz#95ebfe772268f7bdffa8bb0dd831eec29ee50ec4"
integrity sha512-7aaAgiiKLxBS2SstBZC68Ok7LM426fovI2i2zZ3NWRRU7THgJsFxFYj0TIKuYZsx/FJkxQxjdBJVC7rb2zPNBA==
sham-ui-test-helpers@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/sham-ui-test-helpers/-/sham-ui-test-helpers-4.1.1.tgz#627904e49efb88b344fe19d20e2a447981a2fdc1"
integrity sha512-asX9acos9t29JTjLQSSEPpBCQWwDNbNBMWiI2CyGapC9qAmfdRiobRuZSv5rVu7fCsXaGtJGbfuOXeDtNLqM7A==
dependencies:
babel-core "^7.0.0-bridge.0"
babel-jest "^24.9.0"
find-babel-config "^1.2.0"
jest "^24.9.0"
pretty "^2.0.0"
sham-ui "^4.0.1"
sham-ui "^4.1.0"

sham-ui@4.0.1, sham-ui@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/sham-ui/-/sham-ui-4.0.1.tgz#1f08542ec2b1d3eb651a2fbdb50f7daf471e8379"
integrity sha512-szzt1Bd+SyD7Y3WdvF418fICawvgkofn45G0QNZPAdsLChoe3vVTaYZX2CrwXdnc0SLDP01T7RW+LR/0NM9FkA==
sham-ui@4.1.0, sham-ui@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/sham-ui/-/sham-ui-4.1.0.tgz#24bc44e3ad429170ea6ab453517f3ea06e28bbff"
integrity sha512-yuMgRNTei3431REQNNu+wqUIGC8gefcW2DCkz947Cnsp2Xv+vUR914FDVMEeRMmh/E8ZkWILonPZg+U32Hbm+A==
dependencies:
nanoid "^1.3.1"

Expand Down

0 comments on commit 845f7e7

Please sign in to comment.