@shophost/react 2.0.65 → 2.0.68

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 (51) hide show
  1. package/README.md +1 -7
  2. package/admin/dashboard/components/overview/dashboard-chart-card.d.ts +1 -1
  3. package/admin/dashboard/components/overview/dashboard-types.d.ts +2 -2
  4. package/admin/data/schema.d.ts +6 -6
  5. package/admin/manufacturer/components/manufacturers-list/columns.d.ts +1 -1
  6. package/admin/order/components/orders-list/actions-cell.d.ts +1 -1
  7. package/admin/product/components/product-form/basic-info-section.d.ts +1 -1
  8. package/admin/product/components/product-form/metadata-section.d.ts +1 -1
  9. package/admin/product/components/product-form/modifiers-section.d.ts +1 -1
  10. package/admin/product/components/product-form/price-section.d.ts +1 -1
  11. package/admin/product-category/components/product-categories-list/columns.d.ts +1 -1
  12. package/admin/settings/components/organization-configuration-form.d.ts +2 -4
  13. package/admin/settings/shipping-method/components/shipping-methods-list/columns.d.ts +1 -1
  14. package/admin-client.cjs +1 -1
  15. package/admin-client.js +1195 -1192
  16. package/lib/chartUtils.d.ts +1 -1
  17. package/package.json +3 -3
  18. package/providers/organization-provider.d.ts +1 -1
  19. package/storefront/components/cart/cart-drawer.d.ts +1 -1
  20. package/storefront/components/ui/badge.d.ts +1 -1
  21. package/storefront/components/ui/command-bar.d.ts +2 -2
  22. package/storefront/components/ui/command.d.ts +1 -1
  23. package/storefront/components/ui/popover.d.ts +2 -2
  24. package/storefront/providers/cart-provider.d.ts +1 -0
  25. package/storefront/translations/en.d.ts +47 -0
  26. package/storefront/translations/pl.d.ts +47 -0
  27. package/ui/badge.d.ts +1 -1
  28. package/ui/calendar.d.ts +6 -6
  29. package/ui/checkbox.d.ts +1 -1
  30. package/ui/command-bar.d.ts +2 -2
  31. package/ui/command.d.ts +1 -1
  32. package/ui/data-table/data-table-filter.d.ts +1 -1
  33. package/ui/data-table/data-table-pagination.d.ts +1 -1
  34. package/ui/data-table/data-table.d.ts +1 -1
  35. package/ui/date-picker.d.ts +5 -5
  36. package/ui/drawer.d.ts +2 -2
  37. package/ui/dropdown.d.ts +2 -2
  38. package/ui/input/email-input.d.ts +1 -1
  39. package/ui/input/image-upload-input.d.ts +1 -1
  40. package/ui/input-group.d.ts +1 -1
  41. package/ui/line-chart.d.ts +2 -2
  42. package/ui/logo.d.ts +1 -4
  43. package/ui/multiple-select.d.ts +2 -2
  44. package/ui/popover.d.ts +2 -2
  45. package/ui/progress-circle.d.ts +1 -1
  46. package/ui/radio-card.d.ts +2 -2
  47. package/ui/search-bar.d.ts +1 -1
  48. package/ui/select.d.ts +1 -1
  49. package/ui/switch.d.ts +2 -2
  50. package/ui/tab-navigation.d.ts +1 -1
  51. 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 = 'previous-period' | 'last-year' | 'no-comparison';
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, 'current' | 'allowed' | 'unit'> & {
9
+ export type KpiEntryExtended = Omit<KpiEntry, "current" | "allowed" | "unit"> & {
10
10
  value: string;
11
11
  color: string;
12
12
  };
@@ -8,12 +8,12 @@ export type Usage = {
8
8
  };
9
9
  export type OverviewData = {
10
10
  date: string;
11
- 'Rows written': number;
12
- 'Rows read': number;
11
+ "Rows written": number;
12
+ "Rows read": number;
13
13
  Queries: number;
14
- 'Payments completed': number;
15
- 'Sign ups': number;
14
+ "Payments completed": number;
15
+ "Sign ups": number;
16
16
  Logins: number;
17
- 'Sign outs': number;
18
- 'Support calls': number;
17
+ "Sign outs": number;
18
+ "Support calls": number;
19
19
  };
@@ -1,3 +1,3 @@
1
- import { ColumnDef } from '@tanstack/react-table';
2
1
  import { Manufacturer } from '../../../../../../client/src/index.ts';
2
+ import { ColumnDef } from '@tanstack/react-table';
3
3
  export declare const columns: ColumnDef<Manufacturer>[];
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { Order } from '../../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
3
  interface StatusCellProps {
4
4
  organizationId: string;
5
5
  id: string;
@@ -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 { UpdateOrganization } from '../../../../../client/src/index.ts';
1
+ import { Organization } from '../../../../../client/src/index.ts';
2
2
  import { default as React } from 'react';
3
3
  interface OrganizationConfigurationFormProps {
4
- initialData: UpdateOrganization & {
5
- id: string;
6
- };
4
+ initialData: Pick<Organization, "id" | "configuration">;
7
5
  onClose?: () => void;
8
6
  }
9
7
  declare const OrganizationConfigurationForm: React.FC<OrganizationConfigurationFormProps>;
@@ -1,3 +1,3 @@
1
- import { ColumnDef } from '@tanstack/react-table';
2
1
  import { ShippingMethod } from '../../../../../../../client/src/index.ts';
2
+ import { ColumnDef } from '@tanstack/react-table';
3
3
  export declare const columns: ColumnDef<ShippingMethod>[];