@things-factory/auth-ui 4.3.82 → 4.3.86

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,11 +1,9 @@
1
+ import { LitElement, css, html } from 'lit'
2
+ import { PageView, client, navigate, store } from '@things-factory/shell'
3
+
1
4
  import Clipboard from 'clipboard'
2
- import gql from 'graphql-tag'
3
- import { css, html } from 'lit'
4
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
5
-
6
- import { client, navigate, PageView, store } from '@things-factory/shell'
7
-
8
- import { APPLICATION_TYPES } from '../../constants/application'
6
+ import gql from 'graphql-tag'
9
7
 
10
8
  class Application extends connect(store)(PageView) {
11
9
  static get styles() {
@@ -45,8 +43,7 @@ class Application extends connect(store)(PageView) {
45
43
  color: var(--label-color);
46
44
  text-transform: var(--label-text-transform);
47
45
  }
48
- input,
49
- select {
46
+ input {
50
47
  border: var(--border-dark-color);
51
48
  border-radius: var(--border-radius);
52
49
  margin: var(--input-margin);
@@ -174,16 +171,6 @@ class Application extends connect(store)(PageView) {
174
171
  <input id="email" type="text" name="email" .value=${app.email} />
175
172
  </div>
176
173
 
177
- <div field grid-span>
178
- <label for="type-selector">type</label>
179
- <select id="type-selector" name="type">
180
- ${APPLICATION_TYPES.map(
181
- type =>
182
- html`<option value="${app.type}" ?selected="${type === app.type ? true : false}">${type}</option>`
183
- )}
184
- </select>
185
- </div>
186
-
187
174
  <div field grid-span>
188
175
  <label for="url">application URL</label>
189
176
  <input id="url" type="text" name="url" .value=${app.url} />
@@ -300,7 +287,7 @@ class Application extends connect(store)(PageView) {
300
287
  async fetchApplication() {
301
288
  const response = await client.query({
302
289
  query: gql`
303
- query ($id: String!) {
290
+ query($id: String!) {
304
291
  application(id: $id) {
305
292
  id
306
293
  name
@@ -315,7 +302,6 @@ class Application extends connect(store)(PageView) {
315
302
  availableScopes
316
303
  appKey
317
304
  appSecret
318
- type
319
305
  }
320
306
  }
321
307
  `,
@@ -342,7 +328,7 @@ class Application extends connect(store)(PageView) {
342
328
 
343
329
  const response = await client.mutate({
344
330
  mutation: gql`
345
- mutation ($id: String!, $patch: ApplicationPatch!) {
331
+ mutation($id: String!, $patch: ApplicationPatch!) {
346
332
  updateApplication(id: $id, patch: $patch) {
347
333
  id
348
334
  name
@@ -354,7 +340,6 @@ class Application extends connect(store)(PageView) {
354
340
  webhook
355
341
  appKey
356
342
  appSecret
357
- type
358
343
  }
359
344
  }
360
345
  `,
@@ -379,7 +364,7 @@ class Application extends connect(store)(PageView) {
379
364
 
380
365
  const response = await client.mutate({
381
366
  mutation: gql`
382
- mutation ($id: String!) {
367
+ mutation($id: String!) {
383
368
  deleteApplication(id: $id)
384
369
  }
385
370
  `,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-ui",
3
- "version": "4.3.82",
3
+ "version": "4.3.86",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -34,10 +34,10 @@
34
34
  "@operato/i18n": "^0.4.6",
35
35
  "@operato/layout": "^0.4.6",
36
36
  "@operato/lottie-player": "^0.4.6",
37
- "@things-factory/auth-base": "^4.3.82",
38
- "@things-factory/i18n-base": "^4.3.82",
39
- "@things-factory/more-base": "^4.3.82",
37
+ "@things-factory/auth-base": "^4.3.86",
38
+ "@things-factory/i18n-base": "^4.3.86",
39
+ "@things-factory/more-base": "^4.3.86",
40
40
  "clipboard": "^2.0.6"
41
41
  },
42
- "gitHead": "fb0cb65bba75de2d2d0784202138d6d79dafa274"
42
+ "gitHead": "eacc7f20dbaa9893ce2265e064eff1dd63218365"
43
43
  }
@@ -1,9 +0,0 @@
1
- export const APPLICATION_TYPE = {
2
- SELLERCRAFT: 'SELLERCRAFT',
3
- XILNEX: 'XILNEX',
4
- MMS: 'MMS',
5
- XERO: 'XERO',
6
- OTHERS: 'OTHERS'
7
- }
8
-
9
- export const APPLICATION_TYPES = ['SELLERCRAFT', 'XILNEX', 'MMS', 'XERO', 'OTHERS']
@@ -1 +0,0 @@
1
- export * from './application'