@comet/admin 8.7.0-canary-20251117073736 → 8.7.0-canary-20251117091749

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.
@@ -1 +1 @@
1
- {"version":3,"file":"StackPageTitle.d.ts","sourceRoot":"","sources":["../../src/stack/StackPageTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,KAAK,MAAM,GAAG,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC,CAAC;AAEH,qBAAa,cAAe,SAAQ,SAAS,CAAC,MAAM,CAAC;IACjD,OAAc,WAAW,8DAAyB;IAC1C,OAAO,EAAE,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAEpD,MAAM;IAIN,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,EAAE,MAAM;CAK9C"}
1
+ {"version":3,"file":"StackPageTitle.d.ts","sourceRoot":"","sources":["../../src/stack/StackPageTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,WAAW,EAAkB,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,KAAK,MAAM,GAAG,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC,CAAC;AAEH,qBAAa,cAAe,SAAQ,SAAS,CAAC,MAAM,CAAC;IACjD,OAAc,WAAW,8DAAyB;IAC1C,OAAO,EAAE,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAEpD,MAAM;IAIN,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,EAAE,MAAM;CAY9C"}
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.StackPageTitle = void 0;
7
+ var _lodash = _interopRequireDefault(require("lodash.isequal"));
7
8
  var _react = require("react");
8
9
  var _Switch = require("./Switch");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
12
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
13
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
@@ -39,8 +41,13 @@ var StackPageTitle = exports.StackPageTitle = /*#__PURE__*/function (_Component)
39
41
  }, {
40
42
  key: "componentDidUpdate",
41
43
  value: function componentDidUpdate(prevProps) {
42
- if (this.props.title !== prevProps.title) {
43
- this.context.updatePageBreadcrumbTitle(this.props.title);
44
+ var prevTitle = prevProps.title;
45
+ var currTitle = this.props.title;
46
+ if (/*#__PURE__*/(0, _react.isValidElement)(prevTitle) && /*#__PURE__*/(0, _react.isValidElement)(currTitle) && (0, _lodash["default"])(prevTitle.props, currTitle.props)) {
47
+ return;
48
+ }
49
+ if (prevTitle !== currTitle) {
50
+ this.context.updatePageBreadcrumbTitle(currTitle);
44
51
  }
45
52
  }
46
53
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/admin",
3
- "version": "8.7.0-canary-20251117073736",
3
+ "version": "8.7.0-canary-20251117091749",
4
4
  "description": "Comet Admin package",
5
5
  "repository": {
6
6
  "directory": "packages/admin/admin",
@@ -28,7 +28,7 @@
28
28
  "react-dropzone": "^14.3.8",
29
29
  "use-constant": "^1.1.1",
30
30
  "uuid": "^11.1.0",
31
- "@comet/admin-icons": "8.7.0-canary-20251117073736"
31
+ "@comet/admin-icons": "8.7.0-canary-20251117091749"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@apollo/client": "^3.13.8",
@@ -83,9 +83,9 @@
83
83
  "storybook-addon-tag-badges": "^2.0.1",
84
84
  "ts-jest": "^29.4.0",
85
85
  "typescript": "5.8.3",
86
- "@comet/admin-babel-preset": "8.7.0-canary-20251117073736",
87
- "@comet/eslint-config": "8.7.0-canary-20251117073736",
88
- "@comet/eslint-plugin": "8.7.0-canary-20251117073736"
86
+ "@comet/admin-babel-preset": "8.7.0-canary-20251117091749",
87
+ "@comet/eslint-config": "8.7.0-canary-20251117091749",
88
+ "@comet/eslint-plugin": "8.7.0-canary-20251117091749"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@apollo/client": "^3.7.0",