@shiva004/surveys 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shiva004/surveys",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Survey module: all surveys, templates, create, details, responses, NPS tracker and analytics pages, with routes, nav, hooks and API client.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -2,7 +2,7 @@
2
2
  import type { RowId } from '@/shared/components/DataTable/types';
3
3
  import { Icon } from '@/shared/components/ui/Icon/Icon';
4
4
  import React from 'react';
5
- import { Card } from '../../components/ui';
5
+ import { Card } from '@/modules/queue/components/ui';
6
6
  import type { SurveyListItem } from '../../types/survey.types';
7
7
 
8
8
  /** Props for the card render component. */
@@ -3,7 +3,7 @@ import { Header } from '@/shared/components/layout/Header';
3
3
  import { Icon } from '@/shared/components/ui/Icon/Icon';
4
4
  import React, { useCallback, useState } from 'react';
5
5
  import { useNavigate } from 'react-router-dom';
6
- import { Card } from '../../components/ui';
6
+ import { Card } from '@/modules/queue/components/ui';
7
7
  import { surveysApi } from '../../services/api/surveys.api';
8
8
 
9
9
  type QType = 'nps' | 'rating' | 'multiple_choice' | 'open_text';
@@ -3,7 +3,7 @@ import StatCard from '@/modules/DashBoard/Component/StatCard/StatCard';
3
3
  import { Header } from '@/shared/components/layout/Header';
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import React from 'react';
6
- import { Card } from '../../components/ui';
6
+ import { Card } from '@/modules/queue/components/ui';
7
7
  import { surveysApi } from '../../services/api/surveys.api';
8
8
  import type { NpsTrendPoint } from '../../types/survey.types';
9
9
  import styles from '../surveyPage.module.scss';
@@ -6,7 +6,7 @@ import { Icon } from '@/shared/components/ui/Icon/Icon';
6
6
  import { useQuery } from '@tanstack/react-query';
7
7
  import React, { useEffect, useMemo, useState } from 'react';
8
8
  import { useNavigate, useParams } from 'react-router-dom';
9
- import { Card } from '../../components/ui';
9
+ import { Card } from '@/modules/queue/components/ui';
10
10
  import { surveysApi } from '../../services/api/surveys.api';
11
11
  import type { SurveyAnalyticsRow } from '../../types/survey.types';
12
12
  import styles from '../surveyPage.module.scss';
@@ -6,7 +6,6 @@ import { Icon } from '@/shared/components/ui/Icon/Icon';
6
6
  import { useQuery } from '@tanstack/react-query';
7
7
  import React, { useMemo } from 'react';
8
8
  import { useNavigate, useParams } from 'react-router-dom';
9
- import { Card } from '../../components/ui';
10
9
  import { useSurveyResponses } from '../../hooks/useSurveyResponses';
11
10
  import { surveysApi } from '../../services/api/surveys.api';
12
11
  import type { SurveyResponseItem } from '../../types/survey.types';
@@ -16,6 +15,7 @@ import {
16
15
  responsesSearchConfig,
17
16
  responsesSortConfig,
18
17
  } from '../Responses/responsesTable.config';
18
+ import { Card } from '@/modules/queue/components/ui';
19
19
 
20
20
  // this survey's table: same columns as Responses, minus the redundant "Survey" column
21
21
  const detailColumns = responsesColumns.filter((c) => c.key !== 'surveyName');
@@ -4,10 +4,10 @@ import { Icon } from '@/shared/components/ui/Icon/Icon';
4
4
  import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
5
5
  import React, { useState } from 'react';
6
6
  import { useNavigate } from 'react-router-dom';
7
- import { Card } from '../../components/ui';
8
7
  import { surveysApi } from '../../services/api/surveys.api';
9
8
  import type { SurveyTemplateItem } from '../../types/survey.types';
10
9
  import styles from '../surveyPage.module.scss';
10
+ import { Card } from '@/modules/queue/components/ui';
11
11
 
12
12
  /* ─── constants ─── */
13
13
  const CATEGORY_STYLES: Record<string, string> = {
@@ -1,3 +0,0 @@
1
- /* Single seam for the shared Card used across modules (same one Queue uses).
2
- If Card is later promoted to '@/shared/components/ui', change ONLY this line. */
3
- export { Card } from '@/modules/queue/components/ui';