@moku-labs/web 0.2.0 → 0.3.0
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/chunk-D7D4PA-g.mjs +13 -0
- package/dist/index.cjs +732 -280
- package/dist/index.d.cts +24 -25
- package/dist/index.d.mts +23 -24
- package/dist/index.mjs +649 -189
- package/package.json +8 -8
- package/dist/chunk-DQk6qfdC.mjs +0 -18
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _moku_labs_core0 from "@moku-labs/core";
|
|
2
|
-
import { EmitFn } from "@moku-labs/core";
|
|
3
1
|
import { ComponentChildren, VNode } from "preact";
|
|
4
2
|
import { Pluggable, Processor } from "unified";
|
|
3
|
+
import { EmitFn } from "@moku-labs/core";
|
|
5
4
|
|
|
6
5
|
//#region \0rolldown/runtime.js
|
|
7
6
|
declare namespace types_d_exports$5 {
|
|
@@ -313,7 +312,7 @@ type EnvApi = {
|
|
|
313
312
|
* createApp({ pluginConfigs: { env: { schema: { PUBLIC_API_URL: { public: true } } } } });
|
|
314
313
|
* ```
|
|
315
314
|
*/
|
|
316
|
-
declare const envPlugin:
|
|
315
|
+
declare const envPlugin: import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>;
|
|
317
316
|
//#endregion
|
|
318
317
|
//#region src/config.d.ts
|
|
319
318
|
/**
|
|
@@ -1798,7 +1797,7 @@ type Api = {
|
|
|
1798
1797
|
* Depends: site. Emits: deploy:complete.
|
|
1799
1798
|
* @see README.md
|
|
1800
1799
|
*/
|
|
1801
|
-
declare const deployPlugin:
|
|
1800
|
+
declare const deployPlugin: import("@moku-labs/core").PluginInstance<"deploy", Config, State, Api, {
|
|
1802
1801
|
"deploy:complete": {
|
|
1803
1802
|
url: string;
|
|
1804
1803
|
deploymentId: string;
|
|
@@ -1808,7 +1807,7 @@ declare const deployPlugin: _moku_labs_core0.PluginInstance<"deploy", Config, St
|
|
|
1808
1807
|
}> & Record<never, never>;
|
|
1809
1808
|
//#endregion
|
|
1810
1809
|
//#region src/plugins/build/index.d.ts
|
|
1811
|
-
declare const buildPlugin:
|
|
1810
|
+
declare const buildPlugin: import("@moku-labs/core").PluginInstance<"build", Config$1, State$1, Api$1, {
|
|
1812
1811
|
"build:phase": {
|
|
1813
1812
|
phase: PhaseName;
|
|
1814
1813
|
status: "start" | "done";
|
|
@@ -1822,7 +1821,7 @@ declare const buildPlugin: _moku_labs_core0.PluginInstance<"build", Config$1, St
|
|
|
1822
1821
|
}> & Record<never, never>;
|
|
1823
1822
|
//#endregion
|
|
1824
1823
|
//#region src/plugins/content/index.d.ts
|
|
1825
|
-
declare const contentPlugin:
|
|
1824
|
+
declare const contentPlugin: import("@moku-labs/core").PluginInstance<"content", Config$3, State$3, Api$3, {
|
|
1826
1825
|
"content:ready": {
|
|
1827
1826
|
locales: readonly string[];
|
|
1828
1827
|
articleCount: number;
|
|
@@ -1911,7 +1910,7 @@ declare function feedLink(title: string, url: string, type?: string): HeadElemen
|
|
|
1911
1910
|
declare function buildArticleHead(articleMeta: ArticleMeta, canonicalUrl: string): HeadElement[];
|
|
1912
1911
|
//#endregion
|
|
1913
1912
|
//#region src/plugins/head/index.d.ts
|
|
1914
|
-
declare const headPlugin:
|
|
1913
|
+
declare const headPlugin: import("@moku-labs/core").PluginInstance<"head", Config$2, State$2, Api$2, {}> & {
|
|
1915
1914
|
meta: typeof meta;
|
|
1916
1915
|
og: typeof og;
|
|
1917
1916
|
twitter: typeof twitter;
|
|
@@ -1923,7 +1922,7 @@ declare const headPlugin: _moku_labs_core0.PluginInstance<"head", Config$2, Stat
|
|
|
1923
1922
|
};
|
|
1924
1923
|
//#endregion
|
|
1925
1924
|
//#region src/plugins/i18n/index.d.ts
|
|
1926
|
-
declare const i18nPlugin:
|
|
1925
|
+
declare const i18nPlugin: import("@moku-labs/core").PluginInstance<"i18n", Config$5, Record<string, never>, Api$5, {}> & Record<never, never>;
|
|
1927
1926
|
//#endregion
|
|
1928
1927
|
//#region src/plugins/log/index.d.ts
|
|
1929
1928
|
/**
|
|
@@ -1933,7 +1932,7 @@ declare const i18nPlugin: _moku_labs_core0.PluginInstance<"i18n", Config$5, Reco
|
|
|
1933
1932
|
*
|
|
1934
1933
|
* @see README.md
|
|
1935
1934
|
*/
|
|
1936
|
-
declare const logPlugin:
|
|
1935
|
+
declare const logPlugin: import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>;
|
|
1937
1936
|
//#endregion
|
|
1938
1937
|
//#region src/plugins/router/builders/route-builder.d.ts
|
|
1939
1938
|
/**
|
|
@@ -1968,16 +1967,16 @@ declare function route<P extends string>(pattern: P): RouteBuilder<RouteState<P>
|
|
|
1968
1967
|
declare function defineRoutes<T extends RouteMap>(routes: T): T;
|
|
1969
1968
|
//#endregion
|
|
1970
1969
|
//#region src/plugins/router/index.d.ts
|
|
1971
|
-
declare const routerPlugin:
|
|
1970
|
+
declare const routerPlugin: import("@moku-labs/core").PluginInstance<"router", RouterConfig, RouterState, RouterApi, {}> & {
|
|
1972
1971
|
route: typeof route;
|
|
1973
1972
|
defineRoutes: typeof defineRoutes;
|
|
1974
1973
|
};
|
|
1975
1974
|
//#endregion
|
|
1976
1975
|
//#region src/plugins/site/index.d.ts
|
|
1977
|
-
declare const sitePlugin:
|
|
1976
|
+
declare const sitePlugin: import("@moku-labs/core").PluginInstance<"site", Config$6, Record<string, never>, Api$6, {}> & Record<never, never>;
|
|
1978
1977
|
//#endregion
|
|
1979
1978
|
//#region src/plugins/spa/index.d.ts
|
|
1980
|
-
declare const spaPlugin:
|
|
1979
|
+
declare const spaPlugin: import("@moku-labs/core").PluginInstance<"spa", SpaConfig, SpaState, SpaApi, {
|
|
1981
1980
|
"spa:navigate": {
|
|
1982
1981
|
from: string;
|
|
1983
1982
|
to: string;
|
|
@@ -1996,10 +1995,10 @@ declare const spaPlugin: _moku_labs_core0.PluginInstance<"spa", SpaConfig, SpaSt
|
|
|
1996
1995
|
}> & Record<never, never>;
|
|
1997
1996
|
//#endregion
|
|
1998
1997
|
//#region src/index.d.ts
|
|
1999
|
-
declare const createApp: <const ExtraPlugins extends readonly
|
|
1998
|
+
declare const createApp: <const ExtraPlugins extends readonly import("@moku-labs/core").AnyPluginInstance[] = readonly []>(options?: import("@moku-labs/core").CreateAppOptions<Config$7, Events, (import("@moku-labs/core").PluginInstance<"site", Config$6, Record<string, never>, Api$6, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"i18n", Config$5, Record<string, never>, Api$5, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"router", RouterConfig, RouterState, RouterApi, {}> & {
|
|
2000
1999
|
route: typeof route;
|
|
2001
2000
|
defineRoutes: typeof defineRoutes;
|
|
2002
|
-
}) | (
|
|
2001
|
+
}) | (import("@moku-labs/core").PluginInstance<"content", Config$3, State$3, Api$3, {
|
|
2003
2002
|
"content:ready": {
|
|
2004
2003
|
locales: readonly string[];
|
|
2005
2004
|
articleCount: number;
|
|
@@ -2007,7 +2006,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2007
2006
|
"content:invalidated": {
|
|
2008
2007
|
paths: readonly string[];
|
|
2009
2008
|
};
|
|
2010
|
-
}> & Record<never, never>) | (
|
|
2009
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"head", Config$2, State$2, Api$2, {}> & {
|
|
2011
2010
|
meta: typeof meta;
|
|
2012
2011
|
og: typeof og;
|
|
2013
2012
|
twitter: typeof twitter;
|
|
@@ -2016,7 +2015,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2016
2015
|
hreflang: typeof hreflang;
|
|
2017
2016
|
feedLink: typeof feedLink;
|
|
2018
2017
|
buildArticleHead: typeof buildArticleHead;
|
|
2019
|
-
}) | (
|
|
2018
|
+
}) | (import("@moku-labs/core").PluginInstance<"build", Config$1, State$1, Api$1, {
|
|
2020
2019
|
"build:phase": {
|
|
2021
2020
|
phase: PhaseName;
|
|
2022
2021
|
status: "start" | "done";
|
|
@@ -2027,7 +2026,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2027
2026
|
pageCount: number;
|
|
2028
2027
|
durationMs: number;
|
|
2029
2028
|
};
|
|
2030
|
-
}> & Record<never, never>) | (
|
|
2029
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"spa", SpaConfig, SpaState, SpaApi, {
|
|
2031
2030
|
"spa:navigate": {
|
|
2032
2031
|
from: string;
|
|
2033
2032
|
to: string;
|
|
@@ -2043,17 +2042,17 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2043
2042
|
name: string;
|
|
2044
2043
|
el: Element;
|
|
2045
2044
|
};
|
|
2046
|
-
}> & Record<never, never>) | (
|
|
2045
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"deploy", Config, State, Api, {
|
|
2047
2046
|
"deploy:complete": {
|
|
2048
2047
|
url: string;
|
|
2049
2048
|
deploymentId: string;
|
|
2050
2049
|
branch: string;
|
|
2051
2050
|
durationMs: number;
|
|
2052
2051
|
};
|
|
2053
|
-
}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins],
|
|
2052
|
+
}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>, import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>]>> | undefined) => import("@moku-labs/core").App<Config$7, Events, (import("@moku-labs/core").PluginInstance<"site", Config$6, Record<string, never>, Api$6, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"i18n", Config$5, Record<string, never>, Api$5, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"router", RouterConfig, RouterState, RouterApi, {}> & {
|
|
2054
2053
|
route: typeof route;
|
|
2055
2054
|
defineRoutes: typeof defineRoutes;
|
|
2056
|
-
}) | (
|
|
2055
|
+
}) | (import("@moku-labs/core").PluginInstance<"content", Config$3, State$3, Api$3, {
|
|
2057
2056
|
"content:ready": {
|
|
2058
2057
|
locales: readonly string[];
|
|
2059
2058
|
articleCount: number;
|
|
@@ -2061,7 +2060,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2061
2060
|
"content:invalidated": {
|
|
2062
2061
|
paths: readonly string[];
|
|
2063
2062
|
};
|
|
2064
|
-
}> & Record<never, never>) | (
|
|
2063
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"head", Config$2, State$2, Api$2, {}> & {
|
|
2065
2064
|
meta: typeof meta;
|
|
2066
2065
|
og: typeof og;
|
|
2067
2066
|
twitter: typeof twitter;
|
|
@@ -2070,7 +2069,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2070
2069
|
hreflang: typeof hreflang;
|
|
2071
2070
|
feedLink: typeof feedLink;
|
|
2072
2071
|
buildArticleHead: typeof buildArticleHead;
|
|
2073
|
-
}) | (
|
|
2072
|
+
}) | (import("@moku-labs/core").PluginInstance<"build", Config$1, State$1, Api$1, {
|
|
2074
2073
|
"build:phase": {
|
|
2075
2074
|
phase: PhaseName;
|
|
2076
2075
|
status: "start" | "done";
|
|
@@ -2081,7 +2080,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2081
2080
|
pageCount: number;
|
|
2082
2081
|
durationMs: number;
|
|
2083
2082
|
};
|
|
2084
|
-
}> & Record<never, never>) | (
|
|
2083
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"spa", SpaConfig, SpaState, SpaApi, {
|
|
2085
2084
|
"spa:navigate": {
|
|
2086
2085
|
from: string;
|
|
2087
2086
|
to: string;
|
|
@@ -2097,13 +2096,13 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2097
2096
|
name: string;
|
|
2098
2097
|
el: Element;
|
|
2099
2098
|
};
|
|
2100
|
-
}> & Record<never, never>) | (
|
|
2099
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"deploy", Config, State, Api, {
|
|
2101
2100
|
"deploy:complete": {
|
|
2102
2101
|
url: string;
|
|
2103
2102
|
deploymentId: string;
|
|
2104
2103
|
branch: string;
|
|
2105
2104
|
durationMs: number;
|
|
2106
2105
|
};
|
|
2107
|
-
}> & Record<never, never>) | ExtraPlugins[number],
|
|
2106
|
+
}> & Record<never, never>) | ExtraPlugins[number], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>, import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>]>>, createPlugin: import("@moku-labs/core").BoundCreatePluginFunction<Config$7, Events, import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>, import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>]>>;
|
|
2108
2107
|
//#endregion
|
|
2109
2108
|
export { types_d_exports as Build, types_d_exports$1 as Content, types_d_exports$2 as Deploy, types_d_exports$3 as Env, types_d_exports$4 as Head, types_d_exports$5 as Log, types_d_exports$6 as Router, types_d_exports$7 as Spa, buildArticleHead, buildPlugin, canonical, contentPlugin, createApp, createPlugin, defineRoutes, deployPlugin, envPlugin, feedLink, headPlugin, hreflang, i18nPlugin, jsonLd, logPlugin, meta, og, route, routerPlugin, sitePlugin, spaPlugin, twitter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _moku_labs_core0 from "@moku-labs/core";
|
|
2
1
|
import { EmitFn } from "@moku-labs/core";
|
|
3
2
|
import { Pluggable, Processor } from "unified";
|
|
4
3
|
import { ComponentChildren, VNode } from "preact";
|
|
@@ -313,7 +312,7 @@ type EnvApi = {
|
|
|
313
312
|
* createApp({ pluginConfigs: { env: { schema: { PUBLIC_API_URL: { public: true } } } } });
|
|
314
313
|
* ```
|
|
315
314
|
*/
|
|
316
|
-
declare const envPlugin:
|
|
315
|
+
declare const envPlugin: import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>;
|
|
317
316
|
//#endregion
|
|
318
317
|
//#region src/config.d.ts
|
|
319
318
|
/**
|
|
@@ -1798,7 +1797,7 @@ type Api = {
|
|
|
1798
1797
|
* Depends: site. Emits: deploy:complete.
|
|
1799
1798
|
* @see README.md
|
|
1800
1799
|
*/
|
|
1801
|
-
declare const deployPlugin:
|
|
1800
|
+
declare const deployPlugin: import("@moku-labs/core").PluginInstance<"deploy", Config, State, Api, {
|
|
1802
1801
|
"deploy:complete": {
|
|
1803
1802
|
url: string;
|
|
1804
1803
|
deploymentId: string;
|
|
@@ -1808,7 +1807,7 @@ declare const deployPlugin: _moku_labs_core0.PluginInstance<"deploy", Config, St
|
|
|
1808
1807
|
}> & Record<never, never>;
|
|
1809
1808
|
//#endregion
|
|
1810
1809
|
//#region src/plugins/build/index.d.ts
|
|
1811
|
-
declare const buildPlugin:
|
|
1810
|
+
declare const buildPlugin: import("@moku-labs/core").PluginInstance<"build", Config$1, State$1, Api$1, {
|
|
1812
1811
|
"build:phase": {
|
|
1813
1812
|
phase: PhaseName;
|
|
1814
1813
|
status: "start" | "done";
|
|
@@ -1822,7 +1821,7 @@ declare const buildPlugin: _moku_labs_core0.PluginInstance<"build", Config$1, St
|
|
|
1822
1821
|
}> & Record<never, never>;
|
|
1823
1822
|
//#endregion
|
|
1824
1823
|
//#region src/plugins/content/index.d.ts
|
|
1825
|
-
declare const contentPlugin:
|
|
1824
|
+
declare const contentPlugin: import("@moku-labs/core").PluginInstance<"content", Config$3, State$3, Api$3, {
|
|
1826
1825
|
"content:ready": {
|
|
1827
1826
|
locales: readonly string[];
|
|
1828
1827
|
articleCount: number;
|
|
@@ -1911,7 +1910,7 @@ declare function feedLink(title: string, url: string, type?: string): HeadElemen
|
|
|
1911
1910
|
declare function buildArticleHead(articleMeta: ArticleMeta, canonicalUrl: string): HeadElement[];
|
|
1912
1911
|
//#endregion
|
|
1913
1912
|
//#region src/plugins/head/index.d.ts
|
|
1914
|
-
declare const headPlugin:
|
|
1913
|
+
declare const headPlugin: import("@moku-labs/core").PluginInstance<"head", Config$2, State$2, Api$2, {}> & {
|
|
1915
1914
|
meta: typeof meta;
|
|
1916
1915
|
og: typeof og;
|
|
1917
1916
|
twitter: typeof twitter;
|
|
@@ -1923,7 +1922,7 @@ declare const headPlugin: _moku_labs_core0.PluginInstance<"head", Config$2, Stat
|
|
|
1923
1922
|
};
|
|
1924
1923
|
//#endregion
|
|
1925
1924
|
//#region src/plugins/i18n/index.d.ts
|
|
1926
|
-
declare const i18nPlugin:
|
|
1925
|
+
declare const i18nPlugin: import("@moku-labs/core").PluginInstance<"i18n", Config$5, Record<string, never>, Api$5, {}> & Record<never, never>;
|
|
1927
1926
|
//#endregion
|
|
1928
1927
|
//#region src/plugins/log/index.d.ts
|
|
1929
1928
|
/**
|
|
@@ -1933,7 +1932,7 @@ declare const i18nPlugin: _moku_labs_core0.PluginInstance<"i18n", Config$5, Reco
|
|
|
1933
1932
|
*
|
|
1934
1933
|
* @see README.md
|
|
1935
1934
|
*/
|
|
1936
|
-
declare const logPlugin:
|
|
1935
|
+
declare const logPlugin: import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>;
|
|
1937
1936
|
//#endregion
|
|
1938
1937
|
//#region src/plugins/router/builders/route-builder.d.ts
|
|
1939
1938
|
/**
|
|
@@ -1968,16 +1967,16 @@ declare function route<P extends string>(pattern: P): RouteBuilder<RouteState<P>
|
|
|
1968
1967
|
declare function defineRoutes<T extends RouteMap>(routes: T): T;
|
|
1969
1968
|
//#endregion
|
|
1970
1969
|
//#region src/plugins/router/index.d.ts
|
|
1971
|
-
declare const routerPlugin:
|
|
1970
|
+
declare const routerPlugin: import("@moku-labs/core").PluginInstance<"router", RouterConfig, RouterState, RouterApi, {}> & {
|
|
1972
1971
|
route: typeof route;
|
|
1973
1972
|
defineRoutes: typeof defineRoutes;
|
|
1974
1973
|
};
|
|
1975
1974
|
//#endregion
|
|
1976
1975
|
//#region src/plugins/site/index.d.ts
|
|
1977
|
-
declare const sitePlugin:
|
|
1976
|
+
declare const sitePlugin: import("@moku-labs/core").PluginInstance<"site", Config$6, Record<string, never>, Api$6, {}> & Record<never, never>;
|
|
1978
1977
|
//#endregion
|
|
1979
1978
|
//#region src/plugins/spa/index.d.ts
|
|
1980
|
-
declare const spaPlugin:
|
|
1979
|
+
declare const spaPlugin: import("@moku-labs/core").PluginInstance<"spa", SpaConfig, SpaState, SpaApi, {
|
|
1981
1980
|
"spa:navigate": {
|
|
1982
1981
|
from: string;
|
|
1983
1982
|
to: string;
|
|
@@ -1996,10 +1995,10 @@ declare const spaPlugin: _moku_labs_core0.PluginInstance<"spa", SpaConfig, SpaSt
|
|
|
1996
1995
|
}> & Record<never, never>;
|
|
1997
1996
|
//#endregion
|
|
1998
1997
|
//#region src/index.d.ts
|
|
1999
|
-
declare const createApp: <const ExtraPlugins extends readonly
|
|
1998
|
+
declare const createApp: <const ExtraPlugins extends readonly import("@moku-labs/core").AnyPluginInstance[] = readonly []>(options?: import("@moku-labs/core").CreateAppOptions<Config$7, Events, (import("@moku-labs/core").PluginInstance<"site", Config$6, Record<string, never>, Api$6, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"i18n", Config$5, Record<string, never>, Api$5, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"router", RouterConfig, RouterState, RouterApi, {}> & {
|
|
2000
1999
|
route: typeof route;
|
|
2001
2000
|
defineRoutes: typeof defineRoutes;
|
|
2002
|
-
}) | (
|
|
2001
|
+
}) | (import("@moku-labs/core").PluginInstance<"content", Config$3, State$3, Api$3, {
|
|
2003
2002
|
"content:ready": {
|
|
2004
2003
|
locales: readonly string[];
|
|
2005
2004
|
articleCount: number;
|
|
@@ -2007,7 +2006,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2007
2006
|
"content:invalidated": {
|
|
2008
2007
|
paths: readonly string[];
|
|
2009
2008
|
};
|
|
2010
|
-
}> & Record<never, never>) | (
|
|
2009
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"head", Config$2, State$2, Api$2, {}> & {
|
|
2011
2010
|
meta: typeof meta;
|
|
2012
2011
|
og: typeof og;
|
|
2013
2012
|
twitter: typeof twitter;
|
|
@@ -2016,7 +2015,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2016
2015
|
hreflang: typeof hreflang;
|
|
2017
2016
|
feedLink: typeof feedLink;
|
|
2018
2017
|
buildArticleHead: typeof buildArticleHead;
|
|
2019
|
-
}) | (
|
|
2018
|
+
}) | (import("@moku-labs/core").PluginInstance<"build", Config$1, State$1, Api$1, {
|
|
2020
2019
|
"build:phase": {
|
|
2021
2020
|
phase: PhaseName;
|
|
2022
2021
|
status: "start" | "done";
|
|
@@ -2027,7 +2026,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2027
2026
|
pageCount: number;
|
|
2028
2027
|
durationMs: number;
|
|
2029
2028
|
};
|
|
2030
|
-
}> & Record<never, never>) | (
|
|
2029
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"spa", SpaConfig, SpaState, SpaApi, {
|
|
2031
2030
|
"spa:navigate": {
|
|
2032
2031
|
from: string;
|
|
2033
2032
|
to: string;
|
|
@@ -2043,17 +2042,17 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2043
2042
|
name: string;
|
|
2044
2043
|
el: Element;
|
|
2045
2044
|
};
|
|
2046
|
-
}> & Record<never, never>) | (
|
|
2045
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"deploy", Config, State, Api, {
|
|
2047
2046
|
"deploy:complete": {
|
|
2048
2047
|
url: string;
|
|
2049
2048
|
deploymentId: string;
|
|
2050
2049
|
branch: string;
|
|
2051
2050
|
durationMs: number;
|
|
2052
2051
|
};
|
|
2053
|
-
}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins],
|
|
2052
|
+
}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>, import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>]>> | undefined) => import("@moku-labs/core").App<Config$7, Events, (import("@moku-labs/core").PluginInstance<"site", Config$6, Record<string, never>, Api$6, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"i18n", Config$5, Record<string, never>, Api$5, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"router", RouterConfig, RouterState, RouterApi, {}> & {
|
|
2054
2053
|
route: typeof route;
|
|
2055
2054
|
defineRoutes: typeof defineRoutes;
|
|
2056
|
-
}) | (
|
|
2055
|
+
}) | (import("@moku-labs/core").PluginInstance<"content", Config$3, State$3, Api$3, {
|
|
2057
2056
|
"content:ready": {
|
|
2058
2057
|
locales: readonly string[];
|
|
2059
2058
|
articleCount: number;
|
|
@@ -2061,7 +2060,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2061
2060
|
"content:invalidated": {
|
|
2062
2061
|
paths: readonly string[];
|
|
2063
2062
|
};
|
|
2064
|
-
}> & Record<never, never>) | (
|
|
2063
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"head", Config$2, State$2, Api$2, {}> & {
|
|
2065
2064
|
meta: typeof meta;
|
|
2066
2065
|
og: typeof og;
|
|
2067
2066
|
twitter: typeof twitter;
|
|
@@ -2070,7 +2069,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2070
2069
|
hreflang: typeof hreflang;
|
|
2071
2070
|
feedLink: typeof feedLink;
|
|
2072
2071
|
buildArticleHead: typeof buildArticleHead;
|
|
2073
|
-
}) | (
|
|
2072
|
+
}) | (import("@moku-labs/core").PluginInstance<"build", Config$1, State$1, Api$1, {
|
|
2074
2073
|
"build:phase": {
|
|
2075
2074
|
phase: PhaseName;
|
|
2076
2075
|
status: "start" | "done";
|
|
@@ -2081,7 +2080,7 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2081
2080
|
pageCount: number;
|
|
2082
2081
|
durationMs: number;
|
|
2083
2082
|
};
|
|
2084
|
-
}> & Record<never, never>) | (
|
|
2083
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"spa", SpaConfig, SpaState, SpaApi, {
|
|
2085
2084
|
"spa:navigate": {
|
|
2086
2085
|
from: string;
|
|
2087
2086
|
to: string;
|
|
@@ -2097,13 +2096,13 @@ declare const createApp: <const ExtraPlugins extends readonly _moku_labs_core0.A
|
|
|
2097
2096
|
name: string;
|
|
2098
2097
|
el: Element;
|
|
2099
2098
|
};
|
|
2100
|
-
}> & Record<never, never>) | (
|
|
2099
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"deploy", Config, State, Api, {
|
|
2101
2100
|
"deploy:complete": {
|
|
2102
2101
|
url: string;
|
|
2103
2102
|
deploymentId: string;
|
|
2104
2103
|
branch: string;
|
|
2105
2104
|
durationMs: number;
|
|
2106
2105
|
};
|
|
2107
|
-
}> & Record<never, never>) | ExtraPlugins[number],
|
|
2106
|
+
}> & Record<never, never>) | ExtraPlugins[number], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>, import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>]>>, createPlugin: import("@moku-labs/core").BoundCreatePluginFunction<Config$7, Events, import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", LogConfig, LogState, LogApi>, import("@moku-labs/core").CorePluginInstance<"env", EnvConfig, EnvState, EnvApi>]>>;
|
|
2108
2107
|
//#endregion
|
|
2109
2108
|
export { types_d_exports as Build, types_d_exports$1 as Content, types_d_exports$2 as Deploy, types_d_exports$3 as Env, types_d_exports$4 as Head, types_d_exports$5 as Log, types_d_exports$6 as Router, types_d_exports$7 as Spa, buildArticleHead, buildPlugin, canonical, contentPlugin, createApp, createPlugin, defineRoutes, deployPlugin, envPlugin, feedLink, headPlugin, hreflang, i18nPlugin, jsonLd, logPlugin, meta, og, route, routerPlugin, sitePlugin, spaPlugin, twitter };
|