@crystaldesign/diva-backoffice 25.11.0-rc.3 → 25.12.0-beta.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.
@@ -32063,17 +32063,18 @@ var useTools = function useTools(_ref) {
32063
32063
  });
32064
32064
  }, [root.contentStore.bottomToolBar.addTools]);
32065
32065
  var removeSecondaryTables = useCallback(function () {
32066
- var _root$contentStore$bo2;
32066
+ var _root$contentStore$bo2, _root$contentStore$ri2;
32067
32067
  for (var _len2 = arguments.length, ids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
32068
32068
  ids[_key2] = arguments[_key2];
32069
32069
  }
32070
32070
  (_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, ids);
32071
+ (_root$contentStore$ri2 = root.contentStore.rightToolBar).removeTools.apply(_root$contentStore$ri2, ids);
32071
32072
  setSecondaryTables(function (prev) {
32072
32073
  return prev.filter(function (table) {
32073
32074
  return !ids.includes(table.id);
32074
32075
  });
32075
32076
  });
32076
- }, [root.contentStore.bottomToolBar.removeTools]);
32077
+ }, [root.contentStore.bottomToolBar.removeTools, root.contentStore.rightToolBar.removeTools]);
32077
32078
  var updateConfigurator = useCallback(function () {
32078
32079
  var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32079
32080
  root.contentStore.rightToolBar.addTools({
@@ -32125,7 +32126,7 @@ var useTools = function useTools(_ref) {
32125
32126
  return undefined;
32126
32127
  }, [serie]);
32127
32128
  useEffect(function () {
32128
- var _root$contentStore$ri2;
32129
+ var _root$contentStore$ri3;
32129
32130
  var tools = [];
32130
32131
  if (catalogId || packageId) {
32131
32132
  updateConfigurator();
@@ -32141,7 +32142,7 @@ var useTools = function useTools(_ref) {
32141
32142
  defaultOpen: false
32142
32143
  });
32143
32144
  }
32144
- (_root$contentStore$ri2 = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri2, tools);
32145
+ (_root$contentStore$ri3 = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri3, tools);
32145
32146
  return function () {
32146
32147
  var _root$contentStore$bo3;
32147
32148
  root.contentStore.rightToolBar.removeTools('WYSIWYG', 'info');
@@ -39749,18 +39750,24 @@ var TableFeatures$1 = observer(function () {
39749
39750
  setArticle: setSelectedItem
39750
39751
  }),
39751
39752
  addSecondaryTables = _useTools.addSecondaryTables,
39752
- updateConfigurator = _useTools.updateConfigurator;
39753
+ updateConfigurator = _useTools.updateConfigurator,
39754
+ removeSecondaryTables = _useTools.removeSecondaryTables;
39753
39755
  useEffect(function () {
39754
- addSecondaryTables({
39755
- id: 'globalfeatures',
39756
- name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
39757
- elementComponent: Features,
39758
- elementProps: {
39759
- readOnly: true
39760
- },
39761
- where: 'right'
39762
- });
39763
- }, [t, organizationId, catalogId, apiConfig]);
39756
+ if (selectedCatalog) {
39757
+ addSecondaryTables({
39758
+ id: 'globalfeatures',
39759
+ name: t('backoffice.menu.features.label.IDMGlobalFeatures'),
39760
+ elementComponent: Features,
39761
+ elementProps: {
39762
+ readOnly: true
39763
+ },
39764
+ where: 'right'
39765
+ });
39766
+ }
39767
+ return function () {
39768
+ removeSecondaryTables('globalfeatures');
39769
+ };
39770
+ }, [t, organizationId, catalogId, apiConfig, selectedCatalog, addSecondaryTables, removeSecondaryTables]);
39764
39771
  var ref = useRef(null);
39765
39772
  var hooks = useMemo(function () {
39766
39773
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAgB1D,eAAO,MAAM,aAAa;;CAgFxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAgB1D,eAAO,MAAM,aAAa;;CAqFxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTools.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/useTools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,mCAAmC;IACnC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,oGAAqG,aAAa;sCAkDtH;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;mCA7C9B,MAAM,QAAQ,OAAO;mCAmBlB,IAAI,EAAE;oCAkBR,MAAM,EAAE;CA8EpB,CAAC"}
1
+ {"version":3,"file":"useTools.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/useTools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,mCAAmC;IACnC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,oGAAqG,aAAa;sCAmDtH;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;mCA9C9B,MAAM,QAAQ,OAAO;mCAmBlB,IAAI,EAAE;oCAkBR,MAAM,EAAE;CA+EpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.11.0-rc.3",
3
+ "version": "25.12.0-beta.2",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,13 +15,13 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "25.11.0-rc.3",
19
- "@crystaldesign/content-item": "25.11.0-rc.3",
20
- "@crystaldesign/diva-core": "25.11.0-rc.3",
21
- "@crystaldesign/diva-utils": "25.11.0-rc.3",
22
- "@crystaldesign/media-upload": "25.11.0-rc.3",
23
- "@crystaldesign/rtf-editor": "25.11.0-rc.3",
24
- "@crystaldesign/spreadsheet": "25.11.0-rc.3",
18
+ "@crystaldesign/content-box": "25.12.0-beta.2",
19
+ "@crystaldesign/content-item": "25.12.0-beta.2",
20
+ "@crystaldesign/diva-core": "25.12.0-beta.2",
21
+ "@crystaldesign/diva-utils": "25.12.0-beta.2",
22
+ "@crystaldesign/media-upload": "25.12.0-beta.2",
23
+ "@crystaldesign/rtf-editor": "25.12.0-beta.2",
24
+ "@crystaldesign/spreadsheet": "25.12.0-beta.2",
25
25
  "@google/model-viewer": "3.5.0",
26
26
  "ag-charts-community": "^10.1.0",
27
27
  "ag-charts-react": "^10.1.0",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "74827c5619749ac62b1a2d69d6681d545b942359"
54
+ "gitHead": "e8c05e18606486fff085ce4969f31d83fce69e06"
55
55
  }