@steedos/webapp 3.0.5-beta.4 → 3.0.7-beta.1

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,4 +1,4 @@
1
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-b8GAcwz-.js";
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-D1Qod7S1.js";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -1232,9 +1232,6 @@ video {
1232
1232
  .\!w-10 {
1233
1233
  width: 2.5rem !important;
1234
1234
  }
1235
- .\!w-full {
1236
- width: 100% !important;
1237
- }
1238
1235
  .w-1\/3 {
1239
1236
  width: 33.333333%;
1240
1237
  }
@@ -1301,6 +1298,12 @@ video {
1301
1298
  .min-w-56 {
1302
1299
  min-width: 14rem;
1303
1300
  }
1301
+ .min-w-\[100px\] {
1302
+ min-width: 100px;
1303
+ }
1304
+ .min-w-\[200px\] {
1305
+ min-width: 200px;
1306
+ }
1304
1307
  .min-w-\[260px\] {
1305
1308
  min-width: 260px;
1306
1309
  }
@@ -54591,8 +54591,11 @@ const getHeaderSchema = (props) => {
54591
54591
  return schema;
54592
54592
  };
54593
54593
  const AppHeader = () => {
54594
+ const location2 = useLocation();
54595
+ const searchParams = new URLSearchParams(location2.search);
54594
54596
  const params = useParams();
54595
54597
  let { appId = null, objectName } = params;
54598
+ const isMobile = window.innerWidth < 1024;
54596
54599
  let [app, setApp] = reactExports.useState(null);
54597
54600
  reactExports.useEffect(() => {
54598
54601
  const fetchApp = async () => {
@@ -54654,12 +54657,16 @@ const AppHeader = () => {
54654
54657
  }
54655
54658
  }
54656
54659
  };
54657
- fetchApp();
54660
+ if (searchParams.get("embed") != "1") {
54661
+ fetchApp();
54662
+ }
54658
54663
  }, [appId]);
54659
54664
  if (!appId) {
54660
54665
  document.body.classList.remove("sidebar-open");
54661
54666
  }
54662
- const isMobile = window.innerWidth < 1024;
54667
+ if (searchParams.get("embed") == "1") {
54668
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
54669
+ }
54663
54670
  let logoSrc = "/images/logo.svg";
54664
54671
  if (Builder$1.settings?.context?.user?.space?.avatar) {
54665
54672
  logoSrc = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.avatar;
@@ -54888,15 +54895,19 @@ const ObjectDetail = () => {
54888
54895
  const PageView = () => {
54889
54896
  const { appId, pageId } = useParams();
54890
54897
  return /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
54891
- type: "service",
54892
- schemaApi: {
54893
- "method": "get",
54894
- "url": "/api/pageSchema/app?app=${appId}&pageId=${pageId}&formFactor=${formFactor}",
54895
- "adaptor": `
54898
+ type: "page",
54899
+ bodyClassName: "p-0",
54900
+ body: {
54901
+ type: "service",
54902
+ schemaApi: {
54903
+ "method": "get",
54904
+ "url": "/api/pageSchema/app?app=${appId}&pageId=${pageId}&formFactor=${formFactor}",
54905
+ "adaptor": `
54896
54906
  return {
54897
54907
  "data": _.isString(payload.schema) ? JSON.parse(payload.schema):payload.schema
54898
54908
  }
54899
54909
  `
54910
+ }
54900
54911
  }
54901
54912
  }, data: {
54902
54913
  context: {
@@ -81109,7 +81120,7 @@ if (typeof ActiveXObject === "function") {
81109
81120
  if (typeof fetchApi !== "function") fetchApi = void 0;
81110
81121
  if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
81111
81122
  try {
81112
- __vitePreload(() => import("./browser-ponyfill-BUFgNQoc.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
81123
+ __vitePreload(() => import("./browser-ponyfill-C0nRaRXP.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
81113
81124
  fetchApi = mod.default;
81114
81125
  }).catch(function() {
81115
81126
  });
package/dist/index.html CHANGED
@@ -66,8 +66,8 @@
66
66
  <link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/themes/antd.css">
67
67
  <link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/helper.css">
68
68
  <link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/sdk/iconfont.css">
69
- <script type="module" crossorigin src="/assets/index-b8GAcwz-.js"></script>
70
- <link rel="stylesheet" crossorigin href="/assets/index-Ceu_zRIu.css">
69
+ <script type="module" crossorigin src="/assets/index-D1Qod7S1.js"></script>
70
+ <link rel="stylesheet" crossorigin href="/assets/index-BIqMuyTa.css">
71
71
  </head>
72
72
  <body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
73
73
  <div id="root" class="steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden bg-slate-50"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/webapp",
3
- "version": "3.0.5-beta.4",
3
+ "version": "3.0.7-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -74,9 +74,9 @@
74
74
  "access": "public"
75
75
  },
76
76
  "repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
77
- "gitHead": "74a6a7c63b7b107be5a7a2f6338e98d8607b5a07",
77
+ "gitHead": "00bf759c06e2afa2dd043377addd7c95d9ea8a99",
78
78
  "dependencies": {
79
- "@steedos-widgets/amis-object": "^6.10.38",
79
+ "@steedos-widgets/amis-object": "^6.10.40",
80
80
  "autoprefixer": "^10.4.23"
81
81
  }
82
82
  }