quantum-component-library 1.4.45-qa.9 → 1.4.46-qa

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.
Files changed (54) hide show
  1. package/README.md +115 -115
  2. package/dist/components/copy-activity-form/index.d.ts +6 -4
  3. package/dist/components.cjs +1 -13
  4. package/dist/components.js +1292 -1175
  5. package/dist/{dnd-core-vendor-xRlmIagQ.cjs → dnd-core-vendor-2Ve0kqUN.cjs} +1 -1
  6. package/dist/{dnd-core-vendor-ewNS-_6P.js → dnd-core-vendor-CErAmYu_.js} +2 -2
  7. package/dist/emotion-react-vendor-CHdBBD18.cjs +1 -0
  8. package/dist/emotion-react-vendor-CSrsXjBq.js +81 -0
  9. package/dist/emotion-vendor-D6PQH2K8.cjs +1 -0
  10. package/dist/emotion-vendor-DNnoMT20.js +546 -0
  11. package/dist/generated/gql.d.ts +5 -0
  12. package/dist/generated/graphql.d.ts +19 -0
  13. package/dist/{generated-ChsGaiYd.cjs → generated-B5QGMyhw.cjs} +1 -1
  14. package/dist/{generated-GfcSQz21.js → generated-esGwfMXj.js} +21 -20
  15. package/dist/graphql/mutations/actions.d.ts +3 -0
  16. package/dist/{graphql-DiUes2Np.js → graphql-CZIf58Fd.js} +37 -30
  17. package/dist/{graphql-CqPvuCvr.cjs → graphql-KvyVlavd.cjs} +18 -12
  18. package/dist/graphql-vendor-BWnD0b-j.js +1285 -0
  19. package/dist/graphql-vendor-CL0XsjHb.cjs +19 -0
  20. package/dist/hoist-non-react-statics-vendor-C5vG1oEE.cjs +1 -0
  21. package/dist/hoist-non-react-statics-vendor-DJU3S3cV.js +68 -0
  22. package/dist/hooks.cjs +1 -1
  23. package/dist/hooks.js +11 -12
  24. package/dist/lib/services/rom.json.d.ts +223 -223
  25. package/dist/providers.cjs +1 -1
  26. package/dist/providers.js +8 -8
  27. package/dist/quantum-component-library.css +1 -1
  28. package/dist/react-dnd-vendor-BPzSDojS.cjs +2 -0
  29. package/dist/{react-dnd-vendor-D7sre4BN.js → react-dnd-vendor-D4nn9Mqx.js} +3 -3
  30. package/dist/react-is-vendor-CosIbvzW.cjs +15 -0
  31. package/dist/react-is-vendor-DpFLFzFZ.js +174 -0
  32. package/dist/{react-select-vendor-BlikzKjV.cjs → react-select-vendor-BPaBUHFp.cjs} +1 -1
  33. package/dist/{react-select-vendor-D_4gQlHN.js → react-select-vendor-C_DuqfB7.js} +3 -3
  34. package/dist/stylis-vendor-CdCMw5Aa.js +334 -0
  35. package/dist/stylis-vendor-DzcTLVj9.cjs +1 -0
  36. package/dist/{vendor-DC_iiTML.js → tailwind-vendor-B4y94WzT.js} +477 -1349
  37. package/dist/tailwind-vendor-C0M23-WD.cjs +1 -0
  38. package/dist/types.cjs +1 -1
  39. package/dist/types.js +1 -1
  40. package/dist/ufuzzy-vendor-7qHa_k39.cjs +1 -0
  41. package/dist/ufuzzy-vendor-Dl0ZI6Av.js +456 -0
  42. package/dist/utils.cjs +1 -1
  43. package/dist/utils.js +8 -8
  44. package/dist/vendor-BjLvygDR.cjs +1 -0
  45. package/dist/vendor-VALJ9W3p.js +526 -0
  46. package/package.json +123 -128
  47. package/dist/graphql-vendor-BfLpwsFp.cjs +0 -14
  48. package/dist/graphql-vendor-CLcjksUW.js +0 -669
  49. package/dist/react-dnd-vendor-8KALuSw2.cjs +0 -2
  50. package/dist/styled-components-vendor-Bvwhddj9.js +0 -1154
  51. package/dist/styled-components-vendor-D09ATioU.cjs +0 -60
  52. package/dist/vendor-BTmhipxH.cjs +0 -1
  53. /package/dist/{other-react-vendor-Dszzpdy0.cjs → react-jsx-runtime-vendor-Dszzpdy0.cjs} +0 -0
  54. /package/dist/{other-react-vendor-OVHDjVDe.js → react-jsx-runtime-vendor-OVHDjVDe.js} +0 -0
package/package.json CHANGED
@@ -1,128 +1,123 @@
1
- {
2
- "name": "quantum-component-library",
3
- "version": "1.4.45-qa.9",
4
- "type": "module",
5
- "types": "./dist/index.d.ts",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "files": [
9
- "dist"
10
- ],
11
- "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.cjs"
16
- },
17
- "./components": {
18
- "types": "./dist/components/index.d.ts",
19
- "import": "./dist/components.js",
20
- "require": "./dist/components.cjs"
21
- },
22
- "./hooks": {
23
- "types": "./dist/lib/hooks/index.d.ts",
24
- "import": "./dist/hooks.js",
25
- "require": "./dist/hooks.cjs"
26
- },
27
- "./types": {
28
- "types": "./dist/lib/types/index.d.ts",
29
- "import": "./dist/types.js",
30
- "require": "./dist/types.cjs"
31
- },
32
- "./utils": {
33
- "types": "./dist/lib/utils/index.d.ts",
34
- "import": "./dist/utils.js",
35
- "require": "./dist/utils.cjs"
36
- },
37
- "./services": {
38
- "types": "./dist/lib/services/index.d.ts",
39
- "import": "./dist/services.js",
40
- "require": "./dist/services.cjs"
41
- },
42
- "./providers": {
43
- "types": "./dist/lib/providers/index.d.ts",
44
- "import": "./dist/providers.js",
45
- "require": "./dist/providers.cjs"
46
- },
47
- "./dist/index.css": {
48
- "import": "./dist/quantum-component-library.css",
49
- "require": "./dist/quantum-component-library.css"
50
- }
51
- },
52
- "scripts": {
53
- "dev": "vite",
54
- "copy:admin": "copyfiles package.json ../admin/node_modules/quantum-component-library",
55
- "copy:client": "copyfiles package.json ../client/ui/node_modules/quantum-component-library",
56
- "build": "tsc -b && vite build",
57
- "lint": "eslint .",
58
- "preview": "vite preview",
59
- "build:qa": "tsc -b && vite build --mode publish-qa",
60
- "build:admin": "tsc -b && vite build --mode admin && npm run copy:admin",
61
- "build:client": "tsc -b && vite build --mode client && npm run copy:client",
62
- "build:admin-qa": "tsc -b && vite build --mode admin-qa && npm run copy:admin",
63
- "build:admin-prod": "tsc -b && vite build --mode admin-prod && npm run copy:admin",
64
- "build:client-qa": "tsc -b && vite build --mode client-qa && npm run copy:client",
65
- "build:client-prod": "tsc -b && vite build --mode client-prod && npm run copy:client",
66
- "codegen": "graphql-codegen --config codegen.yml",
67
- "codegen:qa": "graphql-codegen --config codegen.qa.yml",
68
- "codegen:prod": "graphql-codegen --config codegen.prod.yml",
69
- "storybook": "storybook dev -p 6006",
70
- "build-storybook": "storybook build"
71
- },
72
- "dependencies": {
73
- "@chakra-ui/react": "^2.10.9",
74
- "@emotion/react": "^11.14.0",
75
- "@emotion/styled": "^11.14.0",
76
- "@leeoniya/ufuzzy": "^1.0.19",
77
- "@tailwindcss/vite": "^4.1.12",
78
- "@urql/exchange-auth": "^2.2.1",
79
- "chakra-react-select": "^4.10.1",
80
- "class-variance-authority": "^0.7.1",
81
- "clsx": "^2.1.1",
82
- "framer-motion": "^12.23.12",
83
- "graphql": "^16.11.0",
84
- "lucide-react": "^0.541.0",
85
- "moment": "^2.30.1",
86
- "react": "^19.1.1",
87
- "react-dnd": "^16.0.1",
88
- "react-dnd-html5-backend": "^16.0.1",
89
- "react-dom": "^19.1.1",
90
- "react-icons": "^5.5.0",
91
- "styled-components": "^6.1.19",
92
- "tailwind-merge": "^3.3.1",
93
- "tailwindcss": "^4.1.12",
94
- "urql": "^4.2.2"
95
- },
96
- "devDependencies": {
97
- "@eslint/js": "^9.33.0",
98
- "@graphql-codegen/cli": "^6.0.0",
99
- "@graphql-codegen/introspection": "^4.0.3",
100
- "@storybook/react-vite": "^9.1.4",
101
- "@types/node": "^24.3.0",
102
- "@types/react": "^19.1.10",
103
- "@types/react-dom": "^19.1.7",
104
- "@vitejs/plugin-react": "^5.0.0",
105
- "copyfiles": "^2.1.0",
106
- "eslint": "^9.33.0",
107
- "eslint-plugin-react-hooks": "^5.2.0",
108
- "eslint-plugin-react-refresh": "^0.4.20",
109
- "eslint-plugin-storybook": "^9.1.4",
110
- "globals": "^16.3.0",
111
- "storybook": "^9.1.4",
112
- "tw-animate-css": "^1.3.7",
113
- "typescript": "~5.8.3",
114
- "typescript-eslint": "^8.39.1",
115
- "vite": "^7.1.2",
116
- "vite-plugin-dts": "^4.5.4",
117
- "vite-plugin-graphql-codegen": "^3.6.3"
118
- },
119
- "peerDependencies": {
120
- "@emotion/react": "^11.14.0",
121
- "@emotion/styled": "^11.14.0",
122
- "graphql": "^16.11.0",
123
- "urql": "^4.2.2",
124
- "react": "^19.1.1",
125
- "react-dom": "^19.1.1",
126
- "@chakra-ui/react": "^2.10.9"
127
- }
128
- }
1
+ {
2
+ "name": "quantum-component-library",
3
+ "version": "1.4.46-qa",
4
+ "type": "module",
5
+ "types": "./dist/index.d.ts",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js",
15
+ "require": "./dist/index.cjs"
16
+ },
17
+ "./components": {
18
+ "types": "./dist/components/index.d.ts",
19
+ "import": "./dist/components.js",
20
+ "require": "./dist/components.cjs"
21
+ },
22
+ "./hooks": {
23
+ "types": "./dist/lib/hooks/index.d.ts",
24
+ "import": "./dist/hooks.js",
25
+ "require": "./dist/hooks.cjs"
26
+ },
27
+ "./types": {
28
+ "types": "./dist/lib/types/index.d.ts",
29
+ "import": "./dist/types.js",
30
+ "require": "./dist/types.cjs"
31
+ },
32
+ "./utils": {
33
+ "types": "./dist/lib/utils/index.d.ts",
34
+ "import": "./dist/utils.js",
35
+ "require": "./dist/utils.cjs"
36
+ },
37
+ "./services": {
38
+ "types": "./dist/lib/services/index.d.ts",
39
+ "import": "./dist/services.js",
40
+ "require": "./dist/services.cjs"
41
+ },
42
+ "./providers": {
43
+ "types": "./dist/lib/providers/index.d.ts",
44
+ "import": "./dist/providers.js",
45
+ "require": "./dist/providers.cjs"
46
+ },
47
+ "./dist/index.css": {
48
+ "import": "./dist/quantum-component-library.css",
49
+ "require": "./dist/quantum-component-library.css"
50
+ }
51
+ },
52
+ "scripts": {
53
+ "dev": "vite",
54
+ "copy:admin": "copyfiles package.json ../admin/node_modules/quantum-component-library",
55
+ "copy:client": "copyfiles package.json ../client/ui/node_modules/quantum-component-library",
56
+ "build": "tsc -b && vite build",
57
+ "lint": "eslint .",
58
+ "preview": "vite preview",
59
+ "build:qa": "tsc -b && vite build --mode publish-qa",
60
+ "build:prod": "tsc -b && vite build --mode publish-prod",
61
+ "build:admin": "tsc -b && vite build --mode admin && npm run copy:admin",
62
+ "build:client": "tsc -b && vite build --mode client && npm run copy:client",
63
+ "build:admin-qa": "tsc -b && vite build --mode admin-qa && npm run copy:admin",
64
+ "build:admin-prod": "tsc -b && vite build --mode admin-prod && npm run copy:admin",
65
+ "build:client-qa": "tsc -b && vite build --mode client-qa && npm run copy:client",
66
+ "build:client-prod": "tsc -b && vite build --mode client-prod && npm run copy:client",
67
+ "codegen": "graphql-codegen --config codegen.yml",
68
+ "codegen:qa": "graphql-codegen --config codegen.qa.yml",
69
+ "codegen:prod": "graphql-codegen --config codegen.prod.yml",
70
+ "storybook": "storybook dev -p 6006",
71
+ "build-storybook": "storybook build"
72
+ },
73
+ "dependencies": {
74
+ "@chakra-ui/react": "^2.10.9",
75
+ "@emotion/react": "^11.14.0",
76
+ "@emotion/styled": "^11.14.0",
77
+ "@leeoniya/ufuzzy": "^1.0.19",
78
+ "@tailwindcss/vite": "^4.1.12",
79
+ "@urql/exchange-auth": "^2.2.0",
80
+ "@urql/exchange-graphcache": "^7.2.2",
81
+ "ajv": "^8.17.1",
82
+ "chakra-react-select": "^4.10.1",
83
+ "class-variance-authority": "^0.7.1",
84
+ "clsx": "^2.1.1",
85
+ "framer-motion": "^12.23.12",
86
+ "graphql": "^16.11.0",
87
+ "hoist-non-react-statics": "^3.3.2",
88
+ "lucide-react": "^0.541.0",
89
+ "moment": "^2.30.1",
90
+ "react": "^19.1.1",
91
+ "react-dnd": "^16.0.1",
92
+ "react-dnd-html5-backend": "^16.0.1",
93
+ "react-dom": "^19.1.1",
94
+ "react-icons": "^5.5.0",
95
+ "tailwind-merge": "^3.3.1",
96
+ "tailwindcss": "^4.1.12",
97
+ "urql": "4.2.1"
98
+ },
99
+ "devDependencies": {
100
+ "@eslint/js": "^9.33.0",
101
+ "@graphql-codegen/cli": "^6.0.0",
102
+ "@graphql-codegen/introspection": "^4.0.3",
103
+ "@storybook/react-vite": "^9.1.4",
104
+ "@types/hoist-non-react-statics": "^3.3.7",
105
+ "@types/node": "^24.3.0",
106
+ "@types/react": "^19.1.10",
107
+ "@types/react-dom": "^19.1.7",
108
+ "@vitejs/plugin-react": "^5.0.0",
109
+ "copyfiles": "^2.1.0",
110
+ "eslint": "^9.33.0",
111
+ "eslint-plugin-react-hooks": "^5.2.0",
112
+ "eslint-plugin-react-refresh": "^0.4.20",
113
+ "eslint-plugin-storybook": "^9.1.4",
114
+ "globals": "^16.3.0",
115
+ "storybook": "^9.1.4",
116
+ "tw-animate-css": "^1.3.7",
117
+ "typescript": "~5.8.3",
118
+ "typescript-eslint": "^8.39.1",
119
+ "vite": "^7.1.2",
120
+ "vite-plugin-dts": "^4.5.4",
121
+ "vite-plugin-graphql-codegen": "^3.6.3"
122
+ }
123
+ }
@@ -1,14 +0,0 @@
1
- "use strict";const A=require("./vendor-BTmhipxH.cjs");var Z={OPERATION_DEFINITION:"OperationDefinition"};class J extends Error{constructor(t,n,a,c,l,s,f){super(t),this.name="GraphQLError",this.message=t,l&&(this.path=l),n&&(this.nodes=Array.isArray(n)?n:[n]),a&&(this.source=a),c&&(this.positions=c),s&&(this.originalError=s);var p=f;if(!p&&s){var v=s.extensions;v&&typeof v=="object"&&(p=v)}this.extensions=p||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var i,r;function m(e){return new J(`Syntax Error: Unexpected token at ${r} in ${e}`)}function R(e){if(e.lastIndex=r,e.test(i))return i.slice(r,r=e.lastIndex)}var _=/ +(?=[^\s])/y;function ee(e){for(var t=e.split(`
2
- `),n="",a=0,c=0,l=t.length-1,s=0;s<t.length;s++)_.lastIndex=0,_.test(t[s])&&(s&&(!a||_.lastIndex<a)&&(a=_.lastIndex),c=c||s,l=s);for(var f=c;f<=l;f++)f!==c&&(n+=`
3
- `),n+=t[f].slice(a).replace(/\\"""/g,'"""');return n}function u(){for(var e=0|i.charCodeAt(r++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|i.charCodeAt(r++))if(e===35)for(;(e=0|i.charCodeAt(r++))&&e!==10&&e!==13;);r--}function M(){for(var e=r,t=0|i.charCodeAt(r++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|i.charCodeAt(r++));if(e===r-1)throw m("Name");var n=i.slice(e,--r);return u(),n}function k(){return{kind:"Name",value:M()}}var te=/(?:"""|(?:[\s\S]*?[^\\])""")/y,re=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function x(e){var t;switch(i.charCodeAt(r)){case 91:r++,u();for(var n=[];i.charCodeAt(r)!==93;)n.push(x(e));return r++,u(),{kind:"ListValue",values:n};case 123:r++,u();for(var a=[];i.charCodeAt(r)!==125;){var c=k();if(i.charCodeAt(r++)!==58)throw m("ObjectField");u(),a.push({kind:"ObjectField",name:c,value:x(e)})}return r++,u(),{kind:"ObjectValue",fields:a};case 36:if(e)throw m("Variable");return r++,{kind:"Variable",name:k()};case 34:if(i.charCodeAt(r+1)===34&&i.charCodeAt(r+2)===34){if(r+=3,(t=R(te))==null)throw m("StringValue");return u(),{kind:"StringValue",value:ee(t.slice(0,-3)),block:!0}}else{var l=r,s;r++;var f=!1;for(s=0|i.charCodeAt(r++);s===92&&(r++,f=!0)||s!==10&&s!==13&&s!==34&&s;s=0|i.charCodeAt(r++));if(s!==34)throw m("StringValue");return t=i.slice(l,r),u(),{kind:"StringValue",value:f?JSON.parse(t):t.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var p=r++,v;(v=0|i.charCodeAt(r++))>=48&&v<=57;);var h=i.slice(p,--r);if((v=i.charCodeAt(r))===46||v===69||v===101){if((t=R(re))==null)throw m("FloatValue");return u(),{kind:"FloatValue",value:h+t}}else return u(),{kind:"IntValue",value:h};case 110:if(i.charCodeAt(r+1)===117&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===108)return r+=4,u(),{kind:"NullValue"};break;case 116:if(i.charCodeAt(r+1)===114&&i.charCodeAt(r+2)===117&&i.charCodeAt(r+3)===101)return r+=4,u(),{kind:"BooleanValue",value:!0};break;case 102:if(i.charCodeAt(r+1)===97&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===115&&i.charCodeAt(r+4)===101)return r+=5,u(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:M()}}function W(e){if(i.charCodeAt(r)===40){var t=[];r++,u();do{var n=k();if(i.charCodeAt(r++)!==58)throw m("Argument");u(),t.push({kind:"Argument",name:n,value:x(e)})}while(i.charCodeAt(r)!==41);return r++,u(),t}}function b(e){if(i.charCodeAt(r)===64){var t=[];do r++,t.push({kind:"Directive",name:k(),arguments:W(e)});while(i.charCodeAt(r)===64);return t}}function ne(){for(var e=0;i.charCodeAt(r)===91;)e++,r++,u();var t={kind:"NamedType",name:k()};do if(i.charCodeAt(r)===33&&(r++,u(),t={kind:"NonNullType",type:t}),e){if(i.charCodeAt(r++)!==93)throw m("NamedType");u(),t={kind:"ListType",type:t}}while(e--);return t}function j(){if(i.charCodeAt(r++)!==123)throw m("SelectionSet");return u(),L()}function L(){var e=[];do if(i.charCodeAt(r)===46){if(i.charCodeAt(++r)!==46||i.charCodeAt(++r)!==46)throw m("SelectionSet");switch(r++,u(),i.charCodeAt(r)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:b(!1),selectionSet:j()});break;case 111:i.charCodeAt(r+1)===110?(r+=2,u(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()})):e.push({kind:"FragmentSpread",name:k(),directives:b(!1)});break;case 123:r++,u(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:L()});break;default:e.push({kind:"FragmentSpread",name:k(),directives:b(!1)})}}else{var t=k(),n=void 0;i.charCodeAt(r)===58&&(r++,u(),n=t,t=k());var a=W(!1),c=b(!1),l=void 0;i.charCodeAt(r)===123&&(r++,u(),l=L()),e.push({kind:"Field",alias:n,name:t,arguments:a,directives:c,selectionSet:l})}while(i.charCodeAt(r)!==125);return r++,u(),{kind:"SelectionSet",selections:e}}function ie(){if(u(),i.charCodeAt(r)===40){var e=[];r++,u();do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r++)!==36)throw m("Variable");var n=k();if(i.charCodeAt(r++)!==58)throw m("VariableDefinition");u();var a=ne(),c=void 0;i.charCodeAt(r)===61&&(r++,u(),c=x(!0)),u();var l={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:a,defaultValue:c,directives:b(!0)};t&&(l.description=t),e.push(l)}while(i.charCodeAt(r)!==41);return r++,u(),e}}function ae(e){var t=k();if(i.charCodeAt(r++)!==111||i.charCodeAt(r++)!==110)throw m("FragmentDefinition");u();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()};return e&&(n.description=e),n}function B(){var e=[];do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r)===123){if(t)throw m("Document");r++,u(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:L()})}else{var n=M();switch(n){case"fragment":e.push(ae(t));break;case"query":case"mutation":case"subscription":var a,c=void 0;(a=i.charCodeAt(r))!==40&&a!==64&&a!==123&&(c=k());var l={kind:"OperationDefinition",operation:n,name:c,variableDefinitions:ie(),directives:b(!1),selectionSet:j()};t&&(l.description=t),e.push(l);break;default:throw m("Document")}}}while(r<i.length);return e}function oe(e,t){return i=e.body?e.body:e,r=0,u(),t&&t.noLocation?{kind:"Document",definitions:B()}:{kind:"Document",definitions:B(),loc:{start:0,end:i.length,startToken:void 0,endToken:void 0,source:{body:i,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function g(e,t,n){for(var a="",c=0;c<e.length;c++)c&&(a+=t),a+=n(e[c]);return a}function se(e){return JSON.stringify(e)}function ce(e){return`"""
4
- `+e.replace(/"""/g,'\\"""')+`
5
- """`}var S=`
6
- `,d={OperationDefinition(e){var t="";e.description&&(t+=d.StringValue(e.description)+`
7
- `),t+=e.operation,e.name&&(t+=" "+e.name.value),e.variableDefinitions&&e.variableDefinitions.length&&(e.name||(t+=" "),t+="("+g(e.variableDefinitions,", ",d.VariableDefinition)+")"),e.directives&&e.directives.length&&(t+=" "+g(e.directives," ",d.Directive));var n=d.SelectionSet(e.selectionSet);return t!=="query"?t+" "+n:n},VariableDefinition(e){var t="";return e.description&&(t+=d.StringValue(e.description)+" "),t+=d.Variable(e.variable)+": "+C(e.type),e.defaultValue&&(t+=" = "+C(e.defaultValue)),e.directives&&e.directives.length&&(t+=" "+g(e.directives," ",d.Directive)),t},Field(e){var t=e.alias?e.alias.value+": "+e.name.value:e.name.value;if(e.arguments&&e.arguments.length){var n=g(e.arguments,", ",d.Argument);t.length+n.length+2>80?t+="("+(S+=" ")+g(e.arguments,S,d.Argument)+(S=S.slice(0,-2))+")":t+="("+n+")"}return e.directives&&e.directives.length&&(t+=" "+g(e.directives," ",d.Directive)),e.selectionSet&&e.selectionSet.selections.length&&(t+=" "+d.SelectionSet(e.selectionSet)),t},StringValue(e){return e.block?ce(e.value).replace(/\n/g,S):se(e.value)},BooleanValue:e=>""+e.value,NullValue:e=>"null",IntValue:e=>e.value,FloatValue:e=>e.value,EnumValue:e=>e.value,Name:e=>e.value,Variable:e=>"$"+e.name.value,ListValue:e=>"["+g(e.values,", ",C)+"]",ObjectValue:e=>"{"+g(e.fields,", ",d.ObjectField)+"}",ObjectField:e=>e.name.value+": "+C(e.value),Document(e){return!e.definitions||!e.definitions.length?"":g(e.definitions,`
8
-
9
- `,C)},SelectionSet:e=>"{"+(S+=" ")+g(e.selections,S,C)+(S=S.slice(0,-2))+"}",Argument:e=>e.name.value+": "+C(e.value),FragmentSpread(e){var t="..."+e.name.value;return e.directives&&e.directives.length&&(t+=" "+g(e.directives," ",d.Directive)),t},InlineFragment(e){var t="...";return e.typeCondition&&(t+=" on "+e.typeCondition.name.value),e.directives&&e.directives.length&&(t+=" "+g(e.directives," ",d.Directive)),t+=" "+d.SelectionSet(e.selectionSet)},FragmentDefinition(e){var t="";return e.description&&(t+=d.StringValue(e.description)+`
10
- `),t+="fragment "+e.name.value,t+=" on "+e.typeCondition.name.value,e.directives&&e.directives.length&&(t+=" "+g(e.directives," ",d.Directive)),t+" "+d.SelectionSet(e.selectionSet)},Directive(e){var t="@"+e.name.value;return e.arguments&&e.arguments.length&&(t+="("+g(e.arguments,", ",d.Argument)+")"),t},NamedType:e=>e.name.value,ListType:e=>"["+C(e.type)+"]",NonNullType:e=>C(e.type)+"!"},C=e=>d[e.kind](e);function ue(e){return S=`
11
- `,d[e.kind]?d[e.kind](e):""}var le=e=>e&&typeof e.message=="string"&&(e.extensions||e.name==="GraphQLError")?e:typeof e=="object"&&typeof e.message=="string"?new J(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new J(e);class de extends Error{constructor(t){var n=(t.graphQLErrors||[]).map(le),a=((c,l)=>{var s="";if(c)return`[Network] ${c.message}`;if(l)for(var f=0,p=l.length;f<p;f++)s&&(s+=`
12
- `),s+=`[GraphQL] ${l[f].message}`;return s})(t.networkError,n);super(a),this.name="CombinedError",this.message=a,this.graphQLErrors=n,this.networkError=t.networkError,this.response=t.response}toString(){return this.message}}var I=(e,t)=>{for(var n=0|(t||5381),a=0,c=0|e.length;a<c;a++)n=(n<<5)+n+e.charCodeAt(a);return n},F=new Set,P=new WeakMap,w=(e,t)=>{if(e===null||F.has(e))return"null";if(typeof e!="object")return JSON.stringify(e)||"";if(e.toJSON)return w(e.toJSON());if(Array.isArray(e)){for(var n="[",a=0,c=e.length;a<c;a++)n.length>1&&(n+=","),n+=w(e[a])||"null";return n+="]"}var l=Object.keys(e).sort();if(!l.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var s=P.get(e)||Math.random().toString(36).slice(2);return P.set(e,s),w({__key:s})}F.add(e);for(var f="{",p=0,v=l.length;p<v;p++){var h=w(e[l[p]]);h&&(f.length>1&&(f+=","),f+=w(l[p])+":"+h)}return F.delete(e),f+="}"},fe=(e,t)=>(F.clear(),w(e)),ve=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,he=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,pe=(e,t)=>t%2==0?e.replace(he,`
13
- `):e,z=e=>e.split(ve).map(pe).join("").trim(),U=new Map,T=new Map,K=e=>{var t;return typeof e=="string"?t=z(e):e.loc&&T.get(e.__key)===e?t=e.loc.source.body:(t=U.get(e)||z(ue(e)),U.set(e,t)),typeof e!="string"&&!e.loc&&(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},H=e=>{var t;if(e.documentId)t=I(e.documentId);else if(t=I(K(e)),e.definitions){var n=ke(e);n&&(t=I(`
14
- # ${n}`,t))}return t},me=e=>{var t,n;return typeof e=="string"?(t=H(e),n=T.get(t)||oe(e,{noLocation:!0})):(t=e.__key||H(e),n=T.get(t)||e),n.loc||K(n),n.__key=t,T.set(t,n),n},ge=(e,t,n)=>{var a=t||{},c=me(e),l=fe(a),s=c.__key;return l!=="{}"&&(s=I(l,s)),{key:s,query:c,variables:a,extensions:n}},ke=e=>{for(var t=0,n=e.definitions.length;t<n;t++){var a=e.definitions[t];if(a.kind===Z.OPERATION_DEFINITION)return a.name?a.name.value:void 0}},Ae=(e,t,n)=>({operation:e,data:void 0,error:new de({networkError:t,response:n}),extensions:void 0,hasNext:!1,stale:!1});function X(e,t,n){return{...t,kind:e,context:t.context?{...t.context,...n}:n||t.context}}var $=(e,t)=>X(e.kind,e,{...e.context,authAttempt:t});function ye(e){return({client:t,forward:n})=>{var a=new Set,c=A.makeSubject(),l=A.makeSubject(),s=new Map;function f(){v=void 0;var O=s;s=new Map,O.forEach(c.next)}function p(O){v=void 0;var D=s;s=new Map,D.forEach((N=>{l.next(Ae(N,O))}))}var v,h=null;return O=>{function D(){v=Promise.resolve().then((()=>e({mutate(o,E,y){var q=t.createRequestOperation("mutation",ge(o,E),y);return A.toPromise(A.take(1)(A.filter((V=>V.operation.key===q.key&&q.context._instance===V.operation.context._instance))(A.onStart((()=>{var V=Q(q);a.add(V.context._instance),c.next(V)}))(G))))},appendHeaders(o,E){var y=typeof o.context.fetchOptions=="function"?o.context.fetchOptions():o.context.fetchOptions||{};return X(o.kind,o,{...o.context,fetchOptions:{...y,headers:{...y.headers,...E}}})}}))).then((o=>{o&&(h=o),f()})).catch((o=>{process.env.NODE_ENV!=="production"&&console.warn("authExchange()’s initialization function has failed, which is unexpected.\nIf your initialization function is expected to throw/reject, catch this error and handle it explicitly.\nUnless this error is handled it’ll be passed onto any `OperationResult` instantly and authExchange() will block further operations and retry.",o),p(o)}))}D();function N(o){s.set(o.key,$(o,!0)),h&&!v&&(v=h.refreshAuth().then(f).catch(p))}function Q(o){return h?h.addAuthToOperation(o):o}var Y=A.filter(Boolean)(A.map((o=>o.kind==="teardown"?(s.delete(o.key),o):o.context._instance&&a.has(o.context._instance)?o:o.context.authAttempt?Q(o):v||!h?(v||D(),s.has(o.key)||s.set(o.key,$(o,!1)),null):(function(y){return!y.context.authAttempt&&h&&h.willAuthError&&h.willAuthError(y)})(o)?(N(o),null):Q($(o,!1))))(A.merge([c.source,O]))),G=n(Y);return A.merge([l.source,A.filter((o=>!a.has(o.operation.context._instance)&&o.error&&(function(y){return h&&h.didAuthError&&h.didAuthError(y.error,y.operation)})(o)&&!o.operation.context.authAttempt?(N(o.operation),!1):(a.has(o.operation.context._instance)&&a.delete(o.operation.context._instance),!0)))(G)])}}}exports.authExchange=ye;