@cedarjs/web 4.2.1-next.0 → 4.2.1-next.269

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.
@@ -314,8 +314,15 @@ var QueryDocumentKeys = {
314
314
  EnumTypeDefinition: ["description", "name", "directives", "values"],
315
315
  EnumValueDefinition: ["description", "name", "directives"],
316
316
  InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
317
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
317
+ DirectiveDefinition: [
318
+ "description",
319
+ "name",
320
+ "arguments",
321
+ "directives",
322
+ "locations"
323
+ ],
318
324
  SchemaExtension: ["directives", "operationTypes"],
325
+ DirectiveExtension: ["name", "directives"],
319
326
  ScalarTypeExtension: ["name", "directives"],
320
327
  ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
321
328
  InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
@@ -380,6 +387,7 @@ var Kind;
380
387
  Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
381
388
  Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
382
389
  Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
390
+ Kind2["DIRECTIVE_EXTENSION"] = "DirectiveExtension";
383
391
  Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
384
392
  Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
385
393
  Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
@@ -987,7 +995,14 @@ var printDocASTReducer = {
987
995
  leave: ({ description, name, directives, fields }) => wrap2("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
988
996
  },
989
997
  DirectiveDefinition: {
990
- leave: ({ description, name, arguments: args, repeatable, locations }) => wrap2("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap2("(\n", indent(join(args, "\n")), "\n)") : wrap2("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
998
+ leave: ({
999
+ description,
1000
+ name,
1001
+ arguments: args,
1002
+ directives,
1003
+ repeatable,
1004
+ locations
1005
+ }) => wrap2("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap2("(\n", indent(join(args, "\n")), "\n)") : wrap2("(", join(args, ", "), ")")) + wrap2(" ", join(directives, " ")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
991
1006
  },
992
1007
  SchemaExtension: {
993
1008
  leave: ({ directives, operationTypes }) => join(
@@ -1039,6 +1054,9 @@ var printDocASTReducer = {
1039
1054
  InputObjectTypeExtension: {
1040
1055
  leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
1041
1056
  },
1057
+ DirectiveExtension: {
1058
+ leave: ({ name, directives }) => join(["extend directive @" + name, join(directives, " ")], " ")
1059
+ },
1042
1060
  // Schema Coordinates
1043
1061
  TypeCoordinate: {
1044
1062
  leave: ({ name }) => name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/web",
3
- "version": "4.2.1-next.0",
3
+ "version": "4.2.1-next.269",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -83,9 +83,6 @@
83
83
  "require": "./dist/cjs/graphql.js",
84
84
  "import": "./dist/graphql.js"
85
85
  },
86
- "./webpackEntry": {
87
- "default": "./dist/entry/index.js"
88
- },
89
86
  "./toast": {
90
87
  "import": {
91
88
  "types": "./dist/toast/index.d.ts",
@@ -127,11 +124,10 @@
127
124
  "files": [
128
125
  "dist",
129
126
  "apollo",
130
- "toast",
131
- "src/entry"
127
+ "toast"
132
128
  ],
133
129
  "scripts": {
134
- "build": "tsx ./build.ts && yarn build:types",
130
+ "build": "node ./build.ts && yarn build:types",
135
131
  "build:pack": "yarn pack -o cedarjs-web.tgz",
136
132
  "build:types": "tsc --build --verbose ./tsconfig.build.json ./tsconfig.cjs.json",
137
133
  "build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
@@ -144,13 +140,12 @@
144
140
  },
145
141
  "dependencies": {
146
142
  "@apollo/client": "3.14.1",
147
- "@cedarjs/auth": "4.2.0",
148
143
  "@cedarjs/server-store": "4.2.0",
149
144
  "@dr.pogodin/react-helmet": "2.0.4",
150
145
  "@whatwg-node/fetch": "0.10.13",
151
146
  "apollo-upload-client": "18.0.1",
152
147
  "cookie": "1.1.1",
153
- "graphql": "16.13.2",
148
+ "graphql": "16.14.2",
154
149
  "graphql-sse": "2.6.0",
155
150
  "graphql-tag": "2.12.6",
156
151
  "react-hot-toast": "2.6.0",
@@ -159,11 +154,12 @@
159
154
  },
160
155
  "devDependencies": {
161
156
  "@apollo/client-react-streaming": "0.12.3",
162
- "@arethetypeswrong/cli": "0.18.2",
163
- "@babel/cli": "7.28.6",
157
+ "@arethetypeswrong/cli": "0.18.4",
158
+ "@babel/cli": "7.29.7",
164
159
  "@babel/core": "^7.26.10",
165
- "@babel/plugin-transform-runtime": "7.29.0",
166
- "@babel/runtime": "7.29.2",
160
+ "@babel/plugin-transform-runtime": "7.29.7",
161
+ "@babel/runtime": "7.29.7",
162
+ "@cedarjs/auth": "4.2.0",
167
163
  "@cedarjs/framework-tools": "4.2.0",
168
164
  "@cedarjs/internal": "4.2.0",
169
165
  "@rollup/plugin-babel": "6.1.0",
@@ -174,15 +170,16 @@
174
170
  "@types/react-dom": "^18.2.19",
175
171
  "concurrently": "9.2.1",
176
172
  "nodemon": "3.1.14",
177
- "publint": "0.3.20",
173
+ "publint": "0.3.21",
178
174
  "react": "18.3.1",
179
175
  "react-dom": "18.3.1",
180
176
  "tstyche": "5.0.2",
181
- "tsx": "4.21.0",
177
+ "tsx": "4.22.4",
182
178
  "typescript": "5.9.3",
183
- "vitest": "3.2.4"
179
+ "vitest": "3.2.6"
184
180
  },
185
181
  "peerDependencies": {
182
+ "@cedarjs/auth": "4.2.0",
186
183
  "react": "18.3.1",
187
184
  "react-dom": "18.3.1"
188
185
  },
@@ -1,38 +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 __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var import_client = require("react-dom/client");
25
- var import_redwood_app_root = __toESM(require("~redwood-app-root"), 1);
26
- var import_redwood_app_routes = __toESM(require("~redwood-app-routes"), 1);
27
- const redwoodAppElement = document.getElementById("redwood-app");
28
- if (redwoodAppElement.children?.length > 0) {
29
- (0, import_client.hydrateRoot)(
30
- redwoodAppElement,
31
- /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
32
- );
33
- } else {
34
- const root = (0, import_client.createRoot)(redwoodAppElement);
35
- root.render(
36
- /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
37
- );
38
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,15 +0,0 @@
1
- import { hydrateRoot, createRoot } from "react-dom/client";
2
- import App from "~redwood-app-root";
3
- import Routes from "~redwood-app-routes";
4
- const redwoodAppElement = document.getElementById("redwood-app");
5
- if (redwoodAppElement.children?.length > 0) {
6
- hydrateRoot(
7
- redwoodAppElement,
8
- /* @__PURE__ */ React.createElement(App, null, /* @__PURE__ */ React.createElement(Routes, null))
9
- );
10
- } else {
11
- const root = createRoot(redwoodAppElement);
12
- root.render(
13
- /* @__PURE__ */ React.createElement(App, null, /* @__PURE__ */ React.createElement(Routes, null))
14
- );
15
- }
@@ -1,27 +0,0 @@
1
- import { hydrateRoot, createRoot } from 'react-dom/client'
2
-
3
- import App from '~redwood-app-root'
4
- import Routes from '~redwood-app-routes'
5
- /**
6
- * When `#redwood-app` isn't empty then it's very likely that you're using
7
- * prerendering. So React attaches event listeners to the existing markup
8
- * rather than replacing it.
9
- * https://react.dev/reference/react-dom/client/hydrateRoot
10
- */
11
- const redwoodAppElement = document.getElementById('redwood-app')
12
-
13
- if (redwoodAppElement.children?.length > 0) {
14
- hydrateRoot(
15
- redwoodAppElement,
16
- <App>
17
- <Routes />
18
- </App>,
19
- )
20
- } else {
21
- const root = createRoot(redwoodAppElement)
22
- root.render(
23
- <App>
24
- <Routes />
25
- </App>,
26
- )
27
- }