@burdenoff/microfe-product 2026.518.2 → 2026.518.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.
- package/dist/generated/global-operations.d.ts +304 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +200 -83
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +123 -0
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +114 -114
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
- package/dist/product-management/ProductManagementRoot.d.ts.map +1 -1
- package/dist/product-management/ProductManagementRoot.js +34 -26
- package/dist/product-management/ProductManagementRoot.js.map +1 -1
- package/dist/product-management/ProductManagementRoutes.d.ts.map +1 -1
- package/dist/product-management/ProductManagementRoutes.js +52 -20
- package/dist/product-management/ProductManagementRoutes.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +5 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +4 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts +10 -0
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +467 -0
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -0
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts +58 -0
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js +69 -0
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js.map +1 -0
- package/dist/product-management/modules/press-kit/index.d.ts +14 -0
- package/dist/product-management/modules/press-kit/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +69 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +193 -0
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +87 -0
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +311 -0
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -0
- package/dist/product-management/modules/press-kit/schemas/index.d.ts +58 -0
- package/dist/product-management/modules/press-kit/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/schemas/index.js +51 -0
- package/dist/product-management/modules/press-kit/schemas/index.js.map +1 -0
- package/dist/product-management/modules/press-kit/types/index.d.ts +73 -0
- package/dist/product-management/modules/press-kit/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/types/index.js +14 -0
- package/dist/product-management/modules/press-kit/types/index.js.map +1 -0
- package/dist/product-management/modules/products/components/ProductPlans.d.ts.map +1 -1
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ProductPressKitAsset, PressKitAssetFilterInput, CreatePressKitAssetInput, UpdatePressKitAssetInput } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to fetch press kit assets with filtering and pagination
|
|
4
|
+
*/
|
|
5
|
+
export declare function usePressKitAssets(productId?: string, filter?: PressKitAssetFilterInput, options?: {
|
|
6
|
+
limit?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
}): {
|
|
9
|
+
assets: ProductPressKitAsset[];
|
|
10
|
+
total: any;
|
|
11
|
+
hasMore: any;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
14
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetPressKitAssetsQuery>>;
|
|
15
|
+
fetchMore: <TFetchData = Types.GetPressKitAssetsQuery, TFetchVars extends import('@apollo/client').OperationVariables = Types.GetPressKitAssetsQueryVariables>(fetchMoreOptions: import('@apollo/client').FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
16
|
+
updateQuery?: ((previousQueryResult: any, options: {
|
|
17
|
+
fetchMoreResult: import('@apollo/client').Unmasked<TFetchData>;
|
|
18
|
+
variables: TFetchVars;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
}) => Promise<import('@apollo/client').ApolloQueryResult<TFetchData>>;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Hook to fetch a single press kit asset by ID
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePressKitAsset(id: string): {
|
|
26
|
+
asset: ProductPressKitAsset | undefined;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
29
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetPressKitAssetQuery>>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Hook to create a press kit asset
|
|
33
|
+
*/
|
|
34
|
+
export declare function useCreatePressKitAsset(): {
|
|
35
|
+
createPressKitAsset: (input: CreatePressKitAssetInput) => Promise<import('@apollo/client').FetchResult<Types.CreatePressKitAssetMutation>>;
|
|
36
|
+
data: ProductPressKitAsset | undefined;
|
|
37
|
+
loading: boolean;
|
|
38
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Hook to update a press kit asset
|
|
42
|
+
*/
|
|
43
|
+
export declare function useUpdatePressKitAsset(): {
|
|
44
|
+
updatePressKitAsset: (id: string, input: UpdatePressKitAssetInput) => Promise<import('@apollo/client').FetchResult<Types.UpdatePressKitAssetMutation>>;
|
|
45
|
+
data: ProductPressKitAsset | undefined;
|
|
46
|
+
loading: boolean;
|
|
47
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Hook to delete a press kit asset
|
|
51
|
+
*/
|
|
52
|
+
export declare function useDeletePressKitAsset(): {
|
|
53
|
+
deletePressKitAsset: (id: string) => Promise<import('@apollo/client').FetchResult<Types.DeletePressKitAssetMutation>>;
|
|
54
|
+
data: any;
|
|
55
|
+
loading: boolean;
|
|
56
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=usePressKitAssets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePressKitAssets.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/press-kit/hooks/usePressKitAssets.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;YAaI,oBAAoB,EAAE;;;;;;;;;;;;EAQxE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM;WAQT,oBAAoB,GAAG,SAAS;;;;EAKjE;AAED;;GAEG;AACH,wBAAgB,sBAAsB;iCAMC,wBAAwB;UAGxB,oBAAoB,GAAG,SAAS;;;EAItE;AAED;;GAEG;AACH,wBAAgB,sBAAsB;8BAMF,MAAM,SAAS,wBAAwB;UAGpC,oBAAoB,GAAG,SAAS;;;EAItE;AAED;;GAEG;AACH,wBAAgB,sBAAsB;8BAMF,MAAM;;;;EAOzC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { GetPressKitAssetsDocument as e, useCreatePressKitAssetMutation as t, useDeletePressKitAssetMutation as n, useGetPressKitAssetQuery as r, useGetPressKitAssetsQuery as i, useUpdatePressKitAssetMutation as a } from "../../../../generated/global-operations.js";
|
|
2
|
+
//#region src/product-management/modules/press-kit/hooks/usePressKitAssets.ts
|
|
3
|
+
function o(e, t, n) {
|
|
4
|
+
let { data: r, loading: a, error: o, refetch: s, fetchMore: c } = i({
|
|
5
|
+
variables: {
|
|
6
|
+
productId: e,
|
|
7
|
+
filter: t,
|
|
8
|
+
limit: n?.limit || 50,
|
|
9
|
+
offset: n?.offset || 0
|
|
10
|
+
},
|
|
11
|
+
fetchPolicy: "cache-and-network"
|
|
12
|
+
});
|
|
13
|
+
return {
|
|
14
|
+
assets: r?.pressKitAssets?.items || [],
|
|
15
|
+
total: r?.pressKitAssets?.total || 0,
|
|
16
|
+
hasMore: r?.pressKitAssets?.hasMore || !1,
|
|
17
|
+
loading: a,
|
|
18
|
+
error: o,
|
|
19
|
+
refetch: s,
|
|
20
|
+
fetchMore: c
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function s(e) {
|
|
24
|
+
let { data: t, loading: n, error: i, refetch: a } = r({
|
|
25
|
+
variables: { id: e },
|
|
26
|
+
skip: !e,
|
|
27
|
+
fetchPolicy: "cache-and-network"
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
asset: t?.pressKitAsset,
|
|
31
|
+
loading: n,
|
|
32
|
+
error: i,
|
|
33
|
+
refetch: a
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function c() {
|
|
37
|
+
let [n, { data: r, loading: i, error: a }] = t({ refetchQueries: [e] });
|
|
38
|
+
return {
|
|
39
|
+
createPressKitAsset: async (e) => n({ variables: { input: e } }),
|
|
40
|
+
data: r?.createPressKitAsset,
|
|
41
|
+
loading: i,
|
|
42
|
+
error: a
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function l() {
|
|
46
|
+
let [t, { data: n, loading: r, error: i }] = a({ refetchQueries: [e] });
|
|
47
|
+
return {
|
|
48
|
+
updatePressKitAsset: async (e, n) => t({ variables: {
|
|
49
|
+
id: e,
|
|
50
|
+
input: n
|
|
51
|
+
} }),
|
|
52
|
+
data: n?.updatePressKitAsset,
|
|
53
|
+
loading: r,
|
|
54
|
+
error: i
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function u() {
|
|
58
|
+
let [t, { data: r, loading: i, error: a }] = n({ refetchQueries: [e] });
|
|
59
|
+
return {
|
|
60
|
+
deletePressKitAsset: async (e) => t({ variables: { id: e } }),
|
|
61
|
+
data: r?.deletePressKitAsset,
|
|
62
|
+
loading: i,
|
|
63
|
+
error: a
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { c as useCreatePressKitAsset, u as useDeletePressKitAsset, s as usePressKitAsset, o as usePressKitAssets, l as useUpdatePressKitAsset };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=usePressKitAssets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePressKitAssets.js","names":[],"sources":["../../../../../src/product-management/modules/press-kit/hooks/usePressKitAssets.ts"],"sourcesContent":["import {\n useGetPressKitAssetsQuery,\n useGetPressKitAssetQuery,\n useCreatePressKitAssetMutation,\n useUpdatePressKitAssetMutation,\n useDeletePressKitAssetMutation,\n GetPressKitAssetsDocument,\n} from '../../../../generated/global-operations';\nimport type {\n ProductPressKitAsset,\n PressKitAssetFilterInput,\n CreatePressKitAssetInput,\n UpdatePressKitAssetInput,\n} from '../types';\n\n/**\n * Hook to fetch press kit assets with filtering and pagination\n */\nexport function usePressKitAssets(\n productId?: string,\n filter?: PressKitAssetFilterInput,\n options?: { limit?: number; offset?: number }\n) {\n const { data, loading, error, refetch, fetchMore } = useGetPressKitAssetsQuery({\n variables: {\n productId,\n filter,\n limit: options?.limit || 50,\n offset: options?.offset || 0,\n },\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n assets: (data?.pressKitAssets?.items || []) as ProductPressKitAsset[],\n total: data?.pressKitAssets?.total || 0,\n hasMore: data?.pressKitAssets?.hasMore || false,\n loading,\n error,\n refetch,\n fetchMore,\n };\n}\n\n/**\n * Hook to fetch a single press kit asset by ID\n */\nexport function usePressKitAsset(id: string) {\n const { data, loading, error, refetch } = useGetPressKitAssetQuery({\n variables: { id },\n skip: !id,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n asset: data?.pressKitAsset as ProductPressKitAsset | undefined,\n loading,\n error,\n refetch,\n };\n}\n\n/**\n * Hook to create a press kit asset\n */\nexport function useCreatePressKitAsset() {\n const [createMutation, { data, loading, error }] = useCreatePressKitAssetMutation({\n refetchQueries: [GetPressKitAssetsDocument],\n });\n\n return {\n createPressKitAsset: async (input: CreatePressKitAssetInput) => {\n return createMutation({ variables: { input } });\n },\n data: data?.createPressKitAsset as ProductPressKitAsset | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to update a press kit asset\n */\nexport function useUpdatePressKitAsset() {\n const [updateMutation, { data, loading, error }] = useUpdatePressKitAssetMutation({\n refetchQueries: [GetPressKitAssetsDocument],\n });\n\n return {\n updatePressKitAsset: async (id: string, input: UpdatePressKitAssetInput) => {\n return updateMutation({ variables: { id, input } });\n },\n data: data?.updatePressKitAsset as ProductPressKitAsset | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to delete a press kit asset\n */\nexport function useDeletePressKitAsset() {\n const [deleteMutation, { data, loading, error }] = useDeletePressKitAssetMutation({\n refetchQueries: [GetPressKitAssetsDocument],\n });\n\n return {\n deletePressKitAsset: async (id: string) => {\n return deleteMutation({ variables: { id } });\n },\n data: data?.deletePressKitAsset,\n loading,\n error,\n };\n}\n"],"mappings":";;AAkBA,SAAgB,EACd,GACA,GACA,GACA;CACA,IAAM,EAAE,SAAM,YAAS,UAAO,YAAS,iBAAc,EAA0B;EAC7E,WAAW;GACT;GACA;GACA,OAAO,GAAS,SAAS;GACzB,QAAQ,GAAS,UAAU;GAC5B;EACD,aAAa;EACd,CAAC;AAEF,QAAO;EACL,QAAS,GAAM,gBAAgB,SAAS,EAAE;EAC1C,OAAO,GAAM,gBAAgB,SAAS;EACtC,SAAS,GAAM,gBAAgB,WAAW;EAC1C;EACA;EACA;EACA;EACD;;AAMH,SAAgB,EAAiB,GAAY;CAC3C,IAAM,EAAE,SAAM,YAAS,UAAO,eAAY,EAAyB;EACjE,WAAW,EAAE,OAAI;EACjB,MAAM,CAAC;EACP,aAAa;EACd,CAAC;AAEF,QAAO;EACL,OAAO,GAAM;EACb;EACA;EACA;EACD;;AAMH,SAAgB,IAAyB;CACvC,IAAM,CAAC,GAAgB,EAAE,SAAM,YAAS,cAAW,EAA+B,EAChF,gBAAgB,CAAC,EAA0B,EAC5C,CAAC;AAEF,QAAO;EACL,qBAAqB,OAAO,MACnB,EAAe,EAAE,WAAW,EAAE,UAAO,EAAE,CAAC;EAEjD,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAyB;CACvC,IAAM,CAAC,GAAgB,EAAE,SAAM,YAAS,cAAW,EAA+B,EAChF,gBAAgB,CAAC,EAA0B,EAC5C,CAAC;AAEF,QAAO;EACL,qBAAqB,OAAO,GAAY,MAC/B,EAAe,EAAE,WAAW;GAAE;GAAI;GAAO,EAAE,CAAC;EAErD,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAyB;CACvC,IAAM,CAAC,GAAgB,EAAE,SAAM,YAAS,cAAW,EAA+B,EAChF,gBAAgB,CAAC,EAA0B,EAC5C,CAAC;AAEF,QAAO;EACL,qBAAqB,OAAO,MACnB,EAAe,EAAE,WAAW,EAAE,OAAI,EAAE,CAAC;EAE9C,MAAM,GAAM;EACZ;EACA;EACD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Press Kit Module
|
|
3
|
+
* Exports pages, components, hooks, and types for press/media kit management.
|
|
4
|
+
*/
|
|
5
|
+
export { PressKitListPage } from './pages/PressKitListPage';
|
|
6
|
+
export { PressKitCreatePage } from './pages/PressKitCreatePage';
|
|
7
|
+
export { PressKitDetailPage } from './pages/PressKitDetailPage';
|
|
8
|
+
export { PressKitEditPage } from './pages/PressKitEditPage';
|
|
9
|
+
export { PressKitAssetForm } from './components/PressKitAssetForm';
|
|
10
|
+
export { usePressKitAssets, usePressKitAsset, useCreatePressKitAsset, useUpdatePressKitAsset, useDeletePressKitAsset, } from './hooks/usePressKitAssets';
|
|
11
|
+
export type { ProductPressKitAsset, PressKitAssetCategory, PressKitAssetFilterInput, CreatePressKitAssetInput, UpdatePressKitAssetInput, PressKitAssetsConnection, } from './types';
|
|
12
|
+
export { createPressKitAssetSchema, updatePressKitAssetSchema } from './schemas';
|
|
13
|
+
export type { CreatePressKitAssetFormData, UpdatePressKitAssetFormData } from './schemas';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/product-management/modules/press-kit/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACjF,YAAY,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressKitCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitCreatePage.tsx"],"names":[],"mappings":"AAQA,wBAAgB,kBAAkB,4CA8DjC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { useCreatePressKitAsset as n } from "../hooks/usePressKitAssets.js";
|
|
4
|
+
import { PressKitAssetForm as r } from "../components/PressKitAssetForm.js";
|
|
5
|
+
import { useState as i } from "react";
|
|
6
|
+
import { ArrowLeft as a } from "lucide-react";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
//#region src/product-management/modules/press-kit/pages/PressKitCreatePage.tsx
|
|
9
|
+
function c() {
|
|
10
|
+
let { navigate: c, basePath: l = "/products" } = t(), u = `${l}/press-kit`, { createPressKitAsset: d, loading: f } = n(), p = e(), [m, h] = i(null), g = async (e) => {
|
|
11
|
+
try {
|
|
12
|
+
h(null);
|
|
13
|
+
let t = await d(e);
|
|
14
|
+
t.data?.createPressKitAsset && c(`${u}/${t.data.createPressKitAsset.id}`);
|
|
15
|
+
} catch (e) {
|
|
16
|
+
h(e instanceof Error ? e.message : "Failed to create press kit asset"), console.error("Failed to create press kit asset:", e);
|
|
17
|
+
}
|
|
18
|
+
}, _ = () => {
|
|
19
|
+
c(u);
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ s("div", {
|
|
22
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ s("div", {
|
|
25
|
+
className: "mb-6",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ s("button", {
|
|
28
|
+
onClick: _,
|
|
29
|
+
className: "inline-flex items-center gap-2 mb-4 text-text-secondary hover:text-text-primary transition-all duration-200",
|
|
30
|
+
children: [/* @__PURE__ */ o(a, { size: 20 }), /* @__PURE__ */ o("span", {
|
|
31
|
+
className: "text-sm font-medium",
|
|
32
|
+
children: p("pressKit.backToPressKit", "Back to Press Kit")
|
|
33
|
+
})]
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ o("h1", {
|
|
36
|
+
className: "text-3xl font-bold text-text-primary mb-2",
|
|
37
|
+
children: p("pressKit.createAsset", "Add Press Kit Asset")
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ o("p", {
|
|
40
|
+
className: "text-text-secondary",
|
|
41
|
+
children: p("pressKit.createAssetSubtitle", "Add a downloadable logo, banner, brochure or document")
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
m && /* @__PURE__ */ o("div", {
|
|
46
|
+
className: "mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg",
|
|
47
|
+
children: /* @__PURE__ */ o("p", {
|
|
48
|
+
className: "text-sm text-[var(--color-status-error)]",
|
|
49
|
+
children: m
|
|
50
|
+
})
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ o("div", {
|
|
53
|
+
className: "max-w-2xl",
|
|
54
|
+
children: /* @__PURE__ */ o("div", {
|
|
55
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
56
|
+
children: /* @__PURE__ */ o(r, {
|
|
57
|
+
onSubmit: g,
|
|
58
|
+
onCancel: _,
|
|
59
|
+
loading: f
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { c as PressKitCreatePage };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=PressKitCreatePage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressKitCreatePage.js","names":[],"sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitCreatePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { ArrowLeft } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useCreatePressKitAsset } from '../hooks/usePressKitAssets';\nimport { PressKitAssetForm } from '../components/PressKitAssetForm';\nimport type { CreatePressKitAssetInput, UpdatePressKitAssetInput } from '../types';\n\nexport function PressKitCreatePage() {\n const { navigate, basePath = '/products' } = useProductConsole();\n const pressKitBasePath = `${basePath}/press-kit`;\n const { createPressKitAsset, loading } = useCreatePressKitAsset();\n const tr = useTr();\n const [error, setError] = useState<string | null>(null);\n\n const handleSubmit = async (data: CreatePressKitAssetInput | UpdatePressKitAssetInput) => {\n try {\n setError(null);\n const result = await createPressKitAsset(data as CreatePressKitAssetInput);\n if (result.data?.createPressKitAsset) {\n navigate(`${pressKitBasePath}/${result.data.createPressKitAsset.id}`);\n }\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Failed to create press kit asset';\n setError(message);\n console.error('Failed to create press kit asset:', err);\n }\n };\n\n const handleCancel = () => {\n navigate(pressKitBasePath);\n };\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <div className=\"mb-6\">\n <button\n onClick={handleCancel}\n className=\"inline-flex items-center gap-2 mb-4 text-text-secondary hover:text-text-primary transition-all duration-200\"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('pressKit.backToPressKit', 'Back to Press Kit')}\n </span>\n </button>\n\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">\n {tr('pressKit.createAsset', 'Add Press Kit Asset')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr(\n 'pressKit.createAssetSubtitle',\n 'Add a downloadable logo, banner, brochure or document'\n )}\n </p>\n </div>\n\n {error && (\n <div className=\"mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg\">\n <p className=\"text-sm text-[var(--color-status-error)]\">{error}</p>\n </div>\n )}\n\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <PressKitAssetForm onSubmit={handleSubmit} onCancel={handleCancel} loading={loading} />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,IAAqB;CACnC,IAAM,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAmB,GAAG,EAAS,aAC/B,EAAE,wBAAqB,eAAY,GAAwB,EAC3D,IAAK,GAAO,EACZ,CAAC,GAAO,KAAY,EAAwB,KAAK,EAEjD,IAAe,OAAO,MAA8D;AACxF,MAAI;AACF,KAAS,KAAK;GACd,IAAM,IAAS,MAAM,EAAoB,EAAiC;AAC1E,GAAI,EAAO,MAAM,uBACf,EAAS,GAAG,EAAiB,GAAG,EAAO,KAAK,oBAAoB,KAAK;WAEhE,GAAK;AAGZ,GADA,EADgB,aAAe,QAAQ,EAAI,UAAU,mCACpC,EACjB,QAAQ,MAAM,qCAAqC,EAAI;;IAIrD,UAAqB;AACzB,IAAS,EAAiB;;AAG5B,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,UAAD;MACE,SAAS;MACT,WAAU;gBAFZ,CAIE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACvB,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAG,2BAA2B,oBAAoB;OAC9C,CAAA,CACA;;KAET,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,wBAAwB,sBAAsB;MAC/C,CAAA;KACL,kBAAC,KAAD;MAAG,WAAU;gBACV,EACC,gCACA,wDACD;MACC,CAAA;KACA;;GAEL,KACC,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAA4C;KAAU,CAAA;IAC/D,CAAA;GAGR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MAAmB,UAAU;MAAc,UAAU;MAAuB;MAAW,CAAA;KACnF,CAAA;IACF,CAAA;GACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressKitDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitDetailPage.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,kBAAkB,4CAwLjC"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
|
+
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
|
|
6
|
+
import { useDeletePressKitAsset as s, usePressKitAsset as c } from "../hooks/usePressKitAssets.js";
|
|
7
|
+
import { ArrowLeft as l, Download as u, ExternalLink as d, SquarePen as f, Trash2 as p } from "lucide-react";
|
|
8
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import { useParams as g } from "react-router-dom";
|
|
10
|
+
import { PermissionGate as _ } from "@burdenoff/fe-libs/shared/components";
|
|
11
|
+
//#region src/product-management/modules/press-kit/pages/PressKitDetailPage.tsx
|
|
12
|
+
function v(e) {
|
|
13
|
+
return e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1024 / 1024).toFixed(1)} MB` : "—";
|
|
14
|
+
}
|
|
15
|
+
function y() {
|
|
16
|
+
let { id: y } = g(), { navigate: b, basePath: x = "/products" } = t(), S = `${x}/press-kit`, { asset: C, loading: w, error: T } = c(y), { deletePressKitAsset: E } = s(), D = e(), O = async () => {
|
|
17
|
+
a("medium");
|
|
18
|
+
let e = D("pressKit.confirmDelete", "Delete this press kit asset?"), t = await i({
|
|
19
|
+
title: "Delete press kit asset",
|
|
20
|
+
message: e,
|
|
21
|
+
okButtonTitle: "Delete",
|
|
22
|
+
cancelButtonTitle: "Cancel"
|
|
23
|
+
});
|
|
24
|
+
if (t === null ? window.confirm(e) : t) try {
|
|
25
|
+
if (!(await E(y)).data?.deletePressKitAsset) {
|
|
26
|
+
o("error"), console.error("Press kit asset delete returned false:", y);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
o("success"), b(S);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
o("error"), console.error("Failed to delete press kit asset:", e);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
if (w) return /* @__PURE__ */ m("div", {
|
|
35
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
36
|
+
children: /* @__PURE__ */ m(n, { message: D("pressKit.loadingAsset", "Loading press kit asset...") })
|
|
37
|
+
});
|
|
38
|
+
if (T || !C) return /* @__PURE__ */ m("div", {
|
|
39
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
40
|
+
children: /* @__PURE__ */ m(r, {
|
|
41
|
+
message: T?.message || D("pressKit.assetNotFound", "Press kit asset not found"),
|
|
42
|
+
action: {
|
|
43
|
+
label: D("pressKit.backToPressKit", "Back to Press Kit"),
|
|
44
|
+
onClick: () => b(S)
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
let k = [
|
|
49
|
+
{
|
|
50
|
+
label: D("pressKit.fieldCategory", "Category"),
|
|
51
|
+
value: C.category.replace(/_/g, " ")
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: D("pressKit.fieldVisibility", "Visibility"),
|
|
55
|
+
value: C.visibility
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: D("pressKit.fieldMimeType", "Type"),
|
|
59
|
+
value: C.mimeType || "—"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: D("pressKit.fieldFileSize", "Size"),
|
|
63
|
+
value: v(C.fileSize)
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: D("pressKit.fieldVersion", "Version"),
|
|
67
|
+
value: C.version || "—"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: D("pressKit.fieldSortOrder", "Sort Order"),
|
|
71
|
+
value: String(C.sortOrder)
|
|
72
|
+
}
|
|
73
|
+
];
|
|
74
|
+
return /* @__PURE__ */ h("div", {
|
|
75
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ h("button", {
|
|
78
|
+
onClick: () => b(S),
|
|
79
|
+
className: "inline-flex items-center gap-2 mb-4 text-text-secondary hover:text-text-primary transition-all duration-200",
|
|
80
|
+
children: [/* @__PURE__ */ m(l, { size: 20 }), /* @__PURE__ */ m("span", {
|
|
81
|
+
className: "text-sm font-medium",
|
|
82
|
+
children: D("pressKit.backToPressKit", "Back to Press Kit")
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ h("div", {
|
|
86
|
+
className: "flex items-start justify-between mb-6",
|
|
87
|
+
children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
|
|
88
|
+
className: "text-3xl font-bold text-text-primary mb-1",
|
|
89
|
+
children: C.title
|
|
90
|
+
}), /* @__PURE__ */ h("p", {
|
|
91
|
+
className: "text-text-tertiary font-mono text-sm",
|
|
92
|
+
children: ["/", C.slug]
|
|
93
|
+
})] }), /* @__PURE__ */ h("div", {
|
|
94
|
+
className: "flex items-center gap-2",
|
|
95
|
+
children: [/* @__PURE__ */ h("a", {
|
|
96
|
+
href: C.fileUrl,
|
|
97
|
+
target: "_blank",
|
|
98
|
+
rel: "noopener noreferrer",
|
|
99
|
+
className: "inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 transition-all duration-200 font-medium",
|
|
100
|
+
children: [/* @__PURE__ */ m(u, { size: 18 }), D("pressKit.download", "Download")]
|
|
101
|
+
}), /* @__PURE__ */ h(_, {
|
|
102
|
+
role: "super_admin",
|
|
103
|
+
children: [/* @__PURE__ */ h("button", {
|
|
104
|
+
onClick: () => b(`${S}/${C.id}/edit`),
|
|
105
|
+
className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-muted transition-all duration-200",
|
|
106
|
+
children: [/* @__PURE__ */ m(f, { size: 18 }), D("pressKit.edit", "Edit")]
|
|
107
|
+
}), /* @__PURE__ */ h("button", {
|
|
108
|
+
onClick: O,
|
|
109
|
+
className: "inline-flex items-center gap-2 px-4 py-2 text-[var(--color-status-error)] border border-[var(--color-status-error-border)] rounded-lg hover:bg-[var(--color-status-error-subtle)] transition-all duration-200",
|
|
110
|
+
children: [/* @__PURE__ */ m(p, { size: 18 }), D("pressKit.delete", "Delete")]
|
|
111
|
+
})]
|
|
112
|
+
})]
|
|
113
|
+
})]
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ h("div", {
|
|
116
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
117
|
+
children: [/* @__PURE__ */ h("div", {
|
|
118
|
+
className: "lg:col-span-2 space-y-6",
|
|
119
|
+
children: [
|
|
120
|
+
C.thumbnailUrl && /* @__PURE__ */ m("div", {
|
|
121
|
+
className: "bg-surface border border-default rounded-lg p-4 shadow-[var(--shadow-elevation-1)]",
|
|
122
|
+
children: /* @__PURE__ */ m("img", {
|
|
123
|
+
src: C.thumbnailUrl,
|
|
124
|
+
alt: C.title,
|
|
125
|
+
className: "w-full max-h-80 object-contain rounded"
|
|
126
|
+
})
|
|
127
|
+
}),
|
|
128
|
+
C.description && /* @__PURE__ */ h("div", {
|
|
129
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
130
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
131
|
+
className: "text-sm font-semibold text-text-secondary uppercase mb-2",
|
|
132
|
+
children: D("pressKit.fieldDescription", "Description")
|
|
133
|
+
}), /* @__PURE__ */ m("p", {
|
|
134
|
+
className: "text-text-primary whitespace-pre-wrap",
|
|
135
|
+
children: C.description
|
|
136
|
+
})]
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ h("div", {
|
|
139
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
140
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
141
|
+
className: "text-sm font-semibold text-text-secondary uppercase mb-2",
|
|
142
|
+
children: D("pressKit.fieldFileUrl", "File URL")
|
|
143
|
+
}), /* @__PURE__ */ h("a", {
|
|
144
|
+
href: C.fileUrl,
|
|
145
|
+
target: "_blank",
|
|
146
|
+
rel: "noopener noreferrer",
|
|
147
|
+
className: "inline-flex items-center gap-1.5 text-sm text-[var(--color-status-info)] underline break-all",
|
|
148
|
+
children: [C.fileUrl, /* @__PURE__ */ m(d, { size: 14 })]
|
|
149
|
+
})]
|
|
150
|
+
})
|
|
151
|
+
]
|
|
152
|
+
}), /* @__PURE__ */ h("div", {
|
|
153
|
+
className: "space-y-6",
|
|
154
|
+
children: [/* @__PURE__ */ h("div", {
|
|
155
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
156
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
157
|
+
className: "text-sm font-semibold text-text-secondary uppercase mb-4",
|
|
158
|
+
children: D("pressKit.details", "Details")
|
|
159
|
+
}), /* @__PURE__ */ m("dl", {
|
|
160
|
+
className: "space-y-3",
|
|
161
|
+
children: k.map((e) => /* @__PURE__ */ h("div", {
|
|
162
|
+
className: "flex items-center justify-between",
|
|
163
|
+
children: [/* @__PURE__ */ m("dt", {
|
|
164
|
+
className: "text-sm text-text-secondary",
|
|
165
|
+
children: e.label
|
|
166
|
+
}), /* @__PURE__ */ m("dd", {
|
|
167
|
+
className: "text-sm text-text-primary font-medium",
|
|
168
|
+
children: e.value
|
|
169
|
+
})]
|
|
170
|
+
}, e.label))
|
|
171
|
+
})]
|
|
172
|
+
}), C.tags.length > 0 && /* @__PURE__ */ h("div", {
|
|
173
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
174
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
175
|
+
className: "text-sm font-semibold text-text-secondary uppercase mb-3",
|
|
176
|
+
children: D("pressKit.fieldTags", "Tags")
|
|
177
|
+
}), /* @__PURE__ */ m("div", {
|
|
178
|
+
className: "flex flex-wrap gap-2",
|
|
179
|
+
children: C.tags.map((e) => /* @__PURE__ */ m("span", {
|
|
180
|
+
className: "text-xs px-2 py-1 rounded-full bg-muted text-text-secondary",
|
|
181
|
+
children: e
|
|
182
|
+
}, e))
|
|
183
|
+
})]
|
|
184
|
+
})]
|
|
185
|
+
})]
|
|
186
|
+
})
|
|
187
|
+
]
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
export { y as PressKitDetailPage };
|
|
192
|
+
|
|
193
|
+
//# sourceMappingURL=PressKitDetailPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressKitDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, SquarePen, Trash2, Download, ExternalLink } from 'lucide-react';\nimport { PermissionGate } from '@burdenoff/fe-libs/shared/components';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { usePressKitAsset, useDeletePressKitAsset } from '../hooks/usePressKitAssets';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\n\nfunction formatBytes(bytes: number | null | undefined): string {\n if (!bytes) return '—';\n if (bytes < 1024) return `${bytes} B`;\n if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(0)} KB`;\n return `${(bytes / 1024 / 1024).toFixed(1)} MB`;\n}\n\nexport function PressKitDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const pressKitBasePath = `${basePath}/press-kit`;\n const { asset, loading, error } = usePressKitAsset(id!);\n const { deletePressKitAsset } = useDeletePressKitAsset();\n const tr = useTr();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr('pressKit.confirmDelete', 'Delete this press kit asset?');\n const native = await nativeConfirm({\n title: 'Delete press kit asset',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok = native === null ? window.confirm(message) : native;\n if (!ok) return;\n try {\n // deletePressKitAsset resolves to Boolean!. A throw covers hard\n // failures; the explicit false branch covers soft-failure/no-op\n // cases so we don't show a misleading success toast + navigate away.\n const result = await deletePressKitAsset(id!);\n if (!result.data?.deletePressKitAsset) {\n void nativeNotify('error');\n console.error('Press kit asset delete returned false:', id);\n return;\n }\n void nativeNotify('success');\n navigate(pressKitBasePath);\n } catch (err) {\n void nativeNotify('error');\n console.error('Failed to delete press kit asset:', err);\n }\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('pressKit.loadingAsset', 'Loading press kit asset...')} />\n </div>\n );\n }\n\n if (error || !asset) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error?.message || tr('pressKit.assetNotFound', 'Press kit asset not found')}\n action={{\n label: tr('pressKit.backToPressKit', 'Back to Press Kit'),\n onClick: () => navigate(pressKitBasePath),\n }}\n />\n </div>\n );\n }\n\n const meta: { label: string; value: string }[] = [\n { label: tr('pressKit.fieldCategory', 'Category'), value: asset.category.replace(/_/g, ' ') },\n { label: tr('pressKit.fieldVisibility', 'Visibility'), value: asset.visibility },\n { label: tr('pressKit.fieldMimeType', 'Type'), value: asset.mimeType || '—' },\n { label: tr('pressKit.fieldFileSize', 'Size'), value: formatBytes(asset.fileSize) },\n { label: tr('pressKit.fieldVersion', 'Version'), value: asset.version || '—' },\n { label: tr('pressKit.fieldSortOrder', 'Sort Order'), value: String(asset.sortOrder) },\n ];\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <button\n onClick={() => navigate(pressKitBasePath)}\n className=\"inline-flex items-center gap-2 mb-4 text-text-secondary hover:text-text-primary transition-all duration-200\"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('pressKit.backToPressKit', 'Back to Press Kit')}\n </span>\n </button>\n\n <div className=\"flex items-start justify-between mb-6\">\n <div>\n <h1 className=\"text-3xl font-bold text-text-primary mb-1\">{asset.title}</h1>\n <p className=\"text-text-tertiary font-mono text-sm\">/{asset.slug}</p>\n </div>\n <div className=\"flex items-center gap-2\">\n <a\n href={asset.fileUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 transition-all duration-200 font-medium\"\n >\n <Download size={18} />\n {tr('pressKit.download', 'Download')}\n </a>\n <PermissionGate role=\"super_admin\">\n <button\n onClick={() => navigate(`${pressKitBasePath}/${asset.id}/edit`)}\n className=\"inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-muted transition-all duration-200\"\n >\n <SquarePen size={18} />\n {tr('pressKit.edit', 'Edit')}\n </button>\n <button\n onClick={handleDelete}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-[var(--color-status-error)] border border-[var(--color-status-error-border)] rounded-lg hover:bg-[var(--color-status-error-subtle)] transition-all duration-200\"\n >\n <Trash2 size={18} />\n {tr('pressKit.delete', 'Delete')}\n </button>\n </PermissionGate>\n </div>\n </div>\n\n <div className=\"grid grid-cols-1 lg:grid-cols-3 gap-6\">\n <div className=\"lg:col-span-2 space-y-6\">\n {asset.thumbnailUrl && (\n <div className=\"bg-surface border border-default rounded-lg p-4 shadow-[var(--shadow-elevation-1)]\">\n <img\n src={asset.thumbnailUrl}\n alt={asset.title}\n className=\"w-full max-h-80 object-contain rounded\"\n />\n </div>\n )}\n {asset.description && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase mb-2\">\n {tr('pressKit.fieldDescription', 'Description')}\n </h3>\n <p className=\"text-text-primary whitespace-pre-wrap\">{asset.description}</p>\n </div>\n )}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase mb-2\">\n {tr('pressKit.fieldFileUrl', 'File URL')}\n </h3>\n <a\n href={asset.fileUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm text-[var(--color-status-info)] underline break-all\"\n >\n {asset.fileUrl}\n <ExternalLink size={14} />\n </a>\n </div>\n </div>\n\n <div className=\"space-y-6\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase mb-4\">\n {tr('pressKit.details', 'Details')}\n </h3>\n <dl className=\"space-y-3\">\n {meta.map((m) => (\n <div key={m.label} className=\"flex items-center justify-between\">\n <dt className=\"text-sm text-text-secondary\">{m.label}</dt>\n <dd className=\"text-sm text-text-primary font-medium\">{m.value}</dd>\n </div>\n ))}\n </dl>\n </div>\n {asset.tags.length > 0 && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase mb-3\">\n {tr('pressKit.fieldTags', 'Tags')}\n </h3>\n <div className=\"flex flex-wrap gap-2\">\n {asset.tags.map((t) => (\n <span\n key={t}\n className=\"text-xs px-2 py-1 rounded-full bg-muted text-text-secondary\"\n >\n {t}\n </span>\n ))}\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAS,EAAY,GAA0C;AAI7D,QAHK,IACD,IAAQ,OAAa,GAAG,EAAM,MAC9B,IAAQ,OAAO,OAAa,IAAI,IAAQ,MAAM,QAAQ,EAAE,CAAC,OACtD,IAAI,IAAQ,OAAO,MAAM,QAAQ,EAAE,CAAC,OAHxB;;AAMrB,SAAgB,IAAqB;CACnC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAmB,GAAG,EAAS,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EditPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitEditPage.tsx"],"names":[],"mappings":"AAWA,wBAAgB,gBAAgB,4CAuF/B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
|
+
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { usePressKitAsset as i, useUpdatePressKitAsset as a } from "../hooks/usePressKitAssets.js";
|
|
6
|
+
import { PressKitAssetForm as o } from "../components/PressKitAssetForm.js";
|
|
7
|
+
import { useState as s } from "react";
|
|
8
|
+
import { ArrowLeft as c } from "lucide-react";
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { useParams as d } from "react-router-dom";
|
|
11
|
+
//#region src/product-management/modules/press-kit/pages/PressKitEditPage.tsx
|
|
12
|
+
function f() {
|
|
13
|
+
let { id: f } = d(), { navigate: p, basePath: m = "/products" } = t(), h = `${m}/press-kit`, { asset: g, loading: _, error: v } = i(f), { updatePressKitAsset: y, loading: b } = a(), [x, S] = s(null), C = e(), w = async (e) => {
|
|
14
|
+
if (f) try {
|
|
15
|
+
S(null), await y(f, e), p(`${h}/${f}`);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
S(e instanceof Error ? e.message : "Failed to update press kit asset"), console.error("Failed to update press kit asset:", e);
|
|
18
|
+
}
|
|
19
|
+
}, T = () => {
|
|
20
|
+
p(`${h}/${f}`);
|
|
21
|
+
};
|
|
22
|
+
return _ ? /* @__PURE__ */ l("div", {
|
|
23
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
24
|
+
children: /* @__PURE__ */ l(n, { message: C("pressKit.loadingAsset", "Loading press kit asset...") })
|
|
25
|
+
}) : v || !g ? /* @__PURE__ */ l("div", {
|
|
26
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
27
|
+
children: /* @__PURE__ */ l(r, {
|
|
28
|
+
message: v?.message || C("pressKit.assetNotFound", "Press kit asset not found"),
|
|
29
|
+
action: {
|
|
30
|
+
label: C("pressKit.backToPressKit", "Back to Press Kit"),
|
|
31
|
+
onClick: () => p(h)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
}) : /* @__PURE__ */ u("div", {
|
|
35
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ u("div", {
|
|
38
|
+
className: "mb-6",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ u("button", {
|
|
41
|
+
onClick: T,
|
|
42
|
+
className: "inline-flex items-center gap-2 mb-4 text-text-secondary hover:text-text-primary transition-all duration-200",
|
|
43
|
+
children: [/* @__PURE__ */ l(c, { size: 20 }), /* @__PURE__ */ u("span", {
|
|
44
|
+
className: "text-sm font-medium",
|
|
45
|
+
children: [
|
|
46
|
+
C("pressKit.backTo", "Back to"),
|
|
47
|
+
" ",
|
|
48
|
+
g.title
|
|
49
|
+
]
|
|
50
|
+
})]
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ l("h1", {
|
|
53
|
+
className: "text-3xl font-bold text-text-primary mb-2",
|
|
54
|
+
children: C("pressKit.editAsset", "Edit Press Kit Asset")
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ l("p", {
|
|
57
|
+
className: "text-text-secondary",
|
|
58
|
+
children: C("pressKit.editAssetSubtitle", "Update press kit asset information")
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
}),
|
|
62
|
+
x && /* @__PURE__ */ l("div", {
|
|
63
|
+
className: "mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg",
|
|
64
|
+
children: /* @__PURE__ */ l("p", {
|
|
65
|
+
className: "text-sm text-[var(--color-status-error)]",
|
|
66
|
+
children: x
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ l("div", {
|
|
70
|
+
className: "max-w-2xl",
|
|
71
|
+
children: /* @__PURE__ */ l("div", {
|
|
72
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
73
|
+
children: /* @__PURE__ */ l(o, {
|
|
74
|
+
asset: g,
|
|
75
|
+
onSubmit: w,
|
|
76
|
+
onCancel: T,
|
|
77
|
+
loading: b
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { f as PressKitEditPage };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=PressKitEditPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressKitEditPage.js","names":[],"sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitEditPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { ArrowLeft } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { usePressKitAsset, useUpdatePressKitAsset } from '../hooks/usePressKitAssets';\nimport { PressKitAssetForm } from '../components/PressKitAssetForm';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport type { UpdatePressKitAssetInput } from '../types';\n\nexport function PressKitEditPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const pressKitBasePath = `${basePath}/press-kit`;\n const { asset, loading: fetchLoading, error: fetchError } = usePressKitAsset(id!);\n const { updatePressKitAsset, loading: updateLoading } = useUpdatePressKitAsset();\n const [error, setError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: UpdatePressKitAssetInput) => {\n if (!id) return;\n try {\n setError(null);\n await updatePressKitAsset(id, data);\n navigate(`${pressKitBasePath}/${id}`);\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Failed to update press kit asset';\n setError(message);\n console.error('Failed to update press kit asset:', err);\n }\n };\n\n const handleCancel = () => {\n navigate(`${pressKitBasePath}/${id}`);\n };\n\n if (fetchLoading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('pressKit.loadingAsset', 'Loading press kit asset...')} />\n </div>\n );\n }\n\n if (fetchError || !asset) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={fetchError?.message || tr('pressKit.assetNotFound', 'Press kit asset not found')}\n action={{\n label: tr('pressKit.backToPressKit', 'Back to Press Kit'),\n onClick: () => navigate(pressKitBasePath),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <div className=\"mb-6\">\n <button\n onClick={handleCancel}\n className=\"inline-flex items-center gap-2 mb-4 text-text-secondary hover:text-text-primary transition-all duration-200\"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('pressKit.backTo', 'Back to')} {asset.title}\n </span>\n </button>\n\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">\n {tr('pressKit.editAsset', 'Edit Press Kit Asset')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr('pressKit.editAssetSubtitle', 'Update press kit asset information')}\n </p>\n </div>\n\n {error && (\n <div className=\"mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg\">\n <p className=\"text-sm text-[var(--color-status-error)]\">{error}</p>\n </div>\n )}\n\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <PressKitAssetForm\n asset={asset}\n onSubmit={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AM;QACrC;SACA;;KAET,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,sBAAsB,uBAAuB;MAC9C,CAAA;KACL,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAG,8BAA8B,qCAAqC;MACrE,CAAA;KACA;;GAEL,KACC,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAA4C;KAAU,CAAA;IAC/D,CAAA;GAGR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MACS;MACP,UAAU;MACV,UAAU;MACV,SAAS;MACT,CAAA;KACE,CAAA;IACF,CAAA;GACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressKitListPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/press-kit/pages/PressKitListPage.tsx"],"names":[],"mappings":"AAgCA,wBAAgB,gBAAgB,4CA2S/B"}
|