sitero 0.0.3 → 0.0.5

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.
@@ -58,7 +58,8 @@ import { ContentContainer } from '../../../../../components/ui/layouts/content-c
58
58
 
59
59
  function createOrderShowPage({
60
60
  orderFindFullAction,
61
- orderDeleteAction
61
+ orderDeleteAction,
62
+ exportButton
62
63
  }) {
63
64
  return function OrderShowPage() {
64
65
  const { t, format } = useTranslator();
@@ -96,7 +97,8 @@ function createOrderShowPage({
96
97
  isDisabled: isFetching || order?.status === ORDER_STATUS.OPEN
97
98
  },
98
99
  isDisabled: isFetching,
99
- isNotFound
100
+ isNotFound,
101
+ rightChildren: exportButton?.(order)
100
102
  }
101
103
  ),
102
104
  /* @__PURE__ */ jsx(ContentContainer, { isNotFound, children: /* @__PURE__ */ jsxs(FieldsContainer, { children: [
@@ -1,6 +1,9 @@
1
1
  import type { createOrderDeleteAction, createOrderFindFullAction } from "../../../../../../../../core/server/interfaces";
2
- export declare function createOrderShowPage({ orderFindFullAction, orderDeleteAction, }: {
2
+ import type { ReactNode } from "react";
3
+ import { type OrderFull } from "../../../../../../../../core/domain";
4
+ export declare function createOrderShowPage({ orderFindFullAction, orderDeleteAction, exportButton, }: {
3
5
  orderFindFullAction: ReturnType<typeof createOrderFindFullAction>;
4
6
  orderDeleteAction: ReturnType<typeof createOrderDeleteAction>;
7
+ exportButton?: (order: OrderFull | undefined) => ReactNode;
5
8
  }): () => import("react/jsx-runtime").JSX.Element;
6
9
  //# sourceMappingURL=page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/cms/client/interfaces/pages/dashboard/commerce/order/[id]/page.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAsCxD,wBAAgB,mBAAmB,CAAC,EAClC,mBAAmB,EACnB,iBAAiB,GAClB,EAAE;IACD,mBAAmB,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IAClE,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;CAC/D,iDAyOA"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/cms/client/interfaces/pages/dashboard/commerce/order/[id]/page.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,qCAAqC,CAAC;AAqB7C,wBAAgB,mBAAmB,CAAC,EAClC,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,GACb,EAAE;IACD,mBAAmB,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IAClE,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAC9D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,SAAS,CAAC;CAC5D,iDA0OA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sitero",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",