@teambit/graphql 1.0.142 → 1.0.144

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.
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuites>
3
+ <testsuite name="teambit.harmony/graphql@1.0.144" tests="0" failures="0" errors="0" skipped="0"/>
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={72980:(e,t,o)=>{var r={id:"teambit.harmony/graphql@1.0.142",homepage:"https://bit.cloud/teambit/harmony/graphql",exported:!0};function n(){const e=i(o(87363));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},87363: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(72980);o(87363);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={92995:(e,t,o)=>{var r={id:"teambit.harmony/graphql@1.0.144",homepage:"https://bit.cloud/teambit/harmony/graphql",exported:!0};function n(){const e=i(o(87363));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},87363: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(92995);o(87363);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})()));
@@ -6,7 +6,7 @@ export declare class GraphQlError {
6
6
  /**
7
7
  * error message of the error
8
8
  */
9
- readonly message?: string;
9
+ readonly message?: string | undefined;
10
10
  constructor(
11
11
  /**
12
12
  * http status code of error
@@ -15,5 +15,5 @@ export declare class GraphQlError {
15
15
  /**
16
16
  * error message of the error
17
17
  */
18
- message?: string);
18
+ message?: string | undefined);
19
19
  }
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Logo: () => JSX.Element;
@@ -76,7 +76,7 @@ export declare class GraphqlMain {
76
76
  /**
77
77
  * returns the schema for a specific aspect by its id.
78
78
  */
79
- getSchema(aspectId: string): Schema;
79
+ getSchema(aspectId: string): Schema | undefined;
80
80
  /**
81
81
  * get multiple schema by aspect ids.
82
82
  */
@@ -30,8 +30,8 @@ export declare class GraphqlUI {
30
30
  }) => JSX.Element;
31
31
  readonly renderPlugins: GraphqlRenderPlugins;
32
32
  static runtime: import("@teambit/harmony").RuntimeDefinition;
33
- static dependencies: any[];
34
- static slots: any[];
33
+ static dependencies: never[];
34
+ static slots: never[];
35
35
  static provider(): Promise<GraphqlUI>;
36
36
  }
37
37
  export {};
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.142/dist/graphql.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.142/dist/graphql.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.144/dist/graphql.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.144/dist/graphql.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -19,20 +19,20 @@ export declare class GraphqlRenderPlugins implements SSR.RenderPlugin<RenderCont
19
19
  onBeforeRender: (ctx: RenderContext, app: ReactNode) => Promise<void>;
20
20
  serialize: (ctx?: RenderContext) => {
21
21
  json: string;
22
- };
22
+ } | undefined;
23
23
  deserialize: (raw?: string) => {
24
- state: NormalizedCacheObject;
24
+ state: NormalizedCacheObject | undefined;
25
25
  };
26
26
  private _client;
27
27
  browserInit: ({ state }?: {
28
- state?: NormalizedCacheObject;
28
+ state?: NormalizedCacheObject | undefined;
29
29
  }) => {
30
30
  client: ApolloClient<NormalizedCacheObject>;
31
31
  };
32
32
  getClient(): ApolloClient<NormalizedCacheObject>;
33
33
  private BrowserGqlProvider;
34
34
  reactContext: ({ renderCtx, children }: {
35
- renderCtx?: RenderContext;
35
+ renderCtx?: RenderContext | undefined;
36
36
  children: ReactNode;
37
37
  }) => JSX.Element;
38
38
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/graphql",
3
- "version": "1.0.142",
3
+ "version": "1.0.144",
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.142"
9
+ "version": "1.0.144"
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.848",
36
- "@teambit/logger": "0.0.941",
35
+ "@teambit/cli": "0.0.849",
36
+ "@teambit/logger": "0.0.942",
37
37
  "@teambit/toolbox.network.get-port": "1.0.6",
38
- "@teambit/ui": "1.0.142"
38
+ "@teambit/ui": "1.0.144"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/cors": "2.8.10",
@@ -43,16 +43,15 @@
43
43
  "@types/lodash.pick": "4.4.6",
44
44
  "@types/node-fetch": "2.5.12",
45
45
  "@types/mocha": "9.1.0",
46
- "@types/jest": "^29.2.2",
47
- "@types/testing-library__jest-dom": "^5.9.5",
48
- "@teambit/harmony.envs.core-aspect-env": "0.0.19"
46
+ "chai": "4.3.0",
47
+ "@teambit/harmony.envs.core-aspect-env": "0.0.24"
49
48
  },
50
49
  "peerDependencies": {
51
50
  "@apollo/client": "^3.6.0",
52
51
  "react": "^17.0.0 || ^18.0.0",
53
52
  "react-dom": "^17.0.0 || ^18.0.0",
54
53
  "graphql": "^15.8.0",
55
- "@types/react": "17.0.8",
54
+ "@types/react": "^17.0.73",
56
55
  "@types/react-dom": "^17.0.5",
57
56
  "@teambit/legacy": "1.0.624"
58
57
  },
@@ -68,7 +67,8 @@
68
67
  "default": "./dist/index.js"
69
68
  },
70
69
  "./dist/*": "./dist/*",
71
- "./artifacts/*": "./artifacts/*"
70
+ "./artifacts/*": "./artifacts/*",
71
+ "./*": "./*.ts"
72
72
  },
73
73
  "private": false,
74
74
  "engines": {
package/tsconfig.json CHANGED
@@ -17,7 +17,10 @@
17
17
  "resolveJsonModule": true,
18
18
  "allowJs": true,
19
19
  "outDir": "dist",
20
- "emitDeclarationOnly": true
20
+ "emitDeclarationOnly": true,
21
+ "strict": true,
22
+ "strictPropertyInitialization": false,
23
+ "noImplicitAny": false
21
24
  },
22
25
  "exclude": [
23
26
  "artifacts",