@featurevisor/site 0.39.0 → 0.40.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/CHANGELOG.md +19 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/ShowFeature.tsx +4 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/site",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "Static site for Featurevisor",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"tailwindcss": "^3.3.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@featurevisor/types": "^0.
|
|
59
|
+
"@featurevisor/types": "^0.40.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7915a3f4f1429e5da4ef0da076da02d4d3c24776"
|
|
62
62
|
}
|
|
@@ -31,20 +31,6 @@ export function DisplayFeatureOverview() {
|
|
|
31
31
|
{feature.archived === true ? <span>Yes</span> : <span>No</span>}
|
|
32
32
|
</dd>
|
|
33
33
|
</div>
|
|
34
|
-
<div>
|
|
35
|
-
<dt className="text-sm font-medium text-gray-500">Default variation</dt>
|
|
36
|
-
<dd className="mt-1 text-sm text-gray-900">
|
|
37
|
-
{typeof feature.defaultVariation === "string" ? (
|
|
38
|
-
<span>{feature.defaultVariation}</span>
|
|
39
|
-
) : (
|
|
40
|
-
<pre>
|
|
41
|
-
<code className="rounded bg-gray-100 px-2 py-1 text-red-400">
|
|
42
|
-
{JSON.stringify(feature.defaultVariation)}
|
|
43
|
-
</code>
|
|
44
|
-
</pre>
|
|
45
|
-
)}
|
|
46
|
-
</dd>
|
|
47
|
-
</div>
|
|
48
34
|
<div>
|
|
49
35
|
<dt className="text-sm font-medium text-gray-500">Bucket by</dt>
|
|
50
36
|
<dd className="mt-1 text-sm text-gray-900">
|
|
@@ -308,6 +294,10 @@ export function DisplayFeatureRules() {
|
|
|
308
294
|
export function DisplayFeatureVariations() {
|
|
309
295
|
const { feature } = useOutletContext() as any;
|
|
310
296
|
|
|
297
|
+
if (!feature.variations || feature.variations.length === 0) {
|
|
298
|
+
return <p>n/a</p>;
|
|
299
|
+
}
|
|
300
|
+
|
|
311
301
|
return (
|
|
312
302
|
<table className="min-w-full divide-y divide-gray-300 border border-gray-200">
|
|
313
303
|
<thead className="bg-gray-50">
|