@carlonicora/nextjs-jsonapi 4.2.0 → 4.2.1

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 (62) hide show
  1. package/package.json +1 -1
  2. package/src/components/tables/__tests__/ContentListTable.spec.tsx +1 -1
  3. package/src/shadcnui/ui/__tests__/{confirm-dialog.test.tsx → confirm-dialog.spec.tsx} +1 -1
  4. package/src/shadcnui/ui/__tests__/{cursor-controls.test.tsx → cursor-controls.spec.tsx} +1 -1
  5. package/src/shadcnui/ui/__tests__/{cursor-menu-items.test.tsx → cursor-menu-items.spec.tsx} +1 -1
  6. package/src/shadcnui/ui/__tests__/{empty-state.test.tsx → empty-state.spec.tsx} +1 -1
  7. package/src/shadcnui/ui/__tests__/{spinner.test.tsx → spinner.spec.tsx} +1 -1
  8. /package/scripts/{check-rtl-classes.test.ts → check-rtl-classes.spec.ts} +0 -0
  9. /package/src/client/__tests__/{JsonApiClient.test.ts → JsonApiClient.spec.ts} +0 -0
  10. /package/src/client/__tests__/{request.test.ts → request.spec.ts} +0 -0
  11. /package/src/client/hooks/__tests__/{useJsonApiGet.test.tsx → useJsonApiGet.spec.tsx} +0 -0
  12. /package/src/client/hooks/__tests__/{useJsonApiMutation.test.tsx → useJsonApiMutation.spec.tsx} +0 -0
  13. /package/src/client/hooks/__tests__/{useRehydration.test.ts → useRehydration.spec.ts} +0 -0
  14. /package/src/components/editors/__tests__/{BlockNoteEditorAiActions.test.ts → BlockNoteEditorAiActions.spec.ts} +0 -0
  15. /package/src/components/editors/__tests__/{BlockNoteEditorMentionInlineContent.test.ts → BlockNoteEditorMentionInlineContent.spec.ts} +0 -0
  16. /package/src/components/forms/__tests__/{CommonEditorDiscardDialog.test.tsx → CommonEditorDiscardDialog.spec.tsx} +0 -0
  17. /package/src/components/forms/__tests__/{EditorSheet.test.tsx → EditorSheet.spec.tsx} +0 -0
  18. /package/src/components/forms/__tests__/{FormCheckbox.test.tsx → FormCheckbox.spec.tsx} +0 -0
  19. /package/src/components/forms/__tests__/{FormDate.test.tsx → FormDate.spec.tsx} +0 -0
  20. /package/src/components/forms/__tests__/{FormInput.test.tsx → FormInput.spec.tsx} +0 -0
  21. /package/src/components/forms/__tests__/{FormSelect.test.tsx → FormSelect.spec.tsx} +0 -0
  22. /package/src/components/forms/__tests__/{useEditorDialog.test.ts → useEditorDialog.spec.ts} +0 -0
  23. /package/src/components/grids/__tests__/{ContentListGrid.test.tsx → ContentListGrid.spec.tsx} +0 -0
  24. /package/src/components/tables/__tests__/{ContentListTable.test.tsx → ContentListTable.rendering.spec.tsx} +0 -0
  25. /package/src/contexts/__tests__/{DirectionContext.test.tsx → DirectionContext.spec.tsx} +0 -0
  26. /package/src/contexts/__tests__/{SessionContext.test.tsx → SessionContext.spec.tsx} +0 -0
  27. /package/src/contexts/__tests__/{SocketContext.session.test.tsx → SocketContext.session.spec.tsx} +0 -0
  28. /package/src/core/abstracts/__tests__/{AbstractService.locale.test.ts → AbstractService.locale.spec.ts} +0 -0
  29. /package/src/core/endpoint/__tests__/{EndpointCreator.test.ts → EndpointCreator.spec.ts} +0 -0
  30. /package/src/core/factories/__tests__/{JsonApiDataFactory.test.ts → JsonApiDataFactory.spec.ts} +0 -0
  31. /package/src/core/factories/__tests__/{RehydrationFactory.test.ts → RehydrationFactory.spec.ts} +0 -0
  32. /package/src/core/registry/__tests__/{DataClassRegistry.test.ts → DataClassRegistry.spec.ts} +0 -0
  33. /package/src/core/registry/__tests__/{ModuleRegistrar.test.ts → ModuleRegistrar.spec.ts} +0 -0
  34. /package/src/core/registry/__tests__/{viewportStore.test.ts → viewportStore.spec.ts} +0 -0
  35. /package/src/core/utils/__tests__/{translateResponse.test.ts → translateResponse.spec.ts} +0 -0
  36. /package/src/features/ai-connection/data/__tests__/{ai-connection.test.ts → ai-connection.spec.ts} +0 -0
  37. /package/src/features/company/data/{company.test.ts → company.spec.ts} +0 -0
  38. /package/src/features/company/hooks/{useSubscriptionStatus.test.ts → useSubscriptionStatus.spec.ts} +0 -0
  39. /package/src/features/user/data/__tests__/{user.test.ts → user.spec.ts} +0 -0
  40. /package/src/hooks/__tests__/{useDataListRetriever.test.ts → useDataListRetriever.spec.ts} +0 -0
  41. /package/src/hooks/__tests__/{useDebounce.test.ts → useDebounce.spec.ts} +0 -0
  42. /package/src/hooks/__tests__/{useSocket.render.test.ts → useSocket.render.spec.ts} +0 -0
  43. /package/src/i18n/__tests__/{config.test.ts → config.spec.ts} +0 -0
  44. /package/src/lib/__tests__/{direction.test.ts → direction.spec.ts} +0 -0
  45. /package/src/next-config/__tests__/{createNextConfig.test.ts → createNextConfig.spec.ts} +0 -0
  46. /package/src/server/__tests__/{JsonApiServer.test.ts → JsonApiServer.spec.ts} +0 -0
  47. /package/src/server/__tests__/{ServerSession.read.test.ts → ServerSession.read.spec.ts} +0 -0
  48. /package/src/server/__tests__/{cache.test.ts → cache.spec.ts} +0 -0
  49. /package/src/server/__tests__/{cachedGet.test.ts → cachedGet.spec.ts} +0 -0
  50. /package/src/server/__tests__/{request.test.ts → request.spec.ts} +0 -0
  51. /package/src/shadcnui/ui/__tests__/{sidebar.menu-skeleton.test.tsx → sidebar.menu-skeleton.spec.tsx} +0 -0
  52. /package/src/shadcnui/ui/__tests__/{sidebar.session.test.tsx → sidebar.session.spec.tsx} +0 -0
  53. /package/src/shadcnui/ui/__tests__/{use-ui-text.test.tsx → use-ui-text.spec.tsx} +0 -0
  54. /package/src/unified/__tests__/{JsonApiGet.cache.test.ts → JsonApiGet.cache.spec.ts} +0 -0
  55. /package/src/unified/__tests__/{JsonApiRequest.test.ts → JsonApiRequest.spec.ts} +0 -0
  56. /package/src/utils/__tests__/{date-formatter.test.ts → date-formatter.spec.ts} +0 -0
  57. /package/src/utils/__tests__/{exists.test.ts → exists.spec.ts} +0 -0
  58. /package/src/utils/__tests__/{italian-validators.test.ts → italian-validators.spec.ts} +0 -0
  59. /package/src/utils/__tests__/{map-thenable.test.ts → map-thenable.spec.ts} +0 -0
  60. /package/src/utils/__tests__/{use-mobile.test.tsx → use-mobile.spec.tsx} +0 -0
  61. /package/src/utils/{cn.test.ts → cn.spec.ts} +0 -0
  62. /package/src/utils/{isRemoteImageSrc.test.ts → isRemoteImageSrc.spec.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -5,7 +5,7 @@ import { ContentListTable } from "../ContentListTable";
5
5
  // `ContentListTable` imports `useTableGenerator` from the `../../hooks` barrel,
6
6
  // which resolves columns through the table-generator registry. Mocking the
7
7
  // barrel (spreading the actual module so the other exports survive) is the same
8
- // approach the sibling `ContentListTable.test.tsx` in this folder uses; one
8
+ // approach the sibling `ContentListTable.rendering.spec.tsx` in this folder uses; one
9
9
  // plain column is enough here.
10
10
  // `mockColumns.expandToggle` switches the mocked name cell to a button that
11
11
  // toggles row expansion (the `renderExpandedRow` suite), plus a second column so
@@ -1,4 +1,4 @@
1
- // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/confirm-dialog.test.tsx
1
+ // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/confirm-dialog.spec.tsx
2
2
  import { describe, expect, it, vi } from "vitest";
3
3
  import { render, screen } from "@testing-library/react";
4
4
  import userEvent from "@testing-library/user-event";
@@ -1,4 +1,4 @@
1
- // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/cursor-controls.test.tsx
1
+ // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/cursor-controls.spec.tsx
2
2
  import { describe, expect, it } from "vitest";
3
3
  import { render, screen } from "@testing-library/react";
4
4
 
@@ -1,4 +1,4 @@
1
- // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/cursor-menu-items.test.tsx
1
+ // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/cursor-menu-items.spec.tsx
2
2
  import { describe, expect, it } from "vitest";
3
3
  import { render, screen } from "@testing-library/react";
4
4
 
@@ -1,4 +1,4 @@
1
- // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/empty-state.test.tsx
1
+ // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/empty-state.spec.tsx
2
2
  import { describe, expect, it } from "vitest";
3
3
  import { render, screen } from "@testing-library/react";
4
4
  import { InboxIcon } from "lucide-react";
@@ -1,4 +1,4 @@
1
- // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/spinner.test.tsx
1
+ // packages/nextjs-jsonapi/src/shadcnui/ui/__tests__/spinner.spec.tsx
2
2
  import { describe, expect, it } from "vitest";
3
3
  import { render, screen } from "@testing-library/react";
4
4
  import { Spinner } from "../spinner";
File without changes