@compill/admin 1.0.107 → 1.0.109

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 (86) hide show
  1. package/dist/index.cjs +2115 -0
  2. package/dist/index.d.ts +50 -565
  3. package/dist/index.js +605 -592
  4. package/dist/lib/SectionTitle.d.ts +2 -0
  5. package/dist/lib/breadcrumbs/BreadCrumbs.d.ts +15 -0
  6. package/dist/lib/buttons/DialogButton.d.ts +7 -0
  7. package/dist/lib/buttons/InvalidateButton.d.ts +6 -0
  8. package/dist/lib/buttons/NavigateButton.d.ts +4 -0
  9. package/dist/lib/buttons/PublishButton.d.ts +9 -0
  10. package/dist/lib/buttons/UpdateButton.d.ts +2 -0
  11. package/dist/lib/buttons/ViewButton.d.ts +5 -0
  12. package/dist/lib/cells/OrderCell.d.ts +11 -0
  13. package/dist/lib/json/DetailsView.d.ts +5 -0
  14. package/dist/lib/json/EditItemView.d.ts +2 -0
  15. package/dist/lib/json/MultiQueryWrapper.d.ts +5 -0
  16. package/dist/lib/json/QueryWrapper.d.ts +6 -0
  17. package/dist/lib/json/ScreenRenderer.d.ts +6 -0
  18. package/dist/lib/json/ScreenTopBar.d.ts +15 -0
  19. package/dist/lib/json/TabbedView.d.ts +3 -0
  20. package/dist/lib/json/buttons/ActionButton.d.ts +14 -0
  21. package/dist/lib/json/buttons/ConfirmationActionButton.d.ts +26 -0
  22. package/dist/lib/json/dialog/DialogRenderer.d.ts +11 -0
  23. package/dist/lib/json/dialog/ItemDeleteDialog.d.ts +17 -0
  24. package/dist/lib/json/dialog/ItemEditDialog.d.ts +32 -0
  25. package/dist/lib/json/dialog/MultiQueryWrapperDialog.d.ts +7 -0
  26. package/dist/lib/json/dialog/QueryWrapperDialog.d.ts +13 -0
  27. package/dist/lib/json/table/RefreshButton.d.ts +3 -0
  28. package/dist/lib/json/table/TableRowActionsView.d.ts +11 -0
  29. package/dist/lib/json/table/TableRowPublishPostButton.d.ts +8 -0
  30. package/dist/lib/json/table/TableView.d.ts +3 -0
  31. package/dist/lib/json/table/TableViewContext.d.ts +14 -0
  32. package/dist/lib/json/table/useTableProps.d.ts +3 -0
  33. package/dist/lib/json/types/DetailsView.d.ts +57 -0
  34. package/dist/lib/json/types/EditItemDialog.d.ts +4 -0
  35. package/dist/lib/json/types/MultiQueryWrapper.d.ts +18 -0
  36. package/dist/lib/json/types/MultiQueryWrapperDialog.d.ts +13 -0
  37. package/dist/lib/json/types/QueryWrapper.d.ts +27 -0
  38. package/dist/lib/json/types/QueryWrapperDialog.d.ts +22 -0
  39. package/dist/lib/json/types/ScreenConfig.d.ts +8 -0
  40. package/dist/lib/json/types/TabbedView.d.ts +22 -0
  41. package/dist/lib/json/types/TableView.d.ts +117 -0
  42. package/dist/lib/layout/AdminLayout.d.ts +13 -0
  43. package/dist/lib/layout/ButtonBar.d.ts +19 -0
  44. package/dist/lib/layout/Content.d.ts +9 -0
  45. package/dist/lib/layout/PageTitleBar.d.ts +6 -0
  46. package/dist/lib/layout/Sidebar.d.ts +20 -0
  47. package/dist/lib/layout/menu/Menu.d.ts +12 -0
  48. package/dist/lib/layout/menu/MenuButton.d.ts +6 -0
  49. package/dist/lib/layout/menu/MenuConfig.d.ts +13 -0
  50. package/dist/lib/layout/menu/MenuItem.d.ts +11 -0
  51. package/dist/lib/layout/menu/NextMenuItem.d.ts +11 -0
  52. package/dist/lib/layout/menu/SelectedIndicator.d.ts +3 -0
  53. package/dist/lib/layout/menu/UserBlock.d.ts +9 -0
  54. package/dist/lib/modal/AttachDialog.d.ts +30 -0
  55. package/dist/lib/modal/FormActionDialog.d.ts +23 -0
  56. package/dist/lib/page/PageContainer.d.ts +2 -0
  57. package/dist/lib/page/PageContentEditor.d.ts +4 -0
  58. package/dist/lib/page/PageMain.d.ts +2 -0
  59. package/dist/lib/page/PageQueryStateContainer.d.ts +21 -0
  60. package/dist/lib/page/PageSectionTitle.d.ts +2 -0
  61. package/dist/lib/page/PageSidebar.d.ts +2 -0
  62. package/dist/lib/page/PageSidebarSection.d.ts +4 -0
  63. package/dist/lib/page/PageStateContainer.d.ts +7 -0
  64. package/dist/lib/page/PageSubSectionTitle.d.ts +2 -0
  65. package/dist/lib/page/PageTitle.d.ts +2 -0
  66. package/dist/lib/page/PageTopBar.d.ts +13 -0
  67. package/dist/lib/status/StatusBadge.d.ts +4 -0
  68. package/dist/lib/table/TableColumnButton.d.ts +1 -0
  69. package/dist/lib/table/TableContainer.d.ts +10 -0
  70. package/dist/lib/table/TableContainerContext.d.ts +18 -0
  71. package/dist/lib/table/TableCreateButton.d.ts +4 -0
  72. package/dist/lib/table/TableFilterButton.d.ts +2 -0
  73. package/dist/lib/table/TableFilters.d.ts +9 -0
  74. package/dist/lib/table/TableMassActions.d.ts +6 -0
  75. package/dist/lib/table/TableRowActionBar.d.ts +10 -0
  76. package/dist/lib/table/TableRowActionButton.d.ts +4 -0
  77. package/dist/lib/table/TableRowActionDialogButton.d.ts +4 -0
  78. package/dist/lib/table/TableRowDeleteButton.d.ts +2 -0
  79. package/dist/lib/table/TableRowEditButton.d.ts +2 -0
  80. package/dist/lib/table/TableRowNavigateButton.d.ts +4 -0
  81. package/dist/lib/table/TableRowPublishPostButton.d.ts +8 -0
  82. package/dist/lib/table/TableRowViewButton.d.ts +4 -0
  83. package/dist/lib/table/TableTopBar.d.ts +8 -0
  84. package/package.json +15 -22
  85. package/dist/index.d.mts +0 -565
  86. package/dist/index.mjs +0 -2000
@@ -0,0 +1,19 @@
1
+ import { DialogButtonProps } from "../buttons/DialogButton";
2
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
3
+ import { ButtonProps } from "@valerya/ui";
4
+ import React from "react";
5
+ export declare function ButtonBar({ children, ...props }: ParentComponent & SoperioComponent): JSX.Element;
6
+ export type ButtonBarButtonProps = {
7
+ icon?: string;
8
+ } & ButtonProps;
9
+ export declare const ButtonBarButton: React.ForwardRefExoticComponent<{
10
+ icon?: string;
11
+ } & ButtonProps & React.RefAttributes<HTMLDivElement>>;
12
+ export interface ButtonBarSubmitButtonProps extends ButtonBarButtonProps {
13
+ useDirty?: boolean;
14
+ }
15
+ export declare const ButtonBarSubmitButton: React.ForwardRefExoticComponent<ButtonBarSubmitButtonProps & React.RefAttributes<HTMLDivElement>>;
16
+ export type ButtonBarDialogButtonProps = {
17
+ icon?: string;
18
+ } & DialogButtonProps;
19
+ export declare function ButtonBarDialogButton({ icon, children, ...props }: ButtonBarDialogButtonProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { SoperioComponent, ParentComponent } from "@soperio/react";
2
+ interface ContentProps extends SoperioComponent, ParentComponent {
3
+ }
4
+ /**
5
+ *
6
+ *
7
+ */
8
+ export default function Content({ ...props }: ContentProps): JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ interface TableTopBarProps extends SoperioComponent, ParentComponent {
3
+ title?: string;
4
+ }
5
+ export declare function PageTitleBar({ title, children, ...props }: TableTopBarProps): JSX.Element;
6
+ export {};
@@ -0,0 +1,20 @@
1
+ import { Color, ParentComponent, SoperioComponent } from "@soperio/react";
2
+ import { MenuConfig } from "./menu/MenuConfig";
3
+ interface SidebarProps extends SoperioComponent, ParentComponent {
4
+ show?: boolean;
5
+ color: Color;
6
+ darkMode?: boolean;
7
+ logo?: React.ReactNode;
8
+ title?: string;
9
+ menuConfig: MenuConfig;
10
+ userMenuConfig?: MenuConfig;
11
+ userSettingsPath: string;
12
+ }
13
+ export declare function Sidebar({ show, logo, title, menuConfig, userMenuConfig, userSettingsPath, color, darkMode, ...props }: SidebarProps): JSX.Element;
14
+ interface LogoProps extends SoperioComponent, ParentComponent {
15
+ width: number;
16
+ height: number;
17
+ darkMode?: boolean;
18
+ }
19
+ export default function Logo({ width, height, darkMode, ...props }: LogoProps): JSX.Element;
20
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ import { MenuConfig } from "./MenuConfig";
3
+ export interface MenuProps extends SoperioComponent, ParentComponent {
4
+ darkMode?: boolean;
5
+ config: MenuConfig;
6
+ useNextRouter?: boolean;
7
+ }
8
+ /**
9
+ *
10
+ *
11
+ */
12
+ export declare function Menu({ darkMode, config, useNextRouter, ...props }: MenuProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from "@valerya/ui";
2
+ export declare function MenuButton({ depth, darkMode, icon, selected, children, ...props }: {
3
+ depth?: number;
4
+ icon?: string;
5
+ darkMode?: boolean;
6
+ } & ButtonProps): JSX.Element;
@@ -0,0 +1,13 @@
1
+ export type MenuConfig = MenuItems;
2
+ export type MenuItems = (Item | MenuDivider)[];
3
+ export type Item = {
4
+ type: "item";
5
+ path: string;
6
+ icon?: string;
7
+ label: string;
8
+ children?: Item[];
9
+ };
10
+ export type MenuDivider = {
11
+ type: "divider";
12
+ label?: string;
13
+ };
@@ -0,0 +1,11 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ import { Item } from "./MenuConfig";
3
+ interface MenuItemProps extends SoperioComponent, ParentComponent {
4
+ path: string;
5
+ depth?: number;
6
+ icon?: string;
7
+ darkMode?: boolean;
8
+ subMenu?: Item[];
9
+ }
10
+ export declare function MenuItem({ icon, path, depth, darkMode, subMenu, ...props }: MenuItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ import { Item } from "./MenuConfig";
3
+ interface NextMenuItemProps extends SoperioComponent, ParentComponent {
4
+ path: string;
5
+ depth?: number;
6
+ icon?: string;
7
+ darkMode?: boolean;
8
+ subMenu?: Item[];
9
+ }
10
+ export declare function NextMenuItem({ icon, path, depth, darkMode, subMenu, ...props }: NextMenuItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare function SelectedIndicator({ darkMode }: {
2
+ darkMode?: boolean;
3
+ }): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { MenuConfig } from "./MenuConfig";
2
+ interface UserBlockProps {
3
+ color: string;
4
+ darkMode?: boolean;
5
+ menuConfig?: MenuConfig;
6
+ path: string;
7
+ }
8
+ export declare function UserBlock({ color, darkMode, menuConfig, path }: UserBlockProps): JSX.Element | null;
9
+ export {};
@@ -0,0 +1,30 @@
1
+ import { QueryFunctionContext } from "@tanstack/react-query";
2
+ import { ModalProps } from "@valerya/ui";
3
+ import { FormikConfig } from "formik";
4
+ interface AttachDialogProps<T> extends Omit<ModalProps, "id" | "children" | "title" | "position"> {
5
+ queryId?: string;
6
+ queryKey: string[];
7
+ queryFetchFn: (context: QueryFunctionContext) => Promise<T>;
8
+ queryFetchAllFn: (context: QueryFunctionContext) => Promise<T>;
9
+ queryFetchAllKey: string[];
10
+ querySaveFn: ({ resources }: {
11
+ resources: string[];
12
+ }) => Promise<any>;
13
+ matchKey: string;
14
+ show: boolean;
15
+ onClose: () => void;
16
+ itemLabel?: string;
17
+ onSuccess?: (response: any) => void;
18
+ onFetchError?: () => void;
19
+ fetchErrorMsg?: string;
20
+ onSaveError?: () => void;
21
+ saveErrorMsg?: string;
22
+ invalidateQueriesOnSuccess?: boolean;
23
+ retryText?: string;
24
+ cancelLabel?: string;
25
+ saveLabel?: string;
26
+ formikProps?: Omit<FormikConfig<any>, "initialValues" | "onSubmit">;
27
+ getItemName?: (item: any) => string;
28
+ }
29
+ export declare function AttachDialog({ queryId, queryKey, queryFetchFn, queryFetchAllKey, queryFetchAllFn, querySaveFn, matchKey, size, show, onClose, itemLabel, onSuccess, onFetchError, fetchErrorMsg, onSaveError, saveErrorMsg, invalidateQueriesOnSuccess, retryText, cancelLabel, saveLabel, formikProps, getItemName, ...props }: AttachDialogProps<any>): JSX.Element;
30
+ export {};
@@ -0,0 +1,23 @@
1
+ import { UseMutateOptions } from "@compill/api";
2
+ import { FormRendererConfig } from "@compill/form";
3
+ import { UseMutationOptions } from "@tanstack/react-query";
4
+ import { ModalProps } from "@valerya/ui";
5
+ import { FormikConfig } from "formik";
6
+ import React from "react";
7
+ export interface FormActionDialogProps<TFormData extends {} = any, TResultData extends {} = any> extends Omit<ModalProps, "id" | "children" | "title" | "position" | "onError">, UseMutateOptions<TResultData, TFormData> {
8
+ itemLabel?: string;
9
+ queryId?: string;
10
+ queryKey: string[];
11
+ initialValues: any;
12
+ queryFn: (item: TFormData) => Promise<TResultData>;
13
+ queryOptions?: UseMutationOptions<TResultData, unknown, TFormData>;
14
+ invalidateQueriesOnSuccess?: boolean;
15
+ cancelLabel?: string;
16
+ saveLabel?: string;
17
+ title: string;
18
+ formikProps?: Omit<FormikConfig<TFormData>, "initialValues" | "onSubmit">;
19
+ form: React.ReactNode | FormRendererConfig;
20
+ show: boolean;
21
+ onClose: () => void;
22
+ }
23
+ export declare function FormActionDialog<TFormData extends {}, TResultData extends {}>({ initialValues, itemLabel, queryId, queryKey, queryFn, queryOptions, onSuccess, successMsg, showSuccessMsg, onError, errorMsg, showErrorMsg, processInput, invalidateQueriesOnSuccess, cancelLabel, saveLabel, size, title, form, show, onClose, formikProps, ...props }: FormActionDialogProps<TFormData, TResultData>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ContainerProps } from "@valerya/ui";
2
+ export declare function PageContainer({ children, ...props }: ContainerProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { SoperioComponent } from "@soperio/react";
2
+ export declare function PageContentEditor({ name, ...props }: {
3
+ name: string;
4
+ } & SoperioComponent): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ export declare function PageMain({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { CRUDAPI, CRUD_MODEL } from "@compill/api";
2
+ import { ContainerProps } from "@valerya/ui";
3
+ import React from "react";
4
+ import { SoperioComponent } from "@soperio/react";
5
+ type PageQueryContainerProps<T extends CRUD_MODEL> = Omit<ContainerProps, "children"> & ({
6
+ api: CRUDAPI<T>;
7
+ queryId?: string;
8
+ loadingStyles?: SoperioComponent;
9
+ errorStyles?: SoperioComponent;
10
+ } & ({
11
+ apiFn: "get";
12
+ children: (data: T) => React.ReactElement;
13
+ } | {
14
+ apiFn: "getAll";
15
+ apiParams?: any;
16
+ children: (data: T[]) => React.ReactElement;
17
+ }));
18
+ export declare const PageQueryStateContainer: <T extends CRUD_MODEL>(p: PageQueryContainerProps<T> & {
19
+ ref?: React.Ref<HTMLDivElement>;
20
+ }) => React.ReactElement;
21
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ export declare function PageSectionTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ export declare function PageSidebar({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ export declare function PageSidebarSection({ title, children, ...props }: {
3
+ title?: string;
4
+ } & SoperioComponent & ParentComponent): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ContainerProps } from "@valerya/ui";
2
+ import React from "react";
3
+ interface PageStateContainerProps extends ContainerProps {
4
+ loading?: boolean;
5
+ }
6
+ export declare const PageStateContainer: React.ForwardRefExoticComponent<PageStateContainerProps & React.RefAttributes<HTMLDivElement>>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ export declare function PageSubSectionTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ export declare function PageTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ import React from "react";
3
+ import { Breadcrumb, QueryBreadcrumbs } from "../breadcrumbs/BreadCrumbs";
4
+ export interface PageTopBarProps extends SoperioComponent, ParentComponent {
5
+ title?: string;
6
+ breadcrumbs?: Breadcrumb[] | QueryBreadcrumbs;
7
+ }
8
+ export declare function PageTopBar({ title, breadcrumbs, children, ...props }: PageTopBarProps): JSX.Element;
9
+ export declare function PageTabbedTopBarProvider({ children }: ParentComponent): JSX.Element;
10
+ export declare function PageTabbedTopBar({ title, breadcrumbs, children, ...props }: PageTopBarProps): JSX.Element;
11
+ export declare function PageTopBarToolbar({ trackingRef, children }: {
12
+ trackingRef?: Element | null;
13
+ } & ParentComponent): React.ReactPortal | null;
@@ -0,0 +1,4 @@
1
+ import { SoperioComponent } from "@soperio/react";
2
+ export declare function StatusBadge({ status, ...props }: {
3
+ status: "draft" | "published";
4
+ } & SoperioComponent): JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ColumnDef } from "@tanstack/react-table";
2
+ import { TileProps } from "@valerya/ui";
3
+ interface TableContainerProps extends TileProps {
4
+ filtersMethod?: "internal" | "nextRouter" | "reactRouter";
5
+ initialPageSize?: number;
6
+ columns?: ColumnDef<any>[];
7
+ initialVisibleColumns?: string[];
8
+ }
9
+ export declare function TableContainer({ initialPageSize, initialVisibleColumns, columns, filtersMethod, children, ...props }: TableContainerProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { ColumnDef } from "@tanstack/react-table";
3
+ type TableContainerContextProps = {
4
+ showFilters?: boolean;
5
+ setShowFilters: (show: boolean) => void;
6
+ showMassActions?: boolean;
7
+ setShowMassActions: (show: boolean) => void;
8
+ columns: ColumnDef<any, any>[];
9
+ filteredColumns: ColumnDef<any, any>[];
10
+ toggleColumnVisibility: (id: string) => void;
11
+ isColumnVisible: (id: string) => boolean;
12
+ };
13
+ declare const useContext: () => TableContainerContextProps;
14
+ declare function TableContainerContextProvider({ initialVisibleColumns, columns, children }: {
15
+ initialVisibleColumns?: string[];
16
+ columns?: ColumnDef<any, any>[];
17
+ } & React.PropsWithChildren): JSX.Element;
18
+ export { TableContainerContextProvider, useContext as useTableContainerContext };
@@ -0,0 +1,4 @@
1
+ import { DialogButtonProps } from "../buttons/DialogButton";
2
+ export declare function TableCreateButton({ icon, children, ...props }: {
3
+ icon?: string;
4
+ } & DialogButtonProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from "@valerya/ui";
2
+ export declare function TableFilterButton({ ...props }: ButtonProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FormRendererConfig } from "@compill/form";
2
+ interface TableFiltersProps {
3
+ form: FormRendererConfig;
4
+ initialValues: any;
5
+ schema?: any;
6
+ processInput?: (input: any) => any;
7
+ }
8
+ export declare function TableFilters({ form, initialValues, schema, processInput }: TableFiltersProps): JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import { MassAction } from "../json/types/TableView";
2
+ interface TableMassActionsProps {
3
+ actions: MassAction[];
4
+ }
5
+ export declare function TableMassActions({ actions }: TableMassActionsProps): JSX.Element;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ interface TableRowActionBarProps extends SoperioComponent, ParentComponent {
3
+ publishId?: string;
4
+ viewPath?: string;
5
+ navigatePath?: string;
6
+ editDialog?: (onClose: () => void) => React.ReactNode;
7
+ deleteDialog?: (onClose: () => void) => React.ReactNode;
8
+ }
9
+ export declare function TableRowActionBar({ publishId, viewPath, navigatePath, editDialog, deleteDialog, children, ...props }: TableRowActionBarProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ButtonProps } from "@valerya/ui";
2
+ export declare function TableRowActionButton({ icon, children, ...props }: {
3
+ icon?: string;
4
+ } & ButtonProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { DialogButtonProps } from "../buttons/DialogButton";
2
+ export declare function TableRowActionDialogButton({ icon, children, ...props }: {
3
+ icon?: string;
4
+ } & DialogButtonProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DialogButtonProps } from "../buttons/DialogButton";
2
+ export declare function TableRowDeleteButton({ children, ...props }: DialogButtonProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DialogButtonProps } from "../buttons/DialogButton";
2
+ export declare function TableRowEditButton({ children, ...props }: DialogButtonProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ButtonProps } from "@valerya/ui";
2
+ export declare function TableRowNavigateButton({ path, ...props }: {
3
+ path: string;
4
+ } & ButtonProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { API } from "@compill/admin-api";
2
+ import { ButtonProps } from "@valerya/ui";
3
+ export declare function TableRowPublishPostButton({ id, api, status, invalidateQueryKey, ...props }: {
4
+ id: string;
5
+ api: API<any>;
6
+ status: "draft" | "published";
7
+ invalidateQueryKey?: string[];
8
+ } & ButtonProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ButtonProps } from "@valerya/ui";
2
+ export declare function TableRowViewButton({ path, ...props }: {
3
+ path: string;
4
+ } & ButtonProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ParentComponent, SoperioComponent } from "@soperio/react";
2
+ import { Breadcrumb, QueryBreadcrumbs } from "../breadcrumbs/BreadCrumbs";
3
+ interface TableTopBarProps extends SoperioComponent, ParentComponent {
4
+ title?: string;
5
+ breadcrumbs?: Breadcrumb[] | QueryBreadcrumbs;
6
+ }
7
+ export declare function TableTopBar({ title, breadcrumbs, children, ...props }: TableTopBarProps): JSX.Element;
8
+ export {};
package/package.json CHANGED
@@ -1,18 +1,11 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.mjs",
13
- "require": "./dist/index.js"
14
- }
15
- },
16
9
  "devDependencies": {
17
10
  "eslint": "^9.38.0",
18
11
  "typescript": "5.9.2",
@@ -36,19 +29,19 @@
36
29
  "react-router-dom": "^6.11.2",
37
30
  "react-hotkeys-hook": "^5.0.1",
38
31
  "yup": "^1.1.0",
39
- "@soperio/react": "1.0.21",
40
- "@compill/admin-api": "1.0.60",
41
- "@soperio/jsx-runtime": "1.0.21",
42
- "@valerya/ui": "1.0.21",
43
- "@compill/api": "1.0.62",
44
- "@compill/auth": "1.0.82",
45
- "@compill/components": "1.0.55",
46
- "@compill/form": "1.0.72",
47
- "@compill/env": "1.0.24",
48
- "@compill/hooks": "1.0.48",
49
- "@compill/form-editor": "1.0.24",
50
- "@compill/table": "1.0.85",
51
- "@compill/editor": "1.0.84"
32
+ "@soperio/react": "1.0.24",
33
+ "@valerya/ui": "1.0.27",
34
+ "@compill/admin-api": "1.0.62",
35
+ "@soperio/jsx-runtime": "1.0.24",
36
+ "@compill/api": "1.0.64",
37
+ "@compill/auth": "1.0.84",
38
+ "@compill/components": "1.0.57",
39
+ "@compill/env": "1.0.26",
40
+ "@compill/form": "1.0.74",
41
+ "@compill/form-editor": "1.0.26",
42
+ "@compill/table": "1.0.87",
43
+ "@compill/hooks": "1.0.50",
44
+ "@compill/editor": "1.0.86"
52
45
  },
53
46
  "publishConfig": {
54
47
  "access": "public"
@@ -57,7 +50,7 @@
57
50
  "dist"
58
51
  ],
59
52
  "scripts": {
60
- "build": "tsup src/index.ts --format esm,cjs --dts --clean",
53
+ "build": "rimraf dist && rollup -c && tsc -p tsconfig.build.json",
61
54
  "dev": "tsup src/index.ts --format esm --dts --watch",
62
55
  "lint": "eslint . --max-warnings 0",
63
56
  "check-types": "tsc --noEmit"