@things-factory/font-ui 4.0.0-y.0 → 4.0.5

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,15 +1,16 @@
1
+ import './font-creation-card'
2
+
3
+ import { HeadroomStyles, ScrollbarStyles } from '@things-factory/styles'
4
+ import { LitElement, css, html } from 'lit-element'
5
+ import { client, store } from '@things-factory/shell'
6
+ import { createFont, deleteFont, fetchFontList, updateFont } from '@things-factory/font-base'
1
7
  import { i18next, localize } from '@things-factory/i18n-base'
2
- import { css, html, LitElement } from 'lit-element'
8
+
9
+ import Headroom from '@operato/headroom'
3
10
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
11
  import gql from 'graphql-tag'
5
- import uuid from 'uuid/v4'
6
- import Headroom from 'headroom.js'
7
-
8
- import { store, client } from '@things-factory/shell'
9
12
  import { pulltorefresh } from '@things-factory/utils'
10
- import { ScrollbarStyles, HeadroomStyles } from '@things-factory/styles'
11
- import { fetchFontList, createFont, updateFont, deleteFont } from '@things-factory/font-base'
12
- import './font-creation-card'
13
+ import uuid from 'uuid/v4'
13
14
 
14
15
  export class FontSelector extends localize(i18next)(connect(store)(LitElement)) {
15
16
  static get styles() {
@@ -354,7 +355,7 @@ export class FontSelector extends localize(i18next)(connect(store)(LitElement))
354
355
  async attachFiles(files, fields = []) {
355
356
  var attaching = await client.mutate({
356
357
  mutation: gql`
357
- mutation($attachments: [NewAttachment]!) {
358
+ mutation($attachments: [NewAttachment!]!) {
358
359
  createAttachments(attachments: $attachments) {
359
360
  id
360
361
  }
@@ -397,18 +398,8 @@ export class FontSelector extends localize(i18next)(connect(store)(LitElement))
397
398
  require.resolve('@things-factory/attachment-ui')
398
399
  client.mutate({
399
400
  mutation: gql`
400
- mutation($refBys: [String]!) {
401
- deleteAttachmentsByRef(refBys: $refBys) {
402
- id
403
- name
404
- description
405
- mimetype
406
- encoding
407
- category
408
- path
409
- createdAt
410
- updatedAt
411
- }
401
+ mutation($refBys: [String!]!) {
402
+ deleteAttachmentsByRef(refBys: $refBys)
412
403
  }
413
404
  `,
414
405
  variables: {
@@ -416,6 +407,7 @@ export class FontSelector extends localize(i18next)(connect(store)(LitElement))
416
407
  }
417
408
  })
418
409
  } catch (e) {}
410
+
419
411
  store.dispatch(deleteFont(font))
420
412
  }
421
413
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/font-ui",
3
- "version": "4.0.0-y.0",
3
+ "version": "4.0.5",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,10 +24,11 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/attachment-ui": "^4.0.0-y.0",
28
- "@things-factory/font-base": "^4.0.0-y.0",
29
- "@things-factory/layout-base": "^4.0.0-y.0",
30
- "uuid": "^8.3.2"
27
+ "@operato/headroom": "^0.1.11",
28
+ "@things-factory/attachment-ui": "^4.0.5",
29
+ "@things-factory/font-base": "^4.0.5",
30
+ "@things-factory/layout-base": "^4.0.5",
31
+ "uuid": "^3.4.0"
31
32
  },
32
- "gitHead": "64ee0f6547f90b1386024b975efc3b31a5e381cb"
33
+ "gitHead": "b7b2976818dceab74a34903499d408eed5d45b04"
33
34
  }