@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/help
2
2
 
3
+ ## 7.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d4bd99015e9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d4bd99015e9) - [ux] Fix history initialization
8
+
3
9
  ## 7.0.1
4
10
 
5
11
  ### Patch Changes
@@ -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),
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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(() => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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),
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -43,8 +43,8 @@ export interface Help {
43
43
  history: HistoryItem[];
44
44
  };
45
45
  setNavigationData?(navigationData: {
46
- articleId: articleId;
47
- history: HistoryItem[];
46
+ articleId?: articleId;
47
+ history?: HistoryItem[];
48
48
  }): void;
49
49
  };
50
50
  helpArticle?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.0.1",
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.4.0",
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.2.0",
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",