quantum-component-library 1.4.45-qa.8 → 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.
- package/README.md +115 -115
- package/dist/components/copy-activity-form/index.d.ts +6 -4
- package/dist/components.cjs +1 -13
- package/dist/components.js +1292 -1175
- package/dist/{dnd-core-vendor-fsFbP4EK.cjs → dnd-core-vendor-2Ve0kqUN.cjs} +1 -1
- package/dist/{dnd-core-vendor-B7dYqFGj.js → dnd-core-vendor-CErAmYu_.js} +2 -2
- package/dist/emotion-react-vendor-CHdBBD18.cjs +1 -0
- package/dist/emotion-react-vendor-CSrsXjBq.js +81 -0
- package/dist/generated/gql.d.ts +5 -0
- package/dist/generated/graphql.d.ts +19 -0
- package/dist/{generated-ChsGaiYd.cjs → generated-B5QGMyhw.cjs} +1 -1
- package/dist/{generated-GfcSQz21.js → generated-esGwfMXj.js} +21 -20
- package/dist/graphql/mutations/actions.d.ts +3 -0
- package/dist/{graphql-DZp5ePcc.js → graphql-CZIf58Fd.js} +37 -30
- package/dist/{graphql-CqPvuCvr.cjs → graphql-KvyVlavd.cjs} +18 -12
- package/dist/{graphql-vendor-BALJU0FA.js → graphql-vendor-BWnD0b-j.js} +1 -1
- package/dist/{graphql-vendor-zFhl4d7h.cjs → graphql-vendor-CL0XsjHb.cjs} +1 -1
- package/dist/hoist-non-react-statics-vendor-C5vG1oEE.cjs +1 -0
- package/dist/hoist-non-react-statics-vendor-DJU3S3cV.js +68 -0
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +1 -1
- package/dist/lib/services/rom.json.d.ts +223 -223
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +2 -2
- package/dist/quantum-component-library.css +1 -1
- package/dist/react-dnd-vendor-BPzSDojS.cjs +2 -0
- package/dist/{react-dnd-vendor-CnjZk49P.js → react-dnd-vendor-D4nn9Mqx.js} +3 -3
- package/dist/react-is-vendor-CosIbvzW.cjs +15 -0
- package/dist/react-is-vendor-DpFLFzFZ.js +174 -0
- package/dist/react-jsx-runtime-vendor-Dszzpdy0.cjs +22 -0
- package/dist/react-jsx-runtime-vendor-OVHDjVDe.js +284 -0
- package/dist/react-select-vendor-BPaBUHFp.cjs +4 -0
- package/dist/{react-select-vendor-F4s0M_nP.js → react-select-vendor-C_DuqfB7.js} +7 -6
- package/dist/{vendor-BomSre9q.js → tailwind-vendor-B4y94WzT.js} +493 -1470
- package/dist/tailwind-vendor-C0M23-WD.cjs +1 -0
- package/dist/types.cjs +1 -1
- package/dist/types.js +1 -1
- package/dist/ufuzzy-vendor-7qHa_k39.cjs +1 -0
- package/dist/ufuzzy-vendor-Dl0ZI6Av.js +456 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +13 -13
- package/dist/vendor-BjLvygDR.cjs +1 -0
- package/dist/vendor-VALJ9W3p.js +526 -0
- package/package.json +123 -119
- package/dist/other-react-vendor-CbZyzO2N.cjs +0 -36
- package/dist/other-react-vendor-ZnZFHn3v.js +0 -598
- package/dist/react-dnd-vendor-Bsa3sIdS.cjs +0 -2
- package/dist/react-select-vendor-BFizJ8yU.cjs +0 -4
- package/dist/styled-components-vendor-Bvwhddj9.js +0 -1154
- package/dist/styled-components-vendor-D09ATioU.cjs +0 -60
- package/dist/vendor-Bc1whdE2.cjs +0 -1
|
@@ -5,3 +5,6 @@ export declare const UPDATE_ACTION: import('@graphql-typed-document-node/core').
|
|
|
5
5
|
id: import('../../generated/graphql').Scalars["ID"]["input"];
|
|
6
6
|
fields: import('../../generated/graphql').UpdateActionInput;
|
|
7
7
|
}>>;
|
|
8
|
+
export declare const CONVERT_ACTION_TO_QUANTUM_OWNED: import('@graphql-typed-document-node/core').TypedDocumentNode<import('../../generated/graphql').ConvertActionToQuantumOwnedMutation, import('../../generated/graphql').Exact<{
|
|
9
|
+
id: import('../../generated/graphql').Scalars["ID"]["input"];
|
|
10
|
+
}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as e } from "./generated-
|
|
1
|
+
import { b as e } from "./generated-esGwfMXj.js";
|
|
2
2
|
const i = e(`
|
|
3
3
|
fragment AssessmentAction on Action {
|
|
4
4
|
id
|
|
@@ -273,7 +273,7 @@ const a = e(`
|
|
|
273
273
|
imageUrl
|
|
274
274
|
quantumOwned
|
|
275
275
|
}
|
|
276
|
-
`),
|
|
276
|
+
`), n = e(`
|
|
277
277
|
fragment LibraryModuleAction on ModuleAction {
|
|
278
278
|
moduleId
|
|
279
279
|
actionId
|
|
@@ -282,7 +282,7 @@ const a = e(`
|
|
|
282
282
|
...AssessmentAction
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
`),
|
|
285
|
+
`), s = e(`
|
|
286
286
|
fragment LibraryActionModule on ActionModule {
|
|
287
287
|
id
|
|
288
288
|
name
|
|
@@ -610,6 +610,12 @@ const o = e(`
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
`), m = e(`
|
|
613
|
+
mutation convertActionToQuantumOwned($id: ID!) {
|
|
614
|
+
convertActionToQuantumOwned(id: $id) {
|
|
615
|
+
...AssessmentAction
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
`), c = e(`
|
|
613
619
|
mutation createLibraryModule($input: CreateModuleInput!) {
|
|
614
620
|
createModule(input: $input) {
|
|
615
621
|
...LibraryActionModule
|
|
@@ -621,7 +627,7 @@ e(`
|
|
|
621
627
|
deleteModule(id: $id)
|
|
622
628
|
}
|
|
623
629
|
`);
|
|
624
|
-
const
|
|
630
|
+
const l = e(`
|
|
625
631
|
mutation updateLibraryModule($id: ID!, $input: UpdateModuleInput!) {
|
|
626
632
|
updateModule(id: $id, input: $input) {
|
|
627
633
|
...LibraryActionModule
|
|
@@ -633,13 +639,13 @@ e(`
|
|
|
633
639
|
copyModules(input: $input)
|
|
634
640
|
}
|
|
635
641
|
`);
|
|
636
|
-
const
|
|
642
|
+
const u = e(`
|
|
637
643
|
query getActions {
|
|
638
644
|
actions {
|
|
639
645
|
...AssessmentAction
|
|
640
646
|
}
|
|
641
647
|
}
|
|
642
|
-
`),
|
|
648
|
+
`), A = e(`
|
|
643
649
|
query getQuantumOwnedActions {
|
|
644
650
|
quantumOwnedActions {
|
|
645
651
|
...AssessmentAction
|
|
@@ -651,27 +657,27 @@ const l = e(`
|
|
|
651
657
|
...AssessmentAction
|
|
652
658
|
}
|
|
653
659
|
}
|
|
654
|
-
`),
|
|
660
|
+
`), y = e(`
|
|
655
661
|
query searchUseCases($query: String!, $skip: Int, $limit: Int) {
|
|
656
662
|
useCases(search: $query, skip: $skip, limit: $limit) {
|
|
657
663
|
id
|
|
658
664
|
name
|
|
659
665
|
}
|
|
660
666
|
}
|
|
661
|
-
`),
|
|
667
|
+
`), T = e(`
|
|
662
668
|
query searchQuantumOwnedUseCases($query: String!, $skip: Int, $limit: Int) {
|
|
663
669
|
quantumOwnedUseCases(search: $query, skip: $skip, limit: $limit) {
|
|
664
670
|
id
|
|
665
671
|
name
|
|
666
672
|
}
|
|
667
673
|
}
|
|
668
|
-
`),
|
|
674
|
+
`), M = e(`
|
|
669
675
|
query getGroups {
|
|
670
676
|
groups {
|
|
671
677
|
...UserGroup
|
|
672
678
|
}
|
|
673
679
|
}
|
|
674
|
-
`),
|
|
680
|
+
`), g = e(`
|
|
675
681
|
query getModulesByGroup($groupId: ID!) {
|
|
676
682
|
group(id: $groupId) {
|
|
677
683
|
name
|
|
@@ -681,7 +687,7 @@ const l = e(`
|
|
|
681
687
|
...LibraryActionModule
|
|
682
688
|
}
|
|
683
689
|
}
|
|
684
|
-
`),
|
|
690
|
+
`), I = e(`
|
|
685
691
|
query getActionsByGroup($groupId: ID!) {
|
|
686
692
|
group(id: $groupId) {
|
|
687
693
|
name
|
|
@@ -699,13 +705,13 @@ e(`
|
|
|
699
705
|
}
|
|
700
706
|
}
|
|
701
707
|
`);
|
|
702
|
-
const
|
|
708
|
+
const _ = e(`
|
|
703
709
|
query getLibraryModule($id: ID!) {
|
|
704
710
|
module(id: $id) {
|
|
705
711
|
...LibraryActionModule
|
|
706
712
|
}
|
|
707
713
|
}
|
|
708
|
-
`),
|
|
714
|
+
`), v = e(`
|
|
709
715
|
query getAllModuleCategories {
|
|
710
716
|
moduleCategories {
|
|
711
717
|
...LibraryModuleCategory
|
|
@@ -715,21 +721,22 @@ const I = e(`
|
|
|
715
721
|
export {
|
|
716
722
|
i as A,
|
|
717
723
|
o as C,
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
724
|
+
M as G,
|
|
725
|
+
n as M,
|
|
726
|
+
T as S,
|
|
727
|
+
l as U,
|
|
728
|
+
I as a,
|
|
729
|
+
m as b,
|
|
730
|
+
a as c,
|
|
731
|
+
s as d,
|
|
732
|
+
r as e,
|
|
733
|
+
g as f,
|
|
734
|
+
c as g,
|
|
735
|
+
y as h,
|
|
736
|
+
d as i,
|
|
737
|
+
p as j,
|
|
738
|
+
A as k,
|
|
739
|
+
u as l,
|
|
740
|
+
_ as m,
|
|
741
|
+
v as n
|
|
735
742
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./generated-
|
|
1
|
+
"use strict";const e=require("./generated-B5QGMyhw.cjs"),t=e.graphql(`
|
|
2
2
|
fragment AssessmentAction on Action {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
@@ -581,6 +581,12 @@
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
`),d=e.graphql(`
|
|
584
|
+
mutation convertActionToQuantumOwned($id: ID!) {
|
|
585
|
+
convertActionToQuantumOwned(id: $id) {
|
|
586
|
+
...AssessmentAction
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`),l=e.graphql(`
|
|
584
590
|
mutation createLibraryModule($input: CreateModuleInput!) {
|
|
585
591
|
createModule(input: $input) {
|
|
586
592
|
...LibraryActionModule
|
|
@@ -590,7 +596,7 @@
|
|
|
590
596
|
mutation deleteLibraryModule($id: ID!) {
|
|
591
597
|
deleteModule(id: $id)
|
|
592
598
|
}
|
|
593
|
-
`);const
|
|
599
|
+
`);const m=e.graphql(`
|
|
594
600
|
mutation updateLibraryModule($id: ID!, $input: UpdateModuleInput!) {
|
|
595
601
|
updateModule(id: $id, input: $input) {
|
|
596
602
|
...LibraryActionModule
|
|
@@ -600,32 +606,32 @@
|
|
|
600
606
|
mutation copyModules($input: CopyModulesInput!) {
|
|
601
607
|
copyModules(input: $input)
|
|
602
608
|
}
|
|
603
|
-
`);const
|
|
609
|
+
`);const c=e.graphql(`
|
|
604
610
|
query getActions {
|
|
605
611
|
actions {
|
|
606
612
|
...AssessmentAction
|
|
607
613
|
}
|
|
608
614
|
}
|
|
609
|
-
`),
|
|
615
|
+
`),p=e.graphql(`
|
|
610
616
|
query getQuantumOwnedActions {
|
|
611
617
|
quantumOwnedActions {
|
|
612
618
|
...AssessmentAction
|
|
613
619
|
}
|
|
614
620
|
}
|
|
615
|
-
`),
|
|
621
|
+
`),A=e.graphql(`
|
|
616
622
|
query getActionById($id: ID!) {
|
|
617
623
|
getActionById(id: $id) {
|
|
618
624
|
...AssessmentAction
|
|
619
625
|
}
|
|
620
626
|
}
|
|
621
|
-
`),
|
|
627
|
+
`),u=e.graphql(`
|
|
622
628
|
query searchUseCases($query: String!, $skip: Int, $limit: Int) {
|
|
623
629
|
useCases(search: $query, skip: $skip, limit: $limit) {
|
|
624
630
|
id
|
|
625
631
|
name
|
|
626
632
|
}
|
|
627
633
|
}
|
|
628
|
-
`),
|
|
634
|
+
`),T=e.graphql(`
|
|
629
635
|
query searchQuantumOwnedUseCases($query: String!, $skip: Int, $limit: Int) {
|
|
630
636
|
quantumOwnedUseCases(search: $query, skip: $skip, limit: $limit) {
|
|
631
637
|
id
|
|
@@ -638,7 +644,7 @@
|
|
|
638
644
|
...UserGroup
|
|
639
645
|
}
|
|
640
646
|
}
|
|
641
|
-
`),
|
|
647
|
+
`),y=e.graphql(`
|
|
642
648
|
query getModulesByGroup($groupId: ID!) {
|
|
643
649
|
group(id: $groupId) {
|
|
644
650
|
name
|
|
@@ -648,7 +654,7 @@
|
|
|
648
654
|
...LibraryActionModule
|
|
649
655
|
}
|
|
650
656
|
}
|
|
651
|
-
`),
|
|
657
|
+
`),_=e.graphql(`
|
|
652
658
|
query getActionsByGroup($groupId: ID!) {
|
|
653
659
|
group(id: $groupId) {
|
|
654
660
|
name
|
|
@@ -664,16 +670,16 @@
|
|
|
664
670
|
...LibraryActionModule
|
|
665
671
|
}
|
|
666
672
|
}
|
|
667
|
-
`);const
|
|
673
|
+
`);const M=e.graphql(`
|
|
668
674
|
query getLibraryModule($id: ID!) {
|
|
669
675
|
module(id: $id) {
|
|
670
676
|
...LibraryActionModule
|
|
671
677
|
}
|
|
672
678
|
}
|
|
673
|
-
`),
|
|
679
|
+
`),I=e.graphql(`
|
|
674
680
|
query getAllModuleCategories {
|
|
675
681
|
moduleCategories {
|
|
676
682
|
...LibraryModuleCategory
|
|
677
683
|
}
|
|
678
684
|
}
|
|
679
|
-
`);exports.ACTION_FRAGMENT=t;exports.ACTION_MODULE_FRAGMENT=r;exports.CREATE_ACTION=s;exports.CREATE_MODULE=
|
|
685
|
+
`);exports.ACTION_FRAGMENT=t;exports.ACTION_MODULE_FRAGMENT=r;exports.CONVERT_ACTION_TO_QUANTUM_OWNED=d;exports.CREATE_ACTION=s;exports.CREATE_MODULE=l;exports.GET_ACTIONS=c;exports.GET_ACTIONS_BY_GROUP=_;exports.GET_ACTION_BY_ID=A;exports.GET_ALL_MODULE_CATEGORIES=I;exports.GET_GROUPS=g;exports.GET_MODULES_BY_GROUP=y;exports.GET_MODULE_BY_ID=M;exports.GET_QUANTUM_OWNED_ACTIONS=p;exports.GROUP_FRAGMENT=a;exports.MODULE_ACTION_FRAGMENT=i;exports.MODULE_CATEGORY_FRAGMENT=n;exports.SEARCH_QUANTUM_OWNED_USE_CASES=T;exports.SEARCH_USE_CASES=u;exports.UPDATE_ACTION=o;exports.UPDATE_MODULE=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as he, f as V, a as Me, m as W, s as $, b as Y, p as $e, t as pe, d as ne, e as qe, l as Le, g as L, h as _e, i as ke, j as le, k as B, n as oe, q as Ve, r as Qe } from "./vendor-
|
|
1
|
+
import { o as he, f as V, a as Me, m as W, s as $, b as Y, p as $e, t as pe, d as ne, e as qe, l as Le, g as L, h as _e, i as ke, j as le, k as B, n as oe, q as Ve, r as Qe } from "./vendor-VALJ9W3p.js";
|
|
2
2
|
import * as q from "react";
|
|
3
3
|
var Pe = {
|
|
4
4
|
OPERATION_DEFINITION: "OperationDefinition"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./vendor-
|
|
1
|
+
"use strict";const c=require("./vendor-BjLvygDR.cjs"),Ee=require("react");function Ne(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const q=Ne(Ee);var xe={OPERATION_DEFINITION:"OperationDefinition"};class ne extends Error{constructor(t,r,n,i,a,o,v){super(t),this.name="GraphQLError",this.message=t,a&&(this.path=a),r&&(this.nodes=Array.isArray(r)?r:[r]),n&&(this.source=n),i&&(this.positions=i),o&&(this.originalError=o);var h=v;if(!h&&o){var k=o.extensions;k&&typeof k=="object"&&(h=k)}this.extensions=h||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var l,s;function C(e){return new ne(`Syntax Error: Unexpected token at ${s} in ${e}`)}function le(e){if(e.lastIndex=s,e.test(l))return l.slice(s,s=e.lastIndex)}var Q=/ +(?=[^\s])/y;function Se(e){for(var t=e.split(`
|
|
2
2
|
`),r="",n=0,i=0,a=t.length-1,o=0;o<t.length;o++)Q.lastIndex=0,Q.test(t[o])&&(o&&(!n||Q.lastIndex<n)&&(n=Q.lastIndex),i=i||o,a=o);for(var v=i;v<=a;v++)v!==i&&(r+=`
|
|
3
3
|
`),r+=t[v].slice(n).replace(/\\"""/g,'"""');return r}function x(){for(var e=0|l.charCodeAt(s++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|l.charCodeAt(s++))if(e===35)for(;(e=0|l.charCodeAt(s++))&&e!==10&&e!==13;);s--}function oe(){for(var e=s,t=0|l.charCodeAt(s++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|l.charCodeAt(s++));if(e===s-1)throw C("Name");var r=l.slice(e,--s);return x(),r}function V(){return{kind:"Name",value:oe()}}var Ce=/(?:"""|(?:[\s\S]*?[^\\])""")/y,De=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function $(e){var t;switch(l.charCodeAt(s)){case 91:s++,x();for(var r=[];l.charCodeAt(s)!==93;)r.push($(e));return s++,x(),{kind:"ListValue",values:r};case 123:s++,x();for(var n=[];l.charCodeAt(s)!==125;){var i=V();if(l.charCodeAt(s++)!==58)throw C("ObjectField");x(),n.push({kind:"ObjectField",name:i,value:$(e)})}return s++,x(),{kind:"ObjectValue",fields:n};case 36:if(e)throw C("Variable");return s++,{kind:"Variable",name:V()};case 34:if(l.charCodeAt(s+1)===34&&l.charCodeAt(s+2)===34){if(s+=3,(t=le(Ce))==null)throw C("StringValue");return x(),{kind:"StringValue",value:Se(t.slice(0,-3)),block:!0}}else{var a=s,o;s++;var v=!1;for(o=0|l.charCodeAt(s++);o===92&&(s++,v=!0)||o!==10&&o!==13&&o!==34&&o;o=0|l.charCodeAt(s++));if(o!==34)throw C("StringValue");return t=l.slice(a,s),x(),{kind:"StringValue",value:v?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 h=s++,k;(k=0|l.charCodeAt(s++))>=48&&k<=57;);var y=l.slice(h,--s);if((k=l.charCodeAt(s))===46||k===69||k===101){if((t=le(De))==null)throw C("FloatValue");return x(),{kind:"FloatValue",value:y+t}}else return x(),{kind:"IntValue",value:y};case 110:if(l.charCodeAt(s+1)===117&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===108)return s+=4,x(),{kind:"NullValue"};break;case 116:if(l.charCodeAt(s+1)===114&&l.charCodeAt(s+2)===117&&l.charCodeAt(s+3)===101)return s+=4,x(),{kind:"BooleanValue",value:!0};break;case 102:if(l.charCodeAt(s+1)===97&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===115&&l.charCodeAt(s+4)===101)return s+=5,x(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:oe()}}function be(e){if(l.charCodeAt(s)===40){var t=[];s++,x();do{var r=V();if(l.charCodeAt(s++)!==58)throw C("Argument");x(),t.push({kind:"Argument",name:r,value:$(e)})}while(l.charCodeAt(s)!==41);return s++,x(),t}}function I(e){if(l.charCodeAt(s)===64){var t=[];do s++,t.push({kind:"Directive",name:V(),arguments:be(e)});while(l.charCodeAt(s)===64);return t}}function _e(){for(var e=0;l.charCodeAt(s)===91;)e++,s++,x();var t={kind:"NamedType",name:V()};do if(l.charCodeAt(s)===33&&(s++,x(),t={kind:"NonNullType",type:t}),e){if(l.charCodeAt(s++)!==93)throw C("NamedType");x(),t={kind:"ListType",type:t}}while(e--);return t}function G(){if(l.charCodeAt(s++)!==123)throw C("SelectionSet");return x(),U()}function U(){var e=[];do if(l.charCodeAt(s)===46){if(l.charCodeAt(++s)!==46||l.charCodeAt(++s)!==46)throw C("SelectionSet");switch(s++,x(),l.charCodeAt(s)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:I(!1),selectionSet:G()});break;case 111:l.charCodeAt(s+1)===110?(s+=2,x(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()})):e.push({kind:"FragmentSpread",name:V(),directives:I(!1)});break;case 123:s++,x(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:U()});break;default:e.push({kind:"FragmentSpread",name:V(),directives:I(!1)})}}else{var t=V(),r=void 0;l.charCodeAt(s)===58&&(s++,x(),r=t,t=V());var n=be(!1),i=I(!1),a=void 0;l.charCodeAt(s)===123&&(s++,x(),a=U()),e.push({kind:"Field",alias:r,name:t,arguments:n,directives:i,selectionSet:a})}while(l.charCodeAt(s)!==125);return s++,x(),{kind:"SelectionSet",selections:e}}function qe(){if(x(),l.charCodeAt(s)===40){var e=[];s++,x();do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s++)!==36)throw C("Variable");var r=V();if(l.charCodeAt(s++)!==58)throw C("VariableDefinition");x();var n=_e(),i=void 0;l.charCodeAt(s)===61&&(s++,x(),i=$(!0)),x();var a={kind:"VariableDefinition",variable:{kind:"Variable",name:r},type:n,defaultValue:i,directives:I(!0)};t&&(a.description=t),e.push(a)}while(l.charCodeAt(s)!==41);return s++,x(),e}}function Ve(e){var t=V();if(l.charCodeAt(s++)!==111||l.charCodeAt(s++)!==110)throw C("FragmentDefinition");x();var r={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()};return e&&(r.description=e),r}function fe(){var e=[];do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s)===123){if(t)throw C("Document");s++,x(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:U()})}else{var r=oe();switch(r){case"fragment":e.push(Ve(t));break;case"query":case"mutation":case"subscription":var n,i=void 0;(n=l.charCodeAt(s))!==40&&n!==64&&n!==123&&(i=V());var a={kind:"OperationDefinition",operation:r,name:i,variableDefinitions:qe(),directives:I(!1),selectionSet:G()};t&&(a.description=t),e.push(a);break;default:throw C("Document")}}}while(s<l.length);return e}function Pe(e,t){return l=e.body?e.body:e,s=0,x(),t&&t.noLocation?{kind:"Document",definitions:fe()}:{kind:"Document",definitions:fe(),loc:{start:0,end:l.length,startToken:void 0,endToken:void 0,source:{body:l,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function _(e,t,r){for(var n="",i=0;i<e.length;i++)i&&(n+=t),n+=r(e[i]);return n}function je(e){return JSON.stringify(e)}function Ie(e){return`"""
|
|
4
4
|
`+e.replace(/"""/g,'\\"""')+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("./react-is-vendor-CosIbvzW.cjs");var c,d;function w(){if(d)return c;d=1;var u=b.requireReactIs(),g={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[u.ForwardRef]=n,p[u.Memo]=f;function y(r){return u.isMemo(r)?f:p[r.$$typeof]||g}var N=Object.defineProperty,R=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,j=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,T=Object.prototype;function O(r,t,o){if(typeof t!="string"){if(T){var i=_(t);i&&i!==T&&O(r,i,o)}var a=R(t);v&&(a=a.concat(v(t)));for(var P=y(r),S=y(t),s=0;s<a.length;++s){var e=a[s];if(!l[e]&&!(o&&o[e])&&!(S&&S[e])&&!(P&&P[e])){var I=j(t,e);try{N(r,e,I)}catch{}}}}return r}return c=O,c}w();
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { r as w } from "./react-is-vendor-DpFLFzFZ.js";
|
|
2
|
+
var c, d;
|
|
3
|
+
function A() {
|
|
4
|
+
if (d) return c;
|
|
5
|
+
d = 1;
|
|
6
|
+
var u = w(), g = {
|
|
7
|
+
childContextTypes: !0,
|
|
8
|
+
contextType: !0,
|
|
9
|
+
contextTypes: !0,
|
|
10
|
+
defaultProps: !0,
|
|
11
|
+
displayName: !0,
|
|
12
|
+
getDefaultProps: !0,
|
|
13
|
+
getDerivedStateFromError: !0,
|
|
14
|
+
getDerivedStateFromProps: !0,
|
|
15
|
+
mixins: !0,
|
|
16
|
+
propTypes: !0,
|
|
17
|
+
type: !0
|
|
18
|
+
}, l = {
|
|
19
|
+
name: !0,
|
|
20
|
+
length: !0,
|
|
21
|
+
prototype: !0,
|
|
22
|
+
caller: !0,
|
|
23
|
+
callee: !0,
|
|
24
|
+
arguments: !0,
|
|
25
|
+
arity: !0
|
|
26
|
+
}, N = {
|
|
27
|
+
$$typeof: !0,
|
|
28
|
+
render: !0,
|
|
29
|
+
defaultProps: !0,
|
|
30
|
+
displayName: !0,
|
|
31
|
+
propTypes: !0
|
|
32
|
+
}, f = {
|
|
33
|
+
$$typeof: !0,
|
|
34
|
+
compare: !0,
|
|
35
|
+
defaultProps: !0,
|
|
36
|
+
displayName: !0,
|
|
37
|
+
propTypes: !0,
|
|
38
|
+
type: !0
|
|
39
|
+
}, p = {};
|
|
40
|
+
p[u.ForwardRef] = N, p[u.Memo] = f;
|
|
41
|
+
function y(r) {
|
|
42
|
+
return u.isMemo(r) ? f : p[r.$$typeof] || g;
|
|
43
|
+
}
|
|
44
|
+
var R = Object.defineProperty, j = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols, n = Object.getOwnPropertyDescriptor, _ = Object.getPrototypeOf, T = Object.prototype;
|
|
45
|
+
function O(r, t, o) {
|
|
46
|
+
if (typeof t != "string") {
|
|
47
|
+
if (T) {
|
|
48
|
+
var i = _(t);
|
|
49
|
+
i && i !== T && O(r, i, o);
|
|
50
|
+
}
|
|
51
|
+
var a = j(t);
|
|
52
|
+
v && (a = a.concat(v(t)));
|
|
53
|
+
for (var P = y(r), S = y(t), s = 0; s < a.length; ++s) {
|
|
54
|
+
var e = a[s];
|
|
55
|
+
if (!l[e] && !(o && o[e]) && !(S && S[e]) && !(P && P[e])) {
|
|
56
|
+
var b = n(t, e);
|
|
57
|
+
try {
|
|
58
|
+
R(r, e, b);
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return r;
|
|
65
|
+
}
|
|
66
|
+
return c = O, c;
|
|
67
|
+
}
|
|
68
|
+
A();
|
package/dist/hooks.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-CL0XsjHb.cjs"),a=require("react"),i=require("./services.cjs"),u=require("./types.cjs"),L=({url:e,getAuthToken:t})=>new l.C({url:e,requestPolicy:"cache-and-network",exchanges:[l.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),f=({url:e,getAuthToken:t})=>a.useMemo(()=>L({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),p=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),b=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(g=>g.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},h=e=>{const t=d(e),r=m(e),n=p(r.map(o=>o.id),u.AngleDataSource.Sensor),s=b(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]};exports.useGraphqlClient=f;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=p;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=h;
|
package/dist/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as c, c as d, f as p } from "./graphql-vendor-
|
|
1
|
+
import { C as c, c as d, f as p } from "./graphql-vendor-BWnD0b-j.js";
|
|
2
2
|
import { useMemo as i } from "react";
|
|
3
3
|
import { getAllAvailableJoints as f, limbsRequiredForJoints as b, getAllAvailableLimbs as u, getEnabledJointPlanes as g, getDefaultJointRange as h, getEnabledSegmentPlanes as L, getDefaultLimbRange as A } from "./services.js";
|
|
4
4
|
import { sensorLocationToLimbId as l, AngleDataSource as a } from "./types.js";
|