@cedarjs/web 5.0.0-canary.2413 → 5.0.0-canary.2415

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/web",
3
- "version": "5.0.0-canary.2413",
3
+ "version": "5.0.0-canary.2415",
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,8 +124,7 @@
127
124
  "files": [
128
125
  "dist",
129
126
  "apollo",
130
- "toast",
131
- "src/entry"
127
+ "toast"
132
128
  ],
133
129
  "scripts": {
134
130
  "build": "tsx ./build.ts && yarn build:types",
@@ -144,8 +140,8 @@
144
140
  },
145
141
  "dependencies": {
146
142
  "@apollo/client": "3.14.1",
147
- "@cedarjs/auth": "5.0.0-canary.2413",
148
- "@cedarjs/server-store": "5.0.0-canary.2413",
143
+ "@cedarjs/auth": "5.0.0-canary.2415",
144
+ "@cedarjs/server-store": "5.0.0-canary.2415",
149
145
  "@dr.pogodin/react-helmet": "2.0.4",
150
146
  "@whatwg-node/fetch": "0.10.13",
151
147
  "apollo-upload-client": "18.0.1",
@@ -164,8 +160,8 @@
164
160
  "@babel/core": "^7.26.10",
165
161
  "@babel/plugin-transform-runtime": "7.29.0",
166
162
  "@babel/runtime": "7.29.2",
167
- "@cedarjs/framework-tools": "5.0.0-canary.2413",
168
- "@cedarjs/internal": "5.0.0-canary.2413",
163
+ "@cedarjs/framework-tools": "5.0.0-canary.2415",
164
+ "@cedarjs/internal": "5.0.0-canary.2415",
169
165
  "@rollup/plugin-babel": "6.1.0",
170
166
  "@testing-library/jest-dom": "6.9.1",
171
167
  "@testing-library/react": "14.3.1",
@@ -1,43 +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 cedarAppElement = document.getElementById("cedar-app") ?? document.getElementById("redwood-app");
28
- if (!cedarAppElement) {
29
- throw new Error(
30
- 'Could not find an element with ID "cedar-app" or "redwood-app". Please ensure one exists in your `web/index.html` file.'
31
- );
32
- }
33
- if (cedarAppElement.children?.length > 0) {
34
- (0, import_client.hydrateRoot)(
35
- cedarAppElement,
36
- /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
37
- );
38
- } else {
39
- const root = (0, import_client.createRoot)(cedarAppElement);
40
- root.render(
41
- /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
42
- );
43
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,20 +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 cedarAppElement = document.getElementById("cedar-app") ?? document.getElementById("redwood-app");
5
- if (!cedarAppElement) {
6
- throw new Error(
7
- 'Could not find an element with ID "cedar-app" or "redwood-app". Please ensure one exists in your `web/index.html` file.'
8
- );
9
- }
10
- if (cedarAppElement.children?.length > 0) {
11
- hydrateRoot(
12
- cedarAppElement,
13
- /* @__PURE__ */ React.createElement(App, null, /* @__PURE__ */ React.createElement(Routes, null))
14
- );
15
- } else {
16
- const root = createRoot(cedarAppElement);
17
- root.render(
18
- /* @__PURE__ */ React.createElement(App, null, /* @__PURE__ */ React.createElement(Routes, null))
19
- );
20
- }
@@ -1,35 +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 `#cedar-app` or `#redwood-app` isn't empty then it's very likely that
7
- * you're using prerendering. So React attaches event listeners to the existing
8
- * markup rather than replacing it.
9
- * https://react.dev/reference/react-dom/client/hydrateRoot
10
- */
11
- const cedarAppElement =
12
- document.getElementById('cedar-app') ?? document.getElementById('redwood-app')
13
-
14
- if (!cedarAppElement) {
15
- throw new Error(
16
- 'Could not find an element with ID "cedar-app" or "redwood-app". Please ' +
17
- 'ensure one exists in your `web/index.html` file.',
18
- )
19
- }
20
-
21
- if (cedarAppElement.children?.length > 0) {
22
- hydrateRoot(
23
- cedarAppElement,
24
- <App>
25
- <Routes />
26
- </App>,
27
- )
28
- } else {
29
- const root = createRoot(cedarAppElement)
30
- root.render(
31
- <App>
32
- <Routes />
33
- </App>,
34
- )
35
- }