@cord-sdk/components
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -19,2 +19,8 @@ 'use strict'; | ||
}; | ||
const InboxSharedAttributes = { | ||
'show-settings': 'boolean', | ||
}; | ||
const InboxSpecificAttributes = { | ||
'show-close-button': 'boolean', | ||
}; | ||
const componentAttributes = { | ||
@@ -25,2 +31,3 @@ Collaboration: { | ||
'show-close-button': 'boolean', | ||
'show-inbox': 'boolean', | ||
'show-presence': 'boolean', | ||
@@ -67,2 +74,3 @@ 'show-all-activity': 'boolean', | ||
'show-close-button': 'boolean', | ||
'show-inbox': 'boolean', | ||
'show-presence': 'boolean', | ||
@@ -97,6 +105,6 @@ 'show-launcher': 'boolean', | ||
'inbox-badge-style': 'badge-style', | ||
'show-inbox-on-click': 'boolean', | ||
...InboxSharedAttributes, | ||
}, | ||
Inbox: { | ||
'show-close-button': 'boolean', | ||
}, | ||
Inbox: { ...InboxSharedAttributes, ...InboxSpecificAttributes }, | ||
}; | ||
@@ -110,3 +118,3 @@ const enumAttributeConverter = (possibleValues) => (value) => value === null | ||
json: (value) => (value ? JSON.parse(value) : undefined), | ||
boolean: (value) => value === 'true', | ||
boolean: (value) => (value === null ? undefined : value === 'true'), | ||
number: (value) => (value ? parseInt(value) : undefined), | ||
@@ -113,0 +121,0 @@ string: (value) => value !== null && value !== void 0 ? value : undefined, |
@@ -23,2 +23,3 @@ import type { BadgeStyle, JsonValue, Orientation } from '@cord-sdk/types'; | ||
readonly 'show-close-button': "boolean"; | ||
readonly 'show-inbox': "boolean"; | ||
readonly 'show-presence': "boolean"; | ||
@@ -65,2 +66,3 @@ readonly 'show-all-activity': "boolean"; | ||
readonly 'show-close-button': "boolean"; | ||
readonly 'show-inbox': "boolean"; | ||
readonly 'show-presence': "boolean"; | ||
@@ -92,8 +94,11 @@ readonly 'show-launcher': "boolean"; | ||
readonly InboxLauncher: { | ||
readonly 'show-settings': "boolean"; | ||
readonly label: "string"; | ||
readonly 'icon-url': "string"; | ||
readonly 'inbox-badge-style': "badge-style"; | ||
readonly 'show-inbox-on-click': "boolean"; | ||
}; | ||
readonly Inbox: { | ||
readonly 'show-close-button': "boolean"; | ||
readonly 'show-settings': "boolean"; | ||
}; | ||
@@ -100,0 +105,0 @@ }; |
@@ -15,2 +15,8 @@ const componentNames = { | ||
}; | ||
const InboxSharedAttributes = { | ||
'show-settings': 'boolean', | ||
}; | ||
const InboxSpecificAttributes = { | ||
'show-close-button': 'boolean', | ||
}; | ||
const componentAttributes = { | ||
@@ -21,2 +27,3 @@ Collaboration: { | ||
'show-close-button': 'boolean', | ||
'show-inbox': 'boolean', | ||
'show-presence': 'boolean', | ||
@@ -63,2 +70,3 @@ 'show-all-activity': 'boolean', | ||
'show-close-button': 'boolean', | ||
'show-inbox': 'boolean', | ||
'show-presence': 'boolean', | ||
@@ -93,6 +101,6 @@ 'show-launcher': 'boolean', | ||
'inbox-badge-style': 'badge-style', | ||
'show-inbox-on-click': 'boolean', | ||
...InboxSharedAttributes, | ||
}, | ||
Inbox: { | ||
'show-close-button': 'boolean', | ||
}, | ||
Inbox: { ...InboxSharedAttributes, ...InboxSpecificAttributes }, | ||
}; | ||
@@ -106,3 +114,3 @@ const enumAttributeConverter = (possibleValues) => (value) => value === null | ||
json: (value) => (value ? JSON.parse(value) : undefined), | ||
boolean: (value) => value === 'true', | ||
boolean: (value) => (value === null ? undefined : value === 'true'), | ||
number: (value) => (value ? parseInt(value) : undefined), | ||
@@ -109,0 +117,0 @@ string: (value) => value !== null && value !== void 0 ? value : undefined, |
{ | ||
"name": "@cord-sdk/components", | ||
"description": "Structured information about the Cord web components", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"homepage": "https://docs.cord.com/", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@cord-sdk/types": "0.0.13" | ||
"@cord-sdk/types": "0.0.14" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18636
421
0
+ Added@cord-sdk/types@0.0.14(transitive)
- Removed@cord-sdk/types@0.0.13(transitive)
Updated@cord-sdk/types@0.0.14