@youversion/platform-core 1.8.1 → 1.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @youversion/platform-core@1.8.1 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
2
+ > @youversion/platform-core@1.9.1 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
3
3
  > tsup src/index.ts --format cjs,esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2022
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.js 41.76 KB
12
- ESM ⚡️ Build success in 32ms
13
11
  CJS dist/index.cjs 43.59 KB
14
- CJS ⚡️ Build success in 33ms
12
+ CJS ⚡️ Build success in 36ms
13
+ ESM dist/index.js 41.76 KB
14
+ ESM ⚡️ Build success in 36ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1718ms
17
- DTS dist/index.d.cts 32.92 KB
18
- DTS dist/index.d.ts 32.92 KB
16
+ DTS ⚡️ Build success in 1802ms
17
+ DTS dist/index.d.cts 32.91 KB
18
+ DTS dist/index.d.ts 32.91 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @youversion/platform-core
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b4da78d: YouVersionAuthButton redirectUrl prop is now optional.
8
+
9
+ ## 1.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - d4b0071: feat(hooks): Add useLanguage hook to retrieve a language from api
14
+
3
15
  ## 1.8.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -166,7 +166,7 @@ declare const LanguageSchema: z.ZodObject<{
166
166
  }>>;
167
167
  writing_population: z.ZodOptional<z.ZodNumber>;
168
168
  speaking_population: z.ZodOptional<z.ZodNumber>;
169
- default_bible_version_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ default_bible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
170
  }, z.core.$strip>;
171
171
  type Language = Readonly<z.infer<typeof LanguageSchema>>;
172
172
 
package/dist/index.d.ts CHANGED
@@ -166,7 +166,7 @@ declare const LanguageSchema: z.ZodObject<{
166
166
  }>>;
167
167
  writing_population: z.ZodOptional<z.ZodNumber>;
168
168
  speaking_population: z.ZodOptional<z.ZodNumber>;
169
- default_bible_version_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ default_bible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
170
  }, z.core.$strip>;
171
171
  type Language = Readonly<z.infer<typeof LanguageSchema>>;
172
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/platform-core",
3
- "version": "1.8.1",
3
+ "version": "1.9.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -14,7 +14,7 @@ export const mockLanguages: Language[] = [
14
14
  text_direction: 'ltr',
15
15
  writing_population: 1500000000,
16
16
  speaking_population: 1500000000,
17
- default_bible_version_id: null,
17
+ default_bible_id: null,
18
18
  },
19
19
  {
20
20
  id: 'es',
@@ -29,7 +29,7 @@ export const mockLanguages: Language[] = [
29
29
  text_direction: 'ltr',
30
30
  writing_population: 500000000,
31
31
  speaking_population: 500000000,
32
- default_bible_version_id: null,
32
+ default_bible_id: null,
33
33
  },
34
34
  {
35
35
  id: 'fr',
@@ -44,7 +44,7 @@ export const mockLanguages: Language[] = [
44
44
  text_direction: 'ltr',
45
45
  writing_population: 300000000,
46
46
  speaking_population: 300000000,
47
- default_bible_version_id: null,
47
+ default_bible_id: null,
48
48
  },
49
49
  {
50
50
  id: 'de',
@@ -59,7 +59,7 @@ export const mockLanguages: Language[] = [
59
59
  text_direction: 'ltr',
60
60
  writing_population: 100000000,
61
61
  speaking_population: 100000000,
62
- default_bible_version_id: null,
62
+ default_bible_id: null,
63
63
  },
64
64
  {
65
65
  id: 'sr-Latn',
@@ -74,7 +74,7 @@ export const mockLanguages: Language[] = [
74
74
  text_direction: 'ltr',
75
75
  writing_population: 8000000,
76
76
  speaking_population: 8000000,
77
- default_bible_version_id: null,
77
+ default_bible_id: null,
78
78
  },
79
79
  // Add more languages to exceed the maximum page size and exercise pagination
80
80
  ...Array.from({ length: 120 }, (_, i) => ({
@@ -90,6 +90,6 @@ export const mockLanguages: Language[] = [
90
90
  text_direction: 'ltr' as const,
91
91
  writing_population: 1000000,
92
92
  speaking_population: 1000000,
93
- default_bible_version_id: null,
93
+ default_bible_id: null,
94
94
  })),
95
95
  ];
@@ -32,7 +32,7 @@ export const LanguageSchema = z.object({
32
32
  /** Speaking population count */
33
33
  speaking_population: z.number().int().optional(),
34
34
  /** Default Bible version ID for this language */
35
- default_bible_version_id: z.number().int().nullable().optional(),
35
+ default_bible_id: z.number().int().nullable().optional(),
36
36
  });
37
37
 
38
38
  export type Language = Readonly<z.infer<typeof LanguageSchema>>;