@archilogic/plugin-container 1.1.11 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.html +5 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -21,6 +21,10 @@ Open a browser and visit: `https://esm.sh/@archilogic/plugin-container/index.htm
21
21
  - `?pluginUrl` (required): the JS entry point for a plugin
22
22
  - `?pluginName` (optional): the name of the plugin
23
23
 
24
+ ## Embedding
25
+
26
+ The container connects to the page that embeds it, whatever its origin: the bridge reads the parent's origin from the browser, so the embedding page must not hide it with a `no-referrer` or `same-origin` referrer policy. Which pages may embed the container at all is decided by the `frame-ancestors` policy of the host serving it.
27
+
24
28
  ## Deployment
25
29
 
26
30
  The plugin-container is currently manually deployed to the `archilogic-production-extensions` S3 bucket in the `container` folder. This surfaces the container at https://extensions.archilogic.io/container/index.html
package/index.html CHANGED
@@ -21,6 +21,11 @@
21
21
  padding: 0;
22
22
  margin: 0;
23
23
  }
24
+ /* Safari leaves a freshly mounted extension unpainted when its root clips overflow.
25
+ Changing the container's style at mount makes it paint. */
26
+ #app:empty {
27
+ min-height: 0;
28
+ }
24
29
  </style>
25
30
  </head>
26
31
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archilogic/plugin-container",
3
3
  "description": "An HTML container for Archilogic plugins",
4
- "version": "1.1.11",
4
+ "version": "1.1.13",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -21,6 +21,6 @@
21
21
  "concurrently": "^10.0.3"
22
22
  },
23
23
  "dependencies": {
24
- "@archilogic/extension-sdk-host": "^0.5.2"
24
+ "@archilogic/extension-sdk-host": "^0.7.0"
25
25
  }
26
26
  }