@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.js CHANGED
@@ -36890,7 +36890,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
36890
36890
  }
36891
36891
  function _handlePublish() {
36892
36892
  _handlePublish = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
36893
- var options, res, _t2;
36893
+ var configMap, componentConfigs, _i, _Object$entries, _Object$entries$_i, key, config, options, res, _t2;
36894
36894
  return _regeneratorRuntime.wrap(function (_context2) {
36895
36895
  while (1) switch (_context2.prev = _context2.next) {
36896
36896
  case 0:
@@ -36903,11 +36903,25 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
36903
36903
  setIsPublishing(true);
36904
36904
  setResult(null);
36905
36905
  _context2.prev = 2;
36906
+ // Collect component configs from ComponentManager for scope resolution
36907
+ configMap = ComponentManager.componentMap();
36908
+ componentConfigs = {};
36909
+ for (_i = 0, _Object$entries = Object.entries(configMap); _i < _Object$entries.length; _i++) {
36910
+ _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), key = _Object$entries$_i[0], config = _Object$entries$_i[1];
36911
+ if (config && (config.id || config.scope || config.packageName)) {
36912
+ componentConfigs[config.name || key] = {
36913
+ id: config.id || null,
36914
+ scope: config.scope || "",
36915
+ packageName: config.packageName || ""
36916
+ };
36917
+ }
36918
+ }
36906
36919
  options = {
36907
36920
  authorName: authorName.trim(),
36908
36921
  description: description.trim() || undefined,
36909
36922
  tags: selectedTags,
36910
- icon: icon || undefined
36923
+ icon: icon || undefined,
36924
+ componentConfigs: componentConfigs
36911
36925
  };
36912
36926
  _context2.next = 3;
36913
36927
  return window.mainApi.dashboardConfig.prepareDashboardForPublish(appId, workspaceId, options);