Skip to content

Commit 79c2400

Browse files
tmp
1 parent 60a9ab5 commit 79c2400

24 files changed

+43
-34
lines changed

packages/react-on-rails-pro/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"type-check": "yarn run tsc --noEmit --noErrorTruncation",
1212
"prepack": "nps build.prepack",
1313
"prepare": "nps build.prepack",
14-
"prepublishOnly": "yarn run build"
14+
"prepublishOnly": "yarn run build",
15+
"yalc:publish": "yalc publish",
16+
"yalc": "yalc"
1517
},
1618
"repository": {
1719
"type": "git",

packages/react-on-rails-pro/src/ClientSideRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import { isServerRenderHash } from 'react-on-rails/isServerRenderResult';
2323
import { supportsHydrate, supportsRootApi, unmountComponentAtNode } from 'react-on-rails/reactApis';
2424
import reactHydrateOrRender from 'react-on-rails/reactHydrateOrRender';
2525
import { debugTurbolinks } from 'react-on-rails/turbolinksUtils';
26+
import { onPageLoaded } from 'react-on-rails/pageLifecycle';
2627
import * as StoreRegistry from './StoreRegistry.ts';
2728
import * as ComponentRegistry from './ComponentRegistry.ts';
28-
import { onPageLoaded } from 'react-on-rails/pageLifecycle';
2929

3030
const REACT_ON_RAILS_STORE_ATTRIBUTE = 'data-js-react-on-rails-store';
3131
const IMMEDIATE_HYDRATION_PRO_WARNING =

packages/react-on-rails-pro/src/RSCRequestTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
*/
1414

1515
import { PassThrough, Readable } from 'stream';
16-
import { extractErrorMessage } from './utils.ts';
1716
import {
1817
RSCPayloadStreamInfo,
1918
RSCPayloadCallback,
2019
RailsContextWithServerComponentMetadata,
2120
} from 'react-on-rails/types';
21+
import { extractErrorMessage } from './utils.ts';
2222

2323
/**
2424
* Global function provided by React on Rails Pro for generating RSC payloads.

packages/react-on-rails-pro/src/StoreRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* https://github.com/shakacode/react_on_rails/blob/master/REACT-ON-RAILS-PRO-LICENSE.md
1313
*/
1414

15-
import CallbackRegistry from './CallbackRegistry.ts';
1615
import type { Store, StoreGenerator } from 'react-on-rails/types';
16+
import CallbackRegistry from './CallbackRegistry.ts';
1717

1818
const storeGeneratorRegistry = new CallbackRegistry<StoreGenerator>('store generator');
1919
const hydratedStoreRegistry = new CallbackRegistry<Store>('hydrated store');

packages/react-on-rails-pro/src/getReactServerComponent.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
import * as React from 'react';
1616
import { createFromReadableStream } from 'react-on-rails-rsc/client.browser';
17+
import { RailsContext } from 'react-on-rails/types';
1718
import { createRSCPayloadKey, fetch, wrapInNewPromise, extractErrorMessage } from './utils.ts';
1819
import transformRSCStreamAndReplayConsoleLogs from './transformRSCStreamAndReplayConsoleLogs.ts';
19-
import { RailsContext } from 'react-on-rails/types';
2020

2121
declare global {
2222
interface Window {

packages/react-on-rails-pro/src/getReactServerComponent.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
import { BundleManifest } from 'react-on-rails-rsc';
1616
import { buildClientRenderer } from 'react-on-rails-rsc/client.node';
17+
import type { RailsContextWithServerStreamingCapabilities } from 'react-on-rails/types';
1718
import transformRSCStream from './transformRSCNodeStream.ts';
1819
import loadJsonFile from './loadJsonFile.ts';
19-
import type { RailsContextWithServerStreamingCapabilities } from 'react-on-rails/types';
2020

2121
type GetReactServerComponentOnServerProps = {
2222
componentName: string;

packages/react-on-rails-pro/src/index.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ export * from 'react-on-rails';
1919
import ReactOnRailsCore from 'react-on-rails/ReactOnRails.client';
2020

2121
// Import pro registries and features
22+
import type {
23+
Store,
24+
StoreGenerator,
25+
RegisteredComponent,
26+
ReactComponentOrRenderFunction,
27+
} from 'react-on-rails/types';
2228
import * as ProComponentRegistry from './ComponentRegistry.ts';
2329
import * as ProStoreRegistry from './StoreRegistry.ts';
2430
import {
@@ -31,13 +37,6 @@ import {
3137
unmountAll,
3238
} from './ClientSideRenderer.ts';
3339

34-
import type {
35-
Store,
36-
StoreGenerator,
37-
RegisteredComponent,
38-
ReactComponentOrRenderFunction,
39-
} from 'react-on-rails/types';
40-
4140
// Enhance ReactOnRails with Pro features
4241
const ReactOnRailsPro = {
4342
...ReactOnRailsCore,

packages/react-on-rails-pro/src/injectRSCPayload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
import { PassThrough } from 'stream';
1616
import { finished } from 'stream/promises';
17-
import { createRSCPayloadKey } from './utils.ts';
1817
import { PipeableOrReadableStream } from 'react-on-rails/types';
18+
import { createRSCPayloadKey } from './utils.ts';
1919
import RSCRequestTracker from './RSCRequestTracker.ts';
2020

2121
// In JavaScript, when an escape sequence with a backslash (\) is followed by a character

packages/react-on-rails-pro/src/registerServerComponent/client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
*/
1414

1515
import * as React from 'react';
16+
import { ReactComponentOrRenderFunction } from 'react-on-rails/types';
1617
import ReactOnRails from '../index.ts';
1718
import RSCRoute from '../RSCRoute.tsx';
18-
import { ReactComponentOrRenderFunction } from 'react-on-rails/types';
1919
import wrapServerComponentRenderer from '../wrapServerComponentRenderer/client.tsx';
2020

2121
/**

packages/react-on-rails-pro/src/registerServerComponent/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
import * as React from 'react';
1616
import ReactOnRails from 'react-on-rails/ReactOnRails.client';
17-
import RSCRoute from '../RSCRoute.tsx';
1817
import { ReactComponent, RenderFunction } from 'react-on-rails/types';
18+
import RSCRoute from '../RSCRoute.tsx';
1919
import wrapServerComponentRenderer from '../wrapServerComponentRenderer/server.tsx';
2020

2121
/**

0 commit comments

Comments
 (0)