@blockquote-web-components/blockquote-controller-rxjs 1.1.0 → 1.1.2
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/README.md +5 -1
- package/package.json +4 -5
- package/src/BlockquoteControllerRxjs.js +6 -2
package/README.md
CHANGED
|
@@ -15,7 +15,11 @@ assign values to and the Observable we want to subscribe.
|
|
|
15
15
|
- It unsubscribes from the old observable if called again on the same property with a different Observable
|
|
16
16
|
- It unsubscribes when the component is removed
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
### Demo
|
|
19
|
+
|
|
20
|
+
[](https://stackblitz.com/github/oscarmarina/blockquote-web-components/tree/main/packages/controllers/blockquote-controller-rxjs)
|
|
21
|
+
|
|
22
|
+
### Usage
|
|
19
23
|
|
|
20
24
|
```js
|
|
21
25
|
class BlockquoteControllerRxjsDemo extends LitElement {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote-web-components/blockquote-controller-rxjs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Webcomponent blockquote-controller-rxjs following open-wc recommendations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"analyze": "cem analyze --litelement --globs \"{src,define}/**/*.{js,ts}\" \"index.js\"",
|
|
37
|
-
"analyze:doc": "npm run analyze && npx web-component-analyzer \"{src,define}/**/*.{js,ts}\" \"index.js\" \"README.js\" --outFile README.md",
|
|
38
37
|
"build": "echo \"This is not a TypeScript project, so no need to build.\"",
|
|
39
38
|
"dev:vite": "vite build",
|
|
40
39
|
"format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
|
|
@@ -147,12 +146,12 @@
|
|
|
147
146
|
"rxjs": "^8.0.0-alpha.12"
|
|
148
147
|
},
|
|
149
148
|
"devDependencies": {
|
|
150
|
-
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.
|
|
151
|
-
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.6.
|
|
149
|
+
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.7.0",
|
|
150
|
+
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.6.2"
|
|
152
151
|
},
|
|
153
152
|
"publishConfig": {
|
|
154
153
|
"access": "public"
|
|
155
154
|
},
|
|
156
155
|
"customElements": "custom-elements.json",
|
|
157
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "1e72d38b0abdb0fddc1ccc9412f83485e9f6b5b0"
|
|
158
157
|
}
|
|
@@ -21,7 +21,11 @@ const subscriptions = Symbol('subscriptions');
|
|
|
21
21
|
* - It unsubscribes from the old observable if called again on the same property with a different Observable
|
|
22
22
|
* - It unsubscribes when the component is removed
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* ### Demo
|
|
25
|
+
*
|
|
26
|
+
* [](https://stackblitz.com/github/oscarmarina/blockquote-web-components/tree/main/packages/controllers/blockquote-controller-rxjs)
|
|
27
|
+
*
|
|
28
|
+
* ### Usage
|
|
25
29
|
*
|
|
26
30
|
* ```js
|
|
27
31
|
* class BlockquoteControllerRxjsDemo extends LitElement {
|
|
@@ -100,6 +104,6 @@ export class BlockquoteControllerRxjs {
|
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
hostDisconnected() {
|
|
103
|
-
this[unsubscribe].next();
|
|
107
|
+
this[unsubscribe].next(null);
|
|
104
108
|
}
|
|
105
109
|
}
|