@yoamigo.com/core 0.1.11 → 0.1.13
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/{MarkdownText-mylt-QX-.d.ts → MarkdownText-BUTYfqXS.d.ts} +7 -1
- package/dist/index.d.ts +392 -3
- package/dist/index.js +733 -153
- package/dist/plugin.js +2 -2
- package/dist/prod.d.ts +2 -2
- package/dist/prod.js +3 -2
- package/dist/router.d.ts +1 -1
- package/dist/router.js +3 -2
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -69,9 +69,9 @@ function yoamigoPlugin(options = {}) {
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
// Dynamic base URL for different deployment contexts:
|
|
72
|
-
// -
|
|
72
|
+
// - Dev server: Use --base CLI arg (config option is less reliable)
|
|
73
|
+
// - Production builds: Uses YA_BASE_URL env var (passed via additionalEnv)
|
|
73
74
|
// - Published builds: / (default, served from subdomain root)
|
|
74
|
-
// - Dev server: ignored (base only affects production builds)
|
|
75
75
|
base: process.env.YA_BASE_URL || "/",
|
|
76
76
|
build: {
|
|
77
77
|
outDir: "dist",
|
package/dist/prod.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { a as ContentStore, E as ContentStoreMode, C as ContentStoreProvider, d as MarkdownText, e as MarkdownTextProps, P as PageInfo, b as StaticImage, c as StaticImageProps, M as StaticText, S as StaticTextProps, b as YaImage, c as YaImageProps, M as YaText, S as YaTextProps, u as useContentStore } from './MarkdownText-
|
|
1
|
+
export { a as ContentStore, E as ContentStoreMode, C as ContentStoreProvider, d as MarkdownText, e as MarkdownTextProps, P as PageInfo, b as StaticImage, c as StaticImageProps, M as StaticText, S as StaticTextProps, b as YaImage, c as YaImageProps, M as YaText, S as YaTextProps, u as useContentStore } from './MarkdownText-BUTYfqXS.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export { Link, LinkProps, NavigateFunction, Router, RouterProps, useNavigate } from './router.js';
|
|
5
|
-
export { Route, Switch } from 'wouter';
|
|
5
|
+
export { Route, Switch, useParams } from 'wouter';
|
|
6
6
|
export { A as AssetResolverFn, C as ContentRegistry, c as contentRegistry, a as getAllContent, g as getContent, h as hasContent, r as registerContent, b as resolveAssetUrl, s as setAssetResolver } from './asset-resolver-BnIvDkVv.js';
|
|
7
7
|
|
|
8
8
|
interface StaticLinkProps {
|
package/dist/prod.js
CHANGED
|
@@ -340,7 +340,7 @@ function Router({ children, base }) {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
// src/router/index.ts
|
|
343
|
-
import { Route, Switch } from "wouter";
|
|
343
|
+
import { Route, Switch, useParams } from "wouter";
|
|
344
344
|
export {
|
|
345
345
|
ContentStoreProvider,
|
|
346
346
|
Link,
|
|
@@ -363,5 +363,6 @@ export {
|
|
|
363
363
|
resolveAssetUrl,
|
|
364
364
|
setAssetResolver,
|
|
365
365
|
useContentStore,
|
|
366
|
-
useNavigate
|
|
366
|
+
useNavigate,
|
|
367
|
+
useParams
|
|
367
368
|
};
|
package/dist/router.d.ts
CHANGED
package/dist/router.js
CHANGED
|
@@ -41,11 +41,12 @@ function Router({ children, base }) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// src/router/index.ts
|
|
44
|
-
import { Route, Switch } from "wouter";
|
|
44
|
+
import { Route, Switch, useParams } from "wouter";
|
|
45
45
|
export {
|
|
46
46
|
Link,
|
|
47
47
|
Route,
|
|
48
48
|
Router,
|
|
49
49
|
Switch,
|
|
50
|
-
useNavigate
|
|
50
|
+
useNavigate,
|
|
51
|
+
useParams
|
|
51
52
|
};
|