@webiny/app-admin 6.4.12-beta.0 → 6.4.12-beta.2

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,15 @@
1
+ import { GraphQLExtensionsEvent, GraphQLExtensionsEventHandler } from "@webiny/app/features/graphqlClient/index.js";
2
+ /**
3
+ * Collects debug data from responses that did not go through Apollo.
4
+ *
5
+ * Newer parts of Admin - Website Builder among them - use the fetch-based `GraphQLClient` rather
6
+ * than Apollo, and that client returns only `data`. Without this the debugger would silently miss
7
+ * everything they do, which looks identical to capture being broken.
8
+ */
9
+ declare class GraphQLExtensionsDebugHandlerImpl implements GraphQLExtensionsEventHandler.Interface {
10
+ handle(event: GraphQLExtensionsEvent): Promise<void>;
11
+ }
12
+ export declare const GraphQLExtensionsDebugHandler: typeof GraphQLExtensionsDebugHandlerImpl & {
13
+ __abstraction: import("@webiny/di").Abstraction<import("@webiny/app/features/eventPublisher/abstractions.js").IEventHandler<GraphQLExtensionsEvent>>;
14
+ };
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { GraphQLExtensionsEventHandler } from "@webiny/app/features/graphqlClient/index.js";
2
+ import { debuggerStore } from "./DebuggerStore.js";
3
+ class GraphQLExtensionsDebugHandlerImpl {
4
+ async handle(event) {
5
+ const debug = event.payload.extensions.debug;
6
+ if (debug) debuggerStore.collect(debug);
7
+ }
8
+ }
9
+ const GraphQLExtensionsDebugHandler = GraphQLExtensionsEventHandler.createImplementation({
10
+ implementation: GraphQLExtensionsDebugHandlerImpl,
11
+ dependencies: []
12
+ });
13
+ export { GraphQLExtensionsDebugHandler };
14
+
15
+ //# sourceMappingURL=GraphQLExtensionsDebugHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/debugger/GraphQLExtensionsDebugHandler.js","sources":["../../../src/features/debugger/GraphQLExtensionsDebugHandler.ts"],"sourcesContent":["import {\n GraphQLExtensionsEvent,\n GraphQLExtensionsEventHandler\n} from \"@webiny/app/features/graphqlClient/index.js\";\nimport { debuggerStore, type IDebugPayload } from \"./DebuggerStore.js\";\n\n/**\n * Collects debug data from responses that did not go through Apollo.\n *\n * Newer parts of Admin - Website Builder among them - use the fetch-based `GraphQLClient` rather\n * than Apollo, and that client returns only `data`. Without this the debugger would silently miss\n * everything they do, which looks identical to capture being broken.\n */\nclass GraphQLExtensionsDebugHandlerImpl implements GraphQLExtensionsEventHandler.Interface {\n async handle(event: GraphQLExtensionsEvent): Promise<void> {\n const debug = event.payload.extensions.debug as IDebugPayload | undefined;\n\n if (debug) {\n debuggerStore.collect(debug);\n }\n }\n}\n\nexport const GraphQLExtensionsDebugHandler = GraphQLExtensionsEventHandler.createImplementation({\n implementation: GraphQLExtensionsDebugHandlerImpl,\n dependencies: []\n});\n"],"names":["GraphQLExtensionsDebugHandlerImpl","event","debug","debuggerStore","GraphQLExtensionsDebugHandler","GraphQLExtensionsEventHandler"],"mappings":";;AAaA,MAAMA;IACF,MAAM,OAAOC,KAA6B,EAAiB;QACvD,MAAMC,QAAQD,MAAM,OAAO,CAAC,UAAU,CAAC,KAAK;QAE5C,IAAIC,OACAC,cAAc,OAAO,CAACD;IAE9B;AACJ;AAEO,MAAME,gCAAgCC,8BAA8B,oBAAoB,CAAC;IAC5F,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
@@ -4,10 +4,12 @@ import { createFeature } from "@webiny/feature/admin";
4
4
  import { createDebuggerLink } from "./debuggerLink.js";
5
5
  import { debuggerStore } from "./DebuggerStore.js";
6
6
  import { DebuggerPermissionsFeature } from "./permissions.js";
7
+ import { GraphQLExtensionsDebugHandler } from "./GraphQLExtensionsDebugHandler.js";
7
8
  const DebuggerFeature = createFeature({
8
9
  name: "Debugger",
9
10
  register (container) {
10
11
  DebuggerPermissionsFeature.register(container);
12
+ container.register(GraphQLExtensionsDebugHandler).inSingletonScope();
11
13
  plugins.register(new ApolloLinkPlugin(()=>createDebuggerLink(debuggerStore)));
12
14
  }
13
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"features/debugger/feature.js","sources":["../../../src/features/debugger/feature.ts"],"sourcesContent":["import { ApolloLinkPlugin } from \"@webiny/app\";\nimport { plugins } from \"@webiny/plugins\";\nimport { createFeature } from \"@webiny/feature/admin\";\nimport { createDebuggerLink } from \"./debuggerLink.js\";\nimport { debuggerStore } from \"./DebuggerStore.js\";\nimport { DebuggerPermissionsFeature } from \"./permissions.js\";\n\nexport const DebuggerFeature = createFeature({\n name: \"Debugger\",\n register(container) {\n DebuggerPermissionsFeature.register(container);\n\n /**\n * The link is always registered; whether it does anything is decided per request from the\n * toggle. Registering conditionally would mean the link never appears for a toggle flipped\n * after start-up.\n */\n plugins.register(new ApolloLinkPlugin(() => createDebuggerLink(debuggerStore)));\n }\n});\n"],"names":["DebuggerFeature","createFeature","container","DebuggerPermissionsFeature","plugins","ApolloLinkPlugin","createDebuggerLink","debuggerStore"],"mappings":";;;;;;AAOO,MAAMA,kBAAkBC,cAAc;IACzC,MAAM;IACN,UAASC,SAAS;QACdC,2BAA2B,QAAQ,CAACD;QAOpCE,QAAQ,QAAQ,CAAC,IAAIC,iBAAiB,IAAMC,mBAAmBC;IACnE;AACJ"}
1
+ {"version":3,"file":"features/debugger/feature.js","sources":["../../../src/features/debugger/feature.ts"],"sourcesContent":["import { ApolloLinkPlugin } from \"@webiny/app\";\nimport { plugins } from \"@webiny/plugins\";\nimport { createFeature } from \"@webiny/feature/admin\";\nimport { createDebuggerLink } from \"./debuggerLink.js\";\nimport { debuggerStore } from \"./DebuggerStore.js\";\nimport { DebuggerPermissionsFeature } from \"./permissions.js\";\nimport { GraphQLExtensionsDebugHandler } from \"./GraphQLExtensionsDebugHandler.js\";\n\nexport const DebuggerFeature = createFeature({\n name: \"Debugger\",\n register(container) {\n DebuggerPermissionsFeature.register(container);\n\n /**\n * Collects from the fetch-based client, which Apollo links never see.\n */\n container.register(GraphQLExtensionsDebugHandler).inSingletonScope();\n\n /**\n * The link is always registered; whether it does anything is decided per request from the\n * toggle. Registering conditionally would mean the link never appears for a toggle flipped\n * after start-up.\n */\n plugins.register(new ApolloLinkPlugin(() => createDebuggerLink(debuggerStore)));\n }\n});\n"],"names":["DebuggerFeature","createFeature","container","DebuggerPermissionsFeature","GraphQLExtensionsDebugHandler","plugins","ApolloLinkPlugin","createDebuggerLink","debuggerStore"],"mappings":";;;;;;;AAQO,MAAMA,kBAAkBC,cAAc;IACzC,MAAM;IACN,UAASC,SAAS;QACdC,2BAA2B,QAAQ,CAACD;QAKpCA,UAAU,QAAQ,CAACE,+BAA+B,gBAAgB;QAOlEC,QAAQ,QAAQ,CAAC,IAAIC,iBAAiB,IAAMC,mBAAmBC;IACnE;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin",
3
- "version": "6.4.12-beta.0",
3
+ "version": "6.4.12-beta.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -25,24 +25,24 @@
25
25
  "@lexical/utils": "0.46.0",
26
26
  "@svgr/webpack": "8.1.0",
27
27
  "@types/react": "18.3.31",
28
- "@webiny/admin-ui": "6.4.12-beta.0",
29
- "@webiny/app": "6.4.12-beta.0",
28
+ "@webiny/admin-ui": "6.4.12-beta.2",
29
+ "@webiny/app": "6.4.12-beta.2",
30
30
  "@webiny/di": "1.1.0",
31
- "@webiny/feature": "6.4.12-beta.0",
32
- "@webiny/form": "6.4.12-beta.0",
33
- "@webiny/icons": "6.4.12-beta.0",
34
- "@webiny/lexical-converter": "6.4.12-beta.0",
35
- "@webiny/lexical-editor": "6.4.12-beta.0",
36
- "@webiny/lexical-nodes": "6.4.12-beta.0",
37
- "@webiny/lexical-theme": "6.4.12-beta.0",
38
- "@webiny/plugins": "6.4.12-beta.0",
39
- "@webiny/react-composition": "6.4.12-beta.0",
40
- "@webiny/react-properties": "6.4.12-beta.0",
41
- "@webiny/sdk": "6.4.12-beta.0",
42
- "@webiny/telemetry": "6.4.12-beta.0",
43
- "@webiny/utils": "6.4.12-beta.0",
44
- "@webiny/validation": "6.4.12-beta.0",
45
- "@webiny/wcp": "6.4.12-beta.0",
31
+ "@webiny/feature": "6.4.12-beta.2",
32
+ "@webiny/form": "6.4.12-beta.2",
33
+ "@webiny/icons": "6.4.12-beta.2",
34
+ "@webiny/lexical-converter": "6.4.12-beta.2",
35
+ "@webiny/lexical-editor": "6.4.12-beta.2",
36
+ "@webiny/lexical-nodes": "6.4.12-beta.2",
37
+ "@webiny/lexical-theme": "6.4.12-beta.2",
38
+ "@webiny/plugins": "6.4.12-beta.2",
39
+ "@webiny/react-composition": "6.4.12-beta.2",
40
+ "@webiny/react-properties": "6.4.12-beta.2",
41
+ "@webiny/sdk": "6.4.12-beta.2",
42
+ "@webiny/telemetry": "6.4.12-beta.2",
43
+ "@webiny/utils": "6.4.12-beta.2",
44
+ "@webiny/validation": "6.4.12-beta.2",
45
+ "@webiny/wcp": "6.4.12-beta.2",
46
46
  "apollo-cache": "1.3.5",
47
47
  "apollo-client": "2.6.10",
48
48
  "apollo-link": "1.2.14",
@@ -81,7 +81,7 @@
81
81
  "@types/react-transition-group": "4.4.12",
82
82
  "@types/store": "2.0.5",
83
83
  "@types/tinycolor2": "1.4.6",
84
- "@webiny/build-tools": "6.4.12-beta.0",
84
+ "@webiny/build-tools": "6.4.12-beta.2",
85
85
  "rimraf": "6.1.3",
86
86
  "typescript": "6.0.3",
87
87
  "vitest": "5.0.1"