@saltcorn/server 0.9.6-beta.12 → 0.9.6-beta.13

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,20 +1,20 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.9.6-beta.12",
3
+ "version": "0.9.6-beta.13",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-s3": "^3.451.0",
10
- "@saltcorn/base-plugin": "0.9.6-beta.12",
11
- "@saltcorn/builder": "0.9.6-beta.12",
12
- "@saltcorn/data": "0.9.6-beta.12",
13
- "@saltcorn/admin-models": "0.9.6-beta.12",
14
- "@saltcorn/filemanager": "0.9.6-beta.12",
15
- "@saltcorn/markup": "0.9.6-beta.12",
16
- "@saltcorn/plugins-loader": "0.9.6-beta.12",
17
- "@saltcorn/sbadmin2": "0.9.6-beta.12",
10
+ "@saltcorn/base-plugin": "0.9.6-beta.13",
11
+ "@saltcorn/builder": "0.9.6-beta.13",
12
+ "@saltcorn/data": "0.9.6-beta.13",
13
+ "@saltcorn/admin-models": "0.9.6-beta.13",
14
+ "@saltcorn/filemanager": "0.9.6-beta.13",
15
+ "@saltcorn/markup": "0.9.6-beta.13",
16
+ "@saltcorn/plugins-loader": "0.9.6-beta.13",
17
+ "@saltcorn/sbadmin2": "0.9.6-beta.13",
18
18
  "@socket.io/cluster-adapter": "^0.2.1",
19
19
  "@socket.io/sticky": "^1.0.1",
20
20
  "adm-zip": "0.5.10",
@@ -1729,7 +1729,13 @@ function close_saltcorn_modal() {
1729
1729
  function reload_embedded_view(viewname, new_query_string) {
1730
1730
  const isNode = getIsNode();
1731
1731
  const updater = ($e, res) => {
1732
- $e.html(res);
1732
+ const localState = $e.attr("data-sc-local-state");
1733
+ const parent = $e.parent();
1734
+ $e.replaceWith(res);
1735
+ if (localState && !new_query_string) {
1736
+ const newE = parent.find(`[data-sc-embed-viewname="${viewname}"]`);
1737
+ newE.attr("data-sc-local-state", localState);
1738
+ }
1733
1739
  initialize_page();
1734
1740
  };
1735
1741
  if (window._sc_loglevel > 4)