@symbiote-native/store-review 0.3.0 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +54 -18
  2. package/package.json +26 -15
package/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  A wrapper package for [SymbioteNative](../../README.md) that makes
4
4
  [`expo-store-review`](https://github.com/expo/expo/tree/main/packages/expo-store-review)
5
5
  — prompting the platform's native in-app review flow — usable from **every** adapter, React,
6
- Vue, and Angular, not just React. Like [`@symbiote-native/device`](../device) and
6
+ Vue, Svelte, Solid, and Angular, not just React. Like [`@symbiote-native/device`](../device) and
7
7
  [`@symbiote-native/local-auth`](../local-auth), every export here is a one-shot async call with
8
- no per-instance state, so there is no hook/composable/service to wrap — the React, Vue, and
9
- Angular entry points are plain re-exports of the same `core`.
8
+ no per-instance state, so there is no hook/composable/service to wrap — the React, Vue, Svelte,
9
+ and Solid entry points are plain re-exports of the same `core`.
10
10
 
11
11
  ## Install
12
12
 
@@ -47,20 +47,20 @@ src/core/ isAvailableAsync / requestReview / hasAction, plus the IStoreRevie
47
47
  src/angular/ @symbiote-native/store-review/angular — export * from '../core'
48
48
  ```
49
49
 
50
- `./react`, `./vue`, and `./svelte` are `exports`-map aliases straight onto `src/core/` — no
51
- physical per-framework file, since there's nothing to subscribe to or clean up. `./angular` stays
52
- a physical file/subpath since Angular ships through a separate `ngc`/AOT build (`build-ngc/`).
50
+ `./react`, `./vue`, `./svelte`, and `./solid` are `exports`-map aliases straight onto
51
+ `src/core/` — no physical per-framework file, since there's nothing to subscribe to or clean up.
52
+ `./angular` stays a physical file/subpath since Angular ships through a separate `ngc`/AOT build
53
+ (`build-ngc/`).
53
54
 
54
55
  ## Use it
55
56
 
56
57
  ```tsx
57
58
  // React
58
- import { Button } from '@symbiote-native/react';
59
59
  import { requestReview } from '@symbiote-native/store-review/react';
60
60
 
61
61
  function RateAppButton() {
62
62
  return (
63
- <Button
63
+ <button
64
64
  title="Rate this app"
65
65
  onPress={() =>
66
66
  requestReview({
@@ -77,7 +77,6 @@ function RateAppButton() {
77
77
  ```vue
78
78
  <!-- Vue -->
79
79
  <script setup lang="ts">
80
- import { Button } from '@symbiote-native/vue';
81
80
  import { requestReview } from '@symbiote-native/store-review/vue';
82
81
 
83
82
  function onRatePress() {
@@ -90,20 +89,53 @@ function onRatePress() {
90
89
  </script>
91
90
 
92
91
  <template>
93
- <Button title="Rate this app" @press="onRatePress" />
92
+ <button title="Rate this app" @press="onRatePress" />
94
93
  </template>
95
94
  ```
96
95
 
96
+ ```svelte
97
+ <!-- Svelte -->
98
+ <script lang="ts">
99
+ import { requestReview } from '@symbiote-native/store-review/svelte';
100
+
101
+ function onRatePress(): void {
102
+ void requestReview({
103
+ iosAppStoreUrl: 'https://apps.apple.com/app/id123456789',
104
+ androidPlayStoreUrl:
105
+ 'https://play.google.com/store/apps/details?id=com.example.app',
106
+ });
107
+ }
108
+ </script>
109
+
110
+ <button title="Rate this app" onPress={onRatePress} />
111
+ ```
112
+
113
+ ```tsx
114
+ // Solid
115
+ import { requestReview } from '@symbiote-native/store-review/solid';
116
+
117
+ function RateAppButton() {
118
+ const onRatePress = () =>
119
+ void requestReview({
120
+ iosAppStoreUrl: 'https://apps.apple.com/app/id123456789',
121
+ androidPlayStoreUrl:
122
+ 'https://play.google.com/store/apps/details?id=com.example.app',
123
+ });
124
+
125
+ return <button title="Rate this app" onPress={onRatePress} />;
126
+ }
127
+ ```
128
+
97
129
  ```ts
98
130
  // Angular
99
131
  import { Component } from '@angular/core';
100
- import { Button } from '@symbiote-native/angular';
132
+ import { SYMBIOTE_ELEMENTS } from '@symbiote-native/angular';
101
133
  import { requestReview } from '@symbiote-native/store-review/angular';
102
134
 
103
135
  @Component({
104
136
  standalone: true,
105
- imports: [Button],
106
- template: `<Button title="Rate this app" (press)="onRatePress()" />`,
137
+ imports: [SYMBIOTE_ELEMENTS],
138
+ template: `<button title="Rate this app" (press)="onRatePress()" />`,
107
139
  })
108
140
  export class RateAppButton {
109
141
  onRatePress(): void {
@@ -118,6 +150,7 @@ export class RateAppButton {
118
150
 
119
151
  These snippets mirror the real canary demo screens — `examples/expo-react/screens/StoreReviewScreen.tsx`,
120
152
  `examples/expo-vue-sfc/screens/StoreReviewScreen.vue`, `examples/expo-vue-tsx/screens/StoreReviewScreen.tsx`,
153
+ `examples/expo-svelte/screens/StoreReviewScreen.svelte`, `examples/expo-solid/screens/StoreReviewScreen.tsx`,
121
154
  `examples/expo-angular/src/screens/StoreReviewScreen.ts`.
122
155
 
123
156
  ## API
@@ -142,6 +175,8 @@ import {
142
175
  // or the framework-scoped entry points — identical surface, re-exported verbatim:
143
176
  import { requestReview } from '@symbiote-native/store-review/react';
144
177
  import { requestReview } from '@symbiote-native/store-review/vue';
178
+ import { requestReview } from '@symbiote-native/store-review/svelte';
179
+ import { requestReview } from '@symbiote-native/store-review/solid';
145
180
  import { requestReview } from '@symbiote-native/store-review/angular';
146
181
  ```
147
182
 
@@ -173,9 +208,10 @@ view or per-instance state. Tests inject a fake native-module object in place of
173
208
  ViewConfig. Native rendering itself is verified on-device (see the parent
174
209
  [README](../../README.md) for the project's testing model).
175
210
 
176
- Native autolinking wiring for `expo-modules-core` packages is already done in the four Expo
211
+ Native autolinking wiring for `expo-modules-core` packages is already done in all six Expo
177
212
  canary apps (`examples/expo-react`, `examples/expo-vue-sfc`, `examples/expo-vue-tsx`,
178
- `examples/expo-angular`) via `@symbiote-native/local-auth`/`@symbiote-native/sensors` — this
179
- package reuses that same wiring with zero further app-side changes, since
180
- `expo-modules-autolinking` discovers any `expo-modules-core` package already present in
181
- `node_modules`. A dedicated demo screen has not been wired into those canaries yet.
213
+ `examples/expo-svelte`, `examples/expo-solid`, `examples/expo-angular`) via
214
+ `@symbiote-native/local-auth`/`@symbiote-native/sensors` — this package reuses that same wiring
215
+ with zero further app-side changes, since `expo-modules-autolinking` discovers any
216
+ `expo-modules-core` package already present in `node_modules`. Each canary carries its own
217
+ `StoreReviewScreen` demo.
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "@symbiote-native/store-review",
3
- "version": "0.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "expo-store-review wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Prompts the platform's native in-app review flow, with a caller-supplied store-URL fallback in place of upstream's expo-constants-based lookup (this project doesn't depend on expo-constants).",
5
+ "keywords": [
6
+ "react-native",
7
+ "symbiote-native",
8
+ "react",
9
+ "vue",
10
+ "svelte",
11
+ "solid",
12
+ "angular",
13
+ "app-review",
14
+ "in-app-review"
15
+ ],
5
16
  "license": "MIT",
6
17
  "repository": {
7
18
  "type": "git",
@@ -61,19 +72,19 @@
61
72
  "expo-modules-core": "57.0.5"
62
73
  },
63
74
  "peerDependencies": {
64
- "@symbiote-native/angular": ">=0.6.2",
65
- "@symbiote-native/engine": ">=0.1.7",
66
- "@symbiote-native/react": ">=0.2.8",
67
- "@symbiote-native/solid": ">=0.0.1",
68
- "@symbiote-native/svelte": ">=0.1.0",
69
- "@symbiote-native/vue": ">=0.3.8",
70
75
  "@angular/core": ">=20",
71
76
  "@vue/runtime-core": "^3.5.13",
72
77
  "react": ">=19.0.0",
73
78
  "react-native": ">=0.86",
74
79
  "solid-js": ">=1.9.0",
75
80
  "svelte": ">=5.56.0",
76
- "vue": ">=3.5.0"
81
+ "vue": ">=3.5.0",
82
+ "@symbiote-native/angular": "^2.0.0",
83
+ "@symbiote-native/engine": "^0.5.0",
84
+ "@symbiote-native/react": "^2.0.0",
85
+ "@symbiote-native/solid": "^2.0.0",
86
+ "@symbiote-native/svelte": "^2.0.0",
87
+ "@symbiote-native/vue": "^2.0.0"
77
88
  },
78
89
  "peerDependenciesMeta": {
79
90
  "@symbiote-native/angular": {
@@ -121,13 +132,13 @@
121
132
  "solid-js": "^1.9.14",
122
133
  "svelte": "^5.56.0",
123
134
  "typescript": "~6.0.0",
124
- "@symbiote-native/angular": "0.8.0",
125
- "@symbiote-native/engine": "0.3.0",
126
- "@symbiote-native/react": "0.4.0",
127
- "@symbiote-native/solid": "0.1.0",
128
- "@symbiote-native/svelte": "0.3.0",
129
- "@symbiote-native/test-utils": "0.2.0",
130
- "@symbiote-native/vue": "0.5.0"
135
+ "@symbiote-native/engine": "0.5.0",
136
+ "@symbiote-native/react": "2.0.0",
137
+ "@symbiote-native/solid": "2.0.0",
138
+ "@symbiote-native/svelte": "2.0.0",
139
+ "@symbiote-native/vue": "2.0.0",
140
+ "@symbiote-native/test-utils": "0.3.0",
141
+ "@symbiote-native/angular": "2.0.0"
131
142
  },
132
143
  "scripts": {
133
144
  "typecheck": "tsc --build",