@primer/view-components 0.0.117-rc.d3c76d18 → 0.0.117

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.
@@ -191,13 +191,9 @@ class ToolTipElement extends HTMLElement {
191
191
  __classPrivateFieldGet(this, _ToolTipElement_instances, "m", _ToolTipElement_updateDirection).call(this);
192
192
  if (!this.shadowRoot) {
193
193
  const shadow = this.attachShadow({ mode: 'open' });
194
- // eslint-disable-next-line github/no-inner-html
195
- shadow.innerHTML = `
196
- <style>
197
- ${this.styles()}
198
- </style>
199
- <slot></slot>
200
- `;
194
+ const style = shadow.appendChild(document.createElement('style'));
195
+ style.textContent = this.styles();
196
+ shadow.appendChild(document.createElement('slot'));
201
197
  }
202
198
  this.hiddenFromView = true;
203
199
  __classPrivateFieldSet(this, _ToolTipElement_allowUpdatePosition, true, "f");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.0.117-rc.d3c76d18",
3
+ "version": "0.0.117",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -100,6 +100,7 @@
100
100
  "Primer::TabContainerComponent": "",
101
101
  "Primer::TimeAgoComponent": "",
102
102
  "Primer::TimelineItemComponent": "",
103
+ "Primer::TimelineItemComponent::BadgeComponent": "",
103
104
  "Primer::Tooltip": "",
104
105
  "Primer::Truncate": ""
105
106
  }
@@ -1131,6 +1131,9 @@
1131
1131
  "Primer::TimeAgoComponent": {
1132
1132
  },
1133
1133
  "Primer::TimelineItemComponent": {
1134
+ "BadgeComponent": "Primer::TimelineItemComponent::BadgeComponent"
1135
+ },
1136
+ "Primer::TimelineItemComponent::BadgeComponent": {
1134
1137
  },
1135
1138
  "Primer::Tooltip": {
1136
1139
  "ALIGN_DEFAULT": "default",
@@ -100,6 +100,7 @@
100
100
  "Primer::TabContainerComponent": "deprecated",
101
101
  "Primer::TimeAgoComponent": "deprecated",
102
102
  "Primer::TimelineItemComponent": "deprecated",
103
+ "Primer::TimelineItemComponent::BadgeComponent": "deprecated",
103
104
  "Primer::Tooltip": "deprecated",
104
105
  "Primer::Truncate": "beta"
105
106
  }