@youversion/platform-react-ui 1.2.0 → 1.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.
- package/dist/index.cjs +6 -4
- package/dist/index.js +6 -4
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -12982,13 +12982,15 @@ var LanguagesClient = class {
|
|
|
12982
12982
|
}
|
|
12983
12983
|
/**
|
|
12984
12984
|
* Fetches a collection of languages supported in the Platform.
|
|
12985
|
-
* @param options Query parameters for pagination and filtering
|
|
12985
|
+
* @param options Query parameters for pagination and filtering.
|
|
12986
12986
|
* @returns A collection of Language objects.
|
|
12987
12987
|
*/
|
|
12988
|
-
async getLanguages(options) {
|
|
12988
|
+
async getLanguages(options = {}) {
|
|
12989
12989
|
const params = {};
|
|
12990
|
-
|
|
12991
|
-
|
|
12990
|
+
if (options.country !== void 0) {
|
|
12991
|
+
const country = this.countrySchema.parse(options.country);
|
|
12992
|
+
params.country = country;
|
|
12993
|
+
}
|
|
12992
12994
|
if (options.page_size !== void 0) {
|
|
12993
12995
|
const pageSizeSchema = external_exports.number().int().positive();
|
|
12994
12996
|
pageSizeSchema.parse(options.page_size);
|
package/dist/index.js
CHANGED
|
@@ -12937,13 +12937,15 @@ var LanguagesClient = class {
|
|
|
12937
12937
|
}
|
|
12938
12938
|
/**
|
|
12939
12939
|
* Fetches a collection of languages supported in the Platform.
|
|
12940
|
-
* @param options Query parameters for pagination and filtering
|
|
12940
|
+
* @param options Query parameters for pagination and filtering.
|
|
12941
12941
|
* @returns A collection of Language objects.
|
|
12942
12942
|
*/
|
|
12943
|
-
async getLanguages(options) {
|
|
12943
|
+
async getLanguages(options = {}) {
|
|
12944
12944
|
const params = {};
|
|
12945
|
-
|
|
12946
|
-
|
|
12945
|
+
if (options.country !== void 0) {
|
|
12946
|
+
const country = this.countrySchema.parse(options.country);
|
|
12947
|
+
params.country = country;
|
|
12948
|
+
}
|
|
12947
12949
|
if (options.page_size !== void 0) {
|
|
12948
12950
|
const pageSizeSchema = external_exports.number().int().positive();
|
|
12949
12951
|
pageSizeSchema.parse(options.page_size);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youversion/platform-react-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "React SDK for YouVersion Platform",
|
|
5
5
|
"license": "TBD",
|
|
6
6
|
"type": "module",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"lucide-react": "0.546.0",
|
|
40
40
|
"tailwind-merge": "3.3.1",
|
|
41
41
|
"tw-animate-css": "1.4.0",
|
|
42
|
-
"@youversion/platform-core": "1.2.
|
|
43
|
-
"@youversion/platform-react-hooks": "1.2.
|
|
42
|
+
"@youversion/platform-core": "1.2.1",
|
|
43
|
+
"@youversion/platform-react-hooks": "1.2.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=19.1.0 <20.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"vite": "7.1.11",
|
|
74
74
|
"vitest": "4.0.4",
|
|
75
75
|
"vitest-browser-react": "2.0.2",
|
|
76
|
-
"@internal/
|
|
77
|
-
"@internal/
|
|
76
|
+
"@internal/tsconfig": "0.0.0",
|
|
77
|
+
"@internal/eslint-config": "0.0.0"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public",
|