@things-factory/attachment-ui 4.3.2 → 4.4.0-alpha.0

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.
@@ -8,7 +8,7 @@ import InfiniteScrollable from '@operato/utils/mixins/infinite-scrollable.js'
8
8
  import { i18next, localize } from '@things-factory/i18n-base'
9
9
  import { client } from '@things-factory/shell'
10
10
  import { HeadroomStyles, ScrollbarStyles, TooltipStyles } from '@things-factory/styles'
11
- import { gqlBuilder, pulltorefresh, sleep } from '@things-factory/utils'
11
+ import { copyToClipboard, gqlBuilder, pulltorefresh, sleep } from '@things-factory/utils'
12
12
 
13
13
  const FETCH_ATTACHMENT_LIST_GQL = listParam => {
14
14
  return gql`
@@ -471,7 +471,7 @@ export class AttachmentSelector extends InfiniteScrollable(localize(i18next)(Lit
471
471
  }
472
472
 
473
473
  async copy(copied) {
474
- navigator.clipboard.writeText(copied)
474
+ await copyToClipboard(copied)
475
475
  }
476
476
  }
477
477
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/attachment-ui",
3
- "version": "4.3.2",
3
+ "version": "4.4.0-alpha.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@operato/headroom": "^0.4.6",
28
- "@things-factory/attachment-base": "^4.3.2",
29
- "@things-factory/image-uploader-ui": "^4.3.2"
28
+ "@things-factory/attachment-base": "^4.4.0-alpha.0",
29
+ "@things-factory/image-uploader-ui": "^4.4.0-alpha.0"
30
30
  },
31
- "gitHead": "d73cbd8a8f1e3cff5d9bbbddec1ce520d0392def"
31
+ "gitHead": "5972c622d8359263909c2a699c6f26978b937c8c"
32
32
  }