@shophost/react 2.0.64 → 2.0.67
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/README.md +1 -7
- package/admin/dashboard/components/overview/dashboard-chart-card.d.ts +1 -1
- package/admin/dashboard/components/overview/dashboard-types.d.ts +2 -2
- package/admin/data/schema.d.ts +6 -6
- package/admin/manufacturer/components/manufacturers-list/columns.d.ts +1 -1
- package/admin/order/components/orders-list/actions-cell.d.ts +1 -1
- package/admin/product/components/product-form/basic-info-section.d.ts +1 -1
- package/admin/product/components/product-form/metadata-section.d.ts +1 -1
- package/admin/product/components/product-form/modifiers-section.d.ts +1 -1
- package/admin/product/components/product-form/price-section.d.ts +1 -1
- package/admin/product-category/components/product-categories-list/columns.d.ts +1 -1
- package/admin/settings/components/organization-configuration-form.d.ts +2 -4
- package/admin/settings/shipping-method/components/shipping-methods-list/columns.d.ts +1 -1
- package/admin-client.cjs +1 -1
- package/admin-client.js +1 -3265
- package/index.cjs +1 -1
- package/index.mjs +1 -11
- package/index.react-server.cjs +1 -1
- package/index.react-server.mjs +1 -11
- package/lib/chartUtils.d.ts +1 -1
- package/next/server.cjs +1 -1
- package/next/server.mjs +1 -16
- package/next/views.cjs +1 -1
- package/next/views.mjs +1 -4
- package/package.json +3 -3
- package/providers/organization-provider.d.ts +1 -1
- package/storefront/components/cart/cart-drawer.d.ts +1 -1
- package/storefront/components/ui/badge.d.ts +1 -1
- package/storefront/components/ui/command-bar.d.ts +2 -2
- package/storefront/components/ui/command.d.ts +1 -1
- package/storefront/components/ui/popover.d.ts +2 -2
- package/storefront/providers/cart-provider.d.ts +1 -0
- package/storefront/translations/en.d.ts +47 -0
- package/storefront/translations/pl.d.ts +47 -0
- package/storefront.cjs +1 -1
- package/storefront.mjs +1 -85
- package/ui/badge.d.ts +1 -1
- package/ui/calendar.d.ts +6 -6
- package/ui/checkbox.d.ts +1 -1
- package/ui/command-bar.d.ts +2 -2
- package/ui/command.d.ts +1 -1
- package/ui/data-table/data-table-filter.d.ts +1 -1
- package/ui/data-table/data-table-pagination.d.ts +1 -1
- package/ui/data-table/data-table.d.ts +1 -1
- package/ui/date-picker.d.ts +5 -5
- package/ui/drawer.d.ts +2 -2
- package/ui/dropdown.d.ts +2 -2
- package/ui/input/email-input.d.ts +1 -1
- package/ui/input/image-upload-input.d.ts +1 -1
- package/ui/input-group.d.ts +1 -1
- package/ui/line-chart.d.ts +2 -2
- package/ui/logo.d.ts +1 -4
- package/ui/multiple-select.d.ts +2 -2
- package/ui/popover.d.ts +2 -2
- package/ui/progress-circle.d.ts +1 -1
- package/ui/radio-card.d.ts +2 -2
- package/ui/search-bar.d.ts +1 -1
- package/ui/select.d.ts +1 -1
- package/ui/switch.d.ts +2 -2
- package/ui/tab-navigation.d.ts +1 -1
- package/ui/tooltip.d.ts +3 -3
package/README.md
CHANGED
|
@@ -86,13 +86,7 @@ import React from "react";
|
|
|
86
86
|
|
|
87
87
|
export function AppProvider({ children, locale }: { children: React.ReactNode; locale: Locale }) {
|
|
88
88
|
return (
|
|
89
|
-
<ShophostProvider
|
|
90
|
-
baseUrl={process.env.NEXT_PUBLIC_APP_DOMAIN!}
|
|
91
|
-
locale={locale}
|
|
92
|
-
organizationId={process.env.NEXT_PUBLIC_ORGANIZATION_ID!}
|
|
93
|
-
appearance={{ primaryColor: "#0f766e" }}
|
|
94
|
-
modifiersModal={<ModifiersDialog />}
|
|
95
|
-
>
|
|
89
|
+
<ShophostProvider baseUrl={process.env.NEXT_PUBLIC_APP_DOMAIN!} locale={locale} organizationId={process.env.NEXT_PUBLIC_ORGANIZATION_ID!} appearance={{ primaryColor: "#0f766e" }} modifiersModal={<ModifiersDialog />}>
|
|
96
90
|
{children}
|
|
97
91
|
</ShophostProvider>
|
|
98
92
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateRange } from 'react-day-picker';
|
|
2
|
-
import { PeriodValue } from './dashboard-types';
|
|
3
2
|
import { OverviewData } from '../../../data/schema';
|
|
3
|
+
import { PeriodValue } from './dashboard-types';
|
|
4
4
|
export type CardProps = {
|
|
5
5
|
title: keyof OverviewData;
|
|
6
6
|
type: "currency" | "unit";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PeriodValue =
|
|
1
|
+
export type PeriodValue = "previous-period" | "last-year" | "no-comparison";
|
|
2
2
|
export type KpiEntry = {
|
|
3
3
|
title: string;
|
|
4
4
|
percentage: number;
|
|
@@ -6,7 +6,7 @@ export type KpiEntry = {
|
|
|
6
6
|
allowed: number;
|
|
7
7
|
unit?: string;
|
|
8
8
|
};
|
|
9
|
-
export type KpiEntryExtended = Omit<KpiEntry,
|
|
9
|
+
export type KpiEntryExtended = Omit<KpiEntry, "current" | "allowed" | "unit"> & {
|
|
10
10
|
value: string;
|
|
11
11
|
color: string;
|
|
12
12
|
};
|
package/admin/data/schema.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ export type Usage = {
|
|
|
8
8
|
};
|
|
9
9
|
export type OverviewData = {
|
|
10
10
|
date: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
"Rows written": number;
|
|
12
|
+
"Rows read": number;
|
|
13
13
|
Queries: number;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
"Payments completed": number;
|
|
15
|
+
"Sign ups": number;
|
|
16
16
|
Logins: number;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
"Sign outs": number;
|
|
18
|
+
"Support calls": number;
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
4
4
|
interface BasicInfoSectionProps {
|
|
5
5
|
form: UseFormReturn<CreateProduct | UpdateProduct>;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
4
4
|
interface MetadataSectionProps {
|
|
5
5
|
form: UseFormReturn<CreateProduct | UpdateProduct>;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
4
4
|
interface ModifiersSectionProps {
|
|
5
5
|
form: UseFormReturn<CreateProduct | UpdateProduct>;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
import { CreateProduct, UpdateProduct } from '../../../../../../client/src/index.ts';
|
|
4
4
|
interface PriceSectionProps {
|
|
5
5
|
form: UseFormReturn<CreateProduct | UpdateProduct>;
|
|
6
6
|
loading?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
2
1
|
import { LocalizedProductCategory } from '../../../../../../client/src/index.ts';
|
|
2
|
+
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
3
3
|
interface PublishStatusCellProps {
|
|
4
4
|
row: Row<LocalizedProductCategory>;
|
|
5
5
|
table: any;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Organization } from '../../../../../client/src/index.ts';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
interface OrganizationConfigurationFormProps {
|
|
4
|
-
initialData:
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
4
|
+
initialData: Pick<Organization, "id" | "configuration">;
|
|
7
5
|
onClose?: () => void;
|
|
8
6
|
}
|
|
9
7
|
declare const OrganizationConfigurationForm: React.FC<OrganizationConfigurationFormProps>;
|