@cedarjs/web 5.0.3 → 5.0.4-next.167

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.
Files changed (188) hide show
  1. package/dist/apollo/ApolloProviderWithFetchConfig.d.ts +15 -0
  2. package/dist/apollo/ApolloProviderWithFetchConfig.d.ts.map +1 -0
  3. package/dist/apollo/ApolloProviderWithFetchConfig.js +134 -0
  4. package/dist/apollo/CedarApolloProvider.d.ts +14 -0
  5. package/dist/apollo/CedarApolloProvider.d.ts.map +1 -0
  6. package/dist/apollo/CedarApolloProvider.js +35 -0
  7. package/dist/apollo/ErrorBoundary.d.ts +13 -0
  8. package/dist/apollo/ErrorBoundary.d.ts.map +1 -0
  9. package/dist/apollo/ErrorBoundary.js +13 -0
  10. package/dist/{cjs/apollo/suspense.d.ts → apollo/apolloLinkTypes.d.ts} +22 -22
  11. package/dist/apollo/apolloLinkTypes.d.ts.map +1 -0
  12. package/dist/apollo/fragmentRegistry.d.ts +25 -0
  13. package/dist/apollo/fragmentRegistry.d.ts.map +1 -1
  14. package/dist/apollo/fragmentRegistry.js +19 -1
  15. package/dist/apollo/index.d.ts +50 -70
  16. package/dist/apollo/index.d.ts.map +1 -1
  17. package/dist/apollo/index.js +2 -184
  18. package/dist/apollo/suspense.d.ts +16 -7
  19. package/dist/apollo/suspense.d.ts.map +1 -1
  20. package/dist/apollo/suspense.js +9 -26
  21. package/dist/bins/cedar.js +14 -0
  22. package/dist/bins/cfw.js +14 -0
  23. package/dist/bins/cross-env.js +8 -0
  24. package/dist/bins/msw.js +6 -0
  25. package/dist/bins/redwood.js +14 -0
  26. package/dist/bins/storybook.js +27 -0
  27. package/dist/bins/tsc.js +8 -0
  28. package/dist/bundled/apollo-upload-client.js +2899 -1
  29. package/dist/components/FetchConfigProvider.d.ts +3 -2
  30. package/dist/components/FetchConfigProvider.d.ts.map +1 -1
  31. package/dist/components/cell/CellErrorBoundary.d.ts +3 -2
  32. package/dist/components/cell/CellErrorBoundary.d.ts.map +1 -1
  33. package/dist/components/cell/cellTypes.d.ts +17 -4
  34. package/dist/components/cell/cellTypes.d.ts.map +1 -1
  35. package/dist/components/cell/createCell.d.ts +1 -7
  36. package/dist/components/cell/createCell.d.ts.map +1 -1
  37. package/dist/components/cell/createCell.js +22 -3
  38. package/dist/components/cell/createFragmentCell.d.ts +19 -0
  39. package/dist/components/cell/createFragmentCell.d.ts.map +1 -0
  40. package/dist/components/cell/createFragmentCell.js +73 -0
  41. package/dist/components/cell/createSuspendingCell.d.ts.map +1 -1
  42. package/dist/components/cell/createSuspendingCell.js +12 -3
  43. package/dist/global.web-auto-imports.d.ts +0 -16
  44. package/dist/global.web-auto-imports.d.ts.map +1 -1
  45. package/dist/index.d.ts +5 -2
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +5 -3
  48. package/package.json +48 -106
  49. package/dist/apollo/typeOverride.d.ts +0 -21
  50. package/dist/apollo/typeOverride.d.ts.map +0 -1
  51. package/dist/cjs/apollo/fragmentRegistry.d.ts +0 -43
  52. package/dist/cjs/apollo/fragmentRegistry.d.ts.map +0 -1
  53. package/dist/cjs/apollo/fragmentRegistry.js +0 -75
  54. package/dist/cjs/apollo/index.d.ts +0 -76
  55. package/dist/cjs/apollo/index.d.ts.map +0 -1
  56. package/dist/cjs/apollo/index.js +0 -218
  57. package/dist/cjs/apollo/links.d.ts +0 -27
  58. package/dist/cjs/apollo/links.d.ts.map +0 -1
  59. package/dist/cjs/apollo/links.js +0 -122
  60. package/dist/cjs/apollo/sseLink.d.ts +0 -29
  61. package/dist/cjs/apollo/sseLink.d.ts.map +0 -1
  62. package/dist/cjs/apollo/sseLink.js +0 -120
  63. package/dist/cjs/apollo/suspense.d.ts.map +0 -1
  64. package/dist/cjs/apollo/suspense.js +0 -127
  65. package/dist/cjs/apollo/typeOverride.d.ts +0 -21
  66. package/dist/cjs/apollo/typeOverride.d.ts.map +0 -1
  67. package/dist/cjs/apollo/typeOverride.js +0 -16
  68. package/dist/cjs/apollo/useCache.d.ts +0 -22
  69. package/dist/cjs/apollo/useCache.d.ts.map +0 -1
  70. package/dist/cjs/apollo/useCache.js +0 -49
  71. package/dist/cjs/bins/cedar.d.ts +0 -9
  72. package/dist/cjs/bins/cedar.d.ts.map +0 -1
  73. package/dist/cjs/bins/cedar.js +0 -36
  74. package/dist/cjs/bins/cfw.d.ts +0 -3
  75. package/dist/cjs/bins/cfw.d.ts.map +0 -1
  76. package/dist/cjs/bins/cfw.js +0 -36
  77. package/dist/cjs/bins/cross-env.d.ts +0 -3
  78. package/dist/cjs/bins/cross-env.d.ts.map +0 -1
  79. package/dist/cjs/bins/cross-env.js +0 -30
  80. package/dist/cjs/bins/msw.d.ts +0 -3
  81. package/dist/cjs/bins/msw.d.ts.map +0 -1
  82. package/dist/cjs/bins/msw.js +0 -28
  83. package/dist/cjs/bins/redwood.d.ts +0 -9
  84. package/dist/cjs/bins/redwood.d.ts.map +0 -1
  85. package/dist/cjs/bins/redwood.js +0 -36
  86. package/dist/cjs/bins/storybook.d.ts +0 -3
  87. package/dist/cjs/bins/storybook.d.ts.map +0 -1
  88. package/dist/cjs/bins/storybook.js +0 -49
  89. package/dist/cjs/bins/tsc.d.ts +0 -3
  90. package/dist/cjs/bins/tsc.d.ts.map +0 -1
  91. package/dist/cjs/bins/tsc.js +0 -30
  92. package/dist/cjs/bundled/apollo-upload-client.d.ts +0 -3
  93. package/dist/cjs/bundled/apollo-upload-client.d.ts.map +0 -1
  94. package/dist/cjs/bundled/apollo-upload-client.js +0 -2925
  95. package/dist/cjs/components/DevFatalErrorPage.d.ts +0 -21
  96. package/dist/cjs/components/DevFatalErrorPage.d.ts.map +0 -1
  97. package/dist/cjs/components/DevFatalErrorPage.js +0 -552
  98. package/dist/cjs/components/FatalErrorBoundary.d.ts +0 -24
  99. package/dist/cjs/components/FatalErrorBoundary.d.ts.map +0 -1
  100. package/dist/cjs/components/FatalErrorBoundary.js +0 -63
  101. package/dist/cjs/components/FetchConfigProvider.d.ts +0 -25
  102. package/dist/cjs/components/FetchConfigProvider.d.ts.map +0 -1
  103. package/dist/cjs/components/FetchConfigProvider.js +0 -80
  104. package/dist/cjs/components/GraphQLHooksProvider.d.ts +0 -45
  105. package/dist/cjs/components/GraphQLHooksProvider.d.ts.map +0 -1
  106. package/dist/cjs/components/GraphQLHooksProvider.js +0 -135
  107. package/dist/cjs/components/MetaTags.d.ts +0 -52
  108. package/dist/cjs/components/MetaTags.d.ts.map +0 -1
  109. package/dist/cjs/components/MetaTags.js +0 -68
  110. package/dist/cjs/components/Metadata.d.ts +0 -9
  111. package/dist/cjs/components/Metadata.d.ts.map +0 -1
  112. package/dist/cjs/components/Metadata.js +0 -94
  113. package/dist/cjs/components/PortalHead.d.ts +0 -4
  114. package/dist/cjs/components/PortalHead.d.ts.map +0 -1
  115. package/dist/cjs/components/PortalHead.js +0 -59
  116. package/dist/cjs/components/RedwoodProvider.d.ts +0 -9
  117. package/dist/cjs/components/RedwoodProvider.d.ts.map +0 -1
  118. package/dist/cjs/components/RedwoodProvider.js +0 -57
  119. package/dist/cjs/components/ServerInject.d.ts +0 -26
  120. package/dist/cjs/components/ServerInject.d.ts.map +0 -1
  121. package/dist/cjs/components/ServerInject.js +0 -75
  122. package/dist/cjs/components/cell/CellCacheContext.d.ts +0 -20
  123. package/dist/cjs/components/cell/CellCacheContext.d.ts.map +0 -1
  124. package/dist/cjs/components/cell/CellCacheContext.js +0 -53
  125. package/dist/cjs/components/cell/CellErrorBoundary.d.ts +0 -25
  126. package/dist/cjs/components/cell/CellErrorBoundary.d.ts.map +0 -1
  127. package/dist/cjs/components/cell/CellErrorBoundary.js +0 -66
  128. package/dist/cjs/components/cell/cellTypes.d.ts +0 -152
  129. package/dist/cjs/components/cell/cellTypes.d.ts.map +0 -1
  130. package/dist/cjs/components/cell/cellTypes.js +0 -16
  131. package/dist/cjs/components/cell/createCell.d.ts +0 -10
  132. package/dist/cjs/components/cell/createCell.d.ts.map +0 -1
  133. package/dist/cjs/components/cell/createCell.js +0 -165
  134. package/dist/cjs/components/cell/createCell.test.js +0 -351
  135. package/dist/cjs/components/cell/createServerCell.d.ts +0 -15
  136. package/dist/cjs/components/cell/createServerCell.d.ts.map +0 -1
  137. package/dist/cjs/components/cell/createServerCell.js +0 -91
  138. package/dist/cjs/components/cell/createSuspendingCell.d.ts +0 -11
  139. package/dist/cjs/components/cell/createSuspendingCell.d.ts.map +0 -1
  140. package/dist/cjs/components/cell/createSuspendingCell.js +0 -152
  141. package/dist/cjs/components/cell/createSuspendingCell.test.js +0 -115
  142. package/dist/cjs/components/cell/isCellEmpty.d.ts +0 -41
  143. package/dist/cjs/components/cell/isCellEmpty.d.ts.map +0 -1
  144. package/dist/cjs/components/cell/isCellEmpty.js +0 -35
  145. package/dist/cjs/components/htmlTags.d.ts +0 -52
  146. package/dist/cjs/components/htmlTags.d.ts.map +0 -1
  147. package/dist/cjs/components/htmlTags.js +0 -88
  148. package/dist/cjs/config.d.ts +0 -2
  149. package/dist/cjs/config.d.ts.map +0 -1
  150. package/dist/cjs/config.js +0 -6
  151. package/dist/cjs/global.web-auto-imports.d.ts +0 -30
  152. package/dist/cjs/global.web-auto-imports.d.ts.map +0 -1
  153. package/dist/cjs/global.web-auto-imports.js +0 -16
  154. package/dist/cjs/graphql.d.ts +0 -23
  155. package/dist/cjs/graphql.d.ts.map +0 -1
  156. package/dist/cjs/graphql.js +0 -36
  157. package/dist/cjs/index.d.ts +0 -19
  158. package/dist/cjs/index.d.ts.map +0 -1
  159. package/dist/cjs/index.js +0 -69
  160. package/dist/cjs/package.json +0 -1
  161. package/dist/cjs/routeHooks.types.d.ts +0 -12
  162. package/dist/cjs/routeHooks.types.d.ts.map +0 -1
  163. package/dist/cjs/routeHooks.types.js +0 -16
  164. package/dist/cjs/server/MiddlewareRequest.d.ts +0 -28
  165. package/dist/cjs/server/MiddlewareRequest.d.ts.map +0 -1
  166. package/dist/cjs/server/MiddlewareRequest.js +0 -71
  167. package/dist/cjs/server/MiddlewareResponse.d.ts +0 -44
  168. package/dist/cjs/server/MiddlewareResponse.d.ts.map +0 -1
  169. package/dist/cjs/server/MiddlewareResponse.js +0 -130
  170. package/dist/cjs/server/middleware.d.ts +0 -17
  171. package/dist/cjs/server/middleware.d.ts.map +0 -1
  172. package/dist/cjs/server/middleware.js +0 -24
  173. package/dist/cjs/server/request.d.ts +0 -2
  174. package/dist/cjs/server/request.d.ts.map +0 -1
  175. package/dist/cjs/server/request.js +0 -34
  176. package/dist/cjs/streamUtils/useDocumentReady.d.ts +0 -11
  177. package/dist/cjs/streamUtils/useDocumentReady.d.ts.map +0 -1
  178. package/dist/cjs/streamUtils/useDocumentReady.js +0 -41
  179. package/dist/cjs/toast/index.d.ts +0 -3
  180. package/dist/cjs/toast/index.d.ts.map +0 -1
  181. package/dist/cjs/toast/index.js +0 -41
  182. package/dist/components/GraphQLHooksProvider.d.ts +0 -45
  183. package/dist/components/GraphQLHooksProvider.d.ts.map +0 -1
  184. package/dist/components/GraphQLHooksProvider.js +0 -94
  185. package/dist/components/cell/createCell.test.js +0 -328
  186. package/dist/components/cell/createSuspendingCell.test.js +0 -92
  187. package/dist/package.json +0 -1
  188. /package/dist/apollo/{typeOverride.js → apolloLinkTypes.js} +0 -0
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var RedwoodProvider_exports = {};
30
- __export(RedwoodProvider_exports, {
31
- RedwoodProvider: () => RedwoodProvider
32
- });
33
- module.exports = __toCommonJS(RedwoodProvider_exports);
34
- var import_react = __toESM(require("react"), 1);
35
- var import_react_helmet = require("@dr.pogodin/react-helmet");
36
- const RedwoodProvider = ({
37
- children,
38
- titleTemplate
39
- }) => {
40
- const appTitle = globalThis.__REDWOOD__APP_TITLE;
41
- const template = () => {
42
- if (titleTemplate) {
43
- let template2 = titleTemplate.replace(/%AppTitle/g, appTitle);
44
- template2 = template2.replace(/%PageTitle/g, "%s");
45
- return template2;
46
- }
47
- return "";
48
- };
49
- if (RWJS_ENV.RWJS_EXP_STREAMING_SSR) {
50
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, children);
51
- }
52
- return /* @__PURE__ */ import_react.default.createElement(import_react_helmet.HelmetProvider, { context: globalThis.__REDWOOD__HELMET_CONTEXT }, /* @__PURE__ */ import_react.default.createElement(import_react_helmet.Helmet, { titleTemplate: template(), defaultTitle: appTitle }, /* @__PURE__ */ import_react.default.createElement("title", null, appTitle)), children);
53
- };
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- RedwoodProvider
57
- });
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Inspired by Next's useServerInsertedHTML, originally designed for CSS-in-JS
4
- * for now it seems the only way to inject html with streaming is to use a context
5
- *
6
- * We use this for <head> tags, and for apollo cache hydration
7
- *
8
- * Until https://github.com/reactjs/rfcs/pull/219 makes it into react
9
- */
10
- export type RenderCallback = () => React.ReactNode;
11
- export declare const ServerHtmlContext: React.Context<(callback: RenderCallback) => void>;
12
- /**
13
- * Use this factory, once per request.
14
- * This is to ensure that injectionState is isolated to the request
15
- * and not shared between requests.
16
- */
17
- export declare const createInjector: () => {
18
- injectToPage: (renderCallback: RenderCallback) => void;
19
- injectionState: Set<RenderCallback>;
20
- };
21
- export declare const ServerHtmlProvider: React.Provider<(callback: RenderCallback) => void>;
22
- export declare const ServerInjectedHtml: ({ injectionState, }: {
23
- injectionState: Set<RenderCallback>;
24
- }) => React.JSX.Element[];
25
- export declare function useServerInsertedHTML(callback: () => React.ReactNode): void;
26
- //# sourceMappingURL=ServerInject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerInject.d.ts","sourceRoot":"","sources":["../../../src/components/ServerInject.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAA;AAEzE;;;;;;;GAOG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,SAAS,CAAA;AAElD,eAAO,MAAM,iBAAiB,2BACjB,cAAc,KAAK,IAAI,CACzB,CAAA;AAEX;;;;GAIG;AACH,eAAO,MAAM,cAAc;mCAGa,cAAc;;CAKrD,CAAA;AAKD,eAAO,MAAM,kBAAkB,4BArBlB,cAAc,KAAK,IAAI,CAqBwB,CAAA;AAE5D,eAAO,MAAM,kBAAkB,GAAI,qBAEhC;IACD,cAAc,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CACpC,wBAgBA,CAAA;AAGD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,KAAK,CAAC,SAAS,GAAG,IAAI,CAO3E"}
@@ -1,75 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var ServerInject_exports = {};
30
- __export(ServerInject_exports, {
31
- ServerHtmlContext: () => ServerHtmlContext,
32
- ServerHtmlProvider: () => ServerHtmlProvider,
33
- ServerInjectedHtml: () => ServerInjectedHtml,
34
- createInjector: () => createInjector,
35
- useServerInsertedHTML: () => useServerInsertedHTML
36
- });
37
- module.exports = __toCommonJS(ServerInject_exports);
38
- var import_react = __toESM(require("react"), 1);
39
- const ServerHtmlContext = (0, import_react.createContext)(() => {
40
- });
41
- const createInjector = () => {
42
- const injectionState = /* @__PURE__ */ new Set([]);
43
- const injectToPage = (renderCallback) => {
44
- injectionState.add(renderCallback);
45
- };
46
- return { injectToPage, injectionState };
47
- };
48
- const ServerHtmlProvider = ServerHtmlContext.Provider;
49
- const ServerInjectedHtml = ({
50
- injectionState
51
- }) => {
52
- const serverInsertedHtml = [];
53
- for (const callback of injectionState) {
54
- serverInsertedHtml.push(callback());
55
- injectionState.delete(callback);
56
- }
57
- const fragmentId = (0, import_react.useId)();
58
- return serverInsertedHtml.map((html, i) => {
59
- return /* @__PURE__ */ import_react.default.createElement(import_react.Fragment, { key: `rw-server-inserted-${fragmentId}-${i}` }, html);
60
- });
61
- };
62
- function useServerInsertedHTML(callback) {
63
- const addInsertedServerHTMLCallback = (0, import_react.useContext)(ServerHtmlContext);
64
- if (addInsertedServerHTMLCallback) {
65
- addInsertedServerHTMLCallback(callback);
66
- }
67
- }
68
- // Annotate the CommonJS export names for ESM import in node:
69
- 0 && (module.exports = {
70
- ServerHtmlContext,
71
- ServerHtmlProvider,
72
- ServerInjectedHtml,
73
- createInjector,
74
- useServerInsertedHTML
75
- });
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { DocumentNode } from 'graphql';
3
- export interface QueryInfo {
4
- query: DocumentNode;
5
- variables?: Record<string, unknown>;
6
- renderLoading?: boolean;
7
- hasProcessed: boolean;
8
- data?: unknown;
9
- }
10
- export interface CellCacheState {
11
- queryCache: Record<string, QueryInfo | undefined>;
12
- }
13
- interface Props {
14
- queryCache: Record<string, QueryInfo | undefined>;
15
- children?: React.ReactNode;
16
- }
17
- export declare const CellCacheContextProvider: ({ queryCache, children }: Props) => React.JSX.Element;
18
- export declare function useCellCacheContext(): CellCacheState;
19
- export {};
20
- //# sourceMappingURL=CellCacheContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellCacheContext.d.ts","sourceRoot":"","sources":["../../../../src/components/cell/CellCacheContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC,CAAA;CAClD;AAID,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC,CAAA;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,wBAAwB,GAAI,0BAA0B,KAAK,sBAMvE,CAAA;AAED,wBAAgB,mBAAmB,mBAUlC"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var CellCacheContext_exports = {};
30
- __export(CellCacheContext_exports, {
31
- CellCacheContextProvider: () => CellCacheContextProvider,
32
- useCellCacheContext: () => useCellCacheContext
33
- });
34
- module.exports = __toCommonJS(CellCacheContext_exports);
35
- var import_react = __toESM(require("react"), 1);
36
- const CellCacheContext = (0, import_react.createContext)(void 0);
37
- const CellCacheContextProvider = ({ queryCache, children }) => {
38
- return /* @__PURE__ */ import_react.default.createElement(CellCacheContext.Provider, { value: { queryCache } }, children);
39
- };
40
- function useCellCacheContext() {
41
- const context = (0, import_react.useContext)(CellCacheContext);
42
- if (!context) {
43
- throw new Error(
44
- "useCellCacheContext must be used within a CellCacheContextProvider"
45
- );
46
- }
47
- return context;
48
- }
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- CellCacheContextProvider,
52
- useCellCacheContext
53
- });
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import type { CellFailureProps } from './cellTypes.js';
3
- export type FallbackProps = {
4
- error: QueryOperationResult['error'];
5
- resetErrorBoundary: () => void;
6
- };
7
- export type CellErrorBoundaryProps = {
8
- renderFallback: (fbProps: FallbackProps) => React.ReactElement<CellFailureProps>;
9
- children: React.ReactNode;
10
- };
11
- interface ErrState {
12
- hasError: boolean;
13
- error?: QueryOperationResult['error'];
14
- }
15
- export declare class CellErrorBoundary extends React.Component<CellErrorBoundaryProps, ErrState> {
16
- constructor(props: CellErrorBoundaryProps);
17
- static getDerivedStateFromError(error: Error): {
18
- hasError: boolean;
19
- error: Error;
20
- };
21
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
22
- render(): React.ReactNode;
23
- }
24
- export {};
25
- //# sourceMappingURL=CellErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/cell/CellErrorBoundary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAA;IACpC,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IAGnC,cAAc,EAAE,CACd,OAAO,EAAE,aAAa,KACnB,KAAK,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAA;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,UAAU,QAAQ;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAA;CACtC;AAED,qBAAa,iBAAkB,SAAQ,KAAK,CAAC,SAAS,CACpD,sBAAsB,EACtB,QAAQ,CACT;gBACa,KAAK,EAAE,sBAAsB;IAKzC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK;;;;IAI5C,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;IAQ1D,MAAM;CAgBP"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var CellErrorBoundary_exports = {};
31
- __export(CellErrorBoundary_exports, {
32
- CellErrorBoundary: () => CellErrorBoundary
33
- });
34
- module.exports = __toCommonJS(CellErrorBoundary_exports);
35
- var import_react = __toESM(require("react"), 1);
36
- class CellErrorBoundary extends import_react.default.Component {
37
- constructor(props) {
38
- super(props);
39
- this.state = { hasError: false };
40
- }
41
- static getDerivedStateFromError(error) {
42
- return { hasError: true, error };
43
- }
44
- componentDidCatch(error, errorInfo) {
45
- console.log("Cell failure: ", {
46
- error,
47
- errorInfo
48
- });
49
- }
50
- render() {
51
- const { renderFallback } = this.props;
52
- if (this.state.hasError) {
53
- return renderFallback({
54
- error: this.state.error,
55
- resetErrorBoundary: () => {
56
- this.setState({ hasError: false, error: void 0 });
57
- }
58
- });
59
- }
60
- return this.props.children;
61
- }
62
- }
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {
65
- CellErrorBoundary
66
- });
@@ -1,152 +0,0 @@
1
- import type { ComponentProps, JSXElementConstructor } from 'react';
2
- import type { ApolloClient, NetworkStatus, OperationVariables, QueryRef, UseBackgroundQueryResult } from '@apollo/client';
3
- import type { DocumentNode } from 'graphql';
4
- import type { A, L, O, U } from 'ts-toolbelt';
5
- /**
6
- * If the Cell has a `beforeQuery` function, then the variables are not required,
7
- * but instead the arguments of the `beforeQuery` function are required.
8
- *
9
- * If the Cell does not have a `beforeQuery` function, then the variables are required.
10
- *
11
- * Note that a query that doesn't take any variables is defined as {[x: string]: never}
12
- * The ternary at the end makes sure we don't include it, otherwise it won't allow merging any
13
- * other custom props from the Success component.
14
- */
15
- type CellPropsVariables<Cell, GQLVariables> = Cell extends {
16
- beforeQuery: (...args: any[]) => any;
17
- } ? Parameters<Cell['beforeQuery']>[0] extends unknown ? Record<string, unknown> : Parameters<Cell['beforeQuery']>[0] : GQLVariables extends Record<string, never> ? unknown : GQLVariables;
18
- /**
19
- * Cell component props which is the combination of query variables and Success props.
20
- */
21
- export type CellProps<CellSuccess extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>, GQLResult, CellType, GQLVariables> = A.Compute<Omit<ComponentProps<CellSuccess>, keyof CellPropsVariables<CellType, GQLVariables> | keyof GQLResult | 'updating' | 'queryResult'> & CellPropsVariables<CellType, GQLVariables>>;
22
- type InputVarProps<T> = T extends {
23
- [key: string]: never;
24
- } ? unknown : T;
25
- export type CellLoadingProps<TVariables extends OperationVariables = any> = {
26
- queryResult?: NonSuspenseCellQueryResult<TVariables, any> | SuspenseCellQueryResult;
27
- } & InputVarProps<TVariables>;
28
- export type CellFailureProps<TVariables extends OperationVariables = any> = {
29
- queryResult?: NonSuspenseCellQueryResult<TVariables, any> | SuspenseCellQueryResult;
30
- error?: QueryOperationResult['error'] | Error;
31
- /**
32
- * @see {@link https://www.apollographql.com/docs/apollo-server/data/errors/#error-codes}
33
- */
34
- errorCode?: string;
35
- updating?: boolean;
36
- } & InputVarProps<TVariables>;
37
- type Guaranteed<T> = {
38
- [K in keyof T]-?: NonNullable<T[K]>;
39
- };
40
- type KeyCount<T extends object> = L.Length<U.ListOf<O.SelectKeys<T, any>>>;
41
- type ConditionallyGuaranteed<T extends object> = KeyCount<T> extends 1 ? Guaranteed<T> : T;
42
- /**
43
- * @param TData - Type of data based on your graphql query. This can be imported
44
- * from 'types/graphql'
45
- *
46
- * @example
47
- * import type { FindPosts } from 'types/graphql'
48
- *
49
- * const { post }: CellSuccessData<FindPosts> = props
50
- */
51
- export type CellSuccessData<TData = any> = ConditionallyGuaranteed<Omit<TData, '__typename'>>;
52
- /**
53
- * @MARK not sure about this partial, but we need to do this for tests and storybook.
54
- *
55
- * `updating` is just `loading` renamed; since Cells default to stale-while-refetch,
56
- * this prop lets users render something like a spinner to show that a request is in-flight.
57
- */
58
- export type CellSuccessProps<TData = any, TVariables extends OperationVariables = any> = {
59
- queryResult?: NonSuspenseCellQueryResult<TVariables, TData> | SuspenseCellQueryResult;
60
- updating?: boolean;
61
- } & InputVarProps<TVariables> & A.Compute<CellSuccessData<TData>>;
62
- /**
63
- * A coarse type for the `data` prop returned by `useQuery`.
64
- *
65
- * ```js
66
- * {
67
- * data: {
68
- * post: { ... }
69
- * }
70
- * }
71
- * ```
72
- */
73
- export type DataObject = {
74
- [key: string]: unknown;
75
- };
76
- /**
77
- * The main interface.
78
- */
79
- export interface CreateCellProps<CellProps, CellVariables> {
80
- /**
81
- * The GraphQL syntax tree to execute or function to call that returns it.
82
- * If `QUERY` is a function, it's called with the result of `beforeQuery`.
83
- */
84
- QUERY: DocumentNode | ((variables: Record<string, unknown>) => DocumentNode);
85
- /**
86
- * Parse `props` into query variables. Most of the time `props` are appropriate variables as is.
87
- */
88
- beforeQuery?: ((props: CellProps) => {
89
- variables: CellVariables;
90
- }) | (() => {
91
- variables: CellVariables;
92
- });
93
- /**
94
- * Sanitize the data returned from the query.
95
- */
96
- afterQuery?: (data: DataObject) => DataObject;
97
- /**
98
- * How to decide if the result of a query should render the `Empty` component.
99
- * The default implementation checks that the first field isn't `null` or an empty array.
100
- *
101
- * @example
102
- *
103
- * In the example below, only `users` is checked:
104
- *
105
- * ```js
106
- * export const QUERY = gql`
107
- * users {
108
- * name
109
- * }
110
- * posts {
111
- * title
112
- * }
113
- * `
114
- * ```
115
- */
116
- isEmpty?: (response: DataObject, options: {
117
- isDataEmpty: (data: DataObject) => boolean;
118
- }) => boolean;
119
- /**
120
- * If the query's in flight and there's no stale data, render this.
121
- */
122
- Loading?: React.FC<CellLoadingProps & Partial<CellProps>>;
123
- /**
124
- * If something went wrong, render this.
125
- */
126
- Failure?: React.FC<CellFailureProps & Partial<CellProps>>;
127
- /**
128
- * If no data was returned, render this.
129
- */
130
- Empty?: React.FC<CellSuccessProps & Partial<CellProps>>;
131
- /**
132
- * If data was returned, render this.
133
- */
134
- Success: React.FC<CellSuccessProps & Partial<CellProps>>;
135
- /**
136
- * What to call the Cell. Defaults to the filename.
137
- */
138
- displayName?: string;
139
- }
140
- export type SuspendingSuccessProps = React.PropsWithChildren<Record<string, unknown>> & {
141
- queryRef: QueryRef<DataObject>;
142
- suspenseQueryResult: SuspenseCellQueryResult<DataObject, any>;
143
- userProps: Record<string, any>;
144
- };
145
- export type NonSuspenseCellQueryResult<TVariables extends OperationVariables = any, TData = any> = Partial<Omit<QueryOperationResult<TData, TVariables>, 'loading' | 'error' | 'data'>>;
146
- export interface SuspenseCellQueryResult<_TData = any, _TVariables extends OperationVariables = any> extends UseBackgroundQueryResult {
147
- client: ApolloClient<any>;
148
- networkStatus?: NetworkStatus;
149
- called: boolean;
150
- }
151
- export {};
152
- //# sourceMappingURL=cellTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cellTypes.d.ts","sourceRoot":"","sources":["../../../../src/components/cell/cellTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAElE,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,wBAAwB,EACzB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;GASG;AACH,KAAK,kBAAkB,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI,SAAS;IACzD,WAAW,EAAE,CAAC,GA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,uBAAuB,CAAC,UAAU,EAAE,GAAG,CAAC,CAAA;IAC7D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,0BAA0B,CACpC,UAAU,SAAS,kBAAkB,GAAG,GAAG,EAC3C,KAAK,GAAG,GAAG,IACT,OAAO,CACT,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,CAC5E,CAAA;AAID,MAAM,WAAW,uBAAuB,CACtC,MAAM,GAAG,GAAG,EACZ,WAAW,SAAS,kBAAkB,GAAG,GAAG,CAC5C,SAAQ,wBAAwB;IAChC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAA;IAEzB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;CAChB"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var cellTypes_exports = {};
16
- module.exports = __toCommonJS(cellTypes_exports);
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { CreateCellProps } from './cellTypes.js';
3
- import { createSuspendingCell } from './createSuspendingCell.js';
4
- export declare const createCell: typeof createSuspendingCell | typeof createNonSuspendingCell;
5
- /**
6
- * Creates a Cell out of a GraphQL query and components that track to its lifecycle.
7
- */
8
- declare function createNonSuspendingCell<CellProps extends Record<string, unknown>, CellVariables extends Record<string, unknown>>({ QUERY, beforeQuery, afterQuery, isEmpty, Loading, Failure, Empty, Success, displayName, }: CreateCellProps<CellProps, CellVariables>): React.FC<CellProps>;
9
- export {};
10
- //# sourceMappingURL=createCell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createCell.d.ts","sourceRoot":"","sources":["../../../../src/components/cell/createCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAIhE,eAAO,MAAM,UAAU,8DAEI,CAAA;AAE3B;;GAEG;AACH,iBAAS,uBAAuB,CAC9B,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACzC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7C,EACA,KAAK,EACL,WAWE,EACF,UAA2B,EAC3B,OAAqB,EACrB,OAA+B,EAC/B,OAAO,EACP,KAAK,EACL,OAAO,EACP,WAAoB,GACrB,EAAE,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAuIjE"}