Compare commits

..

2 Commits

Author SHA1 Message Date
github-actions[bot]
989758ce03 Version Packages 2021-07-07 15:33:15 +02:00
Thomas Allmer
fbcedde7a0 fix(mdjs-preview): use a scoped registry for the internal accordion element 2021-07-07 15:14:32 +02:00
4 changed files with 32 additions and 9 deletions

View File

@@ -1,5 +1,11 @@
# @mdjs/mdjs-preview
## 0.5.1
### Patch Changes
- fbcedde: Get a scoped registry for the internal accordion element to no longer pollute the global registry with a `lion-accordion` element.
## 0.5.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@mdjs/mdjs-preview",
"version": "0.5.0",
"version": "0.5.1",
"publishConfig": {
"access": "public"
},
@@ -31,7 +31,8 @@
"src"
],
"dependencies": {
"@lion/accordion": "^0.4.2",
"@lion/accordion": "^0.6.1",
"@open-wc/scoped-elements": "^2.0.0-next.3",
"lit": "^2.0.0-rc.2"
},
"types": "dist-types/index.d.ts"

View File

@@ -1,5 +1,6 @@
import { LitElement, html, css, nothing, render } from 'lit';
import '@lion/accordion/define';
import { ScopedElementsMixin } from '@open-wc/scoped-elements';
import { LionAccordion } from '@lion/accordion';
import {
subscribe,
@@ -22,7 +23,13 @@ import { addResizeHandler } from './resizeHandler.js';
* @element mdjs-preview
* @prop {StoryFn} [story=(() => TemplateResult)] Function that returns the story
*/
export class MdJsPreview extends LitElement {
export class MdJsPreview extends ScopedElementsMixin(LitElement) {
static get scopedElements() {
return {
'lion-accordion': LionAccordion,
};
}
static get properties() {
return {
story: {

View File

@@ -1103,12 +1103,12 @@
dependencies:
"@types/chai" "^4.2.12"
"@lion/accordion@^0.4.2":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@lion/accordion/-/accordion-0.4.2.tgz#efeb56360113a2b68e182ff29ef0932edd17df8c"
integrity sha512-xETjNmpBWYO1tYx2nBMq0I45UgydUJafZ4ft3szH3fQFjYWSBwjJjKsWxIhZSqX/IoTJzA0nNCdtbXoVEbSCLg==
"@lion/accordion@^0.6.1":
version "0.6.1"
resolved "https://registry.yarnpkg.com/@lion/accordion/-/accordion-0.6.1.tgz#fe10e9e7cc540a10ad4d87f8421e436f6110f026"
integrity sha512-0s+puCY2yfCingyjzBZN+g2mpRZ8h8w470ZKmF4oTHitCFdT41kb5tfOHo57SStSLjqET3Qq8FAvFs1KBPMGqg==
dependencies:
"@lion/core" "0.16.0"
"@lion/core" "0.18.1"
"@lion/combobox@^0.8.0":
version "0.8.0"
@@ -1139,6 +1139,15 @@
"@open-wc/scoped-elements" "^2.0.0-next.3"
lit "^2.0.0-rc.2"
"@lion/core@0.18.1":
version "0.18.1"
resolved "https://registry.yarnpkg.com/@lion/core/-/core-0.18.1.tgz#cacad48bdc7c1382148f208c7feff8ec2dbb4263"
integrity sha512-eazXRm6oqxOJXEf95bVbBVsOFxUA63yEtf8MHHd6cmJEIIWn7VQS8gq4fVe4jydyP6aOHccZSIom5zuQBOpkyg==
dependencies:
"@open-wc/dedupe-mixin" "^1.2.18"
"@open-wc/scoped-elements" "^2.0.0-next.3"
lit "^2.0.0-rc.2"
"@lion/form-core@0.14.1":
version "0.14.1"
resolved "https://registry.yarnpkg.com/@lion/form-core/-/form-core-0.14.1.tgz#404e047e32ea56ae5318db6444809cf83089d5f3"