@plumile/backoffice-react 0.1.145 → 0.1.147
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/lib/esm/auth/authRefreshNotice.css.js +1 -0
- package/lib/esm/auth/login/loginPage.css.js +0 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +0 -1
- package/lib/esm/components/backoffice/refs/backofficeEntityIdRef.css.js +1 -0
- package/lib/esm/hooks/useCopyToClipboard.js +8 -25
- package/lib/esm/hooks/useCopyToClipboard.js.map +1 -1
- package/lib/esm/node_modules/relay-test-utils/index.js.map +1 -1
- package/lib/types/hooks/useCopyToClipboard.d.ts.map +1 -1
- package/package.json +17 -17
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* empty css */
|
|
2
1
|
/* empty css */
|
|
3
2
|
//#region src/components/backoffice/detail/backofficeDetailRelationLink.css.ts
|
|
4
3
|
var e = "_93gupm0 qbwcueg qbwcuee txvbqb2tz txvbqb1bg1 txvbqb3f txvbqb7g txvbqb76 txvbqb7t qbwcuef txvbqb1ct1 txvbqb1dsd qbwcue0 txvbqb1ffs txvbqb1ga0 txvbqb10mx txvbqb11ki txvbqb12hq txvbqbxtt txvbqb7h txvbqb75 txvbqbfpn txvbqblt7 txvbqbhdy txvbqb28o txvbqb2sj txvbqbik txvbqb1b4r txvbqbey txvbqbem txvbqbh4k txvbqbh4y txvbqb1ct4 txvbqb1dsg", t = "txvbqb9j txvbqbhb2 txvbqbv7x txvbqbws9", n = "txvbqbfqq txvbqbey txvbqbhd8 txvbqbh6d txvbqbv7x", r = "txvbqb96 txvbqb1bg3 txvbqbws9 txvbqb18e2", i = "txvbqbfqq txvbqbey txvbqbls4 txvbqb1bg5 txvbqb9j txvbqbmzg";
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import { useCallback as e
|
|
1
|
+
import { useCallback as e } from "react";
|
|
2
|
+
import { useClipboardCopy as t } from "@plumile/ui/hooks/useClipboardCopy.js";
|
|
2
3
|
//#region src/hooks/useCopyToClipboard.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
function o(i = 2e3) {
|
|
10
|
-
let [o, s] = r(null), c = n(null);
|
|
11
|
-
return t(() => () => {
|
|
12
|
-
c.current != null && window.clearTimeout(c.current);
|
|
13
|
-
}, []), {
|
|
14
|
-
copiedKey: o,
|
|
15
|
-
copy: e(async (e, t) => {
|
|
16
|
-
let n = !1, r;
|
|
17
|
-
if (typeof navigator < "u" && (r = navigator.clipboard), r != null) try {
|
|
18
|
-
await r.writeText(e), n = !0;
|
|
19
|
-
} catch {
|
|
20
|
-
n = !1;
|
|
21
|
-
}
|
|
22
|
-
return n ||= (a(e), !0), t != null && (s(t), c.current != null && window.clearTimeout(c.current), c.current = window.setTimeout(() => {
|
|
23
|
-
s(null), c.current = null;
|
|
24
|
-
}, i)), n;
|
|
25
|
-
}, [i])
|
|
4
|
+
function n(n = 2e3) {
|
|
5
|
+
let { copiedKey: r, copyText: i } = t(n);
|
|
6
|
+
return {
|
|
7
|
+
copiedKey: r,
|
|
8
|
+
copy: e(async (e, t) => i(e, t), [i])
|
|
26
9
|
};
|
|
27
10
|
}
|
|
28
11
|
//#endregion
|
|
29
|
-
export {
|
|
12
|
+
export { n as default, n as useCopyToClipboard };
|
|
30
13
|
|
|
31
14
|
//# sourceMappingURL=useCopyToClipboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCopyToClipboard.js","names":[],"sources":["../../../src/hooks/useCopyToClipboard.ts"],"sourcesContent":["import { useCallback
|
|
1
|
+
{"version":3,"file":"useCopyToClipboard.js","names":[],"sources":["../../../src/hooks/useCopyToClipboard.ts"],"sourcesContent":["import { useCallback } from 'react';\n\nimport { useClipboardCopy } from '@plumile/ui/hooks/useClipboardCopy.js';\n\n/** Copy text with best-effort browser fallback and short-lived copied state. */\nexport function useCopyToClipboard(timeoutMs = 2000): {\n copiedKey: string | null;\n copy: (value: string, key?: string) => Promise<boolean>;\n} {\n const { copiedKey, copyText } = useClipboardCopy(timeoutMs);\n\n const copy = useCallback(\n async (value: string, key?: string): Promise<boolean> => {\n return copyText(value, key);\n },\n [copyText],\n );\n\n return { copiedKey, copy };\n}\n\nexport default useCopyToClipboard;\n"],"mappings":";;;AAKA,SAAgB,EAAmB,IAAY,KAG7C;CACA,IAAM,EAAE,cAAW,gBAAa,EAAiB,CAAS;CAS1D,OAAO;EAAE;EAAW,MAPP,EACX,OAAO,GAAe,MACb,EAAS,GAAO,CAAG,GAE5B,CAAC,CAAQ,CAGS;CAAK;AAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/relay-test-utils/index.js"],"sourcesContent":["/**\n * Relay
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/relay-test-utils/index.js"],"sourcesContent":["/**\n * Relay v21.0.0\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nmodule.exports = require('./lib/index.js');\n"],"x_google_ignoreList":[0],"mappings":";;;;CASA,EAAO,UAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCopyToClipboard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCopyToClipboard.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,SAAS,SAAO,GAAG;IACpD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACzD,CAWA;AAED,eAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumile/backoffice-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.147",
|
|
4
4
|
"description": "React provider and pages for Kronex backoffice",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -175,39 +175,39 @@
|
|
|
175
175
|
"i18next-browser-languagedetector": "8.2.1",
|
|
176
176
|
"react-i18next": "^17.0.8",
|
|
177
177
|
"react-qr-code": "^2.0.21",
|
|
178
|
-
"relay-runtime": "^
|
|
178
|
+
"relay-runtime": "^21.0.0",
|
|
179
179
|
"tslib": "^2.8.1"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@plumile/auth": "^0.1.
|
|
183
|
-
"@plumile/backoffice-core": "^0.1.
|
|
184
|
-
"@plumile/filter-query": "^0.1.
|
|
185
|
-
"@plumile/router": "^0.1.
|
|
186
|
-
"@plumile/ui": "^0.1.
|
|
187
|
-
"@types/react": "19.2.
|
|
182
|
+
"@plumile/auth": "^0.1.147",
|
|
183
|
+
"@plumile/backoffice-core": "^0.1.147",
|
|
184
|
+
"@plumile/filter-query": "^0.1.147",
|
|
185
|
+
"@plumile/router": "^0.1.147",
|
|
186
|
+
"@plumile/ui": "^0.1.147",
|
|
187
|
+
"@types/react": "19.2.15",
|
|
188
188
|
"@types/react-dom": "19.2.3",
|
|
189
189
|
"@types/relay-runtime": "20.1.1",
|
|
190
190
|
"i18next": "26.2.0",
|
|
191
191
|
"react": "19.2.6",
|
|
192
192
|
"react-dom": "19.2.6",
|
|
193
|
-
"react-relay": "
|
|
194
|
-
"relay-test-utils": "
|
|
193
|
+
"react-relay": "21.0.0",
|
|
194
|
+
"relay-test-utils": "21.0.0",
|
|
195
195
|
"rimraf": "6.1.3",
|
|
196
196
|
"typescript": "6.0.3"
|
|
197
197
|
},
|
|
198
198
|
"peerDependencies": {
|
|
199
|
-
"@plumile/auth": "^0.1.
|
|
200
|
-
"@plumile/backoffice-core": "^0.1.
|
|
201
|
-
"@plumile/filter-query": "^0.1.
|
|
202
|
-
"@plumile/router": "^0.1.
|
|
203
|
-
"@plumile/ui": "^0.1.
|
|
199
|
+
"@plumile/auth": "^0.1.146",
|
|
200
|
+
"@plumile/backoffice-core": "^0.1.146",
|
|
201
|
+
"@plumile/filter-query": "^0.1.146",
|
|
202
|
+
"@plumile/router": "^0.1.146",
|
|
203
|
+
"@plumile/ui": "^0.1.146",
|
|
204
204
|
"i18next": "^26.2.0",
|
|
205
205
|
"react": "^19.2.6",
|
|
206
206
|
"react-dom": "^19.2.6",
|
|
207
207
|
"react-i18next": "^17.0.8",
|
|
208
208
|
"react-qr-code": "^2.0.21",
|
|
209
|
-
"react-relay": "^
|
|
210
|
-
"relay-runtime": "^
|
|
209
|
+
"react-relay": "^21.0.0",
|
|
210
|
+
"relay-runtime": "^21.0.0"
|
|
211
211
|
},
|
|
212
212
|
"files": [
|
|
213
213
|
"lib",
|