@axcode/axcloud-sdk 0.4.0-dev.539050f → 0.4.0-dev.88ecf17
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/README.md +27 -1
- package/dist/barnsport.d.mts +5 -4
- package/dist/barnsport.d.ts +5 -4
- package/dist/index.d.mts +63 -10
- package/dist/index.d.ts +63 -10
- package/dist/index.js +44 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -11
- package/dist/index.mjs.map +1 -1
- package/dist/public.d.mts +4 -3
- package/dist/public.d.ts +4 -3
- package/dist/{useBarnsport-DHyNF9GM.d.mts → useBarnsport-3NwAFn3h.d.mts} +2 -1
- package/dist/{useBarnsport-DHyNF9GM.d.ts → useBarnsport-3NwAFn3h.d.ts} +2 -1
- package/dist/{useContent-CGI1l3Gs.d.ts → useContent-BULNVLEx.d.ts} +2 -1
- package/dist/{useContent-DLoyqAWH.d.mts → useContent-qNaQd8Xi.d.mts} +2 -1
- package/package.json +8 -8
package/dist/public.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
-
import { A as AxCloudAnalyticsOptions } from './useContent-
|
|
4
|
-
export { l as AnalyticsEventData, m as AnalyticsEventValue, o as AnalyticsRuntime, p as AnalyticsRuntimeConfig, a6 as ContentBlock, t as ContentItem, a7 as ContentItemOptions, c as ContentListResponse, C as ContentQueryOptions, u as ContentSlotImage, v as ContentSlotMap, w as ContentSlotReader, x as ContentSlotValue, P as Page, I as PageContentState, Q as createContentSlotReader, T as getContentSlotMap, Z as useAnalytics, _ as useAnalyticsRuntime, $ as useAxCloudContext, a0 as useContent, a1 as useContentItem, a2 as usePageContent } from './useContent-
|
|
3
|
+
import { A as AxCloudAnalyticsOptions } from './useContent-qNaQd8Xi.mjs';
|
|
4
|
+
export { l as AnalyticsEventData, m as AnalyticsEventValue, o as AnalyticsRuntime, p as AnalyticsRuntimeConfig, a6 as ContentBlock, t as ContentItem, a7 as ContentItemOptions, c as ContentListResponse, C as ContentQueryOptions, u as ContentSlotImage, v as ContentSlotMap, w as ContentSlotReader, x as ContentSlotValue, P as Page, I as PageContentState, Q as createContentSlotReader, T as getContentSlotMap, Z as useAnalytics, _ as useAnalyticsRuntime, $ as useAxCloudContext, a0 as useContent, a1 as useContentItem, a2 as usePageContent } from './useContent-qNaQd8Xi.mjs';
|
|
5
5
|
import './client-FOpKwe3e.mjs';
|
|
6
6
|
|
|
7
7
|
interface AxCloudPublicProviderProps {
|
|
@@ -24,4 +24,5 @@ interface AxCloudPublicProviderProps {
|
|
|
24
24
|
*/
|
|
25
25
|
declare function AxCloudPublicProvider({ children, orgId, apiUrl, stage, apiKey, analytics: analyticsOptions, queryClient: providedQueryClient, timeout, }: AxCloudPublicProviderProps): React.JSX.Element;
|
|
26
26
|
|
|
27
|
-
export { AxCloudAnalyticsOptions, AxCloudPublicProvider
|
|
27
|
+
export { AxCloudAnalyticsOptions, AxCloudPublicProvider };
|
|
28
|
+
export type { AxCloudPublicProviderProps };
|
package/dist/public.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
-
import { A as AxCloudAnalyticsOptions } from './useContent-
|
|
4
|
-
export { l as AnalyticsEventData, m as AnalyticsEventValue, o as AnalyticsRuntime, p as AnalyticsRuntimeConfig, a6 as ContentBlock, t as ContentItem, a7 as ContentItemOptions, c as ContentListResponse, C as ContentQueryOptions, u as ContentSlotImage, v as ContentSlotMap, w as ContentSlotReader, x as ContentSlotValue, P as Page, I as PageContentState, Q as createContentSlotReader, T as getContentSlotMap, Z as useAnalytics, _ as useAnalyticsRuntime, $ as useAxCloudContext, a0 as useContent, a1 as useContentItem, a2 as usePageContent } from './useContent-
|
|
3
|
+
import { A as AxCloudAnalyticsOptions } from './useContent-BULNVLEx.js';
|
|
4
|
+
export { l as AnalyticsEventData, m as AnalyticsEventValue, o as AnalyticsRuntime, p as AnalyticsRuntimeConfig, a6 as ContentBlock, t as ContentItem, a7 as ContentItemOptions, c as ContentListResponse, C as ContentQueryOptions, u as ContentSlotImage, v as ContentSlotMap, w as ContentSlotReader, x as ContentSlotValue, P as Page, I as PageContentState, Q as createContentSlotReader, T as getContentSlotMap, Z as useAnalytics, _ as useAnalyticsRuntime, $ as useAxCloudContext, a0 as useContent, a1 as useContentItem, a2 as usePageContent } from './useContent-BULNVLEx.js';
|
|
5
5
|
import './client-FOpKwe3e.js';
|
|
6
6
|
|
|
7
7
|
interface AxCloudPublicProviderProps {
|
|
@@ -24,4 +24,5 @@ interface AxCloudPublicProviderProps {
|
|
|
24
24
|
*/
|
|
25
25
|
declare function AxCloudPublicProvider({ children, orgId, apiUrl, stage, apiKey, analytics: analyticsOptions, queryClient: providedQueryClient, timeout, }: AxCloudPublicProviderProps): React.JSX.Element;
|
|
26
26
|
|
|
27
|
-
export { AxCloudAnalyticsOptions, AxCloudPublicProvider
|
|
27
|
+
export { AxCloudAnalyticsOptions, AxCloudPublicProvider };
|
|
28
|
+
export type { AxCloudPublicProviderProps };
|
|
@@ -636,4 +636,5 @@ declare function useSubmitBarnsportFeedback(): _tanstack_react_query.UseMutation
|
|
|
636
636
|
declare function useSubmitBarnsportReview(): _tanstack_react_query.UseMutationResult<BarnsportReviewSubmissionResponse, Error, BarnsportReviewSubmissionRequest, unknown>;
|
|
637
637
|
declare function useTrackBarnsportEvent(): _tanstack_react_query.UseMutationResult<BarnsportEventResponse, Error, BarnsportEventRequest, unknown>;
|
|
638
638
|
|
|
639
|
-
export {
|
|
639
|
+
export { useBarnsportActivityOffers as $, useBarnsportActivities as Z, useBarnsportActivity as _, useBarnsportMunicipalities as a0, useBarnsportProvider as a1, useBarnsportProviderSearch as a2, useBarnsportSitemap as a3, useBarnsportSport as a4, useBarnsportSports as a5, useSubmitBarnsportFeedback as a6, useSubmitBarnsportInterest as a7, useSubmitBarnsportReview as a8, useTrackBarnsportEvent as a9 };
|
|
640
|
+
export type { BarnsportActivityEnvironment as A, BarnsportListResponse as B, BarnsportActivityLocation as C, BarnsportActivitySchedule as D, BarnsportCourseCandidate as E, BarnsportEventType as F, BarnsportInquiryDelivery as G, BarnsportInquiryResponse as H, BarnsportInquirySubmissionRequest as I, BarnsportMunicipalitySummary as J, BarnsportProviderSummary as K, BarnsportRegistrationMethod as L, BarnsportReview as M, BarnsportReviewsSummary as N, BarnsportSitemapUrl as O, BarnsportSourceConfidence as P, BarnsportSportArticle as Q, BarnsportSportArticleBlock as R, BarnsportSportArticleImage as S, BarnsportSportArticleRichTextMark as T, BarnsportSportArticleRichTextNode as U, BarnsportSportSummary as V, BarnsportStats as W, BarnsportVerificationStatus as X, BarnsportYouthStatus as Y, BarnsportMunicipality as a, BarnsportSport as b, BarnsportActivitiesFilter as c, BarnsportActivityListItem as d, BarnsportActivityResponse as e, BarnsportSitemapResponse as f, BarnsportProvidersFilter as g, BarnsportCollectionResponse as h, BarnsportProvider as i, BarnsportItemResponse as j, BarnsportProviderProfile as k, BarnsportActivityOffersFilter as l, BarnsportActivityOffer as m, BarnsportInterestSubmissionRequest as n, BarnsportInterestSubmissionResponse as o, BarnsportFeedbackRequest as p, BarnsportFeedbackResponse as q, BarnsportReviewSubmissionRequest as r, BarnsportReviewSubmissionResponse as s, BarnsportEventRequest as t, BarnsportEventResponse as u, BarnsportClubRemovalRequest as v, BarnsportClubRemovalResponse as w, BarnsportProviderUpdateRequest as x, BarnsportProviderUpdateResponse as y, BarnsportActivity as z };
|
|
@@ -636,4 +636,5 @@ declare function useSubmitBarnsportFeedback(): _tanstack_react_query.UseMutation
|
|
|
636
636
|
declare function useSubmitBarnsportReview(): _tanstack_react_query.UseMutationResult<BarnsportReviewSubmissionResponse, Error, BarnsportReviewSubmissionRequest, unknown>;
|
|
637
637
|
declare function useTrackBarnsportEvent(): _tanstack_react_query.UseMutationResult<BarnsportEventResponse, Error, BarnsportEventRequest, unknown>;
|
|
638
638
|
|
|
639
|
-
export {
|
|
639
|
+
export { useBarnsportActivityOffers as $, useBarnsportActivities as Z, useBarnsportActivity as _, useBarnsportMunicipalities as a0, useBarnsportProvider as a1, useBarnsportProviderSearch as a2, useBarnsportSitemap as a3, useBarnsportSport as a4, useBarnsportSports as a5, useSubmitBarnsportFeedback as a6, useSubmitBarnsportInterest as a7, useSubmitBarnsportReview as a8, useTrackBarnsportEvent as a9 };
|
|
640
|
+
export type { BarnsportActivityEnvironment as A, BarnsportListResponse as B, BarnsportActivityLocation as C, BarnsportActivitySchedule as D, BarnsportCourseCandidate as E, BarnsportEventType as F, BarnsportInquiryDelivery as G, BarnsportInquiryResponse as H, BarnsportInquirySubmissionRequest as I, BarnsportMunicipalitySummary as J, BarnsportProviderSummary as K, BarnsportRegistrationMethod as L, BarnsportReview as M, BarnsportReviewsSummary as N, BarnsportSitemapUrl as O, BarnsportSourceConfidence as P, BarnsportSportArticle as Q, BarnsportSportArticleBlock as R, BarnsportSportArticleImage as S, BarnsportSportArticleRichTextMark as T, BarnsportSportArticleRichTextNode as U, BarnsportSportSummary as V, BarnsportStats as W, BarnsportVerificationStatus as X, BarnsportYouthStatus as Y, BarnsportMunicipality as a, BarnsportSport as b, BarnsportActivitiesFilter as c, BarnsportActivityListItem as d, BarnsportActivityResponse as e, BarnsportSitemapResponse as f, BarnsportProvidersFilter as g, BarnsportCollectionResponse as h, BarnsportProvider as i, BarnsportItemResponse as j, BarnsportProviderProfile as k, BarnsportActivityOffersFilter as l, BarnsportActivityOffer as m, BarnsportInterestSubmissionRequest as n, BarnsportInterestSubmissionResponse as o, BarnsportFeedbackRequest as p, BarnsportFeedbackResponse as q, BarnsportReviewSubmissionRequest as r, BarnsportReviewSubmissionResponse as s, BarnsportEventRequest as t, BarnsportEventResponse as u, BarnsportClubRemovalRequest as v, BarnsportClubRemovalResponse as w, BarnsportProviderUpdateRequest as x, BarnsportProviderUpdateResponse as y, BarnsportActivity as z };
|
|
@@ -529,4 +529,5 @@ interface PageContentState<T extends ContentItem = ContentItem> extends ContentS
|
|
|
529
529
|
*/
|
|
530
530
|
declare function usePageContent<T extends ContentItem = ContentItem>(slug: string, options?: ContentItemOptions): PageContentState<T>;
|
|
531
531
|
|
|
532
|
-
export { useAxCloudContext as $,
|
|
532
|
+
export { useAxCloudContext as $, createContentSlotReader as Q, fetchAnalyticsPublicConfig as R, getContentSlotMap as T, isAllowedAnalyticsEvent as V, isLocalAnalyticsHostname as W, sanitizeAnalyticsEventData as X, sanitizeAnalyticsPath as Y, useAnalytics as Z, useAnalyticsRuntime as _, useContent as a0, useContentItem as a1, usePageContent as a2, userHasAllPermissions as a3, userHasAnyPermission as a4, userHasPermission as a5 };
|
|
533
|
+
export type { AxCloudAnalyticsOptions as A, BaseRole as B, ContentQueryOptions as C, DocumentQueryOptions as D, DocumentSourceProvider as E, DocumentStatus as F, Membership as G, OrganizationSettings as H, PageContentState as I, PaginatedResponse as J, SectionPermissions as K, SystemRole as L, MediaItem as M, NewsItem as N, Organization as O, Page as P, Section as S, User as U, UserRole as a, ContentBlock as a6, ContentItemOptions as a7, AxCloudModule as b, ContentListResponse as c, SignedMediaUrl as d, OrganizationBranding as e, MediaListResponse as f, SignedDocumentUrl as g, DocumentItem as h, DocumentListResponse as i, DocumentFolder as j, DocumentFolderListResponse as k, AnalyticsEventData as l, AnalyticsEventValue as m, AnalyticsPublicConfig as n, AnalyticsRuntime as o, AnalyticsRuntimeConfig as p, AxCloudConfig as q, ContentCollectionType as r, ContentDetailType as s, ContentItem as t, ContentSlotImage as u, ContentSlotMap as v, ContentSlotReader as w, ContentSlotValue as x, CustomRole as y, DocumentAudience as z };
|
|
@@ -529,4 +529,5 @@ interface PageContentState<T extends ContentItem = ContentItem> extends ContentS
|
|
|
529
529
|
*/
|
|
530
530
|
declare function usePageContent<T extends ContentItem = ContentItem>(slug: string, options?: ContentItemOptions): PageContentState<T>;
|
|
531
531
|
|
|
532
|
-
export { useAxCloudContext as $,
|
|
532
|
+
export { useAxCloudContext as $, createContentSlotReader as Q, fetchAnalyticsPublicConfig as R, getContentSlotMap as T, isAllowedAnalyticsEvent as V, isLocalAnalyticsHostname as W, sanitizeAnalyticsEventData as X, sanitizeAnalyticsPath as Y, useAnalytics as Z, useAnalyticsRuntime as _, useContent as a0, useContentItem as a1, usePageContent as a2, userHasAllPermissions as a3, userHasAnyPermission as a4, userHasPermission as a5 };
|
|
533
|
+
export type { AxCloudAnalyticsOptions as A, BaseRole as B, ContentQueryOptions as C, DocumentQueryOptions as D, DocumentSourceProvider as E, DocumentStatus as F, Membership as G, OrganizationSettings as H, PageContentState as I, PaginatedResponse as J, SectionPermissions as K, SystemRole as L, MediaItem as M, NewsItem as N, Organization as O, Page as P, Section as S, User as U, UserRole as a, ContentBlock as a6, ContentItemOptions as a7, AxCloudModule as b, ContentListResponse as c, SignedMediaUrl as d, OrganizationBranding as e, MediaListResponse as f, SignedDocumentUrl as g, DocumentItem as h, DocumentListResponse as i, DocumentFolder as j, DocumentFolderListResponse as k, AnalyticsEventData as l, AnalyticsEventValue as m, AnalyticsPublicConfig as n, AnalyticsRuntime as o, AnalyticsRuntimeConfig as p, AxCloudConfig as q, ContentCollectionType as r, ContentDetailType as s, ContentItem as t, ContentSlotImage as u, ContentSlotMap as v, ContentSlotReader as w, ContentSlotValue as x, CustomRole as y, DocumentAudience as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axcode/axcloud-sdk",
|
|
3
|
-
"version": "0.4.0-dev.
|
|
3
|
+
"version": "0.4.0-dev.88ecf17",
|
|
4
4
|
"description": "SDK for building websites with AxCloud CMS and member management",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -40,27 +40,27 @@
|
|
|
40
40
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@auth0/auth0-react": "^2.2
|
|
43
|
+
"@auth0/auth0-react": "^2.28.2",
|
|
44
44
|
"@tanstack/react-query": "^5.62.16"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@eslint/js": "^9.17.0",
|
|
48
48
|
"@testing-library/dom": "^10.4.1",
|
|
49
49
|
"@testing-library/jest-dom": "^7.0.1",
|
|
50
|
-
"@testing-library/react": "^16.
|
|
50
|
+
"@testing-library/react": "^16.3.3",
|
|
51
51
|
"@types/node": "^20.0.0",
|
|
52
52
|
"@types/react": "^19.0.2",
|
|
53
53
|
"@types/react-dom": "^19.0.2",
|
|
54
|
-
"@vitest/coverage-v8": "4.1.
|
|
54
|
+
"@vitest/coverage-v8": "4.1.12",
|
|
55
55
|
"eslint": "^9.17.0",
|
|
56
56
|
"eslint-plugin-react": "^7.37.4",
|
|
57
|
-
"globals": "^17.
|
|
57
|
+
"globals": "^17.13.0",
|
|
58
58
|
"react": "^19.2.8",
|
|
59
59
|
"react-dom": "^19.2.8",
|
|
60
|
-
"tsup": "^
|
|
60
|
+
"tsup": "^9.0.0",
|
|
61
61
|
"typescript": "^5.7.2",
|
|
62
|
-
"typescript-eslint": "^8.
|
|
63
|
-
"vitest": "4.1.
|
|
62
|
+
"typescript-eslint": "^8.71.2",
|
|
63
|
+
"vitest": "4.1.12"
|
|
64
64
|
},
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|