@forthtilliath/react-native-kit 0.6.0 → 0.7.0

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 CHANGED
@@ -28,6 +28,17 @@ Each component is its own module — import the file you need directly:
28
28
  import { ChangelogNotes } from "@forthtilliath/react-native-kit/ChangelogNotes";
29
29
  ```
30
30
 
31
+ This is the recommended way to import: Metro (React Native's bundler) doesn't reliably tree-shake, so pulling from a single deep-import path keeps peer dependencies you don't use (`expo-image-picker`, `expo-speech-recognition`, `react-native-gesture-handler`...) out of your bundle entirely, rather than merely unused.
32
+
33
+ A root barrel is also available for convenience when you don't mind that trade-off:
34
+
35
+ ```ts
36
+ import {
37
+ ChangelogNotes,
38
+ useSubmitGuard,
39
+ } from "@forthtilliath/react-native-kit";
40
+ ```
41
+
31
42
  ### `<ChangelogNotes notes={...} styles={...} />`
32
43
 
33
44
  Renders GitHub-style release notes — as produced by `@forthtilliath/expo-release-updates`'s `parseChangelogNotes` — as headings, bulleted items, and bold-aware text, instead of showing the raw Markdown syntax in a plain `Text`.
@@ -0,0 +1,22 @@
1
+ export * from "./ChangelogNotes.js";
2
+ export * from "./confirmDestructive.js";
3
+ export * from "./PhotoPicker.js";
4
+ export * from "./PickerModal.js";
5
+ export * from "./SwipeableRow.js";
6
+ export * from "./ThemeToggle.js";
7
+ export * from "./Thumbnail.js";
8
+ export * from "./UpdateAvailableBanner.js";
9
+ export * from "./useDebouncedChange.js";
10
+ export * from "./useEffectiveColorScheme.js";
11
+ export * from "./useSubmitGuard.js";
12
+ export * from "./useUpdateCheck.js";
13
+ export * from "./utils/escapeCsvField.js";
14
+ export * from "./utils/escapeHtml.js";
15
+ export * from "./utils/formatCsvNumber.js";
16
+ export * from "./utils/getMostRecentIds.js";
17
+ export * from "./utils/getPeriodStartMs.js";
18
+ export * from "./utils/nextInCycle.js";
19
+ export * from "./utils/normalizeForSearch.js";
20
+ export * from "./utils/rankByNameMatch.js";
21
+ export * from "./VoiceSearchButton.js";
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,25 @@
1
+ // Convenience barrel re-exporting everything below one import path. Deep
2
+ // imports (`@forthtilliath/react-native-kit/PickerModal`, etc.) remain the
3
+ // recommended default for apps that want to avoid pulling in peer deps they
4
+ // don't have installed (Metro doesn't reliably tree-shake) — see the README.
5
+ export * from "./ChangelogNotes.js";
6
+ export * from "./confirmDestructive.js";
7
+ export * from "./PhotoPicker.js";
8
+ export * from "./PickerModal.js";
9
+ export * from "./SwipeableRow.js";
10
+ export * from "./ThemeToggle.js";
11
+ export * from "./Thumbnail.js";
12
+ export * from "./UpdateAvailableBanner.js";
13
+ export * from "./useDebouncedChange.js";
14
+ export * from "./useEffectiveColorScheme.js";
15
+ export * from "./useSubmitGuard.js";
16
+ export * from "./useUpdateCheck.js";
17
+ export * from "./utils/escapeCsvField.js";
18
+ export * from "./utils/escapeHtml.js";
19
+ export * from "./utils/formatCsvNumber.js";
20
+ export * from "./utils/getMostRecentIds.js";
21
+ export * from "./utils/getPeriodStartMs.js";
22
+ export * from "./utils/nextInCycle.js";
23
+ export * from "./utils/normalizeForSearch.js";
24
+ export * from "./utils/rankByNameMatch.js";
25
+ export * from "./VoiceSearchButton.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forthtilliath/react-native-kit",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -17,6 +17,7 @@
17
17
  "dist"
18
18
  ],
19
19
  "exports": {
20
+ ".": "./dist/index.js",
20
21
  "./*": "./dist/*.js"
21
22
  },
22
23
  "dependencies": {
@@ -43,8 +44,8 @@
43
44
  "react-test-renderer": "19.2.3",
44
45
  "typescript": "^5.9.3",
45
46
  "vitest": "^4.1.10",
46
- "@forthtilliath/eslint-config": "0.0.0",
47
- "@forthtilliath/typescript-config": "0.0.0"
47
+ "@forthtilliath/typescript-config": "0.0.0",
48
+ "@forthtilliath/eslint-config": "0.0.0"
48
49
  },
49
50
  "scripts": {
50
51
  "lint": "eslint . --max-warnings 0",