@blockquote-web-components/blockquote-base-style-helpers 1.0.18 → 1.0.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote-web-components/blockquote-base-style-helpers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "Webcomponent blockquote-base-style-helpers following open-wc recommendations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -139,16 +139,16 @@
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
"dependencies": {
|
|
142
|
-
"@blockquote-web-components/blockquote-base-meta": "^1.0.
|
|
143
|
-
"lit": "^2.0.2"
|
|
142
|
+
"@blockquote-web-components/blockquote-base-meta": "^1.0.22"
|
|
144
143
|
},
|
|
145
144
|
"devDependencies": {
|
|
146
|
-
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.4.
|
|
147
|
-
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.5.
|
|
145
|
+
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.4.4",
|
|
146
|
+
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.5.2",
|
|
147
|
+
"lit": "^2.0.2"
|
|
148
148
|
},
|
|
149
149
|
"publishConfig": {
|
|
150
150
|
"access": "public"
|
|
151
151
|
},
|
|
152
152
|
"customElements": "custom-elements.json",
|
|
153
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "f395648f8748ca2496345c5182b1b4dd8a60c662"
|
|
154
154
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { css, unsafeCSS } from 'lit';
|
|
2
1
|
import { BlockquoteBaseMeta } from '@blockquote-web-components/blockquote-base-meta';
|
|
3
2
|
|
|
4
3
|
const meta = new BlockquoteBaseMeta({
|
|
@@ -8,16 +7,13 @@ const meta = new BlockquoteBaseMeta({
|
|
|
8
7
|
/**
|
|
9
8
|
* Get styles (as cssResult) already associated to provided ID string (using setComponentSharedStyles helper) and returns them
|
|
10
9
|
* @param {String} id Identifier of styles; usually will be `[component-name]-shared-styles`
|
|
11
|
-
* @returns CSSResult
|
|
10
|
+
* @returns [CSSResult]
|
|
12
11
|
*/
|
|
13
12
|
export const getComponentSharedStyles = id => {
|
|
14
13
|
const sharedStyles = meta.byKey(id);
|
|
15
14
|
if (sharedStyles) {
|
|
16
15
|
const onlyCSSResult = sharedStyles.filter(cssResultObject => cssResultObject.cssText);
|
|
17
|
-
|
|
18
|
-
return css`
|
|
19
|
-
${onlyUnsafeCssResult}
|
|
20
|
-
`;
|
|
16
|
+
return onlyCSSResult;
|
|
21
17
|
}
|
|
22
|
-
return
|
|
18
|
+
return [];
|
|
23
19
|
};
|