@zlooks.cn/password-auth-server 1.1.1 → 1.1.3

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.
Files changed (12) hide show
  1. package/.hile-rsc/{build-mu5lzym8-deb6707f/client-browser/chunks/chunk-5J2CX2FD.js → build-muffk09z-b0486c87/client-browser/chunks/chunk-FXW7JCGC.js} +3 -3
  2. package/.hile-rsc/{build-mu5lzym8-deb6707f/client-browser/src-plugin-page-frame-07c4de56a6-BTXX7FS6.js → build-muffk09z-b0486c87/client-browser/src-plugin-page-frame-07c4de56a6-2K6IIB4P.js} +1 -1
  3. package/.hile-rsc/{build-mu5lzym8-deb6707f/client-browser/src-plugin-password-form-3bd63d69e5-RMKPWVFS.js → build-muffk09z-b0486c87/client-browser/src-plugin-password-form-3bd63d69e5-ZFFDBBEL.js} +1 -1
  4. package/.hile-rsc/{build-mu5lzym8-deb6707f/client-ssr/chunks/chunk-VB2NFMGO.js → build-muffk09z-b0486c87/client-ssr/chunks/chunk-2JM54AAC.js} +4 -4
  5. package/.hile-rsc/{build-mu5lzym8-deb6707f/client-ssr/src-plugin-page-frame-07c4de56a6-G6MR223B.js → build-muffk09z-b0486c87/client-ssr/src-plugin-page-frame-07c4de56a6-UO572PV4.js} +1 -1
  6. package/.hile-rsc/{build-mu5lzym8-deb6707f/client-ssr/src-plugin-password-form-3bd63d69e5-PDKAVKBR.js → build-muffk09z-b0486c87/client-ssr/src-plugin-password-form-3bd63d69e5-VTA2VYKE.js} +1 -1
  7. package/.hile-rsc/{build-mu5lzym8-deb6707f → build-muffk09z-b0486c87}/plugin.json +22 -19
  8. package/.hile-rsc/{build-mu5lzym8-deb6707f → build-muffk09z-b0486c87}/server-rsc/index.js +58 -33
  9. package/package.json +7 -7
  10. /package/.hile-rsc/{build-mu5lzym8-deb6707f → build-muffk09z-b0486c87}/client-browser/src-plugin-page-frame-07c4de56a6-3F24AYCH.css +0 -0
  11. /package/.hile-rsc/{build-mu5lzym8-deb6707f → build-muffk09z-b0486c87}/client-browser/src-plugin-password-form-3bd63d69e5-TRYMJX4F.css +0 -0
  12. /package/.hile-rsc/{build-mu5lzym8-deb6707f → build-muffk09z-b0486c87}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
@@ -317,7 +317,7 @@ var useSyncExternalStore = React.useSyncExternalStore;
317
317
  var useTransition = React.useTransition;
318
318
  var version = React.version;
319
319
 
320
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation-internals.js
320
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation-internals.js
321
321
  function resolveRscNavigationUrl(href, currentHref) {
322
322
  try {
323
323
  const destination = new URL(href, currentHref);
@@ -335,7 +335,7 @@ function shouldHandleRscNavigationClick(event, anchor, currentHref) {
335
335
  return current !== void 0 && destination !== void 0 && destination.origin === current.origin;
336
336
  }
337
337
 
338
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation-runtime.js
338
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation-runtime.js
339
339
  var runtimeStateKey = /* @__PURE__ */ Symbol.for("@hile/rsc/client/navigation/runtime");
340
340
  function runtimeState() {
341
341
  const scope = globalThis;
@@ -345,7 +345,7 @@ function getRscNavigationRuntime() {
345
345
  return runtimeState().installations.at(-1)?.navigation;
346
346
  }
347
347
 
348
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation.js
348
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation.js
349
349
  function browserLocation() {
350
350
  return typeof window === "undefined" ? void 0 : window.location;
351
351
  }
@@ -73,7 +73,7 @@ import {
73
73
  useSyncExternalStore,
74
74
  useZlooksApp,
75
75
  warning_default
76
- } from "./chunks/chunk-5J2CX2FD.js";
76
+ } from "./chunks/chunk-FXW7JCGC.js";
77
77
 
78
78
  // ../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/lib/asn/EditOutlined.js
79
79
  var require_EditOutlined = __commonJS({
@@ -120,7 +120,7 @@ import {
120
120
  version,
121
121
  warning_default,
122
122
  zoomIn
123
- } from "./chunks/chunk-5J2CX2FD.js";
123
+ } from "./chunks/chunk-FXW7JCGC.js";
124
124
 
125
125
  // ../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/lib/asn/SearchOutlined.js
126
126
  var require_SearchOutlined = __commonJS({
@@ -21286,10 +21286,10 @@ var require_CopyOutlined = __commonJS({
21286
21286
  }
21287
21287
  });
21288
21288
 
21289
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation.js
21289
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation.js
21290
21290
  init_react();
21291
21291
 
21292
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation-internals.js
21292
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation-internals.js
21293
21293
  function resolveRscNavigationUrl(href, currentHref) {
21294
21294
  try {
21295
21295
  const destination = new URL(href, currentHref);
@@ -21307,7 +21307,7 @@ function shouldHandleRscNavigationClick(event, anchor, currentHref) {
21307
21307
  return current !== void 0 && destination !== void 0 && destination.origin === current.origin;
21308
21308
  }
21309
21309
 
21310
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation-runtime.js
21310
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation-runtime.js
21311
21311
  var runtimeStateKey = /* @__PURE__ */ Symbol.for("@hile/rsc/client/navigation/runtime");
21312
21312
  function runtimeState() {
21313
21313
  const scope = globalThis;
@@ -21317,7 +21317,7 @@ function getRscNavigationRuntime() {
21317
21317
  return runtimeState().installations.at(-1)?.navigation;
21318
21318
  }
21319
21319
 
21320
- // ../../node_modules/.pnpm/@hile+rsc@1.0.24_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._4a79a70f5d2c56efc9d87074da83a607/node_modules/@hile/rsc/dist/client/navigation.js
21320
+ // ../../node_modules/.pnpm/@hile+rsc@1.0.26_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._fb700dcdbe4df56539c51ed42ce11fd6/node_modules/@hile/rsc/dist/client/navigation.js
21321
21321
  function browserLocation() {
21322
21322
  return typeof window === "undefined" ? void 0 : window.location;
21323
21323
  }
@@ -54,7 +54,7 @@ import {
54
54
  useState,
55
55
  useSyncExternalStore,
56
56
  useZlooksApp
57
- } from "./chunks/chunk-VB2NFMGO.js";
57
+ } from "./chunks/chunk-2JM54AAC.js";
58
58
 
59
59
  // ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/es/app/App.js
60
60
  init_react();
@@ -74,7 +74,7 @@ import {
74
74
  useRequest,
75
75
  useRscNavigation,
76
76
  useState
77
- } from "./chunks/chunk-VB2NFMGO.js";
77
+ } from "./chunks/chunk-2JM54AAC.js";
78
78
 
79
79
  // ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/lib/_util/getReactMajorVersionCanDelMe.js
80
80
  var require_getReactMajorVersionCanDelMe = __commonJS({
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "protocolVersion": 1,
3
3
  "pluginId": "auth.password",
4
- "buildId": "build-mu5lzym8-deb6707f",
4
+ "buildId": "build-muffk09z-b0486c87",
5
5
  "runtime": {
6
6
  "react": "19.2.8",
7
7
  "reactDom": "19.2.8",
@@ -9,32 +9,32 @@
9
9
  },
10
10
  "server": {
11
11
  "entry": "server-rsc/index.js",
12
- "integrity": "sha256-EY7kvxOF2EUeSa/i6vN2Dd3JWxJWR3emCfKMbigbbwU=",
13
- "size": 595410
12
+ "integrity": "sha256-ebJXVNN+rfxR9aZ+/FTZgj+fw3uDqX1/zU0JvbQSFys=",
13
+ "size": 595431
14
14
  },
15
15
  "serverFunctions": [],
16
16
  "clients": [
17
17
  {
18
18
  "id": "auth.password/src/plugin/page-frame#default",
19
- "module": "client-browser/src-plugin-page-frame-07c4de56a6-BTXX7FS6.js",
20
- "ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-G6MR223B.js",
19
+ "module": "client-browser/src-plugin-page-frame-07c4de56a6-2K6IIB4P.js",
20
+ "ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-UO572PV4.js",
21
21
  "exportName": "default",
22
22
  "chunks": [
23
23
  {
24
- "path": "client-browser/chunks/chunk-5J2CX2FD.js",
25
- "integrity": "sha256-tlfr00/QCIgZXO90u9hl4BmnSRClkr1O0S8hXbc4gtg=",
24
+ "path": "client-browser/chunks/chunk-FXW7JCGC.js",
25
+ "integrity": "sha256-Or/jsvfRx+RF/BuwwPGTHiuenz+Iabc/H1k2/8rFlWo=",
26
26
  "size": 1454698
27
27
  }
28
28
  ],
29
29
  "ssrChunks": [
30
30
  {
31
- "path": "client-ssr/chunks/chunk-VB2NFMGO.js",
32
- "integrity": "sha256-YzW4YLXT3X/XO9n6W/57bSbUNeXH114FO0nkwf1Ryvc=",
31
+ "path": "client-ssr/chunks/chunk-2JM54AAC.js",
32
+ "integrity": "sha256-z/gUDYamtxYZzuWvcXGiwGcPmuQAZaWUDLcFIfWEEU0=",
33
33
  "size": 1382540
34
34
  }
35
35
  ],
36
- "integrity": "sha256-jSw6CJTnOOIADmC9iHwQ+r0NzP4Xb2KtIyNwbjZCmEw=",
37
- "ssrIntegrity": "sha256-Ynj2G8zJEolrrnOTAeR3kWJZTDdfKn4CiWZSj4RPK9w=",
36
+ "integrity": "sha256-CMZNjgEIy+8zRl8vo31EbR9+Y1W1cqZ9iWFpvdxJxv8=",
37
+ "ssrIntegrity": "sha256-cGY45u9FRj2Yp0CYB8hwJl5ZsD4022OYW59R1kDfOfc=",
38
38
  "size": 81661,
39
39
  "ssrSize": 525253,
40
40
  "styles": [
@@ -43,25 +43,25 @@
43
43
  },
44
44
  {
45
45
  "id": "auth.password/src/plugin/password-form#default",
46
- "module": "client-browser/src-plugin-password-form-3bd63d69e5-RMKPWVFS.js",
47
- "ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-PDKAVKBR.js",
46
+ "module": "client-browser/src-plugin-password-form-3bd63d69e5-ZFFDBBEL.js",
47
+ "ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-VTA2VYKE.js",
48
48
  "exportName": "default",
49
49
  "chunks": [
50
50
  {
51
- "path": "client-browser/chunks/chunk-5J2CX2FD.js",
52
- "integrity": "sha256-tlfr00/QCIgZXO90u9hl4BmnSRClkr1O0S8hXbc4gtg=",
51
+ "path": "client-browser/chunks/chunk-FXW7JCGC.js",
52
+ "integrity": "sha256-Or/jsvfRx+RF/BuwwPGTHiuenz+Iabc/H1k2/8rFlWo=",
53
53
  "size": 1454698
54
54
  }
55
55
  ],
56
56
  "ssrChunks": [
57
57
  {
58
- "path": "client-ssr/chunks/chunk-VB2NFMGO.js",
59
- "integrity": "sha256-YzW4YLXT3X/XO9n6W/57bSbUNeXH114FO0nkwf1Ryvc=",
58
+ "path": "client-ssr/chunks/chunk-2JM54AAC.js",
59
+ "integrity": "sha256-z/gUDYamtxYZzuWvcXGiwGcPmuQAZaWUDLcFIfWEEU0=",
60
60
  "size": 1382540
61
61
  }
62
62
  ],
63
- "integrity": "sha256-QRXECG5iFUWRUUpi0/lILIyGDWDfNiW7Y8X9QTTlUNk=",
64
- "ssrIntegrity": "sha256-RX8I93F+Gn02PmEvfAIBaxHs3/xqRsKmjlBtX2Ta4sE=",
63
+ "integrity": "sha256-B5xRaEPDS28VlqoX8iTXl5csA0GnPgRWDCJhfnBvzcM=",
64
+ "ssrIntegrity": "sha256-YSuxLDmEUHCPiQRs74nY4KcUanmNXMD2U7U0L0ajuH4=",
65
65
  "size": 173584,
66
66
  "ssrSize": 4801433,
67
67
  "styles": [
@@ -93,6 +93,7 @@
93
93
  {
94
94
  "path": "/login",
95
95
  "entry": "LoginPage",
96
+ "metadataEntry": "LoginMetadata",
96
97
  "prefetch": "assets",
97
98
  "clientReferences": [
98
99
  "auth.password/src/plugin/page-frame#default",
@@ -102,6 +103,7 @@
102
103
  {
103
104
  "path": "/register",
104
105
  "entry": "RegistrationPage",
106
+ "metadataEntry": "RegistrationMetadata",
105
107
  "prefetch": "assets",
106
108
  "clientReferences": [
107
109
  "auth.password/src/plugin/page-frame#default",
@@ -111,6 +113,7 @@
111
113
  {
112
114
  "path": "/recovery",
113
115
  "entry": "RecoveryPage",
116
+ "metadataEntry": "RecoveryMetadata",
114
117
  "prefetch": "assets",
115
118
  "clientReferences": [
116
119
  "auth.password/src/plugin/page-frame#default",
@@ -15483,19 +15483,41 @@ function parseShellUserView(input) {
15483
15483
 
15484
15484
  // ../ui/dist/seo.js
15485
15485
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15486
- function createZlooksPageSeo(input) {
15487
- return {
15486
+ var canonicalPathSchema = external_exports.string().trim().min(1).max(2048).refine((value) => value.startsWith("/") && !value.startsWith("//") && !value.includes("#") && !/[\\\s]/.test(value), "canonicalPath must be an absolute same-origin path without a fragment");
15487
+ var documentImageUrlSchema = external_exports.string().trim().min(1).max(2048).refine((value) => {
15488
+ if (value.startsWith("/") && !value.startsWith("//") && !/[\\\s]/.test(value))
15489
+ return true;
15490
+ try {
15491
+ return /^https?:$/.test(new URL(value).protocol);
15492
+ } catch {
15493
+ return false;
15494
+ }
15495
+ }, "imageUrl must be a same-origin path or an HTTP(S) URL");
15496
+ var zlooksDocumentMetadataSchema = external_exports.strictObject({
15497
+ title: external_exports.string().trim().min(1).max(200),
15498
+ description: external_exports.string().trim().min(1).max(500),
15499
+ canonicalPath: canonicalPathSchema,
15500
+ siteName: external_exports.string().trim().min(1).max(100),
15501
+ robots: external_exports.enum(["index, follow", "noindex, nofollow"]),
15502
+ openGraph: external_exports.strictObject({
15503
+ type: external_exports.enum(["website", "article"]),
15504
+ imageUrl: documentImageUrlSchema.optional(),
15505
+ publishedTime: external_exports.iso.datetime({ offset: true }).optional(),
15506
+ modifiedTime: external_exports.iso.datetime({ offset: true }).optional()
15507
+ })
15508
+ });
15509
+ function parseZlooksDocumentMetadata(value) {
15510
+ return zlooksDocumentMetadataSchema.parse(value);
15511
+ }
15512
+ function createZlooksPageDocumentMetadata(input) {
15513
+ return parseZlooksDocumentMetadata({
15488
15514
  title: input.title === input.siteName ? input.title : `${input.title} | ${input.siteName}`,
15489
15515
  description: input.description,
15490
- canonicalUrl: new URL(input.pathname, input.origin).toString(),
15516
+ canonicalPath: input.canonicalPath,
15491
15517
  siteName: input.siteName,
15492
15518
  robots: input.index ? "index, follow" : "noindex, nofollow",
15493
15519
  openGraph: { type: "website" }
15494
- };
15495
- }
15496
- function ZlooksSeo({ seo }) {
15497
- const imageUrl = seo.openGraph.imageUrl;
15498
- return _jsxs(_Fragment, { children: [_jsx("title", { children: seo.title }), _jsx("meta", { name: "application-name", content: seo.siteName }), _jsx("meta", { name: "description", content: seo.description }), _jsx("meta", { name: "robots", content: seo.robots }), _jsx("meta", { name: "googlebot", content: seo.robots }), _jsx("link", { rel: "canonical", href: seo.canonicalUrl }), _jsx("meta", { property: "og:locale", content: "zh_CN" }), _jsx("meta", { property: "og:type", content: seo.openGraph.type }), _jsx("meta", { property: "og:site_name", content: seo.siteName }), _jsx("meta", { property: "og:title", content: seo.title }), _jsx("meta", { property: "og:description", content: seo.description }), _jsx("meta", { property: "og:url", content: seo.canonicalUrl }), imageUrl ? _jsx("meta", { property: "og:image", content: imageUrl }) : null, seo.openGraph.publishedTime ? _jsx("meta", { property: "article:published_time", content: seo.openGraph.publishedTime }) : null, seo.openGraph.modifiedTime ? _jsx("meta", { property: "article:modified_time", content: seo.openGraph.modifiedTime }) : null, _jsx("meta", { name: "twitter:card", content: imageUrl ? "summary_large_image" : "summary" }), _jsx("meta", { name: "twitter:title", content: seo.title }), _jsx("meta", { name: "twitter:description", content: seo.description }), imageUrl ? _jsx("meta", { name: "twitter:image", content: imageUrl }) : null] });
15520
+ });
15499
15521
  }
15500
15522
 
15501
15523
  // hile-rsc-client-reference:/Users/evioshen/code/github/cevio/www.zlooks.cn/packages/password-auth-server/src/plugin/password-form.tsx
@@ -15507,7 +15529,7 @@ var __hileRemoteClientBoundary = __hileRegisterClientReference(function() {
15507
15529
  function __hileDefault(props) {
15508
15530
  return React.createElement(__hileRemoteClientBoundary, {
15509
15531
  pluginId: "auth.password",
15510
- buildId: "build-mu5lzym8-deb6707f",
15532
+ buildId: "build-muffk09z-b0486c87",
15511
15533
  referenceId: "auth.password/src/plugin/password-form#default",
15512
15534
  exportName: "default",
15513
15535
  props
@@ -15524,7 +15546,7 @@ var __hileRemoteClientBoundary2 = __hileRegisterClientReference2(function() {
15524
15546
  function __hileDefault2(props) {
15525
15547
  return React2.createElement(__hileRemoteClientBoundary2, {
15526
15548
  pluginId: "auth.password",
15527
- buildId: "build-mu5lzym8-deb6707f",
15549
+ buildId: "build-muffk09z-b0486c87",
15528
15550
  referenceId: "auth.password/src/plugin/page-frame#default",
15529
15551
  exportName: "default",
15530
15552
  props
@@ -15533,43 +15555,43 @@ function __hileDefault2(props) {
15533
15555
  var page_frame_default = __hileDefault2;
15534
15556
 
15535
15557
  // src/plugin/page.tsx
15536
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15558
+ import { jsx } from "react/jsx-runtime";
15537
15559
  function LoginPage(props) {
15538
15560
  const transactionId = readTransactionId(props);
15539
15561
  const shell = readShellContext(props);
15540
15562
  const site = readSiteConfig(props);
15541
- return /* @__PURE__ */ jsx(PageFrame, { description: "\u4F7F\u7528\u5BC6\u7801\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55\u3002", shell, site, title: "\u5BC6\u7801\u767B\u5F55", children: /* @__PURE__ */ jsx(password_form_default, { intent: "login", ...transactionId ? { transactionId } : {} }) });
15563
+ return /* @__PURE__ */ jsx(page_frame_default, { shell, site, children: /* @__PURE__ */ jsx(password_form_default, { intent: "login", ...transactionId ? { transactionId } : {} }) });
15542
15564
  }
15543
15565
  function RegistrationPage(props) {
15544
15566
  const transactionId = readTransactionId(props);
15545
15567
  const shell = readShellContext(props);
15546
15568
  const site = readSiteConfig(props);
15547
- return /* @__PURE__ */ jsx(PageFrame, { description: "\u9A8C\u8BC1\u90AE\u7BB1\u5E76\u521B\u5EFA\u8D26\u6237\u3002", shell, site, title: "\u5BC6\u7801\u6CE8\u518C", children: /* @__PURE__ */ jsx(password_form_default, { intent: "registration", ...transactionId ? { transactionId } : {} }) });
15569
+ return /* @__PURE__ */ jsx(page_frame_default, { shell, site, children: /* @__PURE__ */ jsx(password_form_default, { intent: "registration", ...transactionId ? { transactionId } : {} }) });
15548
15570
  }
15549
15571
  function RecoveryPage(props) {
15550
15572
  const transactionId = readTransactionId(props);
15551
15573
  const shell = readShellContext(props);
15552
15574
  const site = readSiteConfig(props);
15553
- return /* @__PURE__ */ jsx(PageFrame, { description: "\u9A8C\u8BC1\u90AE\u7BB1\u540E\u91CD\u7F6E\u8D26\u6237\u5BC6\u7801\u3002", shell, site, title: "\u627E\u56DE\u5BC6\u7801", children: /* @__PURE__ */ jsx(password_form_default, { intent: "recovery", ...transactionId ? { transactionId } : {} }) });
15554
- }
15555
- function PageFrame({
15556
- children,
15557
- description: description2,
15558
- shell,
15559
- site,
15560
- title: title2
15561
- }) {
15562
- return /* @__PURE__ */ jsxs(Fragment, { children: [
15563
- /* @__PURE__ */ jsx(ZlooksSeo, { seo: createZlooksPageSeo({
15564
- title: title2,
15565
- description: description2,
15566
- origin: shell.origin,
15567
- pathname: shell.pathname,
15568
- siteName: site.value.identity.name,
15569
- index: false
15570
- }) }),
15571
- /* @__PURE__ */ jsx(page_frame_default, { shell, site, children })
15572
- ] });
15575
+ return /* @__PURE__ */ jsx(page_frame_default, { shell, site, children: /* @__PURE__ */ jsx(password_form_default, { intent: "recovery", ...transactionId ? { transactionId } : {} }) });
15576
+ }
15577
+ function LoginMetadata(props) {
15578
+ return createMetadata(props, "\u5BC6\u7801\u767B\u5F55", "\u4F7F\u7528\u5BC6\u7801\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55\u3002", "/auth.password/login");
15579
+ }
15580
+ function RegistrationMetadata(props) {
15581
+ return createMetadata(props, "\u5BC6\u7801\u6CE8\u518C", "\u9A8C\u8BC1\u90AE\u7BB1\u5E76\u521B\u5EFA\u8D26\u6237\u3002", "/auth.password/register");
15582
+ }
15583
+ function RecoveryMetadata(props) {
15584
+ return createMetadata(props, "\u627E\u56DE\u5BC6\u7801", "\u9A8C\u8BC1\u90AE\u7BB1\u540E\u91CD\u7F6E\u8D26\u6237\u5BC6\u7801\u3002", "/auth.password/recovery");
15585
+ }
15586
+ function createMetadata(props, title2, description2, canonicalPath) {
15587
+ const site = readSiteConfig(props);
15588
+ return createZlooksPageDocumentMetadata({
15589
+ title: title2,
15590
+ description: description2,
15591
+ canonicalPath,
15592
+ siteName: site.value.identity.name,
15593
+ index: false
15594
+ });
15573
15595
  }
15574
15596
  function readShellContext(props) {
15575
15597
  return parseZlooksRscShellContext(props.params[ZLOOKS_RSC_SHELL_CONTEXT_PARAM]);
@@ -15582,7 +15604,10 @@ function readTransactionId(props) {
15582
15604
  return Array.isArray(value) ? value[0] : value;
15583
15605
  }
15584
15606
  export {
15607
+ LoginMetadata,
15585
15608
  LoginPage,
15609
+ RecoveryMetadata,
15586
15610
  RecoveryPage,
15611
+ RegistrationMetadata,
15587
15612
  RegistrationPage
15588
15613
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zlooks.cn/password-auth-server",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -52,8 +52,8 @@
52
52
  "@hile/redis-lock": "4.0.2",
53
53
  "@hile/redis-rate-limit": "4.0.5",
54
54
  "@hile/reloader": "3.0.4",
55
- "@hile/rsc": "1.0.24",
56
- "@hile/rsc-discovery-hile": "1.0.21",
55
+ "@hile/rsc": "1.0.26",
56
+ "@hile/rsc-discovery-hile": "1.0.23",
57
57
  "@hile/typeorm": "4.0.3",
58
58
  "@node-rs/argon2": "2.1.0",
59
59
  "@zlooks.cn/auth-extension-contract": "1.0.2",
@@ -62,8 +62,8 @@
62
62
  "@zlooks.cn/global-config-shared": "1.0.2",
63
63
  "@zlooks.cn/infrastructure": "1.0.0",
64
64
  "@zlooks.cn/registry-config": "1.0.1",
65
- "@zlooks.cn/service-command": "1.0.3",
66
- "@zlooks.cn/ui": "1.1.1",
65
+ "@zlooks.cn/service-command": "1.0.4",
66
+ "@zlooks.cn/ui": "1.1.3",
67
67
  "@zlooks.cn/user-shared": "1.1.1",
68
68
  "@zlooks.cn/utils": "1.0.0",
69
69
  "antd": "6.6.1",
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "devDependencies": {
81
81
  "@hile/cli": "4.0.9",
82
- "@hile/rsc-build": "1.0.21",
82
+ "@hile/rsc-build": "1.0.23",
83
83
  "@types/node": "26.2.0",
84
84
  "@types/nodemailer": "8.0.1",
85
85
  "@types/react": "19.2.18",
@@ -89,5 +89,5 @@
89
89
  "typescript": "7.0.2",
90
90
  "vitest": "4.1.11"
91
91
  },
92
- "gitHead": "75339cfb2616ee120876402c1daf3bc32803c5d0"
92
+ "gitHead": "d2833eebeae36a36397ac466e28af3f29c3fe3c8"
93
93
  }