@atlaskit/help 7.0.1 → 7.0.2
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 +6 -0
- package/dist/cjs/components/contexts/navigationContext.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/contexts/navigationContext.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/contexts/navigationContext.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/model/Help.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -285,7 +285,7 @@ var NavigationContextProvider = function NavigationContextProvider(_ref4) {
|
|
|
285
285
|
|
|
286
286
|
var _useReducer = (0, _react.useReducer)(navigationReducer, {
|
|
287
287
|
articleId: propsArticleId,
|
|
288
|
-
history: propsHistory,
|
|
288
|
+
history: !(0, _isEqual.default)(propsArticleId, DEFAULT_ARTICLE_ID) && propsHistory.length === 0 ? [getNewHistoryItem(propsArticleId.id, propsArticleId.type)] : propsHistory,
|
|
289
289
|
view: _constants.VIEW.DEFAULT_CONTENT
|
|
290
290
|
}),
|
|
291
291
|
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
package/dist/cjs/version.json
CHANGED
|
@@ -248,7 +248,7 @@ export const NavigationContextProvider = ({
|
|
|
248
248
|
view: currentView
|
|
249
249
|
}, dispatchNavigationAction] = useReducer(navigationReducer, {
|
|
250
250
|
articleId: propsArticleId,
|
|
251
|
-
history: propsHistory,
|
|
251
|
+
history: !isEqual(propsArticleId, DEFAULT_ARTICLE_ID) && propsHistory.length === 0 ? [getNewHistoryItem(propsArticleId.id, propsArticleId.type)] : propsHistory,
|
|
252
252
|
view: VIEW.DEFAULT_CONTENT
|
|
253
253
|
});
|
|
254
254
|
const isOverlayVisible = useMemo(() => {
|
package/dist/es2019/version.json
CHANGED
|
@@ -255,7 +255,7 @@ export var NavigationContextProvider = function NavigationContextProvider(_ref4)
|
|
|
255
255
|
|
|
256
256
|
var _useReducer = useReducer(navigationReducer, {
|
|
257
257
|
articleId: propsArticleId,
|
|
258
|
-
history: propsHistory,
|
|
258
|
+
history: !isEqual(propsArticleId, DEFAULT_ARTICLE_ID) && propsHistory.length === 0 ? [getNewHistoryItem(propsArticleId.id, propsArticleId.type)] : propsHistory,
|
|
259
259
|
view: VIEW.DEFAULT_CONTENT
|
|
260
260
|
}),
|
|
261
261
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/help",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "A cross-product help component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/analytics-next": "^8.0.0",
|
|
31
31
|
"@atlaskit/button": "^16.1.0",
|
|
32
32
|
"@atlaskit/checkbox": "^12.3.0",
|
|
33
|
-
"@atlaskit/form": "^8.
|
|
33
|
+
"@atlaskit/form": "^8.5.0",
|
|
34
34
|
"@atlaskit/help-article": "^4.0.0",
|
|
35
35
|
"@atlaskit/help-layout": "^4.0.0",
|
|
36
36
|
"@atlaskit/icon": "^21.10.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/section-message": "^6.1.0",
|
|
42
42
|
"@atlaskit/select": "^15.0.0",
|
|
43
43
|
"@atlaskit/spinner": "^15.1.0",
|
|
44
|
-
"@atlaskit/textarea": "^4.
|
|
44
|
+
"@atlaskit/textarea": "^4.3.0",
|
|
45
45
|
"@atlaskit/textfield": "^5.1.0",
|
|
46
46
|
"@atlaskit/theme": "^12.1.0",
|
|
47
47
|
"@atlaskit/tooltip": "^17.5.0",
|