@goodhood-web/nebenan-base 1.3.0-development.57 → 1.3.0-development.59

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.
@@ -1,6 +1,6 @@
1
1
  import { PopupPlacement } from '@mui/base';
2
2
  import { ReactElement } from 'react';
3
- import { ReactionType } from '../../../../api/src/lib/types/reactions';
3
+ import { ReactionType } from '../../../../../api/src/lib/types/reactions';
4
4
  import { Reaction } from '../ReactionStack/ReactionStack.types';
5
5
 
6
6
  export interface ReactionSelectionProps {
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../api/src/lib/types/reactions';
2
2
 
3
3
  export interface ReactionStackProps {
4
4
  activeReaction?: ReactionType;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
2
 
3
3
  export type ReactionItemProps = {
4
4
  activeReaction?: ReactionType;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
2
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
3
3
  import { ReactionPillProps } from './ReactionPill.type';
4
4
 
5
5
  export declare const renderReaction: (type: ReactionType) => ReactElement;
@@ -1,5 +1,5 @@
1
- import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
2
- import { BaseButtonProps } from '../../../../../../ui/src/lib/Button/Button.types';
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
+ import { BaseButtonProps } from '../../../../../../../ui/src/lib/Button/Button.types';
3
3
 
4
4
  export interface ReactionPillProps extends BaseButtonProps {
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../api/src/lib/types/reactions';
1
+ import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/types/reactions';
2
2
 
3
3
  export interface ReactionTabListProps {
4
4
  closeText?: string;
@@ -0,0 +1,5 @@
1
+ import { ReactionType } from '../../../../api/src/lib/types/reactions';
2
+ import { Reaction } from './ReactionStack/ReactionStack.types';
3
+
4
+ export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
5
+ export declare const isReactionType: (key: string) => key is ReactionType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.3.0-development.57",
3
+ "version": "1.3.0-development.59",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "publishConfig": {
@@ -1,3 +0,0 @@
1
- import { Reaction } from '../../index';
2
-
3
- export declare const sortReactionsByCount: (reactions: Reaction[]) => Reaction[];