@youversion/platform-react-ui 0.11.0 → 1.0.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.
@@ -15,4 +15,5 @@ export declare const DarkTheme: Story;
15
15
  * Custom styling with larger font and increased line height
16
16
  */
17
17
  export declare const CustomStyling: Story;
18
+ export declare const RealAPI: Story;
18
19
  //# sourceMappingURL=bible-reader.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bible-reader.stories.d.ts","sourceRoot":"","sources":["../../src/components/bible-reader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAAC,IAAI,CAmCvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC"}
1
+ {"version":3,"file":"bible-reader.stories.d.ts","sourceRoot":"","sources":["../../src/components/bible-reader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAAC,IAAI,CAmCvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC"}
@@ -27,4 +27,5 @@ type Story = StoryObj<typeof meta>;
27
27
  export declare const Default: Story;
28
28
  export declare const DarkMode: Story;
29
29
  export declare const WithVersionPicker: Story;
30
+ export declare const RealAPI: Story;
30
31
  //# sourceMappingURL=bible-widget-view.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bible-widget-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/bible-widget-view.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAqB8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAkD/B,CAAC"}
1
+ {"version":3,"file":"bible-widget-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/bible-widget-view.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAqB8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAkD/B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC"}
@@ -46,4 +46,5 @@ type Story = StoryObj<typeof meta>;
46
46
  export declare const Default: Story;
47
47
  export declare const Large: Story;
48
48
  export declare const Minimal: Story;
49
+ export declare const RealAPI: Story;
49
50
  //# sourceMappingURL=verse-of-the-day.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verse-of-the-day.stories.d.ts","sourceRoot":"","sources":["../../src/components/verse-of-the-day.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAoCrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
1
+ {"version":3,"file":"verse-of-the-day.stories.d.ts","sourceRoot":"","sources":["../../src/components/verse-of-the-day.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAoCrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC"}
package/dist/index.cjs CHANGED
@@ -15316,8 +15316,8 @@ function Content4() {
15316
15316
  showVerseNumbers
15317
15317
  }
15318
15318
  ),
15319
- version2?.copyright_short && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("footer", { className: "yv:flex yv:flex-col yv:items-center yv:gap-2", style: { fontSize }, children: [
15320
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "yv:text-balance yv:text-[0.75em] yv:text-center yv:text-muted-foreground", children: version2.copyright_short }),
15319
+ version2?.copyright && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("footer", { className: "yv:flex yv:flex-col yv:items-center yv:gap-2", style: { fontSize }, children: [
15320
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "yv:text-balance yv:text-[0.75em] yv:text-center yv:text-muted-foreground", children: version2.copyright }),
15321
15321
  version2.publisher_url ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
15322
15322
  "a",
15323
15323
  {
@@ -15964,7 +15964,7 @@ function BibleWidgetView({
15964
15964
  }
15965
15965
  ),
15966
15966
  /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "yv:grid yv:grid-cols-[1fr_auto] yv:gap-4 yv:items-center yv:mt-4", children: [
15967
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "yv:text-balance yv:text-muted-foreground yv:justify-self-start yv:font-bold yv:text-[0.5rem]", children: version2?.copyright_short }),
15967
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "yv:text-balance yv:text-muted-foreground yv:justify-self-start yv:font-bold yv:text-[0.5rem]", children: version2?.copyright }),
15968
15968
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "yv:justify-self-end", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SvgComponent3, { fontSize: 12 }) })
15969
15969
  ] })
15970
15970
  ]
package/dist/index.js CHANGED
@@ -15277,8 +15277,8 @@ function Content4() {
15277
15277
  showVerseNumbers
15278
15278
  }
15279
15279
  ),
15280
- version2?.copyright_short && /* @__PURE__ */ jsxs5("footer", { className: "yv:flex yv:flex-col yv:items-center yv:gap-2", style: { fontSize }, children: [
15281
- /* @__PURE__ */ jsx12("p", { className: "yv:text-balance yv:text-[0.75em] yv:text-center yv:text-muted-foreground", children: version2.copyright_short }),
15280
+ version2?.copyright && /* @__PURE__ */ jsxs5("footer", { className: "yv:flex yv:flex-col yv:items-center yv:gap-2", style: { fontSize }, children: [
15281
+ /* @__PURE__ */ jsx12("p", { className: "yv:text-balance yv:text-[0.75em] yv:text-center yv:text-muted-foreground", children: version2.copyright }),
15282
15282
  version2.publisher_url ? /* @__PURE__ */ jsxs5(
15283
15283
  "a",
15284
15284
  {
@@ -15931,7 +15931,7 @@ function BibleWidgetView({
15931
15931
  }
15932
15932
  ),
15933
15933
  /* @__PURE__ */ jsxs12("div", { className: "yv:grid yv:grid-cols-[1fr_auto] yv:gap-4 yv:items-center yv:mt-4", children: [
15934
- /* @__PURE__ */ jsx19("div", { className: "yv:text-balance yv:text-muted-foreground yv:justify-self-start yv:font-bold yv:text-[0.5rem]", children: version2?.copyright_short }),
15934
+ /* @__PURE__ */ jsx19("div", { className: "yv:text-balance yv:text-muted-foreground yv:justify-self-start yv:font-bold yv:text-[0.5rem]", children: version2?.copyright }),
15935
15935
  /* @__PURE__ */ jsx19("div", { className: "yv:justify-self-end", children: /* @__PURE__ */ jsx19(SvgComponent3, { fontSize: 12 }) })
15936
15936
  ] })
15937
15937
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/platform-react-ui",
3
- "version": "0.11.0",
3
+ "version": "1.0.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": "0.11.0",
43
- "@youversion/platform-react-hooks": "0.11.0"
42
+ "@youversion/platform-core": "1.0.1",
43
+ "@youversion/platform-react-hooks": "1.0.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/eslint-config": "0.0.0",
77
- "@internal/tsconfig": "0.0.0"
76
+ "@internal/tsconfig": "0.0.0",
77
+ "@internal/eslint-config": "0.0.0"
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public",
@@ -106,8 +106,9 @@
106
106
  "build:css": "tailwindcss -i src/styles/global.css -o dist/tailwind.css --minify && node scripts/strip-layers.js",
107
107
  "build": "pnpm build:css && pnpm build:js && pnpm build:types",
108
108
  "dev": "concurrently \"tailwindcss -i src/styles/global.css -o dist/tailwind.css --watch\" \"NODE_ENV=development tsup --watch\"",
109
- "test": "vitest run",
110
- "test:watch": "vitest",
109
+ "test": "vitest run --project unit",
110
+ "test:watch": "vitest --project unit",
111
+ "test:coverage": "vitest run --project unit --coverage",
111
112
  "typecheck": "tsc --noEmit",
112
113
  "lint": "eslint . --max-warnings 0",
113
114
  "storybook": "concurrently \"tailwindcss -i src/styles/global.css -o dist/tailwind.css --watch\" \"storybook dev -p 6006\"",