@aurodesignsystem/auro-skeleton 2.1.4 → 2.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ ## [2.1.5](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.1.4...v2.1.5) (2024-02-20)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * **docs:** add custom registration example ([185c777](https://github.com/AlaskaAirlines/auro-skeleton/commit/185c777a618bf9867b717f5bca46e5891e21f96f))
9
+
3
10
  ## [2.1.4](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.1.3...v2.1.4) (2024-02-15)
4
11
 
5
12
 
package/README.md CHANGED
@@ -111,7 +111,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
111
111
  ```html
112
112
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.0/dist/tokens/CSSCustomProperties.css" />
113
113
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.0.6/dist/bundled/essentials.css" />
114
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@2.1.4/dist/auro-skeleton__bundled.js" type="module"></script>
114
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@2.1.5/dist/auro-skeleton__bundled.js" type="module"></script>
115
115
  ```
116
116
 
117
117
  <!-- AURO-GENERATED-CONTENT:END -->
package/demo/index.md CHANGED
@@ -120,4 +120,38 @@ Use your imagination. Wherever data can be placed, an `<auro-skelelton>` element
120
120
  </table>
121
121
  ```
122
122
  <!-- AURO-GENERATED-CONTENT:END -->
123
+ </auro-accordion>
124
+
125
+ ## Recommended Use and Version Control
126
+
127
+ There are two important parts of every Auro component. The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom clement. The class is exported and then used as part of defining the Web Component. When importing this component as described in the <a href="#install">install</a> section, the class is imported and the `auro-skeleton` custom element is defined automatically.
128
+
129
+ To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `registerComponent(name)` method and pass in a unique name.
130
+
131
+ ```js
132
+ import './node_modules/@aurodesignsystem/auro-skeleton';
133
+ registerComponent('custom-skeleton');
134
+ ```
135
+
136
+ This will create a new custom element that you can use in your HTML that will function identically to the `<auro-skeleton>` element.
137
+
138
+ <div class="exampleWrapper exampleWrapper--flex">
139
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/custom.html) -->
140
+ <!-- The below content is automatically added from ./../../apiExamples/custom.html -->
141
+ <custom-skeleton shape="circle" style="width: 40px; height: 40px"></custom-skeleton>
142
+ <custom-skeleton shape="oval" style="width: 200px; height: 100px;"></custom-skeleton>
143
+ <custom-skeleton shape="rectangle" style="width: 400px; height: 300px"></custom-skeleton>
144
+ <!-- AURO-GENERATED-CONTENT:END -->
145
+ </div>
146
+ <auro-accordion alignRight>
147
+ <span slot="trigger">See code</span>
148
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/custom.html) -->
149
+ <!-- The below code snippet is automatically added from ./../../apiExamples/custom.html -->
150
+
151
+ ```html
152
+ <custom-skeleton shape="circle" style="width: 40px; height: 40px"></custom-skeleton>
153
+ <custom-skeleton shape="oval" style="width: 200px; height: 100px;"></custom-skeleton>
154
+ <custom-skeleton shape="rectangle" style="width: 400px; height: 300px"></custom-skeleton>
155
+ ```
156
+ <!-- AURO-GENERATED-CONTENT:END -->
123
157
  </auro-accordion>
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem/auro-skeleton",
10
- "version": "2.1.4",
10
+ "version": "2.1.5",
11
11
  "description": "auro-skeleton HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",