@axcode/axcloud-sdk 0.2.0-dev.85285e0 → 0.2.0-dev.d9fb4fe

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 (40) hide show
  1. package/README.md +23 -0
  2. package/dist/barnsport.d.mts +12 -3
  3. package/dist/barnsport.d.ts +12 -3
  4. package/dist/barnsport.js +21 -17
  5. package/dist/barnsport.mjs +2 -2
  6. package/dist/{chunk-DI4M6A7K.js → chunk-2IVJTMRB.js} +264 -219
  7. package/dist/chunk-2IVJTMRB.js.map +1 -0
  8. package/dist/{chunk-HRNRGCCT.mjs → chunk-7IPCZJ5Q.mjs} +16 -5
  9. package/dist/chunk-7IPCZJ5Q.mjs.map +1 -0
  10. package/dist/chunk-7K5N3DQ4.js +231 -0
  11. package/dist/chunk-7K5N3DQ4.js.map +1 -0
  12. package/dist/{chunk-F3JPEND3.mjs → chunk-CACQMQCJ.mjs} +259 -214
  13. package/dist/chunk-CACQMQCJ.mjs.map +1 -0
  14. package/dist/chunk-PMMCOWL3.mjs +223 -0
  15. package/dist/chunk-PMMCOWL3.mjs.map +1 -0
  16. package/dist/{chunk-EX66R5IA.js → chunk-ZOQAXLCZ.js} +29 -17
  17. package/dist/chunk-ZOQAXLCZ.js.map +1 -0
  18. package/dist/index.d.mts +4 -79
  19. package/dist/index.d.ts +4 -79
  20. package/dist/index.js +81 -320
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +6 -260
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/public.d.mts +2 -2
  25. package/dist/public.d.ts +2 -2
  26. package/dist/public.js +29 -9
  27. package/dist/public.mjs +4 -4
  28. package/dist/{useBarnsport-1DObGZDl.d.mts → useBarnsport-Cn9flax0.d.mts} +54 -6
  29. package/dist/{useBarnsport-1DObGZDl.d.ts → useBarnsport-Cn9flax0.d.ts} +54 -6
  30. package/dist/{analytics-LYZxP7PC.d.mts → useContent-1WbKvPY4.d.mts} +77 -1
  31. package/dist/{analytics-BOxmSWNt.d.ts → useContent-Cl7dvERE.d.ts} +77 -1
  32. package/package.json +1 -1
  33. package/dist/chunk-2A5NJAFA.mjs +0 -15
  34. package/dist/chunk-2A5NJAFA.mjs.map +0 -1
  35. package/dist/chunk-DI4M6A7K.js.map +0 -1
  36. package/dist/chunk-DSWRJZWR.js +0 -18
  37. package/dist/chunk-DSWRJZWR.js.map +0 -1
  38. package/dist/chunk-EX66R5IA.js.map +0 -1
  39. package/dist/chunk-F3JPEND3.mjs.map +0 -1
  40. package/dist/chunk-HRNRGCCT.mjs.map +0 -1
package/dist/index.js CHANGED
@@ -1,97 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkDI4M6A7K_js = require('./chunk-DI4M6A7K.js');
4
- var chunkEX66R5IA_js = require('./chunk-EX66R5IA.js');
5
- var chunkDSWRJZWR_js = require('./chunk-DSWRJZWR.js');
3
+ var chunk2IVJTMRB_js = require('./chunk-2IVJTMRB.js');
4
+ var chunkZOQAXLCZ_js = require('./chunk-ZOQAXLCZ.js');
5
+ var chunk7K5N3DQ4_js = require('./chunk-7K5N3DQ4.js');
6
6
  var react = require('react');
7
7
  var auth0React = require('@auth0/auth0-react');
8
8
  var reactQuery = require('@tanstack/react-query');
9
9
  var jsxRuntime = require('react/jsx-runtime');
10
10
 
11
- // src/core/contentSlots.ts
12
- var SLOT_ATTRIBUTE_KEYS = ["slot", "field", "key", "name"];
13
- function getContentSlotMap(content) {
14
- const fields = isRecord(content?.fields) ? { ...content?.fields } : {};
15
- for (const block of content?.blocks || []) {
16
- const slot = getBlockSlot(block);
17
- if (!slot) continue;
18
- if (!(slot in fields)) fields[slot] = blockToSlotValue(block);
19
- }
20
- return fields;
21
- }
22
- function createContentSlotReader(content) {
23
- const fields = getContentSlotMap(content);
24
- const value = (key, fallback) => {
25
- return key in fields ? fields[key] : fallback;
26
- };
27
- const unsafeHtml = (key, fallback = "") => stringifySlotValue(value(key, fallback));
28
- return {
29
- fields,
30
- value,
31
- text: (key, fallback = "") => stringifySlotValue(value(key, fallback)),
32
- html: unsafeHtml,
33
- unsafeHtml,
34
- list: (key, fallback = []) => slotValueToList(value(key, fallback)),
35
- image: (key, fallback) => slotValueToImage(value(key, fallback))
36
- };
37
- }
38
- function getBlockSlot(block) {
39
- const attributes = block.attributes || {};
40
- for (const key of SLOT_ATTRIBUTE_KEYS) {
41
- const value = attributes[key];
42
- if (typeof value === "string" && value.trim()) return value.trim();
43
- }
44
- return void 0;
45
- }
46
- function blockToSlotValue(block) {
47
- if (block.attributes && "value" in block.attributes) {
48
- return block.attributes.value;
49
- }
50
- if (block.type === "list") {
51
- return Array.isArray(block.items) ? block.items : [];
52
- }
53
- if (block.type === "image" && block.url) {
54
- return {
55
- url: block.url,
56
- alt: block.alt,
57
- caption: block.caption
58
- };
59
- }
60
- return block.content ?? "";
61
- }
62
- function stringifySlotValue(value) {
63
- if (value === void 0 || value === null) return "";
64
- if (typeof value === "string") return value;
65
- if (typeof value === "number" || typeof value === "boolean") return String(value);
66
- if (Array.isArray(value)) return value.map((item) => stringifySlotValue(item)).filter(Boolean).join("\n");
67
- return "";
68
- }
69
- function slotValueToList(value) {
70
- if (Array.isArray(value)) {
71
- return value.map((item) => stringifySlotValue(item)).filter(Boolean);
72
- }
73
- if (typeof value === "string") {
74
- return value.split(/\r?\n/).map((item) => item.trim()).filter(Boolean);
75
- }
76
- return [];
77
- }
78
- function slotValueToImage(value) {
79
- if (isRecord(value) && typeof value.url === "string") {
80
- return {
81
- url: value.url,
82
- alt: typeof value.alt === "string" ? value.alt : void 0,
83
- caption: typeof value.caption === "string" ? value.caption : void 0
84
- };
85
- }
86
- if (typeof value === "string" && value) {
87
- return { url: value };
88
- }
89
- return void 0;
90
- }
91
- function isRecord(value) {
92
- return !!value && typeof value === "object" && !Array.isArray(value);
93
- }
94
-
95
11
  // src/core/types.ts
96
12
  function userHasPermission(user, permission) {
97
13
  if (user.permissions && user.permissions.length > 0) {
@@ -317,7 +233,7 @@ function createDefaultQueryClient() {
317
233
  staleTime: 1e3 * 60,
318
234
  gcTime: 1e3 * 60 * 30,
319
235
  retry: (failureCount, error) => {
320
- if (chunkDI4M6A7K_js.isAxCloudError(error) && error.status >= 400 && error.status < 500) {
236
+ if (chunk7K5N3DQ4_js.isAxCloudError(error) && error.status >= 400 && error.status < 500) {
321
237
  return false;
322
238
  }
323
239
  return failureCount < 2;
@@ -350,7 +266,7 @@ function AxCloudInnerProvider({
350
266
  timeout
351
267
  }) {
352
268
  const { getAccessTokenSilently, isAuthenticated, isLoading, user } = auth0React.useAuth0();
353
- const analytics = chunkDI4M6A7K_js.useAnalyticsRuntime(config);
269
+ const analytics = chunk2IVJTMRB_js.useAnalyticsRuntime(config);
354
270
  const [, setOwnerGeneration] = react.useState(0);
355
271
  const currentSubject = isLoading ? void 0 : isAuthenticated ? user?.sub : null;
356
272
  const currentOwnerSignature = currentSubject === void 0 ? void 0 : createQueryClientOwnerSignature(config, currentSubject);
@@ -374,7 +290,7 @@ function AxCloudInnerProvider({
374
290
  }
375
291
  } : async () => void 0;
376
292
  const client = react.useMemo(() => {
377
- return new chunkDI4M6A7K_js.AxCloudClient({
293
+ return new chunk7K5N3DQ4_js.AxCloudClient({
378
294
  baseUrl: config.apiUrl,
379
295
  apiKey: config.apiKey,
380
296
  timeout,
@@ -404,7 +320,7 @@ function AxCloudInnerProvider({
404
320
  [config, client, isAuthenticated, isLoading, user?.sub, clearContentCache, analytics]
405
321
  );
406
322
  const identityReady = currentOwnerSignature !== void 0 && !ownerNeedsActivation;
407
- return /* @__PURE__ */ jsxRuntime.jsx(chunkDSWRJZWR_js.AxCloudContext.Provider, { value: contextValue, children: identityReady ? children : null });
323
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk7K5N3DQ4_js.AxCloudContext.Provider, { value: contextValue, children: identityReady ? children : null });
408
324
  }
409
325
  function AxCloudProvider({
410
326
  children,
@@ -447,7 +363,7 @@ function AxCloudProvider({
447
363
  ) });
448
364
  }
449
365
  function useAuth() {
450
- const { config, client, clearContentCache } = chunkDSWRJZWR_js.useAxCloudContext();
366
+ const { config, client, clearContentCache } = chunk7K5N3DQ4_js.useAxCloudContext();
451
367
  const {
452
368
  isAuthenticated,
453
369
  isLoading,
@@ -528,7 +444,7 @@ function useAuth() {
528
444
  ...data.retry_after_seconds !== void 0 ? { retryAfterSeconds: data.retry_after_seconds } : {}
529
445
  };
530
446
  } catch (requestError) {
531
- if (chunkDI4M6A7K_js.isAxCloudError(requestError) && requestError.status === 429) {
447
+ if (chunk7K5N3DQ4_js.isAxCloudError(requestError) && requestError.status === 429) {
532
448
  const responseDetails = requestError.details?.details;
533
449
  const retryAfterSeconds = Number(
534
450
  responseDetails && typeof responseDetails === "object" ? responseDetails.retry_after_seconds : void 0
@@ -776,7 +692,7 @@ function normalizeCurrentUserResponse(raw, configuredOrgId) {
776
692
  }
777
693
  function useUser() {
778
694
  const { isAuthenticated, isLoading: isAuthLoading, user: auth0User } = auth0React.useAuth0();
779
- const { client, stage, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
695
+ const { client, stage, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
780
696
  const queryKey = currentUserQueryKey(stage, orgId, auth0User?.sub);
781
697
  const query = reactQuery.useQuery({
782
698
  queryKey,
@@ -824,7 +740,7 @@ function useUser() {
824
740
  };
825
741
  }
826
742
  function useUpdateMyProfile() {
827
- const { client, stage } = chunkDSWRJZWR_js.useAxCloudContext();
743
+ const { client, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
828
744
  const queryClient = reactQuery.useQueryClient();
829
745
  return reactQuery.useMutation({
830
746
  mutationFn: (updates) => client.patch("/api/users/me/profile", updates),
@@ -837,7 +753,7 @@ function useUpdateMyProfile() {
837
753
  });
838
754
  }
839
755
  function useOrg() {
840
- const { client, orgId, stage, isPublicMode } = chunkDSWRJZWR_js.useAxCloudContext();
756
+ const { client, orgId, stage, isPublicMode } = chunk7K5N3DQ4_js.useAxCloudContext();
841
757
  const usePublicEndpoint = isPublicMode;
842
758
  const query = reactQuery.useQuery({
843
759
  queryKey: ["axcloud", "organization", orgId, stage, usePublicEndpoint],
@@ -883,184 +799,14 @@ function useOrg() {
883
799
  };
884
800
  }
885
801
 
886
- // src/react/contentQueryPolicy.ts
887
- var CONTENT_STALE_TIME_MS = 6e4;
888
- function shouldRetryContentRequest(failureCount, error) {
889
- if (chunkDI4M6A7K_js.isAxCloudError(error) && error.status >= 400 && error.status < 500) {
890
- return false;
891
- }
892
- return failureCount < 2;
893
- }
894
- function normalizeContentCollectionType(contentType) {
895
- switch (contentType.toLowerCase()) {
896
- case "news":
897
- return "news";
898
- case "page":
899
- case "pages":
900
- return "pages";
901
- case "event":
902
- case "events":
903
- return "events";
904
- default:
905
- throw new Error(`Unsupported AxCloud content collection type: ${contentType}`);
906
- }
907
- }
908
- function normalizeContentDetailType(contentType) {
909
- switch (contentType.toLowerCase()) {
910
- case "news":
911
- return "news";
912
- case "page":
913
- case "pages":
914
- return "page";
915
- case "event":
916
- case "events":
917
- return "event";
918
- default:
919
- throw new Error(`Unsupported AxCloud content detail type: ${contentType}`);
920
- }
921
- }
922
- function getContentAccessState(context, publicOnly) {
923
- if (publicOnly) {
924
- return { mode: "public", enabled: true, subject: "anonymous" };
925
- }
926
- const isLoading = context.isAuthLoading ?? false;
927
- if (isLoading) {
928
- return { mode: "pending", enabled: false, subject: "auth-loading" };
929
- }
930
- const hasExplicitAuthState = typeof context.isAuthenticated === "boolean";
931
- const isAuthenticated = context.isAuthenticated ?? !context.isPublicMode;
932
- if (!isAuthenticated) {
933
- return { mode: "public", enabled: true, subject: "anonymous" };
934
- }
935
- if (hasExplicitAuthState && !context.authSubject) {
936
- return { mode: "pending", enabled: false, subject: "auth-subject-pending" };
937
- }
938
- const subject = context.authSubject || "legacy-authenticated-session";
939
- return { mode: "member", enabled: Boolean(subject), subject };
940
- }
941
-
942
- // src/react/hooks/useContent.ts
943
- function useContent(contentType, options = {}) {
944
- const context = chunkDSWRJZWR_js.useAxCloudContext();
945
- const { client, config, orgId, stage } = context;
946
- const collectionType = normalizeContentCollectionType(contentType);
947
- const {
948
- publicOnly = false,
949
- page = 1,
950
- pageSize = 20,
951
- search,
952
- sortBy = collectionType === "news" ? "publishedAt" : "createdAt",
953
- sortOrder = "desc",
954
- tags,
955
- lang
956
- } = options;
957
- const access = getContentAccessState(context, publicOnly);
958
- const deliveryScope = access.mode === "member" ? "members" : "public";
959
- const params = {
960
- page,
961
- pageSize,
962
- search,
963
- sort: sortBy,
964
- order: sortOrder,
965
- tags: tags?.length ? tags.join(",") : void 0,
966
- lang
967
- };
968
- const query = reactQuery.useQuery({
969
- queryKey: [
970
- "axcloud",
971
- "content",
972
- "collection",
973
- stage,
974
- config.apiUrl,
975
- orgId,
976
- access.mode,
977
- access.subject,
978
- collectionType,
979
- params
980
- ],
981
- queryFn: () => client.get(
982
- `/content/${deliveryScope}/${orgId}/${collectionType}`,
983
- params
984
- ),
985
- enabled: access.enabled,
986
- staleTime: CONTENT_STALE_TIME_MS,
987
- refetchOnWindowFocus: true,
988
- retry: shouldRetryContentRequest
989
- });
990
- const items = query.data?.items ?? [];
991
- return {
992
- data: items,
993
- count: query.data?.count ?? items.length,
994
- total: query.data?.total ?? items.length,
995
- page: query.data?.page ?? page,
996
- pageSize: query.data?.pageSize ?? pageSize,
997
- hasMore: query.data?.hasMore ?? false,
998
- nextCursor: query.data?.nextCursor,
999
- isLoading: access.mode === "pending" || query.isLoading,
1000
- isFetching: query.isFetching,
1001
- isError: query.isError,
1002
- error: query.error,
1003
- refetch: query.refetch
1004
- };
1005
- }
1006
- function useContentItem(contentType, idOrSlug, options = {}) {
1007
- const context = chunkDSWRJZWR_js.useAxCloudContext();
1008
- const { client, config, orgId, stage } = context;
1009
- const detailType = normalizeContentDetailType(contentType);
1010
- const { publicOnly = false, lang } = options;
1011
- const access = getContentAccessState(context, publicOnly);
1012
- const deliveryScope = access.mode === "member" ? "members" : "public";
1013
- const query = reactQuery.useQuery({
1014
- queryKey: [
1015
- "axcloud",
1016
- "content",
1017
- "item",
1018
- stage,
1019
- config.apiUrl,
1020
- orgId,
1021
- access.mode,
1022
- access.subject,
1023
- detailType,
1024
- idOrSlug,
1025
- lang
1026
- ],
1027
- queryFn: () => {
1028
- const encodedIdOrSlug = encodeURIComponent(idOrSlug);
1029
- const endpoint = `/content/${deliveryScope}/${orgId}/items/${detailType}/${encodedIdOrSlug}`;
1030
- return lang ? client.get(endpoint, { lang }) : client.get(endpoint);
1031
- },
1032
- enabled: access.enabled && Boolean(idOrSlug),
1033
- staleTime: CONTENT_STALE_TIME_MS,
1034
- refetchOnWindowFocus: true,
1035
- retry: shouldRetryContentRequest
1036
- });
1037
- return {
1038
- data: query.data ?? null,
1039
- isLoading: access.mode === "pending" || query.isLoading,
1040
- isFetching: query.isFetching,
1041
- isError: query.isError,
1042
- error: query.error,
1043
- refetch: query.refetch
1044
- };
1045
- }
1046
- function usePageContent(slug, options = {}) {
1047
- const state = useContentItem("page", slug, options);
1048
- const reader = react.useMemo(() => createContentSlotReader(state.data), [state.data]);
1049
- return {
1050
- ...state,
1051
- page: state.data,
1052
- ...reader
1053
- };
1054
- }
1055
-
1056
802
  // src/react/hooks/useNews.ts
1057
803
  function useNews(options = {}) {
1058
- return useContent("news", options);
804
+ return chunk2IVJTMRB_js.useContent("news", options);
1059
805
  }
1060
806
  function useMySection(options = {}) {
1061
807
  const { includeMembers = true } = options;
1062
808
  const { isAuthenticated } = auth0React.useAuth0();
1063
- const { client, orgId, stage } = chunkDSWRJZWR_js.useAxCloudContext();
809
+ const { client, orgId, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
1064
810
  const { user, sectionId, isLoading: isUserLoading } = useUser();
1065
811
  const query = reactQuery.useQuery({
1066
812
  queryKey: ["axcloud", "mySection", orgId, sectionId, includeMembers, stage],
@@ -1094,7 +840,7 @@ function useMySection(options = {}) {
1094
840
  };
1095
841
  }
1096
842
  function useSections() {
1097
- const { client, orgId, stage } = chunkDSWRJZWR_js.useAxCloudContext();
843
+ const { client, orgId, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
1098
844
  const query = reactQuery.useQuery({
1099
845
  queryKey: ["axcloud", "sections", orgId, stage],
1100
846
  queryFn: async () => {
@@ -1113,7 +859,7 @@ function useSections() {
1113
859
  };
1114
860
  }
1115
861
  function useForms(options = {}) {
1116
- const { client, stage } = chunkDSWRJZWR_js.useAxCloudContext();
862
+ const { client, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
1117
863
  const { formType, status, limit = 50, cursor } = options;
1118
864
  const query = reactQuery.useQuery({
1119
865
  queryKey: ["axcloud", "forms", "submissions", stage, formType, status, limit, cursor],
@@ -1139,7 +885,7 @@ function useForms(options = {}) {
1139
885
  };
1140
886
  }
1141
887
  function useFormStats(options = {}) {
1142
- const { client, stage } = chunkDSWRJZWR_js.useAxCloudContext();
888
+ const { client, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
1143
889
  const { days = 30 } = options;
1144
890
  const query = reactQuery.useQuery({
1145
891
  queryKey: ["axcloud", "forms", "stats", stage, days],
@@ -1160,7 +906,7 @@ function useFormStats(options = {}) {
1160
906
  };
1161
907
  }
1162
908
  function useUpdateFormSubmission() {
1163
- const { client, stage } = chunkDSWRJZWR_js.useAxCloudContext();
909
+ const { client, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
1164
910
  const queryClient = reactQuery.useQueryClient();
1165
911
  return reactQuery.useMutation({
1166
912
  mutationFn: async ({
@@ -1176,7 +922,7 @@ function useUpdateFormSubmission() {
1176
922
  });
1177
923
  }
1178
924
  function useCodeBallot({ pollId, votingApiUrl }) {
1179
- const { orgId, config } = chunkDSWRJZWR_js.useAxCloudContext();
925
+ const { orgId, config } = chunk7K5N3DQ4_js.useAxCloudContext();
1180
926
  const baseUrl = votingApiUrl || `${config.apiUrl.replace(/\/$/, "")}/voting`;
1181
927
  const [stage, setStage] = react.useState("enter_code");
1182
928
  const [code, setCode] = react.useState("");
@@ -1247,7 +993,7 @@ function useCodeBallot({ pollId, votingApiUrl }) {
1247
993
  }
1248
994
  var LINKED_ACCOUNTS_QUERY_KEY = ["axcloud", "linked-accounts"];
1249
995
  function useLinkedAccounts() {
1250
- const { client, stage } = chunkDSWRJZWR_js.useAxCloudContext();
996
+ const { client, stage } = chunk7K5N3DQ4_js.useAxCloudContext();
1251
997
  const { isAuthenticated } = useAuth();
1252
998
  const queryClient = reactQuery.useQueryClient();
1253
999
  const query = reactQuery.useQuery({
@@ -1298,7 +1044,7 @@ function useLinkedAccounts() {
1298
1044
  };
1299
1045
  }
1300
1046
  function useBranding() {
1301
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1047
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1302
1048
  const query = reactQuery.useQuery({
1303
1049
  queryKey: ["axcloud", "media", "branding", orgId],
1304
1050
  queryFn: async () => {
@@ -1320,7 +1066,7 @@ function useBranding() {
1320
1066
  };
1321
1067
  }
1322
1068
  function useLogo() {
1323
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1069
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1324
1070
  const query = reactQuery.useQuery({
1325
1071
  queryKey: ["axcloud", "media", "logo", orgId],
1326
1072
  queryFn: async () => {
@@ -1341,7 +1087,7 @@ function useLogo() {
1341
1087
  };
1342
1088
  }
1343
1089
  function useAvatar(userId) {
1344
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1090
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1345
1091
  const query = reactQuery.useQuery({
1346
1092
  queryKey: ["axcloud", "media", "avatar", orgId, userId],
1347
1093
  queryFn: async () => {
@@ -1362,7 +1108,7 @@ function useAvatar(userId) {
1362
1108
  };
1363
1109
  }
1364
1110
  function useMediaList(type = "media", limit = 50) {
1365
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1111
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1366
1112
  const query = reactQuery.useQuery({
1367
1113
  queryKey: ["axcloud", "media", "list", orgId, type, limit],
1368
1114
  queryFn: async () => {
@@ -1384,7 +1130,7 @@ function useMediaList(type = "media", limit = 50) {
1384
1130
  };
1385
1131
  }
1386
1132
  function useMedia(mediaId) {
1387
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1133
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1388
1134
  const query = reactQuery.useQuery({
1389
1135
  queryKey: ["axcloud", "media", "file", orgId, mediaId],
1390
1136
  queryFn: async () => {
@@ -1411,7 +1157,7 @@ function buildDocumentParams(options) {
1411
1157
  };
1412
1158
  }
1413
1159
  function useDocuments(options) {
1414
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1160
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1415
1161
  const params = buildDocumentParams(options);
1416
1162
  const query = reactQuery.useQuery({
1417
1163
  queryKey: ["axcloud", "documents", "list", orgId, options],
@@ -1431,7 +1177,7 @@ function useDocuments(options) {
1431
1177
  };
1432
1178
  }
1433
1179
  function useDocumentDownload(documentId) {
1434
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1180
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1435
1181
  const query = reactQuery.useQuery({
1436
1182
  queryKey: ["axcloud", "documents", "download", orgId, documentId],
1437
1183
  queryFn: async () => {
@@ -1456,7 +1202,7 @@ function useDocumentDownload(documentId) {
1456
1202
  };
1457
1203
  }
1458
1204
  function useMemberDocuments(options) {
1459
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1205
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1460
1206
  const params = buildDocumentParams(options);
1461
1207
  const folderId = options?.folderId;
1462
1208
  const query = reactQuery.useQuery({
@@ -1479,7 +1225,7 @@ function useMemberDocuments(options) {
1479
1225
  };
1480
1226
  }
1481
1227
  function useMemberDocumentFolders() {
1482
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1228
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1483
1229
  const query = reactQuery.useQuery({
1484
1230
  queryKey: ["axcloud", "documents", "member", "folders", orgId],
1485
1231
  queryFn: async () => {
@@ -1498,7 +1244,7 @@ function useMemberDocumentFolders() {
1498
1244
  };
1499
1245
  }
1500
1246
  function useMemberDocumentDownload(documentId) {
1501
- const { client, orgId } = chunkDSWRJZWR_js.useAxCloudContext();
1247
+ const { client, orgId } = chunk7K5N3DQ4_js.useAxCloudContext();
1502
1248
  const query = reactQuery.useQuery({
1503
1249
  queryKey: ["axcloud", "documents", "member", "download", orgId, documentId],
1504
1250
  queryFn: async () => {
@@ -1765,85 +1511,105 @@ function LinkedAccountsList({
1765
1511
  ] });
1766
1512
  }
1767
1513
 
1768
- Object.defineProperty(exports, "AxCloudClient", {
1769
- enumerable: true,
1770
- get: function () { return chunkDI4M6A7K_js.AxCloudClient; }
1771
- });
1772
- Object.defineProperty(exports, "AxCloudError", {
1773
- enumerable: true,
1774
- get: function () { return chunkDI4M6A7K_js.AxCloudError; }
1775
- });
1776
- Object.defineProperty(exports, "createClient", {
1514
+ Object.defineProperty(exports, "createContentSlotReader", {
1777
1515
  enumerable: true,
1778
- get: function () { return chunkDI4M6A7K_js.createClient; }
1516
+ get: function () { return chunk2IVJTMRB_js.createContentSlotReader; }
1779
1517
  });
1780
1518
  Object.defineProperty(exports, "fetchAnalyticsPublicConfig", {
1781
1519
  enumerable: true,
1782
- get: function () { return chunkDI4M6A7K_js.fetchAnalyticsPublicConfig; }
1520
+ get: function () { return chunk2IVJTMRB_js.fetchAnalyticsPublicConfig; }
1783
1521
  });
1784
- Object.defineProperty(exports, "getClient", {
1522
+ Object.defineProperty(exports, "getContentSlotMap", {
1785
1523
  enumerable: true,
1786
- get: function () { return chunkDI4M6A7K_js.getClient; }
1524
+ get: function () { return chunk2IVJTMRB_js.getContentSlotMap; }
1787
1525
  });
1788
1526
  Object.defineProperty(exports, "isAllowedAnalyticsEvent", {
1789
1527
  enumerable: true,
1790
- get: function () { return chunkDI4M6A7K_js.isAllowedAnalyticsEvent; }
1791
- });
1792
- Object.defineProperty(exports, "isAxCloudError", {
1793
- enumerable: true,
1794
- get: function () { return chunkDI4M6A7K_js.isAxCloudError; }
1528
+ get: function () { return chunk2IVJTMRB_js.isAllowedAnalyticsEvent; }
1795
1529
  });
1796
1530
  Object.defineProperty(exports, "isLocalAnalyticsHostname", {
1797
1531
  enumerable: true,
1798
- get: function () { return chunkDI4M6A7K_js.isLocalAnalyticsHostname; }
1532
+ get: function () { return chunk2IVJTMRB_js.isLocalAnalyticsHostname; }
1799
1533
  });
1800
1534
  Object.defineProperty(exports, "sanitizeAnalyticsEventData", {
1801
1535
  enumerable: true,
1802
- get: function () { return chunkDI4M6A7K_js.sanitizeAnalyticsEventData; }
1536
+ get: function () { return chunk2IVJTMRB_js.sanitizeAnalyticsEventData; }
1803
1537
  });
1804
1538
  Object.defineProperty(exports, "sanitizeAnalyticsPath", {
1805
1539
  enumerable: true,
1806
- get: function () { return chunkDI4M6A7K_js.sanitizeAnalyticsPath; }
1540
+ get: function () { return chunk2IVJTMRB_js.sanitizeAnalyticsPath; }
1807
1541
  });
1808
1542
  Object.defineProperty(exports, "useAnalytics", {
1809
1543
  enumerable: true,
1810
- get: function () { return chunkDI4M6A7K_js.useAnalytics; }
1544
+ get: function () { return chunk2IVJTMRB_js.useAnalytics; }
1811
1545
  });
1812
1546
  Object.defineProperty(exports, "useAnalyticsRuntime", {
1813
1547
  enumerable: true,
1814
- get: function () { return chunkDI4M6A7K_js.useAnalyticsRuntime; }
1548
+ get: function () { return chunk2IVJTMRB_js.useAnalyticsRuntime; }
1549
+ });
1550
+ Object.defineProperty(exports, "useContent", {
1551
+ enumerable: true,
1552
+ get: function () { return chunk2IVJTMRB_js.useContent; }
1553
+ });
1554
+ Object.defineProperty(exports, "useContentItem", {
1555
+ enumerable: true,
1556
+ get: function () { return chunk2IVJTMRB_js.useContentItem; }
1557
+ });
1558
+ Object.defineProperty(exports, "usePageContent", {
1559
+ enumerable: true,
1560
+ get: function () { return chunk2IVJTMRB_js.usePageContent; }
1815
1561
  });
1816
1562
  Object.defineProperty(exports, "useBarnsportActivities", {
1817
1563
  enumerable: true,
1818
- get: function () { return chunkEX66R5IA_js.useBarnsportActivities; }
1564
+ get: function () { return chunkZOQAXLCZ_js.useBarnsportActivities; }
1819
1565
  });
1820
1566
  Object.defineProperty(exports, "useBarnsportActivity", {
1821
1567
  enumerable: true,
1822
- get: function () { return chunkEX66R5IA_js.useBarnsportActivity; }
1568
+ get: function () { return chunkZOQAXLCZ_js.useBarnsportActivity; }
1823
1569
  });
1824
1570
  Object.defineProperty(exports, "useBarnsportMunicipalities", {
1825
1571
  enumerable: true,
1826
- get: function () { return chunkEX66R5IA_js.useBarnsportMunicipalities; }
1572
+ get: function () { return chunkZOQAXLCZ_js.useBarnsportMunicipalities; }
1827
1573
  });
1828
1574
  Object.defineProperty(exports, "useBarnsportSitemap", {
1829
1575
  enumerable: true,
1830
- get: function () { return chunkEX66R5IA_js.useBarnsportSitemap; }
1576
+ get: function () { return chunkZOQAXLCZ_js.useBarnsportSitemap; }
1831
1577
  });
1832
1578
  Object.defineProperty(exports, "useBarnsportSport", {
1833
1579
  enumerable: true,
1834
- get: function () { return chunkEX66R5IA_js.useBarnsportSport; }
1580
+ get: function () { return chunkZOQAXLCZ_js.useBarnsportSport; }
1835
1581
  });
1836
1582
  Object.defineProperty(exports, "useBarnsportSports", {
1837
1583
  enumerable: true,
1838
- get: function () { return chunkEX66R5IA_js.useBarnsportSports; }
1584
+ get: function () { return chunkZOQAXLCZ_js.useBarnsportSports; }
1839
1585
  });
1840
1586
  Object.defineProperty(exports, "useSubmitBarnsportInterest", {
1841
1587
  enumerable: true,
1842
- get: function () { return chunkEX66R5IA_js.useSubmitBarnsportInterest; }
1588
+ get: function () { return chunkZOQAXLCZ_js.useSubmitBarnsportInterest; }
1589
+ });
1590
+ Object.defineProperty(exports, "AxCloudClient", {
1591
+ enumerable: true,
1592
+ get: function () { return chunk7K5N3DQ4_js.AxCloudClient; }
1593
+ });
1594
+ Object.defineProperty(exports, "AxCloudError", {
1595
+ enumerable: true,
1596
+ get: function () { return chunk7K5N3DQ4_js.AxCloudError; }
1597
+ });
1598
+ Object.defineProperty(exports, "createClient", {
1599
+ enumerable: true,
1600
+ get: function () { return chunk7K5N3DQ4_js.createClient; }
1601
+ });
1602
+ Object.defineProperty(exports, "getClient", {
1603
+ enumerable: true,
1604
+ get: function () { return chunk7K5N3DQ4_js.getClient; }
1605
+ });
1606
+ Object.defineProperty(exports, "isAxCloudError", {
1607
+ enumerable: true,
1608
+ get: function () { return chunk7K5N3DQ4_js.isAxCloudError; }
1843
1609
  });
1844
1610
  Object.defineProperty(exports, "useAxCloudContext", {
1845
1611
  enumerable: true,
1846
- get: function () { return chunkDSWRJZWR_js.useAxCloudContext; }
1612
+ get: function () { return chunk7K5N3DQ4_js.useAxCloudContext; }
1847
1613
  });
1848
1614
  exports.AxCloudProvider = AxCloudProvider;
1849
1615
  exports.LinkedAccountsList = LinkedAccountsList;
@@ -1855,18 +1621,14 @@ exports.castVote = castVote;
1855
1621
  exports.castVoteWithCode = castVoteWithCode;
1856
1622
  exports.checkEligibility = checkEligibility;
1857
1623
  exports.checkVotingCode = checkVotingCode;
1858
- exports.createContentSlotReader = createContentSlotReader;
1859
1624
  exports.createFormHelper = createFormHelper;
1860
1625
  exports.getBallot = getBallot;
1861
- exports.getContentSlotMap = getContentSlotMap;
1862
1626
  exports.getVotingReceipt = getVotingReceipt;
1863
1627
  exports.submitForm = submitForm;
1864
1628
  exports.useAuth = useAuth;
1865
1629
  exports.useAvatar = useAvatar;
1866
1630
  exports.useBranding = useBranding;
1867
1631
  exports.useCodeBallot = useCodeBallot;
1868
- exports.useContent = useContent;
1869
- exports.useContentItem = useContentItem;
1870
1632
  exports.useDocumentDownload = useDocumentDownload;
1871
1633
  exports.useDocuments = useDocuments;
1872
1634
  exports.useFormStats = useFormStats;
@@ -1882,7 +1644,6 @@ exports.useModuleAccess = useModuleAccess;
1882
1644
  exports.useMySection = useMySection;
1883
1645
  exports.useNews = useNews;
1884
1646
  exports.useOrg = useOrg;
1885
- exports.usePageContent = usePageContent;
1886
1647
  exports.useSections = useSections;
1887
1648
  exports.useUpdateFormSubmission = useUpdateFormSubmission;
1888
1649
  exports.useUpdateMyProfile = useUpdateMyProfile;