@primer/view-components 0.0.119-rc.c0e62cba → 0.0.119-rc.ef088e8f

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.
@@ -197,9 +197,6 @@ class ToolTipElement extends HTMLElement {
197
197
  }
198
198
  this.hiddenFromView = true;
199
199
  __classPrivateFieldSet(this, _ToolTipElement_allowUpdatePosition, true, "f");
200
- if (!this.id) {
201
- this.id = `tooltip-${Date.now()}-${(Math.random() * 10000).toFixed(0)}`;
202
- }
203
200
  if (!this.control)
204
201
  return;
205
202
  this.setAttribute('role', 'tooltip');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.0.119-rc.c0e62cba",
3
+ "version": "0.0.119-rc.ef088e8f",
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",
@@ -194,7 +194,7 @@
194
194
  {
195
195
  "name": "id",
196
196
  "type": "String",
197
- "default": "`SecureRandom.hex`",
197
+ "default": "`self.class.generate_id`",
198
198
  "description": "Used internally."
199
199
  },
200
200
  {
@@ -308,7 +308,7 @@
308
308
  {
309
309
  "name": "id",
310
310
  "type": "String",
311
- "default": "`\"dialog-#{(36**3 + rand(36**4)).to_s(36)}\"`",
311
+ "default": "`self.class.generate_id`",
312
312
  "description": "The id of the dialog."
313
313
  },
314
314
  {