@ohhwells/bridge 0.1.61-next.173 → 0.1.62-next.174

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/dist/index.cjs CHANGED
@@ -18551,7 +18551,7 @@ function OhhwellsBridge() {
18551
18551
  postToParent2({
18552
18552
  type: "ow:ready",
18553
18553
  version: "1",
18554
- bridgeVersion: "0.1.61",
18554
+ bridgeVersion: "0.1.62",
18555
18555
  path: pathname,
18556
18556
  nodes: collectEditableNodes(editContentRef.current),
18557
18557
  sections
package/dist/index.js CHANGED
@@ -18483,7 +18483,7 @@ function OhhwellsBridge() {
18483
18483
  postToParent2({
18484
18484
  type: "ow:ready",
18485
18485
  version: "1",
18486
- bridgeVersion: "0.1.61",
18486
+ bridgeVersion: "0.1.62",
18487
18487
  path: pathname,
18488
18488
  nodes: collectEditableNodes(editContentRef.current),
18489
18489
  sections
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohhwells/bridge",
3
- "version": "0.1.61-next.173",
3
+ "version": "0.1.62-next.174",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
package/dist/pages.d.cts DELETED
@@ -1,45 +0,0 @@
1
- import { NextRequest, NextResponse } from 'next/server';
2
- import { ComponentType, ReactElement } from 'react';
3
-
4
- declare const DELETED_PAGE_PREFIX = "/__ohw-deleted";
5
- type SitePage = {
6
- id: string;
7
- path: string;
8
- title: string;
9
- is_physical: boolean;
10
- original_path: string | null;
11
- duplicated_from: string | null;
12
- is_deleted: boolean;
13
- };
14
- declare function resolveSubdomain(hostnameOverride?: string): string;
15
- declare function fetchSitePages(subdomainOverride?: string): Promise<SitePage[]>;
16
- type PageRewriteDecision = {
17
- path: string;
18
- } | null;
19
- declare function resolvePageRewrite(pathname: string, pages: SitePage[]): PageRewriteDecision;
20
- type SitePageResolution = {
21
- kind: 'not-found';
22
- } | {
23
- kind: 'duplicate';
24
- sourceSegment: string;
25
- page: SitePage;
26
- } | {
27
- kind: 'blank';
28
- page: SitePage;
29
- };
30
- declare function resolveSitePage(segments: string[], subdomainOverride?: string): Promise<SitePageResolution>;
31
-
32
- declare function sitePagesMiddleware(request: NextRequest): Promise<NextResponse>;
33
- declare const sitePagesMiddlewareConfig: {
34
- matcher: string[];
35
- };
36
-
37
- interface CatchAllPageHandlers {
38
- renderDuplicate: (sourceSegment: string) => Promise<{
39
- default: ComponentType;
40
- }>;
41
- renderBlank: (page: SitePage) => ReactElement;
42
- }
43
- declare function renderCatchAllPage(segments: string[], subdomainOverride: string | undefined, handlers: CatchAllPageHandlers): Promise<ReactElement>;
44
-
45
- export { type CatchAllPageHandlers, DELETED_PAGE_PREFIX, type PageRewriteDecision, type SitePage, type SitePageResolution, fetchSitePages, renderCatchAllPage, resolvePageRewrite, resolveSitePage, resolveSubdomain, sitePagesMiddleware, sitePagesMiddlewareConfig };
package/dist/pages.d.ts DELETED
@@ -1,45 +0,0 @@
1
- import { NextRequest, NextResponse } from 'next/server';
2
- import { ComponentType, ReactElement } from 'react';
3
-
4
- declare const DELETED_PAGE_PREFIX = "/__ohw-deleted";
5
- type SitePage = {
6
- id: string;
7
- path: string;
8
- title: string;
9
- is_physical: boolean;
10
- original_path: string | null;
11
- duplicated_from: string | null;
12
- is_deleted: boolean;
13
- };
14
- declare function resolveSubdomain(hostnameOverride?: string): string;
15
- declare function fetchSitePages(subdomainOverride?: string): Promise<SitePage[]>;
16
- type PageRewriteDecision = {
17
- path: string;
18
- } | null;
19
- declare function resolvePageRewrite(pathname: string, pages: SitePage[]): PageRewriteDecision;
20
- type SitePageResolution = {
21
- kind: 'not-found';
22
- } | {
23
- kind: 'duplicate';
24
- sourceSegment: string;
25
- page: SitePage;
26
- } | {
27
- kind: 'blank';
28
- page: SitePage;
29
- };
30
- declare function resolveSitePage(segments: string[], subdomainOverride?: string): Promise<SitePageResolution>;
31
-
32
- declare function sitePagesMiddleware(request: NextRequest): Promise<NextResponse>;
33
- declare const sitePagesMiddlewareConfig: {
34
- matcher: string[];
35
- };
36
-
37
- interface CatchAllPageHandlers {
38
- renderDuplicate: (sourceSegment: string) => Promise<{
39
- default: ComponentType;
40
- }>;
41
- renderBlank: (page: SitePage) => ReactElement;
42
- }
43
- declare function renderCatchAllPage(segments: string[], subdomainOverride: string | undefined, handlers: CatchAllPageHandlers): Promise<ReactElement>;
44
-
45
- export { type CatchAllPageHandlers, DELETED_PAGE_PREFIX, type PageRewriteDecision, type SitePage, type SitePageResolution, fetchSitePages, renderCatchAllPage, resolvePageRewrite, resolveSitePage, resolveSubdomain, sitePagesMiddleware, sitePagesMiddlewareConfig };