sitero 0.0.4 → 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.
@@ -59,7 +59,7 @@ import { ContentContainer } from '../../../../../components/ui/layouts/content-c
59
59
  function createOrderShowPage({
60
60
  orderFindFullAction,
61
61
  orderDeleteAction,
62
- rightChildren
62
+ exportButton
63
63
  }) {
64
64
  return function OrderShowPage() {
65
65
  const { t, format } = useTranslator();
@@ -98,7 +98,7 @@ function createOrderShowPage({
98
98
  },
99
99
  isDisabled: isFetching,
100
100
  isNotFound,
101
- rightChildren
101
+ rightChildren: exportButton?.(order)
102
102
  }
103
103
  ),
104
104
  /* @__PURE__ */ jsx(ContentContainer, { isNotFound, children: /* @__PURE__ */ jsxs(FieldsContainer, { children: [
@@ -1,8 +1,9 @@
1
1
  import type { createOrderDeleteAction, createOrderFindFullAction } from "../../../../../../../../core/server/interfaces";
2
2
  import type { ReactNode } from "react";
3
- export declare function createOrderShowPage({ orderFindFullAction, orderDeleteAction, rightChildren, }: {
3
+ import { type OrderFull } from "../../../../../../../../core/domain";
4
+ export declare function createOrderShowPage({ orderFindFullAction, orderDeleteAction, exportButton, }: {
4
5
  orderFindFullAction: ReturnType<typeof createOrderFindFullAction>;
5
6
  orderDeleteAction: ReturnType<typeof createOrderDeleteAction>;
6
- rightChildren?: ReactNode;
7
+ exportButton?: (order: OrderFull | undefined) => ReactNode;
7
8
  }): () => import("react/jsx-runtime").JSX.Element;
8
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;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsCvC,wBAAgB,mBAAmB,CAAC,EAClC,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,GACd,EAAE;IACD,mBAAmB,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IAClE,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAC9D,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,iDA0OA"}
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.4",
3
+ "version": "0.0.5",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",