@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.
- package/artifacts/__bit_junit.xml +4 -0
- package/artifacts/preview/teambit_harmony_graphql-preview.js +1 -1
- package/dist/graphql-error.d.ts +2 -2
- package/dist/graphql.composition.d.ts +1 -0
- package/dist/graphql.main.runtime.d.ts +1 -1
- package/dist/graphql.ui.runtime.d.ts +2 -2
- package/dist/{preview-1705806923881.js → preview-1706239131657.js} +2 -2
- package/dist/render-lifecycle.d.ts +4 -4
- package/package.json +10 -10
- package/tsconfig.json +4 -1
|
@@ -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={
|
|
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})()));
|
package/dist/graphql-error.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -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:
|
|
34
|
-
static slots:
|
|
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.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.
|
|
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.
|
|
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.
|
|
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.
|
|
36
|
-
"@teambit/logger": "0.0.
|
|
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.
|
|
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
|
-
"
|
|
47
|
-
"@
|
|
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.
|
|
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",
|