houdini-react 1.2.14 → 1.2.15
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/build/plugin-cjs/index.js +21 -10
- package/build/plugin-esm/index.js +21 -10
- package/package.json +2 -2
|
@@ -78614,6 +78614,7 @@ async function find_graphql(config2, parsedScript, walker) {
|
|
|
78614
78614
|
var conventions_exports = {};
|
|
78615
78615
|
__export2(conventions_exports, {
|
|
78616
78616
|
adapter_config_path: () => adapter_config_path,
|
|
78617
|
+
app_component_path: () => app_component_path,
|
|
78617
78618
|
fallback_unit_path: () => fallback_unit_path,
|
|
78618
78619
|
is_layout: () => is_layout,
|
|
78619
78620
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -78642,6 +78643,9 @@ function server_adapter_path(config2, base) {
|
|
|
78642
78643
|
function adapter_config_path(config2, base) {
|
|
78643
78644
|
return path_exports.join(units_dir(config2, base), "render", "config.js");
|
|
78644
78645
|
}
|
|
78646
|
+
function app_component_path(config2, base) {
|
|
78647
|
+
return path_exports.join(units_dir(config2, base), "render", "App.jsx");
|
|
78648
|
+
}
|
|
78645
78649
|
function page_unit_path(config2, id, base) {
|
|
78646
78650
|
return path_exports.join(page_units_dir(config2, base), `${id}.jsx`);
|
|
78647
78651
|
}
|
|
@@ -79182,6 +79186,13 @@ async function generate_renders({
|
|
|
79182
79186
|
manifest: manifest3
|
|
79183
79187
|
}) {
|
|
79184
79188
|
await fs_exports.mkdirp(path_exports.dirname(conventions_exports.server_adapter_path(config)));
|
|
79189
|
+
const app_index = `
|
|
79190
|
+
import React from 'react'
|
|
79191
|
+
import Shell from '../../../../../src/+index'
|
|
79192
|
+
import { Router } from '$houdini'
|
|
79193
|
+
|
|
79194
|
+
export default (props) => <Shell><Router {...props} /></Shell>
|
|
79195
|
+
`;
|
|
79185
79196
|
let adapter_config = `
|
|
79186
79197
|
import createAdapter from './server'
|
|
79187
79198
|
|
|
@@ -79208,6 +79219,7 @@ import { serverAdapterFactory } from '$houdini/runtime/router/server'
|
|
|
79208
79219
|
|
|
79209
79220
|
import { Router, router_cache } from '../../runtime'
|
|
79210
79221
|
import manifest from '../../runtime/manifest'
|
|
79222
|
+
import App from './App'
|
|
79211
79223
|
|
|
79212
79224
|
import Shell from '../../../../../src/+index'
|
|
79213
79225
|
|
|
@@ -79224,15 +79236,13 @@ export default (options) => {
|
|
|
79224
79236
|
}
|
|
79225
79237
|
|
|
79226
79238
|
const { readable, injectToStream, pipe: pipeTo } = await renderToStream(
|
|
79227
|
-
React.createElement(
|
|
79228
|
-
|
|
79229
|
-
|
|
79230
|
-
|
|
79231
|
-
|
|
79232
|
-
|
|
79233
|
-
|
|
79234
|
-
...router_cache()
|
|
79235
|
-
})
|
|
79239
|
+
React.createElement(App, {
|
|
79240
|
+
initialURL: url,
|
|
79241
|
+
cache: cache,
|
|
79242
|
+
session: session,
|
|
79243
|
+
assetPrefix: options.assetPrefix,
|
|
79244
|
+
manifest: manifest,
|
|
79245
|
+
...router_cache()
|
|
79236
79246
|
}),
|
|
79237
79247
|
{
|
|
79238
79248
|
userAgent: 'Vite',
|
|
@@ -79266,7 +79276,8 @@ export default (options) => {
|
|
|
79266
79276
|
`;
|
|
79267
79277
|
await Promise.all([
|
|
79268
79278
|
fs_exports.writeFile(conventions_exports.server_adapter_path(config), server_adapter),
|
|
79269
|
-
fs_exports.writeFile(conventions_exports.adapter_config_path(config), adapter_config)
|
|
79279
|
+
fs_exports.writeFile(conventions_exports.adapter_config_path(config), adapter_config),
|
|
79280
|
+
fs_exports.writeFile(conventions_exports.app_component_path(config), app_index)
|
|
79270
79281
|
]);
|
|
79271
79282
|
}
|
|
79272
79283
|
|
|
@@ -78604,6 +78604,7 @@ async function find_graphql(config2, parsedScript, walker) {
|
|
|
78604
78604
|
var conventions_exports = {};
|
|
78605
78605
|
__export(conventions_exports, {
|
|
78606
78606
|
adapter_config_path: () => adapter_config_path,
|
|
78607
|
+
app_component_path: () => app_component_path,
|
|
78607
78608
|
fallback_unit_path: () => fallback_unit_path,
|
|
78608
78609
|
is_layout: () => is_layout,
|
|
78609
78610
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -78632,6 +78633,9 @@ function server_adapter_path(config2, base) {
|
|
|
78632
78633
|
function adapter_config_path(config2, base) {
|
|
78633
78634
|
return path_exports.join(units_dir(config2, base), "render", "config.js");
|
|
78634
78635
|
}
|
|
78636
|
+
function app_component_path(config2, base) {
|
|
78637
|
+
return path_exports.join(units_dir(config2, base), "render", "App.jsx");
|
|
78638
|
+
}
|
|
78635
78639
|
function page_unit_path(config2, id, base) {
|
|
78636
78640
|
return path_exports.join(page_units_dir(config2, base), `${id}.jsx`);
|
|
78637
78641
|
}
|
|
@@ -79172,6 +79176,13 @@ async function generate_renders({
|
|
|
79172
79176
|
manifest: manifest3
|
|
79173
79177
|
}) {
|
|
79174
79178
|
await fs_exports.mkdirp(path_exports.dirname(conventions_exports.server_adapter_path(config)));
|
|
79179
|
+
const app_index = `
|
|
79180
|
+
import React from 'react'
|
|
79181
|
+
import Shell from '../../../../../src/+index'
|
|
79182
|
+
import { Router } from '$houdini'
|
|
79183
|
+
|
|
79184
|
+
export default (props) => <Shell><Router {...props} /></Shell>
|
|
79185
|
+
`;
|
|
79175
79186
|
let adapter_config = `
|
|
79176
79187
|
import createAdapter from './server'
|
|
79177
79188
|
|
|
@@ -79198,6 +79209,7 @@ import { serverAdapterFactory } from '$houdini/runtime/router/server'
|
|
|
79198
79209
|
|
|
79199
79210
|
import { Router, router_cache } from '../../runtime'
|
|
79200
79211
|
import manifest from '../../runtime/manifest'
|
|
79212
|
+
import App from './App'
|
|
79201
79213
|
|
|
79202
79214
|
import Shell from '../../../../../src/+index'
|
|
79203
79215
|
|
|
@@ -79214,15 +79226,13 @@ export default (options) => {
|
|
|
79214
79226
|
}
|
|
79215
79227
|
|
|
79216
79228
|
const { readable, injectToStream, pipe: pipeTo } = await renderToStream(
|
|
79217
|
-
React.createElement(
|
|
79218
|
-
|
|
79219
|
-
|
|
79220
|
-
|
|
79221
|
-
|
|
79222
|
-
|
|
79223
|
-
|
|
79224
|
-
...router_cache()
|
|
79225
|
-
})
|
|
79229
|
+
React.createElement(App, {
|
|
79230
|
+
initialURL: url,
|
|
79231
|
+
cache: cache,
|
|
79232
|
+
session: session,
|
|
79233
|
+
assetPrefix: options.assetPrefix,
|
|
79234
|
+
manifest: manifest,
|
|
79235
|
+
...router_cache()
|
|
79226
79236
|
}),
|
|
79227
79237
|
{
|
|
79228
79238
|
userAgent: 'Vite',
|
|
@@ -79256,7 +79266,8 @@ export default (options) => {
|
|
|
79256
79266
|
`;
|
|
79257
79267
|
await Promise.all([
|
|
79258
79268
|
fs_exports.writeFile(conventions_exports.server_adapter_path(config), server_adapter),
|
|
79259
|
-
fs_exports.writeFile(conventions_exports.adapter_config_path(config), adapter_config)
|
|
79269
|
+
fs_exports.writeFile(conventions_exports.adapter_config_path(config), adapter_config),
|
|
79270
|
+
fs_exports.writeFile(conventions_exports.app_component_path(config), app_index)
|
|
79260
79271
|
]);
|
|
79261
79272
|
}
|
|
79262
79273
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"description": "The React plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"recast": "^0.23.1",
|
|
43
43
|
"rollup": "^3.7.4",
|
|
44
44
|
"use-deep-compare-effect": "^1.8.1",
|
|
45
|
-
"houdini": "^1.2.
|
|
45
|
+
"houdini": "^1.2.15"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"build"
|