@marinoscar/platform-infra 0.1.0-next.17 → 0.1.0-next.19
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @marinoscar/platform-infra
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.19
|
|
4
|
+
|
|
5
|
+
## 0.1.0-next.18
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- bca937b: Example names in doc comments, README examples and schema examples are replaced with invented placeholders (Org Kappa, Org Sigma, Org Theta and similar) instead of well-known fictional brands. No behaviour change.
|
|
10
|
+
|
|
3
11
|
## 0.1.0-next.17
|
|
4
12
|
|
|
5
13
|
## 0.1.0-next.16
|
|
@@ -50,37 +50,37 @@ class NotificationPermissionTest {
|
|
|
50
50
|
// --- UI mapping ---------------------------------------------------------------------------
|
|
51
51
|
|
|
52
52
|
@Test fun `row for each state`() {
|
|
53
|
-
val granted = NotificationPermissions.row(NotificationPermissionState.GRANTED, "
|
|
53
|
+
val granted = NotificationPermissions.row(NotificationPermissionState.GRANTED, "Org Kappa")
|
|
54
54
|
assertTrue(granted.ok)
|
|
55
55
|
assertNull(granted.action)
|
|
56
56
|
assertNull(granted.actionLabel)
|
|
57
57
|
assertEquals("Allowed", granted.status)
|
|
58
58
|
|
|
59
59
|
listOf(NotificationPermissionState.NOT_ASKED, NotificationPermissionState.DENIED).forEach {
|
|
60
|
-
val row = NotificationPermissions.row(it, "
|
|
60
|
+
val row = NotificationPermissions.row(it, "Org Kappa")
|
|
61
61
|
assertFalse(row.ok)
|
|
62
62
|
assertEquals(NotificationAction.REQUEST, row.action)
|
|
63
63
|
assertEquals("Allow", row.actionLabel)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
listOf(NotificationPermissionState.PERMANENTLY_DENIED, NotificationPermissionState.DISABLED).forEach {
|
|
67
|
-
val row = NotificationPermissions.row(it, "
|
|
67
|
+
val row = NotificationPermissions.row(it, "Org Kappa")
|
|
68
68
|
assertFalse(row.ok)
|
|
69
69
|
assertEquals(NotificationAction.OPEN_SETTINGS, row.action)
|
|
70
70
|
assertEquals("Open settings", row.actionLabel)
|
|
71
71
|
}
|
|
72
|
-
assertEquals("Blocked", NotificationPermissions.row(NotificationPermissionState.PERMANENTLY_DENIED, "
|
|
72
|
+
assertEquals("Blocked", NotificationPermissions.row(NotificationPermissionState.PERMANENTLY_DENIED, "Org Kappa").status)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
@Test fun `row action matches the action mapping and names the product`() {
|
|
76
76
|
NotificationPermissionState.entries.forEach {
|
|
77
|
-
val row = NotificationPermissions.row(it, "
|
|
77
|
+
val row = NotificationPermissions.row(it, "Org Kappa")
|
|
78
78
|
assertEquals(it.name, NotificationPermissions.action(it), row.action)
|
|
79
|
-
row.detail?.let { detail -> assertTrue(detail, "
|
|
79
|
+
row.detail?.let { detail -> assertTrue(detail, "Org Kappa" in detail) }
|
|
80
80
|
}
|
|
81
81
|
assertEquals(
|
|
82
|
-
"Allow notifications so
|
|
83
|
-
NotificationPermissions.row(NotificationPermissionState.NOT_ASKED, "
|
|
82
|
+
"Allow notifications so Org Kappa can tell you about updates, re-pairing and reminders.",
|
|
83
|
+
NotificationPermissions.row(NotificationPermissionState.NOT_ASKED, "Org Kappa").detail,
|
|
84
84
|
)
|
|
85
85
|
}
|
|
86
86
|
|
package/dist/identity.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface InfraIdentity {
|
|
|
26
26
|
export interface InfraIdentityInput {
|
|
27
27
|
/** The CLI executable. Required: it seeds the env prefix. */
|
|
28
28
|
readonly cliName: string;
|
|
29
|
-
/** The product's display name, slugified the way `@app/shared` does (`
|
|
29
|
+
/** The product's display name, slugified the way `@app/shared` does (`Kappa Hub` to `kappa-hub`). Defaults to a neutral `app`. */
|
|
30
30
|
readonly productName?: string;
|
|
31
31
|
/** Overrides the prefix derived from `cliName`. */
|
|
32
32
|
readonly envPrefix?: string;
|
package/dist/identity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uGAAuG;IACvG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uGAAuG;IACvG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,M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