@rytass/bpm-core-react 0.17.0 → 0.17.1

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 (215) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/chunks/admin-pickers-BRHk3qKq.cjs +2 -0
  3. package/dist/chunks/admin-pickers-BRHk3qKq.cjs.map +1 -0
  4. package/dist/chunks/{admin-pickers-DxhzECkD.js → admin-pickers-Djq3h-UR.js} +41 -39
  5. package/dist/chunks/admin-pickers-Djq3h-UR.js.map +1 -0
  6. package/dist/chunks/{categories-DjENouRm.cjs → categories-AxxhqjLZ.cjs} +2 -2
  7. package/dist/chunks/{categories-DjENouRm.cjs.map → categories-AxxhqjLZ.cjs.map} +1 -1
  8. package/dist/chunks/{categories-1gKxeEqw.js → categories-riC33J_j.js} +2 -2
  9. package/dist/chunks/{categories-1gKxeEqw.js.map → categories-riC33J_j.js.map} +1 -1
  10. package/dist/chunks/{compose-DZ7RKvUp.cjs → compose-B7TtrpQJ.cjs} +2 -2
  11. package/dist/chunks/{compose-DZ7RKvUp.cjs.map → compose-B7TtrpQJ.cjs.map} +1 -1
  12. package/dist/chunks/{compose-Crklayzy.js → compose-_pREPtfN.js} +2 -2
  13. package/dist/chunks/{compose-Crklayzy.js.map → compose-_pREPtfN.js.map} +1 -1
  14. package/dist/chunks/{designer-D9eFma1W.js → designer-BiywgNXs.js} +2 -2
  15. package/dist/chunks/{designer-D9eFma1W.js.map → designer-BiywgNXs.js.map} +1 -1
  16. package/dist/chunks/{designer-sJGTGYOf.cjs → designer-ttAqv859.cjs} +2 -2
  17. package/dist/chunks/{designer-sJGTGYOf.cjs.map → designer-ttAqv859.cjs.map} +1 -1
  18. package/dist/chunks/{orgs-Dr0FFoZo.cjs → orgs-C8usknWb.cjs} +2 -2
  19. package/dist/chunks/{orgs-Dr0FFoZo.cjs.map → orgs-C8usknWb.cjs.map} +1 -1
  20. package/dist/chunks/{orgs-CY0i1fie.js → orgs-Lg7tXv2u.js} +2 -2
  21. package/dist/chunks/{orgs-CY0i1fie.js.map → orgs-Lg7tXv2u.js.map} +1 -1
  22. package/dist/chunks/{users-BCyePbwB.js → users-DRbuDYF1.js} +2 -2
  23. package/dist/chunks/{users-BCyePbwB.js.map → users-DRbuDYF1.js.map} +1 -1
  24. package/dist/chunks/{users-DVBJluFR.cjs → users-DVQicZIo.cjs} +2 -2
  25. package/dist/chunks/{users-DVBJluFR.cjs.map → users-DVQicZIo.cjs.map} +1 -1
  26. package/dist/components/admin-pickers.d.cts +65 -0
  27. package/dist/components/approval-instance-list-page.d.cts +17 -0
  28. package/dist/components/bpm-form-field.d.cts +10 -0
  29. package/dist/components/bpm-notification-bell-button.d.cts +22 -0
  30. package/dist/components/dashboard-page.d.cts +7 -0
  31. package/dist/components/notification-drawer.d.cts +11 -0
  32. package/dist/components/org-unit-tree-draft-editor.d.cts +24 -0
  33. package/dist/components/org-unit-tree-draft-editor.d.ts +1 -1
  34. package/dist/components/pdf-preview.d.cts +12 -0
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.d.cts +15 -0
  37. package/dist/index.d.ts +15 -15
  38. package/dist/index.js +1 -1
  39. package/dist/lib/auth-provider.d.cts +37 -0
  40. package/dist/lib/format-date-time.d.cts +5 -0
  41. package/dist/lib/format-member-label.d.cts +12 -0
  42. package/dist/lib/member-profile-resolution.d.cts +48 -0
  43. package/dist/lib/notification-drawer-provider.d.cts +27 -0
  44. package/dist/lib/notification-unread-provider.d.cts +25 -0
  45. package/dist/lib/org-tree-draft.d.cts +27 -0
  46. package/dist/lib/providers.d.cts +31 -0
  47. package/dist/lib/router-adapter.d.cts +47 -0
  48. package/dist/lib/routes-config.d.cts +117 -0
  49. package/dist/lib/task-node-label.d.cts +10 -0
  50. package/dist/lib/use-bpm-logout.d.cts +12 -0
  51. package/dist/lib/use-bpm-member.d.cts +17 -0
  52. package/dist/next/BPMNextProviders.d.cts +51 -0
  53. package/dist/next/index.d.cts +2 -0
  54. package/dist/next/index.d.ts +2 -2
  55. package/dist/next/workflow-chat-route.d.cts +17 -0
  56. package/dist/pages/admin/delegations/index.d.cts +4 -0
  57. package/dist/pages/admin/orgs/index.cjs +1 -1
  58. package/dist/pages/admin/orgs/index.d.cts +4 -0
  59. package/dist/pages/admin/orgs/index.js +1 -1
  60. package/dist/pages/admin/users/index.cjs +1 -1
  61. package/dist/pages/admin/users/index.d.cts +4 -0
  62. package/dist/pages/admin/users/index.js +1 -1
  63. package/dist/pages/admin/webhook-endpoints/index.d.cts +4 -0
  64. package/dist/pages/cc/index.d.cts +16 -0
  65. package/dist/pages/dashboard/index.d.cts +16 -0
  66. package/dist/pages/delegations/index.d.cts +4 -0
  67. package/dist/pages/inbox/index.d.cts +16 -0
  68. package/dist/pages/instances/detail/index.d.cts +23 -0
  69. package/dist/pages/instances/new/index.d.cts +20 -0
  70. package/dist/pages/login/index.d.cts +21 -0
  71. package/dist/pages/root/index.d.cts +18 -0
  72. package/dist/pages/search/index.d.cts +16 -0
  73. package/dist/pages/sent/index.d.cts +16 -0
  74. package/dist/pages/settings/notifications/index.d.cts +4 -0
  75. package/dist/pages/templates/categories/index.cjs +1 -1
  76. package/dist/pages/templates/categories/index.d.cts +4 -0
  77. package/dist/pages/templates/categories/index.js +1 -1
  78. package/dist/pages/templates/compose/index.cjs +1 -1
  79. package/dist/pages/templates/compose/index.d.cts +25 -0
  80. package/dist/pages/templates/compose/index.js +1 -1
  81. package/dist/pages/templates/designer/index.cjs +1 -1
  82. package/dist/pages/templates/designer/index.d.cts +8 -0
  83. package/dist/pages/templates/designer/index.js +1 -1
  84. package/dist/pages/templates/index.d.cts +4 -0
  85. package/dist/pages/templates/versions/index.d.cts +8 -0
  86. package/dist/views/admin/delegations/AdminDelegationsView.d.cts +2 -0
  87. package/dist/views/admin/delegations/index.d.cts +1 -0
  88. package/dist/views/admin/delegations/index.d.ts +1 -1
  89. package/dist/views/admin/index.cjs +1 -1
  90. package/dist/views/admin/index.d.cts +4 -0
  91. package/dist/views/admin/index.d.ts +4 -4
  92. package/dist/views/admin/index.js +2 -2
  93. package/dist/views/admin/orgs/AdminOrgsView.d.cts +2 -0
  94. package/dist/views/admin/orgs/index.cjs +1 -1
  95. package/dist/views/admin/orgs/index.d.cts +1 -0
  96. package/dist/views/admin/orgs/index.d.ts +1 -1
  97. package/dist/views/admin/orgs/index.js +1 -1
  98. package/dist/views/admin/users/AdminUsersView.d.cts +2 -0
  99. package/dist/views/admin/users/MemberTaskReassignModal.d.cts +13 -0
  100. package/dist/views/admin/users/index.cjs +1 -1
  101. package/dist/views/admin/users/index.d.cts +1 -0
  102. package/dist/views/admin/users/index.d.ts +1 -1
  103. package/dist/views/admin/users/index.js +1 -1
  104. package/dist/views/admin/webhook-endpoints/AdminWebhookEndpointsView.d.cts +8 -0
  105. package/dist/views/admin/webhook-endpoints/index.d.cts +1 -0
  106. package/dist/views/admin/webhook-endpoints/index.d.ts +1 -1
  107. package/dist/views/cc/CcView.d.cts +7 -0
  108. package/dist/views/cc/index.d.cts +1 -0
  109. package/dist/views/cc/index.d.ts +1 -1
  110. package/dist/views/dashboard/DashboardView.d.cts +7 -0
  111. package/dist/views/dashboard/index.d.cts +1 -0
  112. package/dist/views/dashboard/index.d.ts +1 -1
  113. package/dist/views/delegations/DelegationsView.d.cts +2 -0
  114. package/dist/views/delegations/index.d.cts +1 -0
  115. package/dist/views/delegations/index.d.ts +1 -1
  116. package/dist/views/forms/builder/FormBuilderView.d.cts +18 -0
  117. package/dist/views/forms/builder/index.d.cts +1 -0
  118. package/dist/views/forms/builder/index.d.ts +1 -1
  119. package/dist/views/forms/builder/json-code-editor.d.cts +11 -0
  120. package/dist/views/forms/renderer/FormRendererView.d.cts +24 -0
  121. package/dist/views/forms/renderer/FormRendererView.d.ts +1 -1
  122. package/dist/views/forms/renderer/form-data-source-field.d.cts +65 -0
  123. package/dist/views/forms/renderer/form-field-link.d.cts +16 -0
  124. package/dist/views/forms/renderer/index.d.cts +2 -0
  125. package/dist/views/forms/renderer/index.d.ts +2 -2
  126. package/dist/views/forms/renderer/member-field-options.d.cts +39 -0
  127. package/dist/views/forms/renderer/member-field.d.cts +21 -0
  128. package/dist/views/inbox/InboxView.d.cts +7 -0
  129. package/dist/views/inbox/index.d.cts +1 -0
  130. package/dist/views/inbox/index.d.ts +1 -1
  131. package/dist/views/instances/detail/InstanceDetailView.d.cts +27 -0
  132. package/dist/views/instances/detail/index.d.cts +7 -0
  133. package/dist/views/instances/detail/index.d.ts +7 -7
  134. package/dist/views/instances/detail/sections/InstanceAttachmentsSection.d.cts +15 -0
  135. package/dist/views/instances/detail/sections/InstanceFormSection.d.cts +36 -0
  136. package/dist/views/instances/detail/sections/InstanceFormSection.d.ts +1 -1
  137. package/dist/views/instances/detail/sections/InstanceHistorySection.d.cts +29 -0
  138. package/dist/views/instances/detail/sections/InstanceSignaturesSection.d.cts +14 -0
  139. package/dist/views/instances/detail/sections/InstanceTasksSection.d.cts +55 -0
  140. package/dist/views/instances/detail/sections/InstanceWebhookDeliveriesSection.d.cts +20 -0
  141. package/dist/views/instances/detail/sections/container-helpers.d.cts +10 -0
  142. package/dist/views/instances/detail/sections/container-helpers.d.ts +1 -1
  143. package/dist/views/instances/detail/sections/shared.d.cts +141 -0
  144. package/dist/views/instances/detail/submitted-by.d.cts +23 -0
  145. package/dist/views/instances/index.d.cts +1 -0
  146. package/dist/views/instances/index.d.ts +1 -1
  147. package/dist/views/instances/new/InstanceNewView.d.cts +15 -0
  148. package/dist/views/instances/new/index.d.cts +1 -0
  149. package/dist/views/instances/new/index.d.ts +1 -1
  150. package/dist/views/login/LoginView.d.cts +47 -0
  151. package/dist/views/login/index.d.cts +1 -0
  152. package/dist/views/login/index.d.ts +1 -1
  153. package/dist/views/root/RootView.d.cts +10 -0
  154. package/dist/views/root/index.d.cts +1 -0
  155. package/dist/views/root/index.d.ts +1 -1
  156. package/dist/views/search/SearchView.d.cts +7 -0
  157. package/dist/views/search/index.d.cts +1 -0
  158. package/dist/views/search/index.d.ts +1 -1
  159. package/dist/views/sent/SentView.d.cts +7 -0
  160. package/dist/views/sent/index.d.cts +1 -0
  161. package/dist/views/sent/index.d.ts +1 -1
  162. package/dist/views/settings/index.d.cts +1 -0
  163. package/dist/views/settings/index.d.ts +1 -1
  164. package/dist/views/settings/notifications/SettingsNotificationsView.d.cts +2 -0
  165. package/dist/views/settings/notifications/index.d.cts +1 -0
  166. package/dist/views/settings/notifications/index.d.ts +1 -1
  167. package/dist/views/templates/TemplatesView.d.cts +7 -0
  168. package/dist/views/templates/categories/TemplateCategoriesView.d.cts +2 -0
  169. package/dist/views/templates/categories/index.cjs +1 -1
  170. package/dist/views/templates/categories/index.d.cts +1 -0
  171. package/dist/views/templates/categories/index.d.ts +1 -1
  172. package/dist/views/templates/categories/index.js +1 -1
  173. package/dist/views/templates/compose/TemplateComposeWizardView.d.cts +21 -0
  174. package/dist/views/templates/compose/index.cjs +1 -1
  175. package/dist/views/templates/compose/index.d.cts +2 -0
  176. package/dist/views/templates/compose/index.d.ts +2 -2
  177. package/dist/views/templates/compose/index.js +1 -1
  178. package/dist/views/templates/compose/steps/ComposeFormStep.d.cts +15 -0
  179. package/dist/views/templates/compose/steps/ComposeReviewStep.d.cts +12 -0
  180. package/dist/views/templates/compose/steps/ComposeWorkflowStep.d.cts +22 -0
  181. package/dist/views/templates/compose/use-template-compose-wizard.d.cts +46 -0
  182. package/dist/views/templates/designer/NotifyWebhookTargetsEditor.d.cts +20 -0
  183. package/dist/views/templates/designer/NotifyWebhookTargetsEditor.d.ts +1 -1
  184. package/dist/views/templates/designer/TemplateDesignerView.d.cts +65 -0
  185. package/dist/views/templates/designer/chrome-workflow-chat.d.cts +12 -0
  186. package/dist/views/templates/designer/chrome-workflow-chat.d.ts +1 -1
  187. package/dist/views/templates/designer/decision-policy-options.d.cts +8 -0
  188. package/dist/views/templates/designer/designer-version-labels.d.cts +12 -0
  189. package/dist/views/templates/designer/dry-run-assignee-label.d.cts +28 -0
  190. package/dist/views/templates/designer/dry-run-sample-data.d.cts +9 -0
  191. package/dist/views/templates/designer/dynamic-form-resolver-options.d.cts +35 -0
  192. package/dist/views/templates/designer/index.cjs +1 -1
  193. package/dist/views/templates/designer/index.d.cts +1 -0
  194. package/dist/views/templates/designer/index.d.ts +1 -1
  195. package/dist/views/templates/designer/index.js +1 -1
  196. package/dist/views/templates/designer/notify-webhook-designer.d.cts +74 -0
  197. package/dist/views/templates/designer/position-level-options.d.cts +17 -0
  198. package/dist/views/templates/designer/use-workflow-chat.d.cts +21 -0
  199. package/dist/views/templates/designer/use-workflow-chat.d.ts +1 -1
  200. package/dist/views/templates/designer/use-workflow-designer-controller.d.cts +41 -0
  201. package/dist/views/templates/designer/workflow-chat-drawer.d.cts +16 -0
  202. package/dist/views/templates/designer/workflow-chat-drawer.d.ts +1 -1
  203. package/dist/views/templates/index.cjs +1 -1
  204. package/dist/views/templates/index.d.cts +3 -0
  205. package/dist/views/templates/index.d.ts +3 -3
  206. package/dist/views/templates/index.js +1 -1
  207. package/dist/views/templates/versions/TemplateVersionsView.d.cts +5 -0
  208. package/dist/views/templates/versions/index.d.cts +1 -0
  209. package/dist/views/templates/versions/index.d.ts +1 -1
  210. package/dist/views/workflow/index.d.cts +4 -0
  211. package/dist/views/workflow/index.d.ts +4 -4
  212. package/package.json +387 -147
  213. package/dist/chunks/admin-pickers-DxhzECkD.js.map +0 -1
  214. package/dist/chunks/admin-pickers-qe3j--gX.cjs +0 -2
  215. package/dist/chunks/admin-pickers-qe3j--gX.cjs.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function AdminWebhookEndpointsPage(): ReactElement;
@@ -0,0 +1,16 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM "cc" page. Consumers re-export this
5
+ * alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM cc inbox. Usage in
10
+ * `app/cc/page.tsx`:
11
+ *
12
+ * ```ts
13
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/cc';
14
+ * ```
15
+ */
16
+ export default function CcPage(): ReactElement;
@@ -0,0 +1,16 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM dashboard page. Consumers re-export this
5
+ * alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM dashboard. Usage in
10
+ * `app/dashboard/page.tsx`:
11
+ *
12
+ * ```ts
13
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/dashboard';
14
+ * ```
15
+ */
16
+ export default function DashboardPage(): ReactElement;
@@ -0,0 +1,4 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function DelegationsPage(): ReactElement;
@@ -0,0 +1,16 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM inbox page. Consumers re-export this
5
+ * alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM inbox. Usage in
10
+ * `app/inbox/page.tsx`:
11
+ *
12
+ * ```ts
13
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/inbox';
14
+ * ```
15
+ */
16
+ export default function InboxPage(): ReactElement;
@@ -0,0 +1,23 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM instance detail page. Consumers re-export
5
+ * this alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM instance detail screen.
10
+ * Accepts the standard App Router `params: Promise<{ id: string }>` shape
11
+ * and forwards the resolved `id` into the view as `instanceId`.
12
+ *
13
+ * Usage in `app/instances/[id]/page.tsx`:
14
+ *
15
+ * ```ts
16
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/instances/detail';
17
+ * ```
18
+ */
19
+ export default function InstanceDetailPage({ params, }: {
20
+ readonly params: Promise<{
21
+ readonly id: string;
22
+ }>;
23
+ }): Promise<ReactElement>;
@@ -0,0 +1,20 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM "launch approval" page. Consumers re-export
5
+ * this alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM launch screen. Usage in
10
+ * `app/instances/new/page.tsx`:
11
+ *
12
+ * ```ts
13
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/instances/new';
14
+ * ```
15
+ */
16
+ export default function InstanceNewPage({ searchParams, }: {
17
+ readonly searchParams: Promise<{
18
+ readonly templateId?: string;
19
+ }>;
20
+ }): Promise<ReactElement>;
@@ -0,0 +1,21 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM login page. Consumers re-export this
5
+ * alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM login screen.
10
+ *
11
+ * Consumer usage in `app/login/page.tsx`:
12
+ *
13
+ * ```ts
14
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/login';
15
+ * ```
16
+ */
17
+ export default function LoginPage({ searchParams, }: {
18
+ readonly searchParams: Promise<{
19
+ readonly next?: string;
20
+ }>;
21
+ }): Promise<ReactElement>;
@@ -0,0 +1,18 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM root path.
5
+ */
6
+ export declare const metadata: Metadata;
7
+ /**
8
+ * Drop-in Next.js App Router page for the BPM root path. Server-side
9
+ * redirects to `/dashboard` — never renders any client tree, so it cannot
10
+ * pollute the chunk boundary with `'use client'`.
11
+ *
12
+ * Consumer usage in `app/page.tsx`:
13
+ *
14
+ * ```ts
15
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/root';
16
+ * ```
17
+ */
18
+ export default function RootPage(): ReactElement;
@@ -0,0 +1,16 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM case search page. Consumers re-export this
5
+ * alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM case search. Usage in
10
+ * `app/search/page.tsx`:
11
+ *
12
+ * ```ts
13
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/search';
14
+ * ```
15
+ */
16
+ export default function SearchPage(): ReactElement;
@@ -0,0 +1,16 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Next.js metadata for the BPM "sent" page. Consumers re-export this
5
+ * alongside the default page component.
6
+ */
7
+ export declare const metadata: Metadata;
8
+ /**
9
+ * Drop-in Next.js App Router page for the BPM sent inbox. Usage in
10
+ * `app/sent/page.tsx`:
11
+ *
12
+ * ```ts
13
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/sent';
14
+ * ```
15
+ */
16
+ export default function SentPage(): ReactElement;
@@ -0,0 +1,4 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function SettingsNotificationsPage(): ReactElement;
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/categories-DjENouRm.cjs");let t=require("react/jsx-runtime");var n={title:`範本分類管理 | BPM Admin`,description:`維護 BPM 流程範本的分類設定。`};function r(){return(0,t.jsx)(e.t,{})}exports.default=r,exports.metadata=n;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/categories-AxxhqjLZ.cjs");let t=require("react/jsx-runtime");var n={title:`範本分類管理 | BPM Admin`,description:`維護 BPM 流程範本的分類設定。`};function r(){return(0,t.jsx)(e.t,{})}exports.default=r,exports.metadata=n;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,4 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function TemplateCategoriesPage(): ReactElement;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../../chunks/categories-1gKxeEqw.js";
1
+ import { t as e } from "../../../chunks/categories-riC33J_j.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  //#region src/pages/templates/categories/index.tsx
4
4
  var n = {
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/compose-DZ7RKvUp.cjs");let t=require("react/jsx-runtime"),n=require("next/server");var r={title:`建立模板(表單 + 流程) | BPM Admin`,description:`以精靈式流程一次完成 BPM 表單與簽核流程設計並發佈。`};async function i(){return await(0,n.connection)(),(0,t.jsx)(e.t,{aiAssistantAvailable:!!process.env.OPENAI_API_KEY,showAiAssistant:process.env.BPM_AI_ASSISTANT_ENABLED===`true`})}exports.default=i,exports.metadata=r;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/compose-B7TtrpQJ.cjs");let t=require("react/jsx-runtime"),n=require("next/server");var r={title:`建立模板(表單 + 流程) | BPM Admin`,description:`以精靈式流程一次完成 BPM 表單與簽核流程設計並發佈。`};async function i(){return await(0,n.connection)(),(0,t.jsx)(e.t,{aiAssistantAvailable:!!process.env.OPENAI_API_KEY,showAiAssistant:process.env.BPM_AI_ASSISTANT_ENABLED===`true`})}exports.default=i,exports.metadata=r;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,25 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ /**
5
+ * Drop-in Next.js App Router page for the unified template wizard.
6
+ *
7
+ * Consumer usage in `app/templates/compose/page.tsx`:
8
+ *
9
+ * ```ts
10
+ * export { default, metadata } from '@rytass/bpm-core-react/pages/templates/compose';
11
+ * ```
12
+ *
13
+ * The Step 1 (流程設計) embedded designer offers the same opt-in AI assistant
14
+ * as the standalone designer page. `BPM_AI_ASSISTANT_ENABLED` shows the button;
15
+ * `OPENAI_API_KEY` decides whether it's usable (else a disabled placeholder).
16
+ * Both are server-only env on the Next.js host.
17
+ *
18
+ * `await connection()` opts this route out of static prerendering so those env
19
+ * vars are read at request time. They are NOT set during `next build` (only
20
+ * injected into the runtime container), so without this the flags would bake to
21
+ * `false` on a production build — unlike the `[id]` designer page, which is
22
+ * already dynamic by virtue of its route params. Survives the host's one-line
23
+ * re-export, so npm consumers don't need their own route-segment config.
24
+ */
25
+ export default function TemplateComposePage(): Promise<ReactElement>;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../../chunks/compose-Crklayzy.js";
1
+ import { t as e } from "../../../chunks/compose-_pREPtfN.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { connection as n } from "next/server";
4
4
  //#region src/pages/templates/compose/index.tsx
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/designer-sJGTGYOf.cjs");let t=require("react/jsx-runtime");var n={title:`流程設計器 | BPM Admin`,description:`以視覺化設計器編輯 BPM 簽核流程節點、條件與發佈版本。`};async function r({params:n}){let{id:r}=await n;return(0,t.jsx)(e.t,{aiAssistantAvailable:!!process.env.OPENAI_API_KEY,showAiAssistant:process.env.BPM_AI_ASSISTANT_ENABLED===`true`,showDryRun:process.env.BPM_TEMPLATE_DRY_RUN_ENABLED!==`false`,templateId:r})}exports.default=r,exports.metadata=n;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/designer-ttAqv859.cjs");let t=require("react/jsx-runtime");var n={title:`流程設計器 | BPM Admin`,description:`以視覺化設計器編輯 BPM 簽核流程節點、條件與發佈版本。`};async function r({params:n}){let{id:r}=await n;return(0,t.jsx)(e.t,{aiAssistantAvailable:!!process.env.OPENAI_API_KEY,showAiAssistant:process.env.BPM_AI_ASSISTANT_ENABLED===`true`,showDryRun:process.env.BPM_TEMPLATE_DRY_RUN_ENABLED!==`false`,templateId:r})}exports.default=r,exports.metadata=n;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,8 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function TemplateDesignerPage({ params, }: {
5
+ readonly params: Promise<{
6
+ readonly id: string;
7
+ }>;
8
+ }): Promise<ReactElement>;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../../chunks/designer-D9eFma1W.js";
1
+ import { t as e } from "../../../chunks/designer-BiywgNXs.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  //#region src/pages/templates/designer/index.tsx
4
4
  var n = {
@@ -0,0 +1,4 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function TemplatesPage(): ReactElement;
@@ -0,0 +1,8 @@
1
+ import { Metadata } from 'next';
2
+ import { ReactElement } from 'react';
3
+ export declare const metadata: Metadata;
4
+ export default function TemplateVersionsPage({ params, }: {
5
+ readonly params: Promise<{
6
+ readonly id: string;
7
+ }>;
8
+ }): Promise<ReactElement>;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AdminDelegationsView(): ReactElement;
@@ -0,0 +1 @@
1
+ export * from './AdminDelegationsView.cjs';
@@ -1 +1 @@
1
- export * from './AdminDelegationsView';
1
+ export * from './AdminDelegationsView.js';
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/users-DVBJluFR.cjs"),t=require("../../chunks/orgs-Dr0FFoZo.cjs"),n=require("../../chunks/delegations-V9HIe3_P.cjs"),r=require("./webhook-endpoints/index.cjs");exports.AdminDelegationsView=n.t,exports.AdminOrgsView=t.t,exports.AdminUsersView=e.t,exports.AdminWebhookEndpointsView=r.AdminWebhookEndpointsView;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/users-DVQicZIo.cjs"),t=require("../../chunks/orgs-C8usknWb.cjs"),n=require("../../chunks/delegations-V9HIe3_P.cjs"),r=require("./webhook-endpoints/index.cjs");exports.AdminDelegationsView=n.t,exports.AdminOrgsView=t.t,exports.AdminUsersView=e.t,exports.AdminWebhookEndpointsView=r.AdminWebhookEndpointsView;
@@ -0,0 +1,4 @@
1
+ export * from './users/index.cjs';
2
+ export * from './orgs/index.cjs';
3
+ export * from './delegations/index.cjs';
4
+ export * from './webhook-endpoints/index.cjs';
@@ -1,4 +1,4 @@
1
- export * from './users';
2
- export * from './orgs';
3
- export * from './delegations';
4
- export * from './webhook-endpoints';
1
+ export * from './users/index.js';
2
+ export * from './orgs/index.js';
3
+ export * from './delegations/index.js';
4
+ export * from './webhook-endpoints/index.js';
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../chunks/users-BCyePbwB.js";
2
- import { t } from "../../chunks/orgs-CY0i1fie.js";
1
+ import { t as e } from "../../chunks/users-DRbuDYF1.js";
2
+ import { t } from "../../chunks/orgs-Lg7tXv2u.js";
3
3
  import { t as n } from "../../chunks/delegations-xUt1tj8d.js";
4
4
  import { AdminWebhookEndpointsView as r } from "./webhook-endpoints/index.js";
5
5
  export { n as AdminDelegationsView, t as AdminOrgsView, e as AdminUsersView, r as AdminWebhookEndpointsView };
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AdminOrgsView(): ReactElement;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/orgs-Dr0FFoZo.cjs");exports.AdminOrgsView=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/orgs-C8usknWb.cjs");exports.AdminOrgsView=e.t;
@@ -0,0 +1 @@
1
+ export * from './AdminOrgsView.cjs';
@@ -1 +1 @@
1
- export * from './AdminOrgsView';
1
+ export * from './AdminOrgsView.js';
@@ -1 +1 @@
1
- export { t as AdminOrgsView } from "../../../chunks/orgs-CY0i1fie.js";
1
+ export { t as AdminOrgsView } from "../../../chunks/orgs-Lg7tXv2u.js";
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AdminUsersView(): ReactElement;
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+ import { MemberProfileRecord } from '@rytass/bpm-core-client';
3
+ /**
4
+ * Administrator reassignment of a member's open tasks. Lists what the member
5
+ * holds, takes a target and a reason, previews every task's outcome (dry run),
6
+ * and only then commits. Confirm stays disabled until the preview matches the
7
+ * current target and reason. Replacing a seat is not a decision: no signature
8
+ * is written, and the task keeps its id.
9
+ */
10
+ export declare function MemberTaskReassignModal({ member, onClose, }: {
11
+ readonly member: MemberProfileRecord | null;
12
+ readonly onClose: () => void;
13
+ }): ReactElement;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/users-DVBJluFR.cjs");exports.AdminUsersView=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/users-DVQicZIo.cjs");exports.AdminUsersView=e.t;
@@ -0,0 +1 @@
1
+ export * from './AdminUsersView.cjs';
@@ -1 +1 @@
1
- export * from './AdminUsersView';
1
+ export * from './AdminUsersView.js';
@@ -1 +1 @@
1
- export { t as AdminUsersView } from "../../../chunks/users-BCyePbwB.js";
1
+ export { t as AdminUsersView } from "../../../chunks/users-DRbuDYF1.js";
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ /**
3
+ * Back-office management of database webhook endpoints (ADR 18 §3.13):
4
+ * create, edit, disable, rotate the signing secret, test-send and read the
5
+ * change history. Header values and secrets are entered here and never shown
6
+ * again. Administrator-only on the server.
7
+ */
8
+ export declare function AdminWebhookEndpointsView(): ReactElement;
@@ -0,0 +1 @@
1
+ export * from './AdminWebhookEndpointsView.cjs';
@@ -1 +1 @@
1
- export * from './AdminWebhookEndpointsView';
1
+ export * from './AdminWebhookEndpointsView.js';
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ /**
3
+ * Framework-agnostic view for the BPM "cc" inbox — instances the current
4
+ * member is copied on. Mechanical port of
5
+ * `apps/client/src/app/cc/page.tsx`.
6
+ */
7
+ export declare function CcView(): ReactElement;
@@ -0,0 +1 @@
1
+ export * from './CcView.cjs';
@@ -1 +1 @@
1
- export * from './CcView';
1
+ export * from './CcView.js';
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ /**
3
+ * Framework-agnostic view for the BPM dashboard. Delegates to the shared
4
+ * `<DashboardPage>` component. Mechanical port of
5
+ * `apps/client/src/app/dashboard/page.tsx`.
6
+ */
7
+ export declare function DashboardView(): ReactElement;
@@ -0,0 +1 @@
1
+ export * from './DashboardView.cjs';
@@ -1 +1 @@
1
- export * from './DashboardView';
1
+ export * from './DashboardView.js';
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function DelegationsView(): ReactElement;
@@ -0,0 +1 @@
1
+ export * from './DelegationsView.cjs';
@@ -1 +1 @@
1
- export * from './DelegationsView';
1
+ export * from './DelegationsView.js';
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { FormDefinitionSchema, FormUiSchema } from '@rytass/bpm-core-shared/form';
3
+ export interface FormBuilderViewProps {
4
+ /**
5
+ * Initial (or controlled) schema value.
6
+ * If omitted, the builder starts with empty schema / uiSchema.
7
+ */
8
+ readonly value?: {
9
+ readonly schema: FormDefinitionSchema;
10
+ readonly uiSchema: FormUiSchema;
11
+ };
12
+ /** Called whenever the schema or uiSchema changes. */
13
+ readonly onChange?: (next: {
14
+ readonly schema: FormDefinitionSchema;
15
+ readonly uiSchema: FormUiSchema;
16
+ }) => void;
17
+ }
18
+ export declare function FormBuilderView({ onChange, value, }: FormBuilderViewProps): ReactElement;
@@ -0,0 +1 @@
1
+ export * from './FormBuilderView.cjs';
@@ -1 +1 @@
1
- export * from './FormBuilderView';
1
+ export * from './FormBuilderView.js';
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from 'react';
2
+ interface JsonCodeEditorProps {
3
+ readonly disabled?: boolean;
4
+ readonly height: string;
5
+ readonly name: string;
6
+ readonly onChange: (value: string) => void;
7
+ readonly placeholder: string;
8
+ readonly value: string;
9
+ }
10
+ export declare function JsonCodeEditor({ disabled, height, name, onChange, placeholder, value, }: JsonCodeEditorProps): ReactElement;
11
+ export {};
@@ -0,0 +1,24 @@
1
+ import { CSSProperties, ReactElement } from 'react';
2
+ import { FormDataSourceValueSnapshots, FormDefinitionSchema, FormFieldDefinition, FormUiSchema } from '@rytass/bpm-core-shared/form';
3
+ import { FormRendererValues } from '@rytass/bpm-core-client/form';
4
+ import { FormDataSourceFieldState, FormRendererDataSourceContext } from './form-data-source-field.cjs';
5
+ export interface FormRendererProps {
6
+ readonly dataSourceContext?: FormRendererDataSourceContext;
7
+ readonly dataSourceInitialValues?: FormRendererValues;
8
+ readonly emptyText?: string;
9
+ readonly errors?: Readonly<Record<string, string>>;
10
+ readonly maxWidth?: CSSProperties['maxWidth'];
11
+ readonly onChange?: (values: FormRendererValues) => void;
12
+ readonly onDataSourceStateChange?: (fieldKey: string, state: Pick<FormDataSourceFieldState, 'hasValue' | 'invalidValues' | 'status'>) => void;
13
+ readonly onUploadAttachment?: (field: FormFieldDefinition, file: File) => Promise<{
14
+ readonly id: string;
15
+ }>;
16
+ readonly optionSnapshots?: FormDataSourceValueSnapshots;
17
+ readonly readonly?: boolean;
18
+ readonly schema: FormDefinitionSchema;
19
+ readonly singleColumn?: boolean;
20
+ readonly uiSchema: FormUiSchema;
21
+ readonly value?: FormRendererValues;
22
+ }
23
+ export declare function FormRenderer({ dataSourceContext, dataSourceInitialValues, emptyText, errors, maxWidth, onChange, onDataSourceStateChange, onUploadAttachment, optionSnapshots, readonly, schema, singleColumn, uiSchema, value, }: FormRendererProps): ReactElement;
24
+ export { FormRenderer as FormRendererView };
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactElement } from 'react';
2
2
  import { FormDataSourceValueSnapshots, FormDefinitionSchema, FormFieldDefinition, FormUiSchema } from '@rytass/bpm-core-shared/form';
3
3
  import { FormRendererValues } from '@rytass/bpm-core-client/form';
4
- import { FormDataSourceFieldState, FormRendererDataSourceContext } from './form-data-source-field';
4
+ import { FormDataSourceFieldState, FormRendererDataSourceContext } from './form-data-source-field.js';
5
5
  export interface FormRendererProps {
6
6
  readonly dataSourceContext?: FormRendererDataSourceContext;
7
7
  readonly dataSourceInitialValues?: FormRendererValues;
@@ -0,0 +1,65 @@
1
+ import { FormDataSourceValueSnapshots, FormDefinitionSchema, FormFieldDefinition, FormFieldOption, FormFieldValue, FormUiSchema } from '@rytass/bpm-core-shared/form';
2
+ import { FormDataSourceFieldStatus, FormRendererValues } from '@rytass/bpm-core-client/form';
3
+ export type FormRendererDataSourceContext = {
4
+ readonly kind: 'preview';
5
+ } | {
6
+ readonly instanceId?: string | null;
7
+ readonly kind: 'runtime';
8
+ readonly templateId?: string | null;
9
+ };
10
+ export interface FormDataSourceFieldState {
11
+ /**
12
+ * False when nothing can be re-requested — a read-only or context-less field
13
+ * has no query to retry, so the view must not offer a dead retry action.
14
+ */
15
+ readonly canRetry: boolean;
16
+ readonly error: string | null;
17
+ readonly hasValue: boolean;
18
+ readonly hasNextPage: boolean;
19
+ readonly invalidValues: readonly string[];
20
+ readonly onReachBottom: () => void;
21
+ readonly onSearch: (searchText: string) => void;
22
+ readonly options: readonly FormFieldOption[];
23
+ readonly retry: () => void;
24
+ readonly status: FormDataSourceFieldStatus;
25
+ }
26
+ /**
27
+ * What makes a table cell different from a top-level field: it is addressed by
28
+ * a schema path, snapshotted under an instance path, and its `ROW_FIELD`
29
+ * bindings read from its own row rather than the form (ADR 16 §3.3, §3.5).
30
+ */
31
+ export interface UseFormDataSourceFieldRow {
32
+ /** The row as it was loaded, so a returned case can tell what changed. */
33
+ readonly initialValues?: FormRendererValues;
34
+ readonly values: FormRendererValues;
35
+ }
36
+ export interface UseFormDataSourceFieldInput {
37
+ readonly context?: FormRendererDataSourceContext;
38
+ readonly field: FormFieldDefinition;
39
+ /** Schema path used to address the field; defaults to its own key. */
40
+ readonly fieldPath?: string;
41
+ readonly formData: FormRendererValues;
42
+ readonly initialFormData?: FormRendererValues;
43
+ readonly initialValue?: FormFieldValue | undefined;
44
+ readonly optionSnapshots?: FormDataSourceValueSnapshots;
45
+ readonly readonly: boolean;
46
+ /** Set only for a table cell. */
47
+ readonly row?: UseFormDataSourceFieldRow;
48
+ readonly schema: FormDefinitionSchema;
49
+ /** Snapshot map key; defaults to the field key. */
50
+ readonly snapshotKey?: string;
51
+ readonly uiSchema: FormUiSchema;
52
+ }
53
+ export declare function useFormDataSourceField(input: UseFormDataSourceFieldInput): FormDataSourceFieldState;
54
+ export declare function readFormDataSourceFieldStatusMessage(state: FormDataSourceFieldState): string | null;
55
+ export declare function isFormDataSourceFieldSubmissionBlocked(state: Pick<FormDataSourceFieldState, 'hasValue' | 'status'>): boolean;
56
+ /**
57
+ * The copy to show when a submission is refused because of dynamic options.
58
+ * `LOADING` and `STALE` clear on their own once the pending query answers, so
59
+ * saying "finish validating" reads as a dead end for what is really a "wait a
60
+ * moment"; the caller would otherwise show the same permanent-sounding line for
61
+ * both cases.
62
+ *
63
+ * Returns `null` when nothing blocks the submission.
64
+ */
65
+ export declare function readFormDataSourceSubmissionBlockMessage(states: readonly Pick<FormDataSourceFieldState, 'hasValue' | 'status'>[]): string | null;
@@ -0,0 +1,16 @@
1
+ export interface FormFieldLink {
2
+ /** Absolute links open in a new tab; site-relative ones stay in this tab. */
3
+ readonly external: boolean;
4
+ readonly href: string;
5
+ }
6
+ /**
7
+ * Decides whether a `displayAs: 'link'` text value may become an anchor.
8
+ * Returns `null` for everything that must stay plain text.
9
+ *
10
+ * Allowed: a site-relative path (`/` first, never `//`) or an absolute
11
+ * `http(s)://` URL with a host and no embedded credentials. Everything else —
12
+ * `javascript:`, `data:`, protocol-relative `//host`, backslash tricks
13
+ * (`/\host` is `//host` to a browser), padded or multi-line values, non-strings
14
+ * — is refused rather than repaired.
15
+ */
16
+ export declare function resolveFormFieldLink(value: unknown): FormFieldLink | null;
@@ -0,0 +1,2 @@
1
+ export * from './FormRendererView.cjs';
2
+ export * from './form-data-source-field.cjs';