@rippling/pebble-sdui-mobile 1.0.1 → 1.1.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/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-props.d.ts +14 -21
- package/dist/catalogs/custom-apps/index.cjs +2 -2
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +1 -1
- package/dist/catalogs/custom-apps/index.js +287 -161
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +6 -3
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +84 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +9 -31
- package/package.json +1 -1
|
@@ -100,9 +100,10 @@ No additional properties.
|
|
|
100
100
|
|
|
101
101
|
## Avatar
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
Avatar showing a photo, icon, logo, or initials
|
|
104
104
|
|
|
105
|
-
Use `source` for a remote image URL
|
|
105
|
+
Use `source` for a remote image URL, an icon type name, or a catalog logo. Use `title` for initials when no image is available.
|
|
106
|
+
`isRounded` defaults to a circle. Set it to false for a rounded square, used for organizations, brands, and logos.
|
|
106
107
|
When `onPress` is wired, the avatar becomes tappable — wire to the 'press' event.
|
|
107
108
|
|
|
108
109
|
Catalog key: `Avatar`
|
|
@@ -116,9 +117,10 @@ Events: `press`
|
|
|
116
117
|
| Name | Required | Type | Description |
|
|
117
118
|
|---|---:|---|---|
|
|
118
119
|
| `contentFit` | no | [AvatarContentFit](./definitions.md#avatarcontentfit) | How the avatar image scales within its bounds |
|
|
120
|
+
| `isRounded` | no | boolean | Fully rounded circle when true. A rounded square when false. Default: true |
|
|
119
121
|
| `recyclingKey` | no | string | Sets the image view to blank before loading the final image — prevents showing the previous image during recycling |
|
|
120
122
|
| `size` | no | [AvatarSize](./definitions.md#avatarsize) | Size of the avatar. Default: medium |
|
|
121
|
-
| `source` | no | [AvatarSource](./definitions.md#avatarsource) \| string \| [AvatarSource](./types.md#avatarsource) \| [AvatarSource](./types.md#avatarsource) | Remote photo URL
|
|
123
|
+
| `source` | no | [AvatarSource](./types.md#avatarsource) \| [AvatarSource](./definitions.md#avatarsource) \| string \| [AvatarSource](./types.md#avatarsource) \| [AvatarSource](./types.md#avatarsource) | Remote photo URL, Pebble icon name, or catalog logo { type: "logo", source: "slack" } |
|
|
122
124
|
| `testID` | no | string | Sets testid on Avatar (used for testing purposes) |
|
|
123
125
|
| `title` | no | string | Initials or short text shown when no source is provided (e.g. "JD" for John Doe) |
|
|
124
126
|
|
|
@@ -1235,6 +1237,7 @@ Events: `leftPress`, `rightPress`
|
|
|
1235
1237
|
| `subtitle` | no | string | Subtitle to show on the header |
|
|
1236
1238
|
| `testID` | no | string | Sets testid on ModalActionHeader (used for testing purposes) |
|
|
1237
1239
|
| `title` | no | string | Title to show on the header |
|
|
1240
|
+
| `transparent` | no | boolean | Applies a transparent background to the modal action header. Default: false |
|
|
1238
1241
|
|
|
1239
1242
|
No additional properties.
|
|
1240
1243
|
|
|
@@ -1526,6 +1526,88 @@ Referenced by:
|
|
|
1526
1526
|
| type | `Left` | `iconType` |
|
|
1527
1527
|
| type | `PageModalActionHeaderRight` | `iconType` |
|
|
1528
1528
|
|
|
1529
|
+
## AvatarSourceSource
|
|
1530
|
+
|
|
1531
|
+
TypeScript type:
|
|
1532
|
+
|
|
1533
|
+
```ts
|
|
1534
|
+
"amplitude" | "asana" | "ashby" | "atlassian" | "bitrise" | "box" | "buildkite" | "cloudflare" | "contentful" | "context7" | "datadog" | "deel" | "dropbox" | "excalidraw" | "expo" | "figma" | "gem" | "github" | "gitlab" | "gmail" | "gong" | "googlecalendar" | "googlechat" | "googledocs" | "googledrive" | "googleforms" | "googlesheets" | "googleslides" | "googleworkspace" | "greenhouse" | "incidentio" | "ironclad" | "iterable" | "jumpcloud" | "launchdarkly" | "linear" | "logrocket" | "lucid" | "mermaidchart" | "metaview" | "microsoftcalendar" | "microsoftexcel" | "microsoftonedrive" | "microsoftoutlook" | "microsoftteams" | "microsoftword" | "mutiny" | "netsuite" | "notion" | "peopleapi" | "ramp" | "ranger" | "rippling" | "salesforce" | "sendoso" | "sentry" | "slack" | "snowflake" | "stripe" | "symmetrypayroll" | "vantage" | "zoom"
|
|
1535
|
+
```
|
|
1536
|
+
|
|
1537
|
+
Allowed values:
|
|
1538
|
+
|
|
1539
|
+
| Value |
|
|
1540
|
+
|---|
|
|
1541
|
+
| `amplitude` |
|
|
1542
|
+
| `asana` |
|
|
1543
|
+
| `ashby` |
|
|
1544
|
+
| `atlassian` |
|
|
1545
|
+
| `bitrise` |
|
|
1546
|
+
| `box` |
|
|
1547
|
+
| `buildkite` |
|
|
1548
|
+
| `cloudflare` |
|
|
1549
|
+
| `contentful` |
|
|
1550
|
+
| `context7` |
|
|
1551
|
+
| `datadog` |
|
|
1552
|
+
| `deel` |
|
|
1553
|
+
| `dropbox` |
|
|
1554
|
+
| `excalidraw` |
|
|
1555
|
+
| `expo` |
|
|
1556
|
+
| `figma` |
|
|
1557
|
+
| `gem` |
|
|
1558
|
+
| `github` |
|
|
1559
|
+
| `gitlab` |
|
|
1560
|
+
| `gmail` |
|
|
1561
|
+
| `gong` |
|
|
1562
|
+
| `googlecalendar` |
|
|
1563
|
+
| `googlechat` |
|
|
1564
|
+
| `googledocs` |
|
|
1565
|
+
| `googledrive` |
|
|
1566
|
+
| `googleforms` |
|
|
1567
|
+
| `googlesheets` |
|
|
1568
|
+
| `googleslides` |
|
|
1569
|
+
| `googleworkspace` |
|
|
1570
|
+
| `greenhouse` |
|
|
1571
|
+
| `incidentio` |
|
|
1572
|
+
| `ironclad` |
|
|
1573
|
+
| `iterable` |
|
|
1574
|
+
| `jumpcloud` |
|
|
1575
|
+
| `launchdarkly` |
|
|
1576
|
+
| `linear` |
|
|
1577
|
+
| `logrocket` |
|
|
1578
|
+
| `lucid` |
|
|
1579
|
+
| `mermaidchart` |
|
|
1580
|
+
| `metaview` |
|
|
1581
|
+
| `microsoftcalendar` |
|
|
1582
|
+
| `microsoftexcel` |
|
|
1583
|
+
| `microsoftonedrive` |
|
|
1584
|
+
| `microsoftoutlook` |
|
|
1585
|
+
| `microsoftteams` |
|
|
1586
|
+
| `microsoftword` |
|
|
1587
|
+
| `mutiny` |
|
|
1588
|
+
| `netsuite` |
|
|
1589
|
+
| `notion` |
|
|
1590
|
+
| `peopleapi` |
|
|
1591
|
+
| `ramp` |
|
|
1592
|
+
| `ranger` |
|
|
1593
|
+
| `rippling` |
|
|
1594
|
+
| `salesforce` |
|
|
1595
|
+
| `sendoso` |
|
|
1596
|
+
| `sentry` |
|
|
1597
|
+
| `slack` |
|
|
1598
|
+
| `snowflake` |
|
|
1599
|
+
| `stripe` |
|
|
1600
|
+
| `symmetrypayroll` |
|
|
1601
|
+
| `vantage` |
|
|
1602
|
+
| `zoom` |
|
|
1603
|
+
|
|
1604
|
+
Referenced by:
|
|
1605
|
+
|
|
1606
|
+
| Kind | Entity | Field |
|
|
1607
|
+
|---|---|---|
|
|
1608
|
+
| type | `AvatarSource` | `source` |
|
|
1609
|
+
| type | `AvatarStackSource` | `source` |
|
|
1610
|
+
|
|
1529
1611
|
## BadgeAppearance
|
|
1530
1612
|
|
|
1531
1613
|
TypeScript type:
|
|
@@ -1694,7 +1776,7 @@ Referenced by:
|
|
|
1694
1776
|
TypeScript type:
|
|
1695
1777
|
|
|
1696
1778
|
```ts
|
|
1697
|
-
"base" | "pill" | "text" | "small"
|
|
1779
|
+
"base" | "pill" | "text" | "small" | "icon"
|
|
1698
1780
|
```
|
|
1699
1781
|
|
|
1700
1782
|
Allowed values:
|
|
@@ -1705,6 +1787,7 @@ Allowed values:
|
|
|
1705
1787
|
| `pill` |
|
|
1706
1788
|
| `text` |
|
|
1707
1789
|
| `small` |
|
|
1790
|
+
| `icon` |
|
|
1708
1791
|
|
|
1709
1792
|
Referenced by:
|
|
1710
1793
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# custom-apps Catalog
|
|
3
3
|
|
|
4
4
|
Catalog: `custom-apps`
|
|
5
|
-
Version: `2.0
|
|
5
|
+
Version: `2.1.0`
|
|
6
6
|
SDK language: `typescript`
|
|
7
7
|
|
|
8
8
|
Use this catalog index after you have chosen this catalog for the spec. Do not mix components, actions, computed functions, or render helpers from another catalog unless that catalog explicitly documents compatibility.
|
|
@@ -92,28 +92,16 @@ Asset displayed on the action card
|
|
|
92
92
|
|
|
93
93
|
No additional properties.
|
|
94
94
|
|
|
95
|
-
## AvatarHeader
|
|
96
|
-
|
|
97
|
-
HTTP headers to attach to the image request
|
|
98
|
-
|
|
99
|
-
### Fields
|
|
100
|
-
|
|
101
|
-
_No fields._
|
|
102
|
-
|
|
103
|
-
Additional properties: string.
|
|
104
|
-
|
|
105
95
|
## AvatarSource
|
|
106
96
|
|
|
107
|
-
|
|
97
|
+
Catalog product logo
|
|
108
98
|
|
|
109
99
|
### Fields
|
|
110
100
|
|
|
111
101
|
| Name | Required | Type | Description |
|
|
112
102
|
|---|---:|---|---|
|
|
113
|
-
| `
|
|
114
|
-
| `
|
|
115
|
-
| `uri` | yes | string | Remote image URI |
|
|
116
|
-
| `width` | no | number | Intrinsic width hint in logical pixels |
|
|
103
|
+
| `source` | yes | [AvatarSourceSource](./definitions.md#avatarsourcesource) | Logo slug from the generated catalog, for example "slack" |
|
|
104
|
+
| `type` | yes | "logo" | Selects a catalog product logo |
|
|
117
105
|
|
|
118
106
|
No additional properties.
|
|
119
107
|
|
|
@@ -124,33 +112,21 @@ No additional properties.
|
|
|
124
112
|
| Name | Required | Type | Description |
|
|
125
113
|
|---|---:|---|---|
|
|
126
114
|
| `recyclingKey` | no | string | Key to prevent showing previous image during recycling |
|
|
127
|
-
| `source` | no | [AvatarSource](./definitions.md#avatarsource) \| string \| [AvatarStackSource](./types.md#avatarstacksource) \| [AvatarStackSource](./types.md#avatarstacksource) | Remote photo URL
|
|
115
|
+
| `source` | no | [AvatarStackSource](./types.md#avatarstacksource) \| [AvatarSource](./definitions.md#avatarsource) \| string \| [AvatarStackSource](./types.md#avatarstacksource) \| [AvatarStackSource](./types.md#avatarstacksource) | Remote photo URL, Pebble icon name, or catalog logo { type: "logo", source: "slack" } |
|
|
128
116
|
| `title` | no | string | Initials or short text shown when no source is provided |
|
|
129
117
|
|
|
130
118
|
No additional properties.
|
|
131
119
|
|
|
132
|
-
## AvatarStackHeader
|
|
133
|
-
|
|
134
|
-
HTTP headers to attach to the image request
|
|
135
|
-
|
|
136
|
-
### Fields
|
|
137
|
-
|
|
138
|
-
_No fields._
|
|
139
|
-
|
|
140
|
-
Additional properties: string.
|
|
141
|
-
|
|
142
120
|
## AvatarStackSource
|
|
143
121
|
|
|
144
|
-
|
|
122
|
+
Catalog product logo
|
|
145
123
|
|
|
146
124
|
### Fields
|
|
147
125
|
|
|
148
126
|
| Name | Required | Type | Description |
|
|
149
127
|
|---|---:|---|---|
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
152
|
-
| `uri` | yes | string | Remote image URI |
|
|
153
|
-
| `width` | no | number | Intrinsic width hint in logical pixels |
|
|
128
|
+
| `source` | yes | [AvatarSourceSource](./definitions.md#avatarsourcesource) | Logo slug from the generated catalog, for example "slack" |
|
|
129
|
+
| `type` | yes | "logo" | Selects a catalog product logo |
|
|
154
130
|
|
|
155
131
|
No additional properties.
|
|
156
132
|
|
|
@@ -836,6 +812,7 @@ Left action: provide title for text button or iconType for icon button
|
|
|
836
812
|
| Name | Required | Type | Description |
|
|
837
813
|
|---|---:|---|---|
|
|
838
814
|
| `iconType` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name to use as the action button |
|
|
815
|
+
| `testID` | no | string | Sets testid on the action button (used for testing purposes) |
|
|
839
816
|
| `title` | no | string | Text label for the action button |
|
|
840
817
|
|
|
841
818
|
No additional properties.
|
|
@@ -1106,6 +1083,7 @@ Right action: provide title for text button or iconType for icon button
|
|
|
1106
1083
|
| Name | Required | Type | Description |
|
|
1107
1084
|
|---|---:|---|---|
|
|
1108
1085
|
| `iconType` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name to use as the action button |
|
|
1086
|
+
| `testID` | no | string | Sets testid on the action button (used for testing purposes) |
|
|
1109
1087
|
| `title` | no | string | Text label for the action button |
|
|
1110
1088
|
|
|
1111
1089
|
No additional properties.
|