@things-factory/integration-marketplace 9.1.19 → 10.0.0-beta.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.
@@ -1,6 +1,5 @@
1
1
  import { html, css } from 'lit'
2
2
  import gql from 'graphql-tag'
3
- import { connect } from 'pwa-helpers/connect-mixin.js'
4
3
  import { i18next, localize } from '@operato/i18n'
5
4
  import { client, store, PageView } from '@things-factory/shell'
6
5
  import LOGO from '../../assets/images/lazada-logo.jpeg'
@@ -14,7 +13,7 @@ const MARKETPLACE_STORE_RESULT = `{
14
13
  status
15
14
  }`
16
15
 
17
- class MarketplaceStoreLazada extends connect(store)(localize(i18next)(PageView)) {
16
+ class MarketplaceStoreLazada extends localize(i18next)(PageView) {
18
17
  static get styles() {
19
18
  return css`
20
19
  :host {
@@ -169,8 +168,6 @@ class MarketplaceStoreLazada extends connect(store)(localize(i18next)(PageView))
169
168
  `
170
169
  }
171
170
 
172
- stateChanged(state) {}
173
-
174
171
  async pageUpdated(changes, after, before) {
175
172
  if (changes.resourceId) {
176
173
  this.id = changes.resourceId
@@ -2,7 +2,6 @@ import '@things-factory/component-ui'
2
2
  import { client, PageView, store } from '@things-factory/shell'
3
3
  import gql from 'graphql-tag'
4
4
  import { css, html } from 'lit'
5
- import { connect } from 'pwa-helpers/connect-mixin.js'
6
5
  import { i18next, localize } from '@operato/i18n'
7
6
  import LOGO from '../../assets/images/magento-logo.png'
8
7
  import '../../components/add-distributor'
@@ -19,7 +18,7 @@ const MARKETPLACE_STORE_RESULT = `{
19
18
  status
20
19
  }`
21
20
 
22
- class MarketplaceStoreMagento extends connect(store)(localize(i18next)(PageView)) {
21
+ class MarketplaceStoreMagento extends localize(i18next)(PageView) {
23
22
  static get styles() {
24
23
  return css`
25
24
  :host {
@@ -1,6 +1,5 @@
1
1
  import { html, css } from 'lit'
2
2
  import gql from 'graphql-tag'
3
- import { connect } from 'pwa-helpers/connect-mixin.js'
4
3
  import { client, store, PageView } from '@things-factory/shell'
5
4
  import { i18next, localize } from '@operato/i18n'
6
5
  import LOGO from '../../assets/images/shopee-logo.png'
@@ -14,7 +13,7 @@ const MARKETPLACE_STORE_RESULT = `{
14
13
  status
15
14
  }`
16
15
 
17
- class MarketplaceStoreShopee extends connect(store)(localize(i18next)(PageView)) {
16
+ class MarketplaceStoreShopee extends localize(i18next)(PageView) {
18
17
  static get styles() {
19
18
  return css`
20
19
  :host {
@@ -171,8 +170,6 @@ class MarketplaceStoreShopee extends connect(store)(localize(i18next)(PageView))
171
170
  `
172
171
  }
173
172
 
174
- stateChanged(state) {}
175
-
176
173
  async pageUpdated(changes, after, before) {
177
174
  if (changes.resourceId) {
178
175
  this.id = changes.resourceId
@@ -1,6 +1,5 @@
1
1
  import { html, css } from 'lit'
2
2
  import gql from 'graphql-tag'
3
- import { connect } from 'pwa-helpers/connect-mixin.js'
4
3
  import { i18next, localize } from '@operato/i18n'
5
4
  import { client, store, PageView } from '@things-factory/shell'
6
5
  import LOGO from '../../assets/images/operato-logo.jpeg'
@@ -16,7 +15,7 @@ const MARKETPLACE_STORE_RESULT = `{
16
15
  status
17
16
  }`
18
17
 
19
- class MarketplaceStoreShopify extends connect(store)(localize(i18next)(PageView)) {
18
+ class MarketplaceStoreShopify extends localize(i18next)(PageView) {
20
19
  static get styles() {
21
20
  return css`
22
21
  :host {
@@ -1,7 +1,5 @@
1
1
  import gql from 'graphql-tag'
2
2
  import { css, html } from 'lit'
3
- import { connect } from 'pwa-helpers/connect-mixin.js'
4
-
5
3
  import { i18next, localize } from '@operato/i18n'
6
4
  import { client, PageView, store } from '@things-factory/shell'
7
5
 
@@ -18,7 +16,7 @@ const MARKETPLACE_STORE_RESULT = `{
18
16
  status
19
17
  }`
20
18
 
21
- class MarketplaceStoreWoocommerce extends connect(store)(localize(i18next)(PageView)) {
19
+ class MarketplaceStoreWoocommerce extends localize(i18next)(PageView) {
22
20
  static get styles() {
23
21
  return css`
24
22
  :host {
@@ -1,6 +1,5 @@
1
1
  import { html, css } from 'lit'
2
2
  import gql from 'graphql-tag'
3
- import { connect } from 'pwa-helpers/connect-mixin.js'
4
3
  import { client, store, PageView } from '@things-factory/shell'
5
4
  import { i18next, localize } from '@operato/i18n'
6
5
  import LOGO from '../../assets/images/zalora-logo.png'
@@ -14,7 +13,7 @@ const MARKETPLACE_STORE_RESULT = `{
14
13
  status
15
14
  }`
16
15
 
17
- class MarketplaceStoreZalora extends connect(store)(localize(i18next)(PageView)) {
16
+ class MarketplaceStoreZalora extends localize(i18next)(PageView) {
18
17
  static get styles() {
19
18
  return css`
20
19
  :host {
@@ -189,8 +188,6 @@ class MarketplaceStoreZalora extends connect(store)(localize(i18next)(PageView))
189
188
  `
190
189
  }
191
190
 
192
- stateChanged(state) {}
193
-
194
191
  async pageUpdated(changes, after, before) {
195
192
  this.id = after.resourceId
196
193