@teambit/graphql 1.0.226 → 1.0.227

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.harmony/graphql@1.0.226" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/graphql@1.0.227" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/graphql-preview"]=t():e["teambit.harmony/graphql-preview"]=t()}(self,(()=>(()=>{"use strict";var e={83989:(e,t,o)=>{var r={id:"teambit.harmony/graphql@1.0.226",homepage:"https://bit.cloud/teambit/harmony/graphql",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-grphql.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>d,compositions_metadata:()=>f,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>l});var t=o(83989);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(this,arguments)}var c={},s="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(s,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const d=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/graphql-preview"]=t():e["teambit.harmony/graphql-preview"]=t()}(self,(()=>(()=>{"use strict";var e={85076:(e,t,o)=>{var r={id:"teambit.harmony/graphql@1.0.227",homepage:"https://bit.cloud/teambit/harmony/graphql",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-grphql.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>d,compositions_metadata:()=>f,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>l});var t=o(85076);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(this,arguments)}var c={},s="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(s,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const d=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
@@ -125,8 +125,7 @@
125
125
  "line": 8,
126
126
  "character": 23
127
127
  },
128
- "name": "DocumentNode",
129
- "packageName": "graphql"
128
+ "name": "DocumentNode"
130
129
  }
131
130
  ]
132
131
  },
@@ -206,8 +205,7 @@
206
205
  "line": 10,
207
206
  "character": 22
208
207
  },
209
- "name": "SchemaDirectives",
210
- "packageName": "@graphql-modules/core"
208
+ "name": "SchemaDirectives"
211
209
  },
212
210
  "isOptional": true
213
211
  }
@@ -249,8 +247,7 @@
249
247
  "line": 54,
250
248
  "character": 22
251
249
  },
252
- "name": "GraphQLConfig",
253
- "internalFilePath": "graphql.main.runtime.ts"
250
+ "name": "GraphQLConfig"
254
251
  },
255
252
  "isOptional": false,
256
253
  "isSpread": false
@@ -290,12 +287,7 @@
290
287
  "line": 64,
291
288
  "character": 22
292
289
  },
293
- "name": "Harmony",
294
- "componentId": {
295
- "scope": "teambit.harmony",
296
- "name": "harmony",
297
- "version": "0.4.6"
298
- }
290
+ "name": "Harmony"
299
291
  },
300
292
  "isOptional": false,
301
293
  "isSpread": false
@@ -315,11 +307,7 @@
315
307
  "line": 69,
316
308
  "character": 22
317
309
  },
318
- "name": "Logger",
319
- "componentId": {
320
- "scope": "teambit.harmony",
321
- "name": "logger"
322
- }
310
+ "name": "Logger"
323
311
  },
324
312
  "isOptional": false,
325
313
  "isSpread": false
@@ -339,8 +327,7 @@
339
327
  "line": 71,
340
328
  "character": 32
341
329
  },
342
- "name": "GraphQLServerSlot",
343
- "internalFilePath": "graphql.main.runtime.ts"
330
+ "name": "GraphQLServerSlot"
344
331
  },
345
332
  "isOptional": false,
346
333
  "isSpread": false
@@ -360,8 +347,7 @@
360
347
  "line": 76,
361
348
  "character": 25
362
349
  },
363
- "name": "PubSubSlot",
364
- "internalFilePath": "graphql.main.runtime.ts"
350
+ "name": "PubSubSlot"
365
351
  },
366
352
  "isOptional": false,
367
353
  "isSpread": false
@@ -535,8 +521,7 @@
535
521
  "line": 108,
536
522
  "character": 31
537
523
  },
538
- "name": "GraphQLServerOptions",
539
- "internalFilePath": "graphql.main.runtime.ts"
524
+ "name": "GraphQLServerOptions"
540
525
  },
541
526
  "isOptional": false,
542
527
  "isSpread": false
@@ -642,8 +627,7 @@
642
627
  "line": 172,
643
628
  "character": 26
644
629
  },
645
- "name": "PubSubEngine",
646
- "packageName": "graphql-subscriptions"
630
+ "name": "PubSubEngine"
647
631
  },
648
632
  "isOptional": false,
649
633
  "isSpread": false
@@ -715,8 +699,7 @@
715
699
  "line": 182,
716
700
  "character": 40
717
701
  },
718
- "name": "Server",
719
- "packageName": "http"
702
+ "name": "Server"
720
703
  },
721
704
  "isOptional": true,
722
705
  "isSpread": false
@@ -736,8 +719,7 @@
736
719
  "line": 182,
737
720
  "character": 54
738
721
  },
739
- "name": "Express",
740
- "packageName": "express"
722
+ "name": "Express"
741
723
  },
742
724
  "isOptional": true,
743
725
  "isSpread": false
@@ -925,11 +907,7 @@
925
907
  "line": 317,
926
908
  "character": 23
927
909
  },
928
- "name": "LoggerMain",
929
- "componentId": {
930
- "scope": "teambit.harmony",
931
- "name": "logger"
932
- }
910
+ "name": "LoggerMain"
933
911
  }
934
912
  ]
935
913
  },
@@ -951,8 +929,7 @@
951
929
  "line": 318,
952
930
  "character": 13
953
931
  },
954
- "name": "GraphQLConfig",
955
- "internalFilePath": "graphql.main.runtime.ts"
932
+ "name": "GraphQLConfig"
956
933
  },
957
934
  "isOptional": false,
958
935
  "isSpread": false
@@ -989,8 +966,7 @@
989
966
  "line": 319,
990
967
  "character": 63
991
968
  },
992
- "name": "GraphQLServerSlot",
993
- "internalFilePath": "graphql.main.runtime.ts"
969
+ "name": "GraphQLServerSlot"
994
970
  },
995
971
  {
996
972
  "__schema": "TypeRefSchema",
@@ -999,8 +975,7 @@
999
975
  "line": 319,
1000
976
  "character": 82
1001
977
  },
1002
- "name": "PubSubSlot",
1003
- "internalFilePath": "graphql.main.runtime.ts"
978
+ "name": "PubSubSlot"
1004
979
  }
1005
980
  ]
1006
981
  },
@@ -1022,12 +997,7 @@
1022
997
  "line": 320,
1023
998
  "character": 14
1024
999
  },
1025
- "name": "Harmony",
1026
- "componentId": {
1027
- "scope": "teambit.harmony",
1028
- "name": "harmony",
1029
- "version": "0.4.6"
1030
- }
1000
+ "name": "Harmony"
1031
1001
  },
1032
1002
  "isOptional": false,
1033
1003
  "isSpread": false
@@ -1068,11 +1038,6 @@
1068
1038
  "character": 26
1069
1039
  },
1070
1040
  "name": "SlotRegistry",
1071
- "componentId": {
1072
- "scope": "teambit.harmony",
1073
- "name": "harmony",
1074
- "version": "0.4.6"
1075
- },
1076
1041
  "typeArgs": [
1077
1042
  {
1078
1043
  "__schema": "TypeRefSchema",
@@ -1141,8 +1106,7 @@
1141
1106
  "line": 31,
1142
1107
  "character": 57
1143
1108
  },
1144
- "name": "ClientOptions",
1145
- "internalFilePath": "graphql.ui.runtime.tsx"
1109
+ "name": "ClientOptions"
1146
1110
  },
1147
1111
  "isOptional": true,
1148
1112
  "defaultValue": "{}",
@@ -1492,7 +1456,6 @@
1492
1456
  "character": 32
1493
1457
  },
1494
1458
  "name": "ApolloClient",
1495
- "packageName": "@apollo/client",
1496
1459
  "typeArgs": [
1497
1460
  {
1498
1461
  "__schema": "TypeRefSchema",
@@ -1583,8 +1546,7 @@
1583
1546
  "line": 10,
1584
1547
  "character": 55
1585
1548
  },
1586
- "name": "GraphQLProviderProps",
1587
- "internalFilePath": "graphql-provider/graphql-provider.tsx"
1549
+ "name": "GraphQLProviderProps"
1588
1550
  },
1589
1551
  "isOptional": false,
1590
1552
  "objectBindingNodes": [
@@ -1822,8 +1784,7 @@
1822
1784
  "line": 8,
1823
1785
  "character": 23
1824
1786
  },
1825
- "name": "DocumentNode",
1826
- "packageName": "graphql"
1787
+ "name": "DocumentNode"
1827
1788
  }
1828
1789
  ]
1829
1790
  },
@@ -1903,8 +1864,7 @@
1903
1864
  "line": 10,
1904
1865
  "character": 22
1905
1866
  },
1906
- "name": "SchemaDirectives",
1907
- "packageName": "@graphql-modules/core"
1867
+ "name": "SchemaDirectives"
1908
1868
  },
1909
1869
  "isOptional": true
1910
1870
  }
@@ -2081,11 +2041,6 @@
2081
2041
  "character": 33
2082
2042
  },
2083
2043
  "name": "SlotRegistry",
2084
- "componentId": {
2085
- "scope": "teambit.harmony",
2086
- "name": "harmony",
2087
- "version": "0.4.6"
2088
- },
2089
2044
  "typeArgs": [
2090
2045
  {
2091
2046
  "__schema": "TypeRefSchema",
@@ -2116,11 +2071,6 @@
2116
2071
  "character": 26
2117
2072
  },
2118
2073
  "name": "SlotRegistry",
2119
- "componentId": {
2120
- "scope": "teambit.harmony",
2121
- "name": "harmony",
2122
- "version": "0.4.6"
2123
- },
2124
2074
  "typeArgs": [
2125
2075
  {
2126
2076
  "__schema": "TypeRefSchema",
@@ -2151,11 +2101,6 @@
2151
2101
  "character": 26
2152
2102
  },
2153
2103
  "name": "SlotRegistry",
2154
- "componentId": {
2155
- "scope": "teambit.harmony",
2156
- "name": "harmony",
2157
- "version": "0.4.6"
2158
- },
2159
2104
  "typeArgs": [
2160
2105
  {
2161
2106
  "__schema": "TypeRefSchema",
@@ -2164,8 +2109,7 @@
2164
2109
  "line": 37,
2165
2110
  "character": 39
2166
2111
  },
2167
- "name": "PubSubEngine",
2168
- "packageName": "graphql-subscriptions"
2112
+ "name": "PubSubEngine"
2169
2113
  }
2170
2114
  ]
2171
2115
  }
@@ -2223,8 +2167,7 @@
2223
2167
  "line": 41,
2224
2168
  "character": 9
2225
2169
  },
2226
- "name": "Express",
2227
- "packageName": "express"
2170
+ "name": "Express"
2228
2171
  },
2229
2172
  "isOptional": true
2230
2173
  },
@@ -2382,8 +2325,7 @@
2382
2325
  "line": 54,
2383
2326
  "character": 22
2384
2327
  },
2385
- "name": "GraphQLConfig",
2386
- "internalFilePath": "graphql.main.runtime.ts"
2328
+ "name": "GraphQLConfig"
2387
2329
  },
2388
2330
  "isOptional": false,
2389
2331
  "isSpread": false
@@ -2423,12 +2365,7 @@
2423
2365
  "line": 64,
2424
2366
  "character": 22
2425
2367
  },
2426
- "name": "Harmony",
2427
- "componentId": {
2428
- "scope": "teambit.harmony",
2429
- "name": "harmony",
2430
- "version": "0.4.6"
2431
- }
2368
+ "name": "Harmony"
2432
2369
  },
2433
2370
  "isOptional": false,
2434
2371
  "isSpread": false
@@ -2448,11 +2385,7 @@
2448
2385
  "line": 69,
2449
2386
  "character": 22
2450
2387
  },
2451
- "name": "Logger",
2452
- "componentId": {
2453
- "scope": "teambit.harmony",
2454
- "name": "logger"
2455
- }
2388
+ "name": "Logger"
2456
2389
  },
2457
2390
  "isOptional": false,
2458
2391
  "isSpread": false
@@ -2472,8 +2405,7 @@
2472
2405
  "line": 71,
2473
2406
  "character": 32
2474
2407
  },
2475
- "name": "GraphQLServerSlot",
2476
- "internalFilePath": "graphql.main.runtime.ts"
2408
+ "name": "GraphQLServerSlot"
2477
2409
  },
2478
2410
  "isOptional": false,
2479
2411
  "isSpread": false
@@ -2493,8 +2425,7 @@
2493
2425
  "line": 76,
2494
2426
  "character": 25
2495
2427
  },
2496
- "name": "PubSubSlot",
2497
- "internalFilePath": "graphql.main.runtime.ts"
2428
+ "name": "PubSubSlot"
2498
2429
  },
2499
2430
  "isOptional": false,
2500
2431
  "isSpread": false
@@ -2668,8 +2599,7 @@
2668
2599
  "line": 108,
2669
2600
  "character": 31
2670
2601
  },
2671
- "name": "GraphQLServerOptions",
2672
- "internalFilePath": "graphql.main.runtime.ts"
2602
+ "name": "GraphQLServerOptions"
2673
2603
  },
2674
2604
  "isOptional": false,
2675
2605
  "isSpread": false
@@ -2775,8 +2705,7 @@
2775
2705
  "line": 172,
2776
2706
  "character": 26
2777
2707
  },
2778
- "name": "PubSubEngine",
2779
- "packageName": "graphql-subscriptions"
2708
+ "name": "PubSubEngine"
2780
2709
  },
2781
2710
  "isOptional": false,
2782
2711
  "isSpread": false
@@ -2848,8 +2777,7 @@
2848
2777
  "line": 182,
2849
2778
  "character": 40
2850
2779
  },
2851
- "name": "Server",
2852
- "packageName": "http"
2780
+ "name": "Server"
2853
2781
  },
2854
2782
  "isOptional": true,
2855
2783
  "isSpread": false
@@ -2869,8 +2797,7 @@
2869
2797
  "line": 182,
2870
2798
  "character": 54
2871
2799
  },
2872
- "name": "Express",
2873
- "packageName": "express"
2800
+ "name": "Express"
2874
2801
  },
2875
2802
  "isOptional": true,
2876
2803
  "isSpread": false
@@ -3058,11 +2985,7 @@
3058
2985
  "line": 317,
3059
2986
  "character": 23
3060
2987
  },
3061
- "name": "LoggerMain",
3062
- "componentId": {
3063
- "scope": "teambit.harmony",
3064
- "name": "logger"
3065
- }
2988
+ "name": "LoggerMain"
3066
2989
  }
3067
2990
  ]
3068
2991
  },
@@ -3084,8 +3007,7 @@
3084
3007
  "line": 318,
3085
3008
  "character": 13
3086
3009
  },
3087
- "name": "GraphQLConfig",
3088
- "internalFilePath": "graphql.main.runtime.ts"
3010
+ "name": "GraphQLConfig"
3089
3011
  },
3090
3012
  "isOptional": false,
3091
3013
  "isSpread": false
@@ -3122,8 +3044,7 @@
3122
3044
  "line": 319,
3123
3045
  "character": 63
3124
3046
  },
3125
- "name": "GraphQLServerSlot",
3126
- "internalFilePath": "graphql.main.runtime.ts"
3047
+ "name": "GraphQLServerSlot"
3127
3048
  },
3128
3049
  {
3129
3050
  "__schema": "TypeRefSchema",
@@ -3132,8 +3053,7 @@
3132
3053
  "line": 319,
3133
3054
  "character": 82
3134
3055
  },
3135
- "name": "PubSubSlot",
3136
- "internalFilePath": "graphql.main.runtime.ts"
3056
+ "name": "PubSubSlot"
3137
3057
  }
3138
3058
  ]
3139
3059
  },
@@ -3155,12 +3075,7 @@
3155
3075
  "line": 320,
3156
3076
  "character": 14
3157
3077
  },
3158
- "name": "Harmony",
3159
- "componentId": {
3160
- "scope": "teambit.harmony",
3161
- "name": "harmony",
3162
- "version": "0.4.6"
3163
- }
3078
+ "name": "Harmony"
3164
3079
  },
3165
3080
  "isOptional": false,
3166
3081
  "isSpread": false
@@ -3245,7 +3160,6 @@
3245
3160
  "character": 32
3246
3161
  },
3247
3162
  "name": "ApolloClient",
3248
- "packageName": "@apollo/client",
3249
3163
  "typeArgs": [
3250
3164
  {
3251
3165
  "__schema": "TypeRefSchema",
@@ -3314,8 +3228,7 @@
3314
3228
  "line": 31,
3315
3229
  "character": 57
3316
3230
  },
3317
- "name": "ClientOptions",
3318
- "internalFilePath": "graphql.ui.runtime.tsx"
3231
+ "name": "ClientOptions"
3319
3232
  },
3320
3233
  "isOptional": true,
3321
3234
  "defaultValue": "{}",
@@ -3671,8 +3584,7 @@
3671
3584
  "line": 25,
3672
3585
  "character": 11
3673
3586
  },
3674
- "name": "NormalizedCacheObject",
3675
- "packageName": "@apollo/client"
3587
+ "name": "NormalizedCacheObject"
3676
3588
  },
3677
3589
  "isOptional": true
3678
3590
  },
@@ -3793,8 +3705,7 @@
3793
3705
  "line": 7,
3794
3706
  "character": 13
3795
3707
  },
3796
- "name": "ReactNode",
3797
- "packageName": "react"
3708
+ "name": "ReactNode"
3798
3709
  },
3799
3710
  "isOptional": false
3800
3711
  }
@@ -3825,8 +3736,7 @@
3825
3736
  "line": 10,
3826
3737
  "character": 55
3827
3738
  },
3828
- "name": "GraphQLProviderProps",
3829
- "internalFilePath": "graphql-provider/graphql-provider.tsx"
3739
+ "name": "GraphQLProviderProps"
3830
3740
  },
3831
3741
  "isOptional": false,
3832
3742
  "objectBindingNodes": [
@@ -3876,7 +3786,7 @@
3876
3786
  "componentId": {
3877
3787
  "scope": "teambit.harmony",
3878
3788
  "name": "graphql",
3879
- "version": "1.0.226"
3789
+ "version": "1.0.227"
3880
3790
  },
3881
3791
  "taggedModuleExports": []
3882
3792
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.226/dist/graphql.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.226/dist/graphql.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.227/dist/graphql.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.227/dist/graphql.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/graphql",
3
- "version": "1.0.226",
3
+ "version": "1.0.227",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/graphql",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "graphql",
9
- "version": "1.0.226"
9
+ "version": "1.0.227"
10
10
  },
11
11
  "dependencies": {
12
12
  "@graphql-modules/core": "0.7.17",
@@ -32,10 +32,10 @@
32
32
  "bufferutil": "4.0.3",
33
33
  "@teambit/harmony": "0.4.6",
34
34
  "@teambit/ui-foundation.ui.is-browser": "0.0.500",
35
- "@teambit/cli": "0.0.859",
36
- "@teambit/logger": "0.0.952",
35
+ "@teambit/cli": "0.0.860",
36
+ "@teambit/logger": "0.0.953",
37
37
  "@teambit/toolbox.network.get-port": "1.0.6",
38
- "@teambit/ui": "1.0.226"
38
+ "@teambit/ui": "1.0.227"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/cors": "2.8.10",
@@ -44,7 +44,7 @@
44
44
  "@types/node-fetch": "2.5.12",
45
45
  "@types/mocha": "9.1.0",
46
46
  "chai": "4.3.0",
47
- "@teambit/harmony.envs.core-aspect-env": "0.0.27"
47
+ "@teambit/harmony.envs.core-aspect-env": "0.0.30"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@apollo/client": "^3.6.0",
package/tsconfig.json CHANGED
@@ -20,7 +20,8 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false
23
+ "noImplicitAny": false,
24
+ "composite": true
24
25
  },
25
26
  "exclude": [
26
27
  "artifacts",
@@ -35,5 +36,16 @@
35
36
  "include": [
36
37
  "**/*",
37
38
  "**/*.json"
39
+ ],
40
+ "references": [
41
+ {
42
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
43
+ },
44
+ {
45
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
46
+ },
47
+ {
48
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
49
+ }
38
50
  ]
39
51
  }
@@ -1,8 +0,0 @@
1
- import { HttpLink } from '@apollo/client';
2
- import type { WebSocketLink } from '@apollo/client/link/ws';
3
- /**
4
- * create a link which splits routes data depending on type of operation.
5
- * @param httpLink http link for apollo graphql
6
- * @param wsLink web socket link for apollo graphql
7
- */
8
- export declare function createSplitLink(httpLink: HttpLink, wsLink: WebSocketLink): import("@apollo/client").ApolloLink;
@@ -1,2 +0,0 @@
1
- import { GraphQLServer } from '../graphql-server';
2
- export declare function createRemoteSchemas(servers: GraphQLServer[]): Promise<import("graphql").GraphQLSchema[]>;
@@ -1 +0,0 @@
1
- export { createRemoteSchemas } from './create-remote-schemas';
@@ -1,19 +0,0 @@
1
- export declare class GraphQlError {
2
- /**
3
- * http status code of error
4
- */
5
- readonly code: number;
6
- /**
7
- * error message of the error
8
- */
9
- readonly message?: string | undefined;
10
- constructor(
11
- /**
12
- * http status code of error
13
- */
14
- code: number,
15
- /**
16
- * error message of the error
17
- */
18
- message?: string | undefined);
19
- }
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import type { GraphQLClient } from '../graphql.ui.runtime';
3
- export type GraphQLProviderProps = {
4
- client: GraphQLClient<any>;
5
- children: ReactNode;
6
- };
7
- export declare function GraphQLProvider({ client, children }: GraphQLProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { GraphQLProvider } from './graphql-provider';
@@ -1,4 +0,0 @@
1
- export interface GraphQLServer {
2
- uri: string;
3
- subscriptionsUri?: string;
4
- }
@@ -1,3 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
- export declare const GraphqlAspect: Aspect;
3
- export default GraphqlAspect;
@@ -1 +0,0 @@
1
- export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,120 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="got/dist/source/core/utils/timed-out" />
3
- import { Harmony, SlotRegistry } from '@teambit/harmony';
4
- import { Logger, LoggerMain } from '@teambit/logger';
5
- import { Express } from 'express';
6
- import { PubSubEngine } from 'graphql-subscriptions';
7
- import { Server } from 'http';
8
- import { GraphQLServer } from './graphql-server';
9
- import { Schema } from './schema';
10
- export declare enum Verb {
11
- WRITE = "write",
12
- READ = "read"
13
- }
14
- export type GraphQLConfig = {
15
- port: number;
16
- subscriptionsPortRange: number[];
17
- subscriptionsPath: string;
18
- disableCors?: boolean;
19
- };
20
- export type GraphQLServerSlot = SlotRegistry<GraphQLServer>;
21
- export type SchemaSlot = SlotRegistry<Schema>;
22
- export type PubSubSlot = SlotRegistry<PubSubEngine>;
23
- export type GraphQLServerOptions = {
24
- schemaSlot?: SchemaSlot;
25
- app?: Express;
26
- graphiql?: boolean;
27
- disableIntrospection?: boolean;
28
- remoteSchemas?: GraphQLServer[];
29
- subscriptionsPortRange?: number[];
30
- onWsConnect?: Function;
31
- };
32
- export declare class GraphqlMain {
33
- /**
34
- * extension config
35
- */
36
- readonly config: GraphQLConfig;
37
- /**
38
- * slot for registering graphql modules
39
- */
40
- private moduleSlot;
41
- /**
42
- * harmony context.
43
- */
44
- private context;
45
- /**
46
- * logger extension.
47
- */
48
- readonly logger: Logger;
49
- private graphQLServerSlot;
50
- /**
51
- * graphql pubsub. allows to emit events to clients.
52
- */
53
- private pubSubSlot;
54
- constructor(
55
- /**
56
- * extension config
57
- */
58
- config: GraphQLConfig,
59
- /**
60
- * slot for registering graphql modules
61
- */
62
- moduleSlot: SchemaSlot,
63
- /**
64
- * harmony context.
65
- */
66
- context: Harmony,
67
- /**
68
- * logger extension.
69
- */
70
- logger: Logger, graphQLServerSlot: GraphQLServerSlot,
71
- /**
72
- * graphql pubsub. allows to emit events to clients.
73
- */
74
- pubSubSlot: PubSubSlot);
75
- get pubsub(): PubSubEngine;
76
- private modules;
77
- /**
78
- * returns the schema for a specific aspect by its id.
79
- */
80
- getSchema(aspectId: string): Schema | undefined;
81
- /**
82
- * get multiple schema by aspect ids.
83
- */
84
- getSchemas(aspectIds: string[]): Schema[];
85
- createServer(options: GraphQLServerOptions): Promise<Server>;
86
- /**
87
- * register a new graphql server.
88
- */
89
- registerServer(server: GraphQLServer): this;
90
- /**
91
- * register a pubsub client
92
- */
93
- registerPubSub(pubsub: PubSubEngine): this;
94
- /**
95
- * start a graphql server.
96
- */
97
- listen(port?: number, server?: Server, app?: Express): Promise<void>;
98
- /**
99
- * register a new graphql module.
100
- */
101
- register(schema: Schema): this;
102
- private getPort;
103
- /** create Subscription server with different port */
104
- private createSubscription;
105
- /** proxy ws Subscription server to avoid conflict with different websocket connections */
106
- private proxySubscription;
107
- private createRootModule;
108
- private buildModules;
109
- private getModuleDependencies;
110
- static slots: (((registerFn: () => string) => SlotRegistry<Schema>) | ((registerFn: () => string) => SlotRegistry<GraphQLServer>) | ((registerFn: () => string) => SlotRegistry<PubSubSlot>))[];
111
- static defaultConfig: {
112
- port: number;
113
- subscriptionsPortRange: number[];
114
- disableCors: boolean;
115
- subscriptionsPath: string;
116
- };
117
- static runtime: import("@teambit/harmony").RuntimeDefinition;
118
- static dependencies: import("@teambit/harmony").Aspect[];
119
- static provider([loggerFactory]: [LoggerMain], config: GraphQLConfig, [moduleSlot, graphQLServerSlot, pubSubSlot]: [SchemaSlot, GraphQLServerSlot, PubSubSlot], context: Harmony): Promise<GraphqlMain>;
120
- }
@@ -1,37 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ApolloClient } from '@apollo/client';
3
- import type { NormalizedCacheObject } from '@apollo/client';
4
- import { GraphqlRenderPlugins } from './render-lifecycle';
5
- /**
6
- * Type of gql client.
7
- * Used to abstract Apollo client, so consumers could import the type from graphql.ui, and not have to depend on @apollo/client directly
8
- * */
9
- export type GraphQLClient<T> = ApolloClient<T>;
10
- type ClientOptions = {
11
- /** Preset in-memory cache with state (e.g. continue state from SSR) */
12
- state?: NormalizedCacheObject;
13
- /** endpoint for websocket connections */
14
- subscriptionUri?: string;
15
- };
16
- export declare class GraphqlUI {
17
- createClient(uri: string, { state, subscriptionUri }?: ClientOptions): ApolloClient<NormalizedCacheObject>;
18
- createSsrClient({ serverUrl, headers }: {
19
- serverUrl: string;
20
- headers: any;
21
- }): ApolloClient<NormalizedCacheObject>;
22
- private createCache;
23
- private createLink;
24
- /**
25
- * get the graphQL provider
26
- */
27
- getProvider: ({ client, children }: {
28
- client: GraphQLClient<any>;
29
- children: ReactNode;
30
- }) => import("react/jsx-runtime").JSX.Element;
31
- readonly renderPlugins: GraphqlRenderPlugins;
32
- static runtime: import("@teambit/harmony").RuntimeDefinition;
33
- static dependencies: never[];
34
- static slots: never[];
35
- static provider(): Promise<GraphqlUI>;
36
- }
37
- export {};
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export { GraphqlAspect, GraphqlAspect as default } from './graphql.aspect';
2
- export type { Schema } from './schema';
3
- export type { GraphqlMain, SchemaSlot } from './graphql.main.runtime';
4
- export type { GraphqlUI, GraphQLClient } from './graphql.ui.runtime';
5
- export type { GraphQLServer } from './graphql-server';
6
- export { GraphQLProvider } from './graphql-provider';
7
- export { GraphQlError } from './graphql-error';
package/dist/logging.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { ErrorResponse } from '@apollo/client/link/error';
2
- export declare function logError({ graphQLErrors, networkError, operation }: ErrorResponse): void;
@@ -1,39 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import type { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
- import type { SSR } from '@teambit/ui';
4
- import type { GraphqlUI, GraphQLClient } from './graphql.ui.runtime';
5
- type RenderContext = {
6
- client: GraphQLClient<any>;
7
- };
8
- export declare class GraphqlRenderPlugins implements SSR.RenderPlugin<RenderContext, {
9
- state?: NormalizedCacheObject;
10
- }> {
11
- private graphqlUI;
12
- constructor(graphqlUI: GraphqlUI);
13
- key: string;
14
- serverInit: ({ browser }: SSR.SsrSession) => RenderContext;
15
- /**
16
- * Eagerly and recursively execute all gql queries in the app.
17
- * Data will be available in gqlClient.extract()
18
- */
19
- onBeforeRender: (ctx: RenderContext, app: ReactNode) => Promise<void>;
20
- serialize: (ctx?: RenderContext) => {
21
- json: string;
22
- } | undefined;
23
- deserialize: (raw?: string) => {
24
- state: NormalizedCacheObject | undefined;
25
- };
26
- private _client;
27
- browserInit: ({ state }?: {
28
- state?: NormalizedCacheObject | undefined;
29
- }) => {
30
- client: ApolloClient<NormalizedCacheObject>;
31
- };
32
- getClient(): ApolloClient<NormalizedCacheObject>;
33
- private BrowserGqlProvider;
34
- reactContext: ({ renderCtx, children }: {
35
- renderCtx?: RenderContext | undefined;
36
- children: ReactNode;
37
- }) => import("react/jsx-runtime").JSX.Element;
38
- }
39
- export {};
package/dist/schema.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import type { DocumentNode } from 'graphql';
2
- import type { SchemaDirectives } from '@graphql-modules/core';
3
- /**
4
- * graphql schema for an extension.
5
- */
6
- export type Schema = {
7
- typeDefs?: string | DocumentNode;
8
- resolvers?: {
9
- [key: string]: any;
10
- };
11
- schemaDirectives?: SchemaDirectives;
12
- };