openxiangda 1.0.1 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {
@@ -46503,14 +46503,20 @@ function resolveDataManagementPopupContainer(rootEl, triggerNode) {
46503
46503
  return triggerNode?.ownerDocument?.body || rootEl?.ownerDocument?.body || (typeof document !== "undefined" ? document.body : rootEl);
46504
46504
  }
46505
46505
  var DATA_MANAGEMENT_PORTAL_ATTR = "data-sy-data-management-portal";
46506
+ var DATA_MANAGEMENT_PORTAL_NAMESPACE_CLASS = "sy-app-workspace";
46507
+ function markDataManagementPortal(portal) {
46508
+ portal.classList.add(DATA_MANAGEMENT_PORTAL_NAMESPACE_CLASS);
46509
+ return portal;
46510
+ }
46506
46511
  function resolveDataManagementPortalContainer(rootEl) {
46507
46512
  if (!rootEl) return typeof document !== "undefined" ? document.body : void 0;
46508
46513
  const rootNode = rootEl.getRootNode?.();
46509
46514
  if (typeof ShadowRoot !== "undefined" && rootNode instanceof ShadowRoot) {
46510
46515
  const existing = rootNode.querySelector(`[${DATA_MANAGEMENT_PORTAL_ATTR}]`);
46511
- if (existing) return existing;
46516
+ if (existing) return markDataManagementPortal(existing);
46512
46517
  const portal = rootEl.ownerDocument.createElement("div");
46513
46518
  portal.setAttribute(DATA_MANAGEMENT_PORTAL_ATTR, "");
46519
+ markDataManagementPortal(portal);
46514
46520
  rootNode.appendChild(portal);
46515
46521
  return portal;
46516
46522
  }