@cmssy/next 0.8.1 → 0.9.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.
package/dist/index.cjs CHANGED
@@ -1670,6 +1670,10 @@ Object.defineProperty(exports, "DEFAULT_CMSSY_API_URL", {
1670
1670
  enumerable: true,
1671
1671
  get: function () { return react.DEFAULT_CMSSY_API_URL; }
1672
1672
  });
1673
+ Object.defineProperty(exports, "evaluateFieldConditionGroup", {
1674
+ enumerable: true,
1675
+ get: function () { return react.evaluateFieldConditionGroup; }
1676
+ });
1673
1677
  Object.defineProperty(exports, "resolveApiUrl", {
1674
1678
  enumerable: true,
1675
1679
  get: function () { return react.resolveApiUrl; }
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComponentType, ReactNode } from 'react';
3
3
  import { CmssyPageData, CmssyFormDefinition, BlockDefinition, CmssyClientConfig, CmssyProduct, CmssyOrder } from '@cmssy/react';
4
- export { DEFAULT_CMSSY_API_URL, resolveApiUrl } from '@cmssy/react';
4
+ export { DEFAULT_CMSSY_API_URL, FieldCondition, FieldConditionGroup, FieldConditionLogic, evaluateFieldConditionGroup, resolveApiUrl } from '@cmssy/react';
5
5
  import { EditBridgeConfig } from '@cmssy/react/client';
6
6
  import { MetadataRoute, Metadata } from 'next';
7
7
  import { NextRequest, NextResponse } from 'next/server';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComponentType, ReactNode } from 'react';
3
3
  import { CmssyPageData, CmssyFormDefinition, BlockDefinition, CmssyClientConfig, CmssyProduct, CmssyOrder } from '@cmssy/react';
4
- export { DEFAULT_CMSSY_API_URL, resolveApiUrl } from '@cmssy/react';
4
+ export { DEFAULT_CMSSY_API_URL, FieldCondition, FieldConditionGroup, FieldConditionLogic, evaluateFieldConditionGroup, resolveApiUrl } from '@cmssy/react';
5
5
  import { EditBridgeConfig } from '@cmssy/react/client';
6
6
  import { MetadataRoute, Metadata } from 'next';
7
7
  import { NextRequest, NextResponse } from 'next/server';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { draftMode, headers, cookies } from 'next/headers';
2
2
  import { notFound, redirect } from 'next/navigation';
3
3
  import { createCmssyClient, resolveSiteLocales, splitLocaleFromPath, fetchPage, resolveForms, CmssyServerPage, fetchSiteConfig, fetchPageById, fetchPages, fetchPageMeta, normalizeSlug as normalizeSlug$1, resolveWorkspaceId, graphqlRequest, resolveApiUrl } from '@cmssy/react';
4
- export { DEFAULT_CMSSY_API_URL, resolveApiUrl } from '@cmssy/react';
4
+ export { DEFAULT_CMSSY_API_URL, evaluateFieldConditionGroup, resolveApiUrl } from '@cmssy/react';
5
5
  import { CmssyLocaleProvider } from '@cmssy/react/client';
6
6
  import { EncryptJWT, jwtDecrypt } from 'jose';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/next",
3
- "version": "0.8.1",
3
+ "version": "0.9.1",
4
4
  "description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
5
5
  "keywords": [
6
6
  "cmssy",
@@ -41,7 +41,7 @@
41
41
  "dist"
42
42
  ],
43
43
  "peerDependencies": {
44
- "@cmssy/react": "^0.8.0",
44
+ "@cmssy/react": "^0.9.1",
45
45
  "next": ">=15",
46
46
  "react": "^18.2.0 || ^19.0.0",
47
47
  "react-dom": "^18.2.0 || ^19.0.0"
@@ -54,7 +54,7 @@
54
54
  "tsup": "^8.3.0",
55
55
  "typescript": "^5.6.0",
56
56
  "vitest": "^2.1.0",
57
- "@cmssy/react": "0.8.1"
57
+ "@cmssy/react": "0.9.1"
58
58
  },
59
59
  "dependencies": {
60
60
  "jose": "^6.2.3"