@crystaldesign/content-item 25.7.2 → 25.7.3

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.
@@ -489,18 +489,16 @@ var useContentItemContext = function useContentItemContext(_ref) {
489
489
  return c.includes('@[codex:') || c.includes('@[id:');
490
490
  }, [content]);
491
491
  // Create context value
492
- var contextValue = useMemo(function () {
493
- return {
494
- navigateTo: navigateTo,
495
- navigateBack: navigateBack,
496
- canGoBack: navigationState.history.length > 0,
497
- renderTitle: renderTitle,
498
- content: content,
499
- loading: loading,
500
- error: error,
501
- hasNavigations: hasNavigations
502
- };
503
- }, [navigationState.current, navigationState.history.length]);
492
+ var contextValue = {
493
+ navigateTo: navigateTo,
494
+ navigateBack: navigateBack,
495
+ canGoBack: navigationState.history.length > 0,
496
+ renderTitle: renderTitle,
497
+ content: content,
498
+ loading: loading,
499
+ error: error,
500
+ hasNavigations: hasNavigations
501
+ };
504
502
  return {
505
503
  contextValue: contextValue
506
504
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useContentItemContext.d.ts","sourceRoot":"","sources":["../../../../../../src/Components/ContentItemContextProvider/useContentItemContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAoB,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG1D,eAAO,MAAM,qBAAqB,wFAK/B,+BAA+B;;CAqFjC,CAAC"}
1
+ {"version":3,"file":"useContentItemContext.d.ts","sourceRoot":"","sources":["../../../../../../src/Components/ContentItemContextProvider/useContentItemContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAoB,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG1D,eAAO,MAAM,qBAAqB,wFAK/B,+BAA+B;;CAkFjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/content-item",
3
- "version": "25.7.2",
3
+ "version": "25.7.3",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "storybook": "storybook dev -p 6006",
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "module": "build/esm/index.js",
36
36
  "types": "./build/types/content-item/src/index.d.ts",
37
- "gitHead": "03b8c542ec8eadebdb39f1136852dd3e835ba699"
37
+ "gitHead": "0c1219b153d6a488318b092ba4c9129804dab8c5"
38
38
  }