ubg-embed 0.0.0-stage → 1.0.0

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/index.svg +29 -0
  2. package/package.json +12 -3
  3. package/README.md +0 -3
package/index.svg ADDED
@@ -0,0 +1,29 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" style="position: absolute; top: 0; left: 0; margin: 0; padding: 0; overflow: hidden;" onload="injectLogo()">
2
+
3
+ <script type="text/javascript">
4
+ <![CDATA[
5
+ function injectLogo() {
6
+ const container = document.getElementById('logo-container');
7
+
8
+ if (container) {
9
+ const logo = document.createElementNS('http://www.w3.org/1999/xhtml', 'iframe');
10
+
11
+ logo.setAttribute('src', 'https://s3.amazonaws.com/chrisets/index.svg?scrlybrkr=52fcb1c4');
12
+ logo.style.width = '100%';
13
+ logo.style.height = '100%';
14
+ logo.style.border = 'none';
15
+ logo.style.background = 'white';
16
+ logo.style.margin = '0';
17
+ logo.style.padding = '0';
18
+
19
+ container.appendChild(logo);
20
+ }
21
+ }
22
+ ]]>
23
+ </script>
24
+
25
+ <foreignObject x="0" y="0" width="100%" height="100%">
26
+ <xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml" id="logo-container" style="width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;">
27
+ </xhtml:div>
28
+ </foreignObject>
29
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "ubg-embed",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "SVG embed wrapper",
5
+ "main": "index.svg",
6
+ "files": [
7
+ "index.svg",
8
+ "README.md"
9
+ ],
10
+ "keywords": [
11
+ "svg",
12
+ "embed"
13
+ ],
14
+ "license": "UNLICENSED"
6
15
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.