@trops/dash-core 0.1.234 → 0.1.235

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/dist/index.esm.js CHANGED
@@ -36872,7 +36872,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
36872
36872
  }
36873
36873
  function _handlePublish() {
36874
36874
  _handlePublish = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
36875
- var options, res, _t2;
36875
+ var configMap, componentConfigs, _i, _Object$entries, _Object$entries$_i, key, config, options, res, _t2;
36876
36876
  return _regeneratorRuntime.wrap(function (_context2) {
36877
36877
  while (1) switch (_context2.prev = _context2.next) {
36878
36878
  case 0:
@@ -36885,11 +36885,25 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
36885
36885
  setIsPublishing(true);
36886
36886
  setResult(null);
36887
36887
  _context2.prev = 2;
36888
+ // Collect component configs from ComponentManager for scope resolution
36889
+ configMap = ComponentManager.componentMap();
36890
+ componentConfigs = {};
36891
+ for (_i = 0, _Object$entries = Object.entries(configMap); _i < _Object$entries.length; _i++) {
36892
+ _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), key = _Object$entries$_i[0], config = _Object$entries$_i[1];
36893
+ if (config && (config.id || config.scope || config.packageName)) {
36894
+ componentConfigs[config.name || key] = {
36895
+ id: config.id || null,
36896
+ scope: config.scope || "",
36897
+ packageName: config.packageName || ""
36898
+ };
36899
+ }
36900
+ }
36888
36901
  options = {
36889
36902
  authorName: authorName.trim(),
36890
36903
  description: description.trim() || undefined,
36891
36904
  tags: selectedTags,
36892
- icon: icon || undefined
36905
+ icon: icon || undefined,
36906
+ componentConfigs: componentConfigs
36893
36907
  };
36894
36908
  _context2.next = 3;
36895
36909
  return window.mainApi.dashboardConfig.prepareDashboardForPublish(appId, workspaceId, options);