cozy-ui-plus 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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/babel.config.js +24 -0
- package/dist/AppIcon/index.js +265 -0
- package/dist/AppLinker/index.js +159 -0
- package/dist/AppLinker/native.config.js +8 -0
- package/dist/AppLinker/native.js +81 -0
- package/dist/AppSections/Sections.js +461 -0
- package/dist/AppSections/_mockApps.js +210 -0
- package/dist/AppSections/_testApps.js +162 -0
- package/dist/AppSections/categories.js +183 -0
- package/dist/AppSections/components/AppsSection.js +112 -0
- package/dist/AppSections/components/DropdownFilter.js +101 -0
- package/dist/AppSections/constants.js +16 -0
- package/dist/AppSections/generateI18nConfig.js +37 -0
- package/dist/AppSections/helpers.js +28 -0
- package/dist/AppSections/index.js +24 -0
- package/dist/AppSections/search.js +161 -0
- package/dist/AppTile/helpers.js +41 -0
- package/dist/AppTile/index.js +171 -0
- package/dist/CipherIcon/index.js +102 -0
- package/dist/CollectionField/index.js +166 -0
- package/dist/ContactPicker/index.js +129 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/helpers.js +31 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/index.js +106 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/locales/index.js +113 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInput.js +164 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputAccordion.js +91 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputArray.js +105 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputLayout.js +98 -0
- package/dist/Contacts/AddModal/ContactForm/FieldInputWrapper.js +51 -0
- package/dist/Contacts/AddModal/ContactForm/HasValueCondition.js +44 -0
- package/dist/Contacts/AddModal/ContactForm/RelatedContactList.js +55 -0
- package/dist/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.js +104 -0
- package/dist/Contacts/AddModal/ContactForm/TextFieldSelect.js +59 -0
- package/dist/Contacts/AddModal/ContactForm/contactToFormValues.js +119 -0
- package/dist/Contacts/AddModal/ContactForm/fieldsConfig.js +314 -0
- package/dist/Contacts/AddModal/ContactForm/formValuesToContact.js +110 -0
- package/dist/Contacts/AddModal/ContactForm/helpers.js +466 -0
- package/dist/Contacts/AddModal/ContactForm/index.js +184 -0
- package/dist/Contacts/AddModal/ContactForm/locales/index.js +313 -0
- package/dist/Contacts/AddModal/CustomLabelDialog/index.js +138 -0
- package/dist/Contacts/AddModal/CustomLabelDialog/locales/index.js +73 -0
- package/dist/Contacts/AddModal/index.js +134 -0
- package/dist/Contacts/AddModal/locales/index.js +65 -0
- package/dist/Contacts/AddModal/mocks.js +265 -0
- package/dist/Contacts/AddModal/types.js +110 -0
- package/dist/Contacts/GroupsSelect/GroupCreation.js +157 -0
- package/dist/Contacts/GroupsSelect/GroupsSelect.js +207 -0
- package/dist/Contacts/GroupsSelect/GroupsSelectProvider.js +60 -0
- package/dist/Contacts/GroupsSelect/SelectBox/Control.js +54 -0
- package/dist/Contacts/GroupsSelect/SelectBox/EditGroupName.js +89 -0
- package/dist/Contacts/GroupsSelect/SelectBox/Menu.js +49 -0
- package/dist/Contacts/GroupsSelect/SelectBox/Option.js +80 -0
- package/dist/Contacts/GroupsSelect/SelectBox/SelectContainer.js +25 -0
- package/dist/Contacts/GroupsSelect/helpers.js +45 -0
- package/dist/Contacts/GroupsSelect/locales/index.js +97 -0
- package/dist/Contacts/GroupsSelect/useGroupSelect.js +196 -0
- package/dist/Contacts/Header/GroupsSelection.js +101 -0
- package/dist/Contacts/Header/ImportDropdown.js +115 -0
- package/dist/Contacts/Header/SearchInput.js +40 -0
- package/dist/Contacts/Header/index.js +93 -0
- package/dist/Contacts/Header/locales/index.js +73 -0
- package/dist/ContactsList/ContactCell.js +45 -0
- package/dist/ContactsList/ContactRow.js +84 -0
- package/dist/ContactsList/Contacts/ContactCozy.js +44 -0
- package/dist/ContactsList/Contacts/ContactEmail.js +44 -0
- package/dist/ContactsList/Contacts/ContactIdentity.js +86 -0
- package/dist/ContactsList/Contacts/ContactName.js +48 -0
- package/dist/ContactsList/Contacts/ContactPhone.js +44 -0
- package/dist/ContactsList/ContactsList.js +74 -0
- package/dist/ContactsList/helpers.js +156 -0
- package/dist/ContactsList/index.js +13 -0
- package/dist/ContactsList/locales/withContactsListLocales.js +42 -0
- package/dist/ContactsListModal/AddContact/AddContactActions.js +32 -0
- package/dist/ContactsListModal/AddContact/AddContactContent.js +85 -0
- package/dist/ContactsListModal/AddContact/AddContactDialog.js +63 -0
- package/dist/ContactsListModal/AddContact/AddContactTitle.js +21 -0
- package/dist/ContactsListModal/AddContact/helpers.js +61 -0
- package/dist/ContactsListModal/ContactsListContent.js +88 -0
- package/dist/ContactsListModal/ContactsListModal.js +178 -0
- package/dist/ContactsListModal/ContactsListModalWithQuery.js +44 -0
- package/dist/ContactsListModal/EmptyMessage.js +33 -0
- package/dist/ContactsListModal/MobileHeader.js +67 -0
- package/dist/ContactsListModal/index.js +58 -0
- package/dist/ContactsListModal/mockClient.js +2009 -0
- package/dist/ContactsListModal/queries.js +26 -0
- package/dist/ContactsListModal/withContactsListLocales.js +40 -0
- package/dist/Dialogs/AuthenticationDialogs/index.js +139 -0
- package/dist/Field/index.js +297 -0
- package/dist/FileImageLoader/checkImageSource.js +61 -0
- package/dist/FileImageLoader/index.js +394 -0
- package/dist/FilePicker/FilePickerBody.js +108 -0
- package/dist/FilePicker/FilePickerBodyItem.js +132 -0
- package/dist/FilePicker/FilePickerBreadcrumb.js +74 -0
- package/dist/FilePicker/FilePickerFooter.js +91 -0
- package/dist/FilePicker/FilePickerHeader.js +110 -0
- package/dist/FilePicker/docs/DemoProvider.js +280 -0
- package/dist/FilePicker/helpers.js +57 -0
- package/dist/FilePicker/index.js +125 -0
- package/dist/FilePicker/queries.js +61 -0
- package/dist/Intent/IntentDialogOpener/index.js +142 -0
- package/dist/Intent/IntentIframe/index.js +182 -0
- package/dist/ListItem/ExpandedAttributes/ExpandedAttribute.js +64 -0
- package/dist/ListItem/ExpandedAttributes/helpers.js +263 -0
- package/dist/ListItem/ExpandedAttributes/index.js +90 -0
- package/dist/ListItem/ListItemBase/Renaming/RenameDialog.js +52 -0
- package/dist/ListItem/ListItemBase/Renaming/RenameInput.js +319 -0
- package/dist/ListItem/ListItemBase/Renaming/helpers.js +73 -0
- package/dist/ListItem/ListItemBase/index.js +153 -0
- package/dist/ListItem/ListItemByDoc/index.js +109 -0
- package/dist/ListItem/ListItemContact/helpers.js +39 -0
- package/dist/ListItem/ListItemContact/index.js +87 -0
- package/dist/ListItem/ListItemContact/useActions.js +28 -0
- package/dist/ListItem/ListItemFile/ExpirationAnnotation.js +54 -0
- package/dist/ListItem/ListItemFile/ItemIcon.js +61 -0
- package/dist/ListItem/ListItemFile/PrimaryText.js +47 -0
- package/dist/ListItem/ListItemFile/SecondaryText.js +41 -0
- package/dist/ListItem/ListItemFile/index.js +96 -0
- package/dist/ListItem/hoc/withListItemLocales.js +322 -0
- package/dist/Paywall/MaxAccountsByKonnectorPaywall.js +48 -0
- package/dist/Paywall/MaxAccountsPaywall.js +43 -0
- package/dist/Paywall/MaxDaysToCapturePaywall.js +43 -0
- package/dist/Paywall/MaxPapersPaywall.js +44 -0
- package/dist/Paywall/OnlyOfficePaywall.js +41 -0
- package/dist/Paywall/PasswordSharingPaywall.js +34 -0
- package/dist/Paywall/Paywall.js +205 -0
- package/dist/Paywall/QuotaPaywall.js +32 -0
- package/dist/Paywall/helpers.js +31 -0
- package/dist/Paywall/index.js +63 -0
- package/dist/Paywall/locales/withPaywallLocales.js +401 -0
- package/dist/Qualification/QualificationGrid/helpers.js +16 -0
- package/dist/Qualification/QualificationGrid/index.js +136 -0
- package/dist/Qualification/QualificationGrid/locales/withLocales.js +82 -0
- package/dist/Qualification/QualificationIcon/index.js +156 -0
- package/dist/Qualification/QualificationItem/index.js +87 -0
- package/dist/Qualification/QualificationModal/helpers.js +95 -0
- package/dist/Qualification/QualificationModal/index.js +121 -0
- package/dist/Qualification/QualificationModal/locales/index.js +37 -0
- package/dist/ShortcutTile/index.js +68 -0
- package/dist/SquareAppIcon/index.js +262 -0
- package/dist/Storage/StorageButton.js +54 -0
- package/dist/Storage/StorageProgress.js +68 -0
- package/dist/Storage/index.js +49 -0
- package/dist/Storage/locales/index.js +41 -0
- package/dist/UploadQueue/FileUploadProgress.js +86 -0
- package/dist/UploadQueue/Item.js +132 -0
- package/dist/UploadQueue/Pending.js +23 -0
- package/dist/UploadQueue/RemainingTime.js +59 -0
- package/dist/UploadQueue/helpers.js +13 -0
- package/dist/UploadQueue/index.js +277 -0
- package/dist/UploadQueue/useStatusIcon.js +60 -0
- package/dist/hooks/useClientErrors.js +185 -0
- package/dist/proptypes.js +33 -0
- package/dist/providers/CozyTheme/CozyThemeWithQuery.js +41 -0
- package/dist/providers/CozyTheme/index.js +58 -0
- package/dist/providers/CozyTheme/queries.js +25 -0
- package/dist/providers/DemoProvider.js +49 -0
- package/dist/providers/Intent/index.js +130 -0
- package/dist/src/AppIcon/index.d.ts +50 -0
- package/dist/src/AppIcon/index.spec.d.ts +1 -0
- package/dist/src/AppLinker/index.d.ts +35 -0
- package/dist/src/AppLinker/index.spec.d.ts +1 -0
- package/dist/src/AppLinker/native.config.d.ts +1 -0
- package/dist/src/AppLinker/native.d.ts +6 -0
- package/dist/src/AppLinker/native.spec.d.ts +1 -0
- package/dist/src/AppSections/Sections.d.ts +49 -0
- package/dist/src/AppSections/_mockApps.d.ts +242 -0
- package/dist/src/AppSections/_testApps.d.ts +203 -0
- package/dist/src/AppSections/categories.d.ts +7 -0
- package/dist/src/AppSections/categories.spec.d.ts +1 -0
- package/dist/src/AppSections/components/AppsSection.d.ts +20 -0
- package/dist/src/AppSections/components/AppsSection.spec.d.ts +1 -0
- package/dist/src/AppSections/components/DropdownFilter.d.ts +17 -0
- package/dist/src/AppSections/constants.d.ts +8 -0
- package/dist/src/AppSections/generateI18nConfig.d.ts +4 -0
- package/dist/src/AppSections/helpers.d.ts +2 -0
- package/dist/src/AppSections/helpers.spec.d.ts +1 -0
- package/dist/src/AppSections/index.d.ts +3 -0
- package/dist/src/AppSections/index.spec.d.ts +1 -0
- package/dist/src/AppSections/search.d.ts +3 -0
- package/dist/src/AppSections/search.spec.d.ts +1 -0
- package/dist/src/AppTile/AppTile.spec.d.ts +1 -0
- package/dist/src/AppTile/helpers.d.ts +9 -0
- package/dist/src/AppTile/index.d.ts +33 -0
- package/dist/src/CipherIcon/index.d.ts +2 -0
- package/dist/src/CipherIcon/index.spec.d.ts +1 -0
- package/dist/src/CollectionField/index.d.ts +23 -0
- package/dist/src/ContactPicker/index.d.ts +21 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/helpers.d.ts +4 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/helpers.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/index.d.ts +39 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInput.d.ts +39 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputAccordion.d.ts +12 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputArray.d.ts +14 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputLayout.d.ts +22 -0
- package/dist/src/Contacts/AddModal/ContactForm/FieldInputWrapper.d.ts +19 -0
- package/dist/src/Contacts/AddModal/ContactForm/HasValueCondition.d.ts +18 -0
- package/dist/src/Contacts/AddModal/ContactForm/HasValueCondition.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/RelatedContactList.d.ts +15 -0
- package/dist/src/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.d.ts +9 -0
- package/dist/src/Contacts/AddModal/ContactForm/TextFieldSelect.d.ts +5 -0
- package/dist/src/Contacts/AddModal/ContactForm/contactToFormValues.d.ts +6 -0
- package/dist/src/Contacts/AddModal/ContactForm/contactToFormValues.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/fieldsConfig.d.ts +4 -0
- package/dist/src/Contacts/AddModal/ContactForm/formValuesToContact.d.ts +7 -0
- package/dist/src/Contacts/AddModal/ContactForm/formValuesToContact.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/helpers.d.ts +35 -0
- package/dist/src/Contacts/AddModal/ContactForm/helpers.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/index.d.ts +17 -0
- package/dist/src/Contacts/AddModal/ContactForm/index.spec.d.ts +1 -0
- package/dist/src/Contacts/AddModal/ContactForm/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/CustomLabelDialog/index.d.ts +22 -0
- package/dist/src/Contacts/AddModal/CustomLabelDialog/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/index.d.ts +8 -0
- package/dist/src/Contacts/AddModal/locales/index.d.ts +10 -0
- package/dist/src/Contacts/AddModal/mocks.d.ts +276 -0
- package/dist/src/Contacts/AddModal/types.d.ts +188 -0
- package/dist/src/Contacts/GroupsSelect/GroupCreation.d.ts +3 -0
- package/dist/src/Contacts/GroupsSelect/GroupsSelect.d.ts +56 -0
- package/dist/src/Contacts/GroupsSelect/GroupsSelect.spec.d.ts +22 -0
- package/dist/src/Contacts/GroupsSelect/GroupsSelectProvider.d.ts +5 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/Control.d.ts +14 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/EditGroupName.d.ts +7 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/Menu.d.ts +7 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/Option.d.ts +18 -0
- package/dist/src/Contacts/GroupsSelect/SelectBox/SelectContainer.d.ts +2 -0
- package/dist/src/Contacts/GroupsSelect/helpers.d.ts +9 -0
- package/dist/src/Contacts/GroupsSelect/locales/index.d.ts +10 -0
- package/dist/src/Contacts/GroupsSelect/useGroupSelect.d.ts +11 -0
- package/dist/src/Contacts/Header/GroupsSelection.d.ts +7 -0
- package/dist/src/Contacts/Header/ImportDropdown.d.ts +4 -0
- package/dist/src/Contacts/Header/SearchInput.d.ts +4 -0
- package/dist/src/Contacts/Header/index.d.ts +26 -0
- package/dist/src/Contacts/Header/locales/index.d.ts +10 -0
- package/dist/src/ContactsList/ContactCell.d.ts +8 -0
- package/dist/src/ContactsList/ContactRow.d.ts +16 -0
- package/dist/src/ContactsList/ContactRow.spec.d.ts +1 -0
- package/dist/src/ContactsList/Contacts/ContactCozy.d.ts +14 -0
- package/dist/src/ContactsList/Contacts/ContactEmail.d.ts +14 -0
- package/dist/src/ContactsList/Contacts/ContactIdentity.d.ts +10 -0
- package/dist/src/ContactsList/Contacts/ContactName.d.ts +10 -0
- package/dist/src/ContactsList/Contacts/ContactPhone.d.ts +14 -0
- package/dist/src/ContactsList/ContactsList.d.ts +2 -0
- package/dist/src/ContactsList/helpers.d.ts +9 -0
- package/dist/src/ContactsList/helpers.spec.d.ts +1 -0
- package/dist/src/ContactsList/index.d.ts +2 -0
- package/dist/src/ContactsList/locales/withContactsListLocales.d.ts +12 -0
- package/dist/src/ContactsListModal/AddContact/AddContactActions.d.ts +2 -0
- package/dist/src/ContactsListModal/AddContact/AddContactContent.d.ts +2 -0
- package/dist/src/ContactsListModal/AddContact/AddContactDialog.d.ts +6 -0
- package/dist/src/ContactsListModal/AddContact/AddContactTitle.d.ts +2 -0
- package/dist/src/ContactsListModal/AddContact/helpers.d.ts +6 -0
- package/dist/src/ContactsListModal/AddContact/helpers.spec.d.ts +1 -0
- package/dist/src/ContactsListModal/ContactsListContent.d.ts +2 -0
- package/dist/src/ContactsListModal/ContactsListModal.d.ts +20 -0
- package/dist/src/ContactsListModal/ContactsListModalWithQuery.d.ts +12 -0
- package/dist/src/ContactsListModal/EmptyMessage.d.ts +2 -0
- package/dist/src/ContactsListModal/MobileHeader.d.ts +16 -0
- package/dist/src/ContactsListModal/index.d.ts +2 -0
- package/dist/src/ContactsListModal/mockClient.d.ts +3 -0
- package/dist/src/ContactsListModal/queries.d.ts +7 -0
- package/dist/src/ContactsListModal/withContactsListLocales.d.ts +7 -0
- package/dist/src/Dialogs/AuthenticationDialogs/index.d.ts +2 -0
- package/dist/src/Field/index.d.ts +53 -0
- package/dist/src/Field/index.spec.d.ts +1 -0
- package/dist/src/FileImageLoader/checkImageSource.d.ts +1 -0
- package/dist/src/FileImageLoader/index.d.ts +45 -0
- package/dist/src/FileImageLoader/index.spec.d.ts +1 -0
- package/dist/src/FilePicker/FilePickerBody.d.ts +19 -0
- package/dist/src/FilePicker/FilePickerBodyItem.d.ts +22 -0
- package/dist/src/FilePicker/FilePickerBodyItem.spec.d.ts +1 -0
- package/dist/src/FilePicker/FilePickerBreadcrumb.d.ts +13 -0
- package/dist/src/FilePicker/FilePickerFooter.d.ts +15 -0
- package/dist/src/FilePicker/FilePickerFooter.spec.d.ts +1 -0
- package/dist/src/FilePicker/FilePickerHeader.d.ts +14 -0
- package/dist/src/FilePicker/docs/DemoProvider.d.ts +23 -0
- package/dist/src/FilePicker/helpers.d.ts +3 -0
- package/dist/src/FilePicker/helpers.spec.d.ts +1 -0
- package/dist/src/FilePicker/index.d.ts +22 -0
- package/dist/src/FilePicker/queries.d.ts +14 -0
- package/dist/src/Intent/IntentDialogOpener/index.d.ts +32 -0
- package/dist/src/Intent/IntentIframe/index.d.ts +8 -0
- package/dist/src/ListItem/ExpandedAttributes/ExpandedAttribute.d.ts +14 -0
- package/dist/src/ListItem/ExpandedAttributes/helpers.d.ts +43 -0
- package/dist/src/ListItem/ExpandedAttributes/helpers.spec.d.ts +1 -0
- package/dist/src/ListItem/ExpandedAttributes/index.d.ts +2 -0
- package/dist/src/ListItem/ListItemBase/Renaming/RenameDialog.d.ts +2 -0
- package/dist/src/ListItem/ListItemBase/Renaming/RenameInput.d.ts +12 -0
- package/dist/src/ListItem/ListItemBase/Renaming/helpers.d.ts +1 -0
- package/dist/src/ListItem/ListItemBase/index.d.ts +2 -0
- package/dist/src/ListItem/ListItemByDoc/index.d.ts +46 -0
- package/dist/src/ListItem/ListItemContact/helpers.d.ts +1 -0
- package/dist/src/ListItem/ListItemContact/helpers.spec.d.ts +1 -0
- package/dist/src/ListItem/ListItemContact/index.d.ts +35 -0
- package/dist/src/ListItem/ListItemContact/useActions.d.ts +2 -0
- package/dist/src/ListItem/ListItemFile/ExpirationAnnotation.d.ts +2 -0
- package/dist/src/ListItem/ListItemFile/ItemIcon.d.ts +12 -0
- package/dist/src/ListItem/ListItemFile/PrimaryText.d.ts +12 -0
- package/dist/src/ListItem/ListItemFile/SecondaryText.d.ts +12 -0
- package/dist/src/ListItem/ListItemFile/index.d.ts +37 -0
- package/dist/src/ListItem/hoc/withListItemLocales.d.ts +12 -0
- package/dist/src/Paywall/MaxAccountsByKonnectorPaywall.d.ts +2 -0
- package/dist/src/Paywall/MaxAccountsPaywall.d.ts +2 -0
- package/dist/src/Paywall/MaxDaysToCapturePaywall.d.ts +2 -0
- package/dist/src/Paywall/MaxPapersPaywall.d.ts +2 -0
- package/dist/src/Paywall/OnlyOfficePaywall.d.ts +16 -0
- package/dist/src/Paywall/PasswordSharingPaywall.d.ts +10 -0
- package/dist/src/Paywall/Paywall.d.ts +2 -0
- package/dist/src/Paywall/Paywall.spec.d.ts +1 -0
- package/dist/src/Paywall/QuotaPaywall.d.ts +13 -0
- package/dist/src/Paywall/helpers.d.ts +1 -0
- package/dist/src/Paywall/index.d.ts +7 -0
- package/dist/src/Paywall/locales/withPaywallLocales.d.ts +2 -0
- package/dist/src/Qualification/QualificationGrid/helpers.d.ts +1 -0
- package/dist/src/Qualification/QualificationGrid/index.d.ts +2 -0
- package/dist/src/Qualification/QualificationGrid/locales/withLocales.d.ts +12 -0
- package/dist/src/Qualification/QualificationIcon/index.d.ts +13 -0
- package/dist/src/Qualification/QualificationItem/index.d.ts +17 -0
- package/dist/src/Qualification/QualificationModal/helpers.d.ts +14 -0
- package/dist/src/Qualification/QualificationModal/helpers.spec.d.ts +1 -0
- package/dist/src/Qualification/QualificationModal/index.d.ts +16 -0
- package/dist/src/Qualification/QualificationModal/locales/index.d.ts +10 -0
- package/dist/src/ShortcutTile/index.d.ts +13 -0
- package/dist/src/SquareAppIcon/SquareAppIcon.spec.d.ts +1 -0
- package/dist/src/SquareAppIcon/index.d.ts +26 -0
- package/dist/src/Storage/StorageButton.d.ts +4 -0
- package/dist/src/Storage/StorageProgress.d.ts +5 -0
- package/dist/src/Storage/index.d.ts +14 -0
- package/dist/src/Storage/locales/index.d.ts +10 -0
- package/dist/src/UploadQueue/FileUploadProgress.d.ts +4 -0
- package/dist/src/UploadQueue/Item.d.ts +3 -0
- package/dist/src/UploadQueue/Pending.d.ts +3 -0
- package/dist/src/UploadQueue/RemainingTime.d.ts +4 -0
- package/dist/src/UploadQueue/helpers.d.ts +1 -0
- package/dist/src/UploadQueue/index.d.ts +42 -0
- package/dist/src/UploadQueue/index.spec.d.ts +1 -0
- package/dist/src/UploadQueue/useStatusIcon.d.ts +1 -0
- package/dist/src/hooks/useClientErrors.d.ts +29 -0
- package/dist/src/hooks/useClientErrors.spec.d.ts +1 -0
- package/dist/src/proptypes.d.ts +18 -0
- package/dist/src/providers/CozyTheme/CozyThemeWithQuery.d.ts +2 -0
- package/dist/src/providers/CozyTheme/index.d.ts +24 -0
- package/dist/src/providers/CozyTheme/queries.d.ts +8 -0
- package/dist/src/providers/DemoProvider.d.ts +6 -0
- package/dist/src/providers/Intent/index.d.ts +9 -0
- package/dist/stylesheet.css +898 -0
- package/dist/test/I18n.d.ts +6 -0
- package/dist/types.d.js +1 -0
- package/jest.config.js +20 -0
- package/package.json +76 -0
- package/preprocess.js +16 -0
- package/src/AppIcon/Readme.md +96 -0
- package/src/AppIcon/index.jsx +168 -0
- package/src/AppIcon/index.spec.js +145 -0
- package/src/AppIcon/styles.styl +37 -0
- package/src/AppLinker/Readme.md +32 -0
- package/src/AppLinker/__snapshots__/index.spec.jsx.snap +13 -0
- package/src/AppLinker/index.jsx +107 -0
- package/src/AppLinker/index.spec.jsx +60 -0
- package/src/AppLinker/native.config.js +1 -0
- package/src/AppLinker/native.js +57 -0
- package/src/AppLinker/native.spec.js +120 -0
- package/src/AppSections/Readme.md +35 -0
- package/src/AppSections/Sections.jsx +285 -0
- package/src/AppSections/Sections.styl +4 -0
- package/src/AppSections/__snapshots__/search.spec.js.snap +972 -0
- package/src/AppSections/_mockApps.js +197 -0
- package/src/AppSections/_testApps.js +151 -0
- package/src/AppSections/categories.js +138 -0
- package/src/AppSections/categories.spec.js +289 -0
- package/src/AppSections/components/AppsSection.jsx +82 -0
- package/src/AppSections/components/AppsSection.spec.jsx +50 -0
- package/src/AppSections/components/AppsSection.styl +7 -0
- package/src/AppSections/components/DropdownFilter.jsx +50 -0
- package/src/AppSections/components/DropdownFilter.styl +14 -0
- package/src/AppSections/constants.js +9 -0
- package/src/AppSections/generateI18nConfig.ts +23 -0
- package/src/AppSections/helpers.js +16 -0
- package/src/AppSections/helpers.spec.js +40 -0
- package/src/AppSections/index.jsx +3 -0
- package/src/AppSections/index.spec.jsx +137 -0
- package/src/AppSections/locales/en.json +37 -0
- package/src/AppSections/locales/fr.json +37 -0
- package/src/AppSections/locales/ru.json +37 -0
- package/src/AppSections/locales/vi.json +37 -0
- package/src/AppSections/search.js +104 -0
- package/src/AppSections/search.spec.js +158 -0
- package/src/AppTile/AppTile.spec.jsx +117 -0
- package/src/AppTile/Readme.md +24 -0
- package/src/AppTile/helpers.js +25 -0
- package/src/AppTile/index.jsx +139 -0
- package/src/AppTile/locales/en.json +9 -0
- package/src/AppTile/locales/fr.json +9 -0
- package/src/AppTile/locales/ru.json +9 -0
- package/src/AppTile/locales/vi.json +9 -0
- package/src/AppTile/styles.styl +27 -0
- package/src/CipherIcon/Readme.md +14 -0
- package/src/CipherIcon/index.jsx +46 -0
- package/src/CipherIcon/index.spec.jsx +53 -0
- package/src/CollectionField/Readme.md +41 -0
- package/src/CollectionField/index.jsx +141 -0
- package/src/CollectionField/styles.styl +15 -0
- package/src/ContactPicker/Readme.md +26 -0
- package/src/ContactPicker/index.jsx +86 -0
- package/src/ContactPicker/styles.styl +5 -0
- package/src/Contacts/AddModal/ContactAddressDialog/helpers.js +22 -0
- package/src/Contacts/AddModal/ContactAddressDialog/helpers.spec.js +64 -0
- package/src/Contacts/AddModal/ContactAddressDialog/index.jsx +85 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/en.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/fr.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/ru.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/vi.json +25 -0
- package/src/Contacts/AddModal/ContactForm/FieldInput.jsx +124 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputAccordion.jsx +58 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputArray.jsx +81 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputLayout.jsx +77 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputWrapper.jsx +44 -0
- package/src/Contacts/AddModal/ContactForm/HasValueCondition.jsx +31 -0
- package/src/Contacts/AddModal/ContactForm/HasValueCondition.spec.jsx +79 -0
- package/src/Contacts/AddModal/ContactForm/RelatedContactList.jsx +37 -0
- package/src/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.jsx +79 -0
- package/src/Contacts/AddModal/ContactForm/TextFieldSelect.jsx +40 -0
- package/src/Contacts/AddModal/ContactForm/__snapshots__/HasValueCondition.spec.jsx.snap +33 -0
- package/src/Contacts/AddModal/ContactForm/contactToFormValues.js +109 -0
- package/src/Contacts/AddModal/ContactForm/contactToFormValues.spec.js +133 -0
- package/src/Contacts/AddModal/ContactForm/fieldsConfig.jsx +357 -0
- package/src/Contacts/AddModal/ContactForm/formValuesToContact.js +111 -0
- package/src/Contacts/AddModal/ContactForm/formValuesToContact.spec.js +557 -0
- package/src/Contacts/AddModal/ContactForm/helpers.js +393 -0
- package/src/Contacts/AddModal/ContactForm/helpers.spec.js +391 -0
- package/src/Contacts/AddModal/ContactForm/index.jsx +138 -0
- package/src/Contacts/AddModal/ContactForm/index.spec.jsx +301 -0
- package/src/Contacts/AddModal/ContactForm/locales/en.json +75 -0
- package/src/Contacts/AddModal/ContactForm/locales/fr.json +75 -0
- package/src/Contacts/AddModal/ContactForm/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/ContactForm/locales/ru.json +75 -0
- package/src/Contacts/AddModal/ContactForm/locales/vi.json +75 -0
- package/src/Contacts/AddModal/ContactForm/styles.styl +2 -0
- package/src/Contacts/AddModal/CustomLabelDialog/index.jsx +109 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/en.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/fr.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/ru.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/vi.json +15 -0
- package/src/Contacts/AddModal/Readme.md +55 -0
- package/src/Contacts/AddModal/index.jsx +86 -0
- package/src/Contacts/AddModal/locales/en.json +13 -0
- package/src/Contacts/AddModal/locales/fr.json +13 -0
- package/src/Contacts/AddModal/locales/index.jsx +11 -0
- package/src/Contacts/AddModal/locales/ru.json +13 -0
- package/src/Contacts/AddModal/locales/vi.json +13 -0
- package/src/Contacts/AddModal/mocks.js +299 -0
- package/src/Contacts/AddModal/types.js +102 -0
- package/src/Contacts/GroupsSelect/GroupCreation.jsx +96 -0
- package/src/Contacts/GroupsSelect/GroupsSelect.jsx +159 -0
- package/src/Contacts/GroupsSelect/GroupsSelect.spec.jsx +249 -0
- package/src/Contacts/GroupsSelect/GroupsSelectProvider.jsx +40 -0
- package/src/Contacts/GroupsSelect/Readme.md +1 -0
- package/src/Contacts/GroupsSelect/SelectBox/Control.jsx +37 -0
- package/src/Contacts/GroupsSelect/SelectBox/EditGroupName.jsx +52 -0
- package/src/Contacts/GroupsSelect/SelectBox/Menu.jsx +27 -0
- package/src/Contacts/GroupsSelect/SelectBox/Option.jsx +71 -0
- package/src/Contacts/GroupsSelect/SelectBox/SelectContainer.jsx +15 -0
- package/src/Contacts/GroupsSelect/SelectBox/styles.styl +2 -0
- package/src/Contacts/GroupsSelect/helpers.js +25 -0
- package/src/Contacts/GroupsSelect/locales/en.json +21 -0
- package/src/Contacts/GroupsSelect/locales/fr.json +21 -0
- package/src/Contacts/GroupsSelect/locales/index.jsx +11 -0
- package/src/Contacts/GroupsSelect/locales/ru.json +21 -0
- package/src/Contacts/GroupsSelect/locales/vi.json +21 -0
- package/src/Contacts/GroupsSelect/styles.styl +48 -0
- package/src/Contacts/GroupsSelect/useGroupSelect.jsx +89 -0
- package/src/Contacts/Header/GroupsSelection.jsx +75 -0
- package/src/Contacts/Header/ImportDropdown.jsx +80 -0
- package/src/Contacts/Header/Readme.md +38 -0
- package/src/Contacts/Header/SearchInput.jsx +19 -0
- package/src/Contacts/Header/index.jsx +80 -0
- package/src/Contacts/Header/locales/en.json +15 -0
- package/src/Contacts/Header/locales/fr.json +15 -0
- package/src/Contacts/Header/locales/index.jsx +11 -0
- package/src/Contacts/Header/locales/ru.json +15 -0
- package/src/Contacts/Header/locales/vi.json +15 -0
- package/src/Contacts/Readme.md +1 -0
- package/src/ContactsList/ContactCell.jsx +23 -0
- package/src/ContactsList/ContactRow.jsx +46 -0
- package/src/ContactsList/ContactRow.spec.js +75 -0
- package/src/ContactsList/Contacts/ContactCozy.jsx +23 -0
- package/src/ContactsList/Contacts/ContactEmail.jsx +23 -0
- package/src/ContactsList/Contacts/ContactIdentity.jsx +57 -0
- package/src/ContactsList/Contacts/ContactName.jsx +43 -0
- package/src/ContactsList/Contacts/ContactPhone.jsx +24 -0
- package/src/ContactsList/ContactsList.jsx +52 -0
- package/src/ContactsList/Readme.md +47 -0
- package/src/ContactsList/_mockContacts.json +2494 -0
- package/src/ContactsList/helpers.js +132 -0
- package/src/ContactsList/helpers.spec.js +150 -0
- package/src/ContactsList/index.js +3 -0
- package/src/ContactsList/locales/en.json +5 -0
- package/src/ContactsList/locales/fr.json +5 -0
- package/src/ContactsList/locales/ru.json +5 -0
- package/src/ContactsList/locales/vi.json +5 -0
- package/src/ContactsList/locales/withContactsListLocales.jsx +15 -0
- package/src/ContactsList/styles.styl +35 -0
- package/src/ContactsListModal/AddContact/AddContactActions.jsx +16 -0
- package/src/ContactsListModal/AddContact/AddContactContent.jsx +60 -0
- package/src/ContactsListModal/AddContact/AddContactDialog.jsx +38 -0
- package/src/ContactsListModal/AddContact/AddContactTitle.jsx +9 -0
- package/src/ContactsListModal/AddContact/helpers.js +18 -0
- package/src/ContactsListModal/AddContact/helpers.spec.js +74 -0
- package/src/ContactsListModal/AddContact/styles.styl +2 -0
- package/src/ContactsListModal/ContactsListContent.jsx +74 -0
- package/src/ContactsListModal/ContactsListModal.jsx +143 -0
- package/src/ContactsListModal/ContactsListModalWithQuery.jsx +27 -0
- package/src/ContactsListModal/EmptyMessage.jsx +18 -0
- package/src/ContactsListModal/MobileHeader.jsx +50 -0
- package/src/ContactsListModal/Readme.md +45 -0
- package/src/ContactsListModal/index.jsx +28 -0
- package/src/ContactsListModal/locales/en.json +11 -0
- package/src/ContactsListModal/locales/fr.json +11 -0
- package/src/ContactsListModal/locales/ru.json +11 -0
- package/src/ContactsListModal/locales/vi.json +11 -0
- package/src/ContactsListModal/mockClient.jsx +47 -0
- package/src/ContactsListModal/queries.js +12 -0
- package/src/ContactsListModal/styles.styl +12 -0
- package/src/ContactsListModal/withContactsListLocales.jsx +11 -0
- package/src/Dialogs/AuthenticationDialogs/index.jsx +115 -0
- package/src/Field/Readme.md +357 -0
- package/src/Field/index.jsx +317 -0
- package/src/Field/index.spec.js +59 -0
- package/src/Field/styles.styl +41 -0
- package/src/FileImageLoader/Readme.md +112 -0
- package/src/FileImageLoader/checkImageSource.js +29 -0
- package/src/FileImageLoader/index.jsx +186 -0
- package/src/FileImageLoader/index.spec.jsx +176 -0
- package/src/FilePicker/FilePickerBody.jsx +111 -0
- package/src/FilePicker/FilePickerBodyItem.jsx +126 -0
- package/src/FilePicker/FilePickerBodyItem.spec.jsx +164 -0
- package/src/FilePicker/FilePickerBreadcrumb.jsx +55 -0
- package/src/FilePicker/FilePickerFooter.jsx +42 -0
- package/src/FilePicker/FilePickerFooter.spec.jsx +41 -0
- package/src/FilePicker/FilePickerHeader.jsx +89 -0
- package/src/FilePicker/Readme.md +50 -0
- package/src/FilePicker/docs/DemoProvider.jsx +273 -0
- package/src/FilePicker/helpers.js +46 -0
- package/src/FilePicker/helpers.spec.js +84 -0
- package/src/FilePicker/index.jsx +94 -0
- package/src/FilePicker/locales/en.json +8 -0
- package/src/FilePicker/locales/fr.json +8 -0
- package/src/FilePicker/locales/ru.json +8 -0
- package/src/FilePicker/locales/vi.json +8 -0
- package/src/FilePicker/queries.js +37 -0
- package/src/FilePicker/styles.styl +18 -0
- package/src/Intent/IntentDialogOpener/Readme.md +25 -0
- package/src/Intent/IntentDialogOpener/index.jsx +110 -0
- package/src/Intent/IntentIframe/Readme.md +80 -0
- package/src/Intent/IntentIframe/index.jsx +112 -0
- package/src/Intent/IntentIframe/styles.styl +21 -0
- package/src/ListItem/ExpandedAttributes/ExpandedAttribute.jsx +40 -0
- package/src/ListItem/ExpandedAttributes/helpers.js +214 -0
- package/src/ListItem/ExpandedAttributes/helpers.spec.js +175 -0
- package/src/ListItem/ExpandedAttributes/index.jsx +62 -0
- package/src/ListItem/ListItemBase/Renaming/RenameDialog.jsx +38 -0
- package/src/ListItem/ListItemBase/Renaming/RenameInput.jsx +134 -0
- package/src/ListItem/ListItemBase/Renaming/helpers.js +35 -0
- package/src/ListItem/ListItemBase/index.jsx +116 -0
- package/src/ListItem/ListItemByDoc/index.jsx +103 -0
- package/src/ListItem/ListItemContact/helpers.js +28 -0
- package/src/ListItem/ListItemContact/helpers.spec.js +41 -0
- package/src/ListItem/ListItemContact/index.jsx +68 -0
- package/src/ListItem/ListItemContact/useActions.jsx +22 -0
- package/src/ListItem/ListItemFile/ExpirationAnnotation.jsx +39 -0
- package/src/ListItem/ListItemFile/ItemIcon.jsx +49 -0
- package/src/ListItem/ListItemFile/PrimaryText.jsx +38 -0
- package/src/ListItem/ListItemFile/SecondaryText.jsx +36 -0
- package/src/ListItem/ListItemFile/index.jsx +75 -0
- package/src/ListItem/Readme.md +211 -0
- package/src/ListItem/hoc/withListItemLocales.jsx +15 -0
- package/src/ListItem/locales/en.json +75 -0
- package/src/ListItem/locales/fr.json +75 -0
- package/src/ListItem/locales/ru.json +75 -0
- package/src/ListItem/locales/vi.json +75 -0
- package/src/Paywall/MaxAccountsByKonnectorPaywall.jsx +32 -0
- package/src/Paywall/MaxAccountsPaywall.jsx +27 -0
- package/src/Paywall/MaxDaysToCapturePaywall.jsx +27 -0
- package/src/Paywall/MaxPapersPaywall.jsx +29 -0
- package/src/Paywall/OnlyOfficePaywall.jsx +24 -0
- package/src/Paywall/PasswordSharingPaywall.jsx +20 -0
- package/src/Paywall/Paywall.jsx +130 -0
- package/src/Paywall/Paywall.spec.jsx +228 -0
- package/src/Paywall/QuotaPaywall.jsx +18 -0
- package/src/Paywall/Readme.md +139 -0
- package/src/Paywall/helpers.js +22 -0
- package/src/Paywall/howto.md +28 -0
- package/src/Paywall/index.jsx +7 -0
- package/src/Paywall/locales/en.json +95 -0
- package/src/Paywall/locales/fr.json +95 -0
- package/src/Paywall/locales/ru.json +95 -0
- package/src/Paywall/locales/vi.json +95 -0
- package/src/Paywall/locales/withPaywallLocales.jsx +15 -0
- package/src/Qualification/QualificationGrid/Readme.md +26 -0
- package/src/Qualification/QualificationGrid/helpers.js +4 -0
- package/src/Qualification/QualificationGrid/index.jsx +91 -0
- package/src/Qualification/QualificationGrid/locales/en.json +15 -0
- package/src/Qualification/QualificationGrid/locales/fr.json +15 -0
- package/src/Qualification/QualificationGrid/locales/ru.json +15 -0
- package/src/Qualification/QualificationGrid/locales/vi.json +15 -0
- package/src/Qualification/QualificationGrid/locales/withLocales.jsx +15 -0
- package/src/Qualification/QualificationIcon/Readme.md +14 -0
- package/src/Qualification/QualificationIcon/index.jsx +104 -0
- package/src/Qualification/QualificationItem/Readme.md +8 -0
- package/src/Qualification/QualificationItem/index.jsx +64 -0
- package/src/Qualification/QualificationModal/Readme.md +28 -0
- package/src/Qualification/QualificationModal/helpers.js +63 -0
- package/src/Qualification/QualificationModal/helpers.spec.js +61 -0
- package/src/Qualification/QualificationModal/index.jsx +71 -0
- package/src/Qualification/QualificationModal/locales/en.json +6 -0
- package/src/Qualification/QualificationModal/locales/fr.json +6 -0
- package/src/Qualification/QualificationModal/locales/index.jsx +11 -0
- package/src/Qualification/QualificationModal/locales/ru.json +6 -0
- package/src/Qualification/QualificationModal/locales/vi.json +6 -0
- package/src/ShortcutTile/index.tsx +60 -0
- package/src/SquareAppIcon/Readme.md +185 -0
- package/src/SquareAppIcon/SquareAppIcon.spec.js +86 -0
- package/src/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap +474 -0
- package/src/SquareAppIcon/constants.json +6 -0
- package/src/SquareAppIcon/index.jsx +289 -0
- package/src/SquareAppIcon/styles.styl +141 -0
- package/src/Storage/Readme.md +45 -0
- package/src/Storage/StorageButton.jsx +34 -0
- package/src/Storage/StorageProgress.jsx +52 -0
- package/src/Storage/index.jsx +41 -0
- package/src/Storage/locales/en.json +7 -0
- package/src/Storage/locales/fr.json +7 -0
- package/src/Storage/locales/index.jsx +11 -0
- package/src/Storage/locales/ru.json +7 -0
- package/src/Storage/locales/vi.json +7 -0
- package/src/UploadQueue/FileUploadProgress.jsx +50 -0
- package/src/UploadQueue/Item.jsx +99 -0
- package/src/UploadQueue/Pending.jsx +12 -0
- package/src/UploadQueue/Readme.md +95 -0
- package/src/UploadQueue/RemainingTime.jsx +27 -0
- package/src/UploadQueue/helpers.js +3 -0
- package/src/UploadQueue/index.jsx +161 -0
- package/src/UploadQueue/index.spec.jsx +163 -0
- package/src/UploadQueue/locales/en.json +10 -0
- package/src/UploadQueue/locales/es.json +10 -0
- package/src/UploadQueue/locales/fr.json +10 -0
- package/src/UploadQueue/locales/ru.json +10 -0
- package/src/UploadQueue/locales/vi.json +10 -0
- package/src/UploadQueue/styles.styl +155 -0
- package/src/UploadQueue/useStatusIcon.js +32 -0
- package/src/hooks/useClientErrors.jsx +140 -0
- package/src/hooks/useClientErrors.spec.jsx +94 -0
- package/src/proptypes.js +20 -0
- package/src/providers/CozyTheme/CozyThemeWithQuery.jsx +25 -0
- package/src/providers/CozyTheme/Readme.md +88 -0
- package/src/providers/CozyTheme/index.jsx +35 -0
- package/src/providers/CozyTheme/queries.js +14 -0
- package/src/providers/DemoProvider.jsx +30 -0
- package/src/providers/Intent/index.jsx +83 -0
- package/src/types.d.ts +4 -0
- package/test/I18n.js +13 -0
- package/test/fileMock.js +3 -0
- package/test/jestsetup.js +1 -0
- package/tsconfig-build.json +16 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`makeMatcherFromSearch should filter correctly on category 1`] = `
|
|
4
|
+
Array [
|
|
5
|
+
Object {
|
|
6
|
+
"categories": Array [
|
|
7
|
+
"cozy",
|
|
8
|
+
],
|
|
9
|
+
"developer": Object {
|
|
10
|
+
"name": "Cozy",
|
|
11
|
+
},
|
|
12
|
+
"editor": "Cozy",
|
|
13
|
+
"icon": "<svg></svg>",
|
|
14
|
+
"installed": true,
|
|
15
|
+
"isInRegistry": true,
|
|
16
|
+
"label": 1,
|
|
17
|
+
"name": "Collect",
|
|
18
|
+
"name_prefix": "Cozy",
|
|
19
|
+
"permissions": Object {
|
|
20
|
+
"mock": Object {
|
|
21
|
+
"type": "io.mock.doctype",
|
|
22
|
+
},
|
|
23
|
+
"mock2": Object {
|
|
24
|
+
"type": "io.mock.doctype2",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
"related": "http://collect.cozy.mock/",
|
|
28
|
+
"slug": "collect",
|
|
29
|
+
"tags": Array [
|
|
30
|
+
"konnector",
|
|
31
|
+
"collect",
|
|
32
|
+
"bills",
|
|
33
|
+
"providers",
|
|
34
|
+
"files",
|
|
35
|
+
],
|
|
36
|
+
"type": "webapp",
|
|
37
|
+
"uninstallable": false,
|
|
38
|
+
"version": "3.0.0",
|
|
39
|
+
"versions": Object {
|
|
40
|
+
"beta": Array [
|
|
41
|
+
"3.0.0",
|
|
42
|
+
],
|
|
43
|
+
"dev": Array [
|
|
44
|
+
"3.0.0",
|
|
45
|
+
],
|
|
46
|
+
"stable": Array [
|
|
47
|
+
"3.0.0",
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
Object {
|
|
52
|
+
"categories": Array [
|
|
53
|
+
"cozy",
|
|
54
|
+
],
|
|
55
|
+
"developer": Object {
|
|
56
|
+
"name": "Cozy",
|
|
57
|
+
},
|
|
58
|
+
"editor": "Cozy",
|
|
59
|
+
"icon": "<svg></svg>",
|
|
60
|
+
"installed": true,
|
|
61
|
+
"name": "Drive",
|
|
62
|
+
"name_prefix": "Cozy",
|
|
63
|
+
"permissions": Object {
|
|
64
|
+
"mock2": Object {
|
|
65
|
+
"type": "io.mock.doctype2",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
"related": "http://drive.cozy.mock/",
|
|
69
|
+
"slug": "drive",
|
|
70
|
+
"tags": Array [
|
|
71
|
+
"search",
|
|
72
|
+
"files",
|
|
73
|
+
"folders",
|
|
74
|
+
],
|
|
75
|
+
"type": "webapp",
|
|
76
|
+
"uninstallable": false,
|
|
77
|
+
"version": "3.0.0-beta89bnhj3993",
|
|
78
|
+
},
|
|
79
|
+
Object {
|
|
80
|
+
"categories": Array [
|
|
81
|
+
"cozy",
|
|
82
|
+
],
|
|
83
|
+
"developer": Object {
|
|
84
|
+
"name": "Cozy",
|
|
85
|
+
},
|
|
86
|
+
"editor": "Cozy",
|
|
87
|
+
"icon": "<svg></svg>",
|
|
88
|
+
"isInRegistry": true,
|
|
89
|
+
"locales": Object {
|
|
90
|
+
"en": Object {
|
|
91
|
+
"long_description": "A long description finally short",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
"name": "Photos",
|
|
95
|
+
"name_prefix": "Cozy",
|
|
96
|
+
"slug": "photos",
|
|
97
|
+
"type": "webapp",
|
|
98
|
+
"uninstallable": true,
|
|
99
|
+
"versions": Object {
|
|
100
|
+
"beta": Array [
|
|
101
|
+
"3.0.0",
|
|
102
|
+
],
|
|
103
|
+
"dev": Array [
|
|
104
|
+
"3.0.0",
|
|
105
|
+
],
|
|
106
|
+
"stable": Array [
|
|
107
|
+
"3.0.0",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
]
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
exports[`makeMatcherFromSearch should filter correctly on doctype 1`] = `
|
|
115
|
+
Array [
|
|
116
|
+
Object {
|
|
117
|
+
"categories": Array [
|
|
118
|
+
"cozy",
|
|
119
|
+
],
|
|
120
|
+
"developer": Object {
|
|
121
|
+
"name": "Cozy",
|
|
122
|
+
},
|
|
123
|
+
"editor": "Cozy",
|
|
124
|
+
"icon": "<svg></svg>",
|
|
125
|
+
"installed": true,
|
|
126
|
+
"isInRegistry": true,
|
|
127
|
+
"label": 1,
|
|
128
|
+
"name": "Collect",
|
|
129
|
+
"name_prefix": "Cozy",
|
|
130
|
+
"permissions": Object {
|
|
131
|
+
"mock": Object {
|
|
132
|
+
"type": "io.mock.doctype",
|
|
133
|
+
},
|
|
134
|
+
"mock2": Object {
|
|
135
|
+
"type": "io.mock.doctype2",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
"related": "http://collect.cozy.mock/",
|
|
139
|
+
"slug": "collect",
|
|
140
|
+
"tags": Array [
|
|
141
|
+
"konnector",
|
|
142
|
+
"collect",
|
|
143
|
+
"bills",
|
|
144
|
+
"providers",
|
|
145
|
+
"files",
|
|
146
|
+
],
|
|
147
|
+
"type": "webapp",
|
|
148
|
+
"uninstallable": false,
|
|
149
|
+
"version": "3.0.0",
|
|
150
|
+
"versions": Object {
|
|
151
|
+
"beta": Array [
|
|
152
|
+
"3.0.0",
|
|
153
|
+
],
|
|
154
|
+
"dev": Array [
|
|
155
|
+
"3.0.0",
|
|
156
|
+
],
|
|
157
|
+
"stable": Array [
|
|
158
|
+
"3.0.0",
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
Object {
|
|
163
|
+
"categories": Array [
|
|
164
|
+
"cozy",
|
|
165
|
+
],
|
|
166
|
+
"developer": Object {
|
|
167
|
+
"name": "Cozy",
|
|
168
|
+
},
|
|
169
|
+
"editor": "Cozy",
|
|
170
|
+
"icon": "<svg></svg>",
|
|
171
|
+
"installed": true,
|
|
172
|
+
"name": "Drive",
|
|
173
|
+
"name_prefix": "Cozy",
|
|
174
|
+
"permissions": Object {
|
|
175
|
+
"mock2": Object {
|
|
176
|
+
"type": "io.mock.doctype2",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
"related": "http://drive.cozy.mock/",
|
|
180
|
+
"slug": "drive",
|
|
181
|
+
"tags": Array [
|
|
182
|
+
"search",
|
|
183
|
+
"files",
|
|
184
|
+
"folders",
|
|
185
|
+
],
|
|
186
|
+
"type": "webapp",
|
|
187
|
+
"uninstallable": false,
|
|
188
|
+
"version": "3.0.0-beta89bnhj3993",
|
|
189
|
+
},
|
|
190
|
+
]
|
|
191
|
+
`;
|
|
192
|
+
|
|
193
|
+
exports[`makeMatcherFromSearch should filter correctly on pending update apps 1`] = `
|
|
194
|
+
Array [
|
|
195
|
+
Object {
|
|
196
|
+
"availableVersion": "3.0.0",
|
|
197
|
+
"categories": Array [
|
|
198
|
+
"partners",
|
|
199
|
+
],
|
|
200
|
+
"icon": "<svg></svg>",
|
|
201
|
+
"installed": true,
|
|
202
|
+
"isInRegistry": true,
|
|
203
|
+
"name": "Tasky",
|
|
204
|
+
"slug": "tasky",
|
|
205
|
+
"type": "webapp",
|
|
206
|
+
"uninstallable": true,
|
|
207
|
+
"versions": Object {
|
|
208
|
+
"beta": Array [
|
|
209
|
+
"3.0.0",
|
|
210
|
+
"1.0.0",
|
|
211
|
+
],
|
|
212
|
+
"dev": Array [
|
|
213
|
+
"3.0.0",
|
|
214
|
+
"1.0.0",
|
|
215
|
+
],
|
|
216
|
+
"stable": Array [
|
|
217
|
+
"3.0.0",
|
|
218
|
+
"1.0.0",
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
]
|
|
223
|
+
`;
|
|
224
|
+
|
|
225
|
+
exports[`makeMatcherFromSearch should filter correctly on tags 1`] = `
|
|
226
|
+
Array [
|
|
227
|
+
Object {
|
|
228
|
+
"categories": Array [
|
|
229
|
+
"cozy",
|
|
230
|
+
],
|
|
231
|
+
"developer": Object {
|
|
232
|
+
"name": "Cozy",
|
|
233
|
+
},
|
|
234
|
+
"editor": "Cozy",
|
|
235
|
+
"icon": "<svg></svg>",
|
|
236
|
+
"installed": true,
|
|
237
|
+
"isInRegistry": true,
|
|
238
|
+
"label": 1,
|
|
239
|
+
"name": "Collect",
|
|
240
|
+
"name_prefix": "Cozy",
|
|
241
|
+
"permissions": Object {
|
|
242
|
+
"mock": Object {
|
|
243
|
+
"type": "io.mock.doctype",
|
|
244
|
+
},
|
|
245
|
+
"mock2": Object {
|
|
246
|
+
"type": "io.mock.doctype2",
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
"related": "http://collect.cozy.mock/",
|
|
250
|
+
"slug": "collect",
|
|
251
|
+
"tags": Array [
|
|
252
|
+
"konnector",
|
|
253
|
+
"collect",
|
|
254
|
+
"bills",
|
|
255
|
+
"providers",
|
|
256
|
+
"files",
|
|
257
|
+
],
|
|
258
|
+
"type": "webapp",
|
|
259
|
+
"uninstallable": false,
|
|
260
|
+
"version": "3.0.0",
|
|
261
|
+
"versions": Object {
|
|
262
|
+
"beta": Array [
|
|
263
|
+
"3.0.0",
|
|
264
|
+
],
|
|
265
|
+
"dev": Array [
|
|
266
|
+
"3.0.0",
|
|
267
|
+
],
|
|
268
|
+
"stable": Array [
|
|
269
|
+
"3.0.0",
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
Object {
|
|
274
|
+
"categories": Array [
|
|
275
|
+
"transport",
|
|
276
|
+
],
|
|
277
|
+
"developer": Object {
|
|
278
|
+
"name": "Cozy",
|
|
279
|
+
},
|
|
280
|
+
"icon": "<svg></svg>",
|
|
281
|
+
"installed": true,
|
|
282
|
+
"isInRegistry": true,
|
|
283
|
+
"name": "Trinlane",
|
|
284
|
+
"permissions": Object {
|
|
285
|
+
"mock": Object {
|
|
286
|
+
"type": "io.mock.doctype",
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
"slug": "konnector-trinlane",
|
|
290
|
+
"tags": Array [
|
|
291
|
+
"transport",
|
|
292
|
+
"files",
|
|
293
|
+
"bills",
|
|
294
|
+
],
|
|
295
|
+
"type": "konnector",
|
|
296
|
+
"uninstallable": true,
|
|
297
|
+
"version": "0.1.0",
|
|
298
|
+
"versions": Object {
|
|
299
|
+
"beta": Array [
|
|
300
|
+
"0.1.0",
|
|
301
|
+
],
|
|
302
|
+
"dev": Array [
|
|
303
|
+
"0.1.0",
|
|
304
|
+
],
|
|
305
|
+
"stable": Array [
|
|
306
|
+
"0.1.0",
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
]
|
|
311
|
+
`;
|
|
312
|
+
|
|
313
|
+
exports[`makeMatcherFromSearch should filter correctly on type 1`] = `
|
|
314
|
+
Array [
|
|
315
|
+
Object {
|
|
316
|
+
"categories": Array [
|
|
317
|
+
"cozy",
|
|
318
|
+
],
|
|
319
|
+
"developer": Object {
|
|
320
|
+
"name": "Cozy",
|
|
321
|
+
},
|
|
322
|
+
"editor": "Cozy",
|
|
323
|
+
"icon": "<svg></svg>",
|
|
324
|
+
"installed": true,
|
|
325
|
+
"isInRegistry": true,
|
|
326
|
+
"label": 1,
|
|
327
|
+
"name": "Collect",
|
|
328
|
+
"name_prefix": "Cozy",
|
|
329
|
+
"permissions": Object {
|
|
330
|
+
"mock": Object {
|
|
331
|
+
"type": "io.mock.doctype",
|
|
332
|
+
},
|
|
333
|
+
"mock2": Object {
|
|
334
|
+
"type": "io.mock.doctype2",
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
"related": "http://collect.cozy.mock/",
|
|
338
|
+
"slug": "collect",
|
|
339
|
+
"tags": Array [
|
|
340
|
+
"konnector",
|
|
341
|
+
"collect",
|
|
342
|
+
"bills",
|
|
343
|
+
"providers",
|
|
344
|
+
"files",
|
|
345
|
+
],
|
|
346
|
+
"type": "webapp",
|
|
347
|
+
"uninstallable": false,
|
|
348
|
+
"version": "3.0.0",
|
|
349
|
+
"versions": Object {
|
|
350
|
+
"beta": Array [
|
|
351
|
+
"3.0.0",
|
|
352
|
+
],
|
|
353
|
+
"dev": Array [
|
|
354
|
+
"3.0.0",
|
|
355
|
+
],
|
|
356
|
+
"stable": Array [
|
|
357
|
+
"3.0.0",
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
Object {
|
|
362
|
+
"categories": Array [
|
|
363
|
+
"others",
|
|
364
|
+
],
|
|
365
|
+
"developer": Object {
|
|
366
|
+
"name": "Cozy",
|
|
367
|
+
},
|
|
368
|
+
"editor": "Cozy",
|
|
369
|
+
"icon": "<svg></svg>",
|
|
370
|
+
"isInRegistry": true,
|
|
371
|
+
"locales": Object {
|
|
372
|
+
"name": "For Dev Only",
|
|
373
|
+
},
|
|
374
|
+
"name": "DevOnly",
|
|
375
|
+
"slug": "devonly",
|
|
376
|
+
"type": "webapp",
|
|
377
|
+
"uninstallable": true,
|
|
378
|
+
"versions": Object {
|
|
379
|
+
"beta": Array [],
|
|
380
|
+
"dev": Array [
|
|
381
|
+
"1.0.0-betaojdkehy989ekhflldh",
|
|
382
|
+
],
|
|
383
|
+
"stable": Array [],
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
Object {
|
|
387
|
+
"categories": Array [
|
|
388
|
+
"cozy",
|
|
389
|
+
],
|
|
390
|
+
"developer": Object {
|
|
391
|
+
"name": "Cozy",
|
|
392
|
+
},
|
|
393
|
+
"editor": "Cozy",
|
|
394
|
+
"icon": "<svg></svg>",
|
|
395
|
+
"installed": true,
|
|
396
|
+
"name": "Drive",
|
|
397
|
+
"name_prefix": "Cozy",
|
|
398
|
+
"permissions": Object {
|
|
399
|
+
"mock2": Object {
|
|
400
|
+
"type": "io.mock.doctype2",
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
"related": "http://drive.cozy.mock/",
|
|
404
|
+
"slug": "drive",
|
|
405
|
+
"tags": Array [
|
|
406
|
+
"search",
|
|
407
|
+
"files",
|
|
408
|
+
"folders",
|
|
409
|
+
],
|
|
410
|
+
"type": "webapp",
|
|
411
|
+
"uninstallable": false,
|
|
412
|
+
"version": "3.0.0-beta89bnhj3993",
|
|
413
|
+
},
|
|
414
|
+
Object {
|
|
415
|
+
"categories": Array [
|
|
416
|
+
"cozy",
|
|
417
|
+
],
|
|
418
|
+
"developer": Object {
|
|
419
|
+
"name": "Cozy",
|
|
420
|
+
},
|
|
421
|
+
"editor": "Cozy",
|
|
422
|
+
"icon": "<svg></svg>",
|
|
423
|
+
"isInRegistry": true,
|
|
424
|
+
"locales": Object {
|
|
425
|
+
"en": Object {
|
|
426
|
+
"long_description": "A long description finally short",
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
"name": "Photos",
|
|
430
|
+
"name_prefix": "Cozy",
|
|
431
|
+
"slug": "photos",
|
|
432
|
+
"type": "webapp",
|
|
433
|
+
"uninstallable": true,
|
|
434
|
+
"versions": Object {
|
|
435
|
+
"beta": Array [
|
|
436
|
+
"3.0.0",
|
|
437
|
+
],
|
|
438
|
+
"dev": Array [
|
|
439
|
+
"3.0.0",
|
|
440
|
+
],
|
|
441
|
+
"stable": Array [
|
|
442
|
+
"3.0.0",
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
Object {
|
|
447
|
+
"availableVersion": "3.0.0",
|
|
448
|
+
"categories": Array [
|
|
449
|
+
"partners",
|
|
450
|
+
],
|
|
451
|
+
"icon": "<svg></svg>",
|
|
452
|
+
"installed": true,
|
|
453
|
+
"isInRegistry": true,
|
|
454
|
+
"name": "Tasky",
|
|
455
|
+
"slug": "tasky",
|
|
456
|
+
"type": "webapp",
|
|
457
|
+
"uninstallable": true,
|
|
458
|
+
"versions": Object {
|
|
459
|
+
"beta": Array [
|
|
460
|
+
"3.0.0",
|
|
461
|
+
"1.0.0",
|
|
462
|
+
],
|
|
463
|
+
"dev": Array [
|
|
464
|
+
"3.0.0",
|
|
465
|
+
"1.0.0",
|
|
466
|
+
],
|
|
467
|
+
"stable": Array [
|
|
468
|
+
"3.0.0",
|
|
469
|
+
"1.0.0",
|
|
470
|
+
],
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
]
|
|
474
|
+
`;
|
|
475
|
+
|
|
476
|
+
exports[`makeMatcherFromSearch should handle correctly multi filters 1`] = `
|
|
477
|
+
Array [
|
|
478
|
+
Object {
|
|
479
|
+
"categories": Array [
|
|
480
|
+
"transport",
|
|
481
|
+
],
|
|
482
|
+
"developer": Object {
|
|
483
|
+
"name": "Cozy",
|
|
484
|
+
},
|
|
485
|
+
"icon": "<svg></svg>",
|
|
486
|
+
"installed": true,
|
|
487
|
+
"isInRegistry": true,
|
|
488
|
+
"name": "Trinlane",
|
|
489
|
+
"permissions": Object {
|
|
490
|
+
"mock": Object {
|
|
491
|
+
"type": "io.mock.doctype",
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
"slug": "konnector-trinlane",
|
|
495
|
+
"tags": Array [
|
|
496
|
+
"transport",
|
|
497
|
+
"files",
|
|
498
|
+
"bills",
|
|
499
|
+
],
|
|
500
|
+
"type": "konnector",
|
|
501
|
+
"uninstallable": true,
|
|
502
|
+
"version": "0.1.0",
|
|
503
|
+
"versions": Object {
|
|
504
|
+
"beta": Array [
|
|
505
|
+
"0.1.0",
|
|
506
|
+
],
|
|
507
|
+
"dev": Array [
|
|
508
|
+
"0.1.0",
|
|
509
|
+
],
|
|
510
|
+
"stable": Array [
|
|
511
|
+
"0.1.0",
|
|
512
|
+
],
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
]
|
|
516
|
+
`;
|
|
517
|
+
|
|
518
|
+
exports[`makeMatcherFromSearch should not throw error if app with malformed permission and search on doctype 1`] = `Array []`;
|
|
519
|
+
|
|
520
|
+
exports[`makeMatcherFromSearch should not throw error if app with no categories and search on category 1`] = `Array []`;
|
|
521
|
+
|
|
522
|
+
exports[`makeMatcherFromSearch should not throw error if search is not provided 1`] = `
|
|
523
|
+
Array [
|
|
524
|
+
Object {
|
|
525
|
+
"categories": Array [
|
|
526
|
+
"cozy",
|
|
527
|
+
],
|
|
528
|
+
"developer": Object {
|
|
529
|
+
"name": "Cozy",
|
|
530
|
+
},
|
|
531
|
+
"editor": "Cozy",
|
|
532
|
+
"icon": "<svg></svg>",
|
|
533
|
+
"installed": true,
|
|
534
|
+
"isInRegistry": true,
|
|
535
|
+
"label": 1,
|
|
536
|
+
"name": "Collect",
|
|
537
|
+
"name_prefix": "Cozy",
|
|
538
|
+
"permissions": Object {
|
|
539
|
+
"mock": Object {
|
|
540
|
+
"type": "io.mock.doctype",
|
|
541
|
+
},
|
|
542
|
+
"mock2": Object {
|
|
543
|
+
"type": "io.mock.doctype2",
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
"related": "http://collect.cozy.mock/",
|
|
547
|
+
"slug": "collect",
|
|
548
|
+
"tags": Array [
|
|
549
|
+
"konnector",
|
|
550
|
+
"collect",
|
|
551
|
+
"bills",
|
|
552
|
+
"providers",
|
|
553
|
+
"files",
|
|
554
|
+
],
|
|
555
|
+
"type": "webapp",
|
|
556
|
+
"uninstallable": false,
|
|
557
|
+
"version": "3.0.0",
|
|
558
|
+
"versions": Object {
|
|
559
|
+
"beta": Array [
|
|
560
|
+
"3.0.0",
|
|
561
|
+
],
|
|
562
|
+
"dev": Array [
|
|
563
|
+
"3.0.0",
|
|
564
|
+
],
|
|
565
|
+
"stable": Array [
|
|
566
|
+
"3.0.0",
|
|
567
|
+
],
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
Object {
|
|
571
|
+
"categories": Array [
|
|
572
|
+
"others",
|
|
573
|
+
],
|
|
574
|
+
"developer": Object {
|
|
575
|
+
"name": "Cozy",
|
|
576
|
+
},
|
|
577
|
+
"editor": "Cozy",
|
|
578
|
+
"icon": "<svg></svg>",
|
|
579
|
+
"isInRegistry": true,
|
|
580
|
+
"locales": Object {
|
|
581
|
+
"name": "For Dev Only",
|
|
582
|
+
},
|
|
583
|
+
"name": "DevOnly",
|
|
584
|
+
"slug": "devonly",
|
|
585
|
+
"type": "webapp",
|
|
586
|
+
"uninstallable": true,
|
|
587
|
+
"versions": Object {
|
|
588
|
+
"beta": Array [],
|
|
589
|
+
"dev": Array [
|
|
590
|
+
"1.0.0-betaojdkehy989ekhflldh",
|
|
591
|
+
],
|
|
592
|
+
"stable": Array [],
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
Object {
|
|
596
|
+
"categories": Array [
|
|
597
|
+
"cozy",
|
|
598
|
+
],
|
|
599
|
+
"developer": Object {
|
|
600
|
+
"name": "Cozy",
|
|
601
|
+
},
|
|
602
|
+
"editor": "Cozy",
|
|
603
|
+
"icon": "<svg></svg>",
|
|
604
|
+
"installed": true,
|
|
605
|
+
"name": "Drive",
|
|
606
|
+
"name_prefix": "Cozy",
|
|
607
|
+
"permissions": Object {
|
|
608
|
+
"mock2": Object {
|
|
609
|
+
"type": "io.mock.doctype2",
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
"related": "http://drive.cozy.mock/",
|
|
613
|
+
"slug": "drive",
|
|
614
|
+
"tags": Array [
|
|
615
|
+
"search",
|
|
616
|
+
"files",
|
|
617
|
+
"folders",
|
|
618
|
+
],
|
|
619
|
+
"type": "webapp",
|
|
620
|
+
"uninstallable": false,
|
|
621
|
+
"version": "3.0.0-beta89bnhj3993",
|
|
622
|
+
},
|
|
623
|
+
Object {
|
|
624
|
+
"categories": Array [
|
|
625
|
+
"isp",
|
|
626
|
+
"telecom",
|
|
627
|
+
],
|
|
628
|
+
"developer": Object {
|
|
629
|
+
"name": "Cozy",
|
|
630
|
+
},
|
|
631
|
+
"icon": "<svg></svg>",
|
|
632
|
+
"isInRegistry": true,
|
|
633
|
+
"name": "Bouilligue",
|
|
634
|
+
"slug": "konnector-bouilligue",
|
|
635
|
+
"type": "konnector",
|
|
636
|
+
"uninstallable": true,
|
|
637
|
+
"versions": Object {
|
|
638
|
+
"beta": Array [
|
|
639
|
+
"0.1.0",
|
|
640
|
+
],
|
|
641
|
+
"dev": Array [
|
|
642
|
+
"0.1.0",
|
|
643
|
+
],
|
|
644
|
+
"stable": Array [
|
|
645
|
+
"0.1.0",
|
|
646
|
+
],
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
Object {
|
|
650
|
+
"categories": Array [
|
|
651
|
+
"transport",
|
|
652
|
+
],
|
|
653
|
+
"developer": Object {
|
|
654
|
+
"name": "Cozy",
|
|
655
|
+
},
|
|
656
|
+
"icon": "<svg></svg>",
|
|
657
|
+
"installed": true,
|
|
658
|
+
"isInRegistry": true,
|
|
659
|
+
"name": "Trinlane",
|
|
660
|
+
"permissions": Object {
|
|
661
|
+
"mock": Object {
|
|
662
|
+
"type": "io.mock.doctype",
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
"slug": "konnector-trinlane",
|
|
666
|
+
"tags": Array [
|
|
667
|
+
"transport",
|
|
668
|
+
"files",
|
|
669
|
+
"bills",
|
|
670
|
+
],
|
|
671
|
+
"type": "konnector",
|
|
672
|
+
"uninstallable": true,
|
|
673
|
+
"version": "0.1.0",
|
|
674
|
+
"versions": Object {
|
|
675
|
+
"beta": Array [
|
|
676
|
+
"0.1.0",
|
|
677
|
+
],
|
|
678
|
+
"dev": Array [
|
|
679
|
+
"0.1.0",
|
|
680
|
+
],
|
|
681
|
+
"stable": Array [
|
|
682
|
+
"0.1.0",
|
|
683
|
+
],
|
|
684
|
+
},
|
|
685
|
+
},
|
|
686
|
+
Object {
|
|
687
|
+
"categories": Array [
|
|
688
|
+
"cozy",
|
|
689
|
+
],
|
|
690
|
+
"developer": Object {
|
|
691
|
+
"name": "Cozy",
|
|
692
|
+
},
|
|
693
|
+
"editor": "Cozy",
|
|
694
|
+
"icon": "<svg></svg>",
|
|
695
|
+
"isInRegistry": true,
|
|
696
|
+
"locales": Object {
|
|
697
|
+
"en": Object {
|
|
698
|
+
"long_description": "A long description finally short",
|
|
699
|
+
},
|
|
700
|
+
},
|
|
701
|
+
"name": "Photos",
|
|
702
|
+
"name_prefix": "Cozy",
|
|
703
|
+
"slug": "photos",
|
|
704
|
+
"type": "webapp",
|
|
705
|
+
"uninstallable": true,
|
|
706
|
+
"versions": Object {
|
|
707
|
+
"beta": Array [
|
|
708
|
+
"3.0.0",
|
|
709
|
+
],
|
|
710
|
+
"dev": Array [
|
|
711
|
+
"3.0.0",
|
|
712
|
+
],
|
|
713
|
+
"stable": Array [
|
|
714
|
+
"3.0.0",
|
|
715
|
+
],
|
|
716
|
+
},
|
|
717
|
+
},
|
|
718
|
+
Object {
|
|
719
|
+
"availableVersion": "3.0.0",
|
|
720
|
+
"categories": Array [
|
|
721
|
+
"partners",
|
|
722
|
+
],
|
|
723
|
+
"icon": "<svg></svg>",
|
|
724
|
+
"installed": true,
|
|
725
|
+
"isInRegistry": true,
|
|
726
|
+
"name": "Tasky",
|
|
727
|
+
"slug": "tasky",
|
|
728
|
+
"type": "webapp",
|
|
729
|
+
"uninstallable": true,
|
|
730
|
+
"versions": Object {
|
|
731
|
+
"beta": Array [
|
|
732
|
+
"3.0.0",
|
|
733
|
+
"1.0.0",
|
|
734
|
+
],
|
|
735
|
+
"dev": Array [
|
|
736
|
+
"3.0.0",
|
|
737
|
+
"1.0.0",
|
|
738
|
+
],
|
|
739
|
+
"stable": Array [
|
|
740
|
+
"3.0.0",
|
|
741
|
+
"1.0.0",
|
|
742
|
+
],
|
|
743
|
+
},
|
|
744
|
+
},
|
|
745
|
+
]
|
|
746
|
+
`;
|
|
747
|
+
|
|
748
|
+
exports[`makeMatcherFromSearch should work even for an unsupported filter 1`] = `
|
|
749
|
+
Array [
|
|
750
|
+
Object {
|
|
751
|
+
"categories": Array [
|
|
752
|
+
"cozy",
|
|
753
|
+
],
|
|
754
|
+
"developer": Object {
|
|
755
|
+
"name": "Cozy",
|
|
756
|
+
},
|
|
757
|
+
"editor": "Cozy",
|
|
758
|
+
"icon": "<svg></svg>",
|
|
759
|
+
"installed": true,
|
|
760
|
+
"isInRegistry": true,
|
|
761
|
+
"label": 1,
|
|
762
|
+
"name": "Collect",
|
|
763
|
+
"name_prefix": "Cozy",
|
|
764
|
+
"permissions": Object {
|
|
765
|
+
"mock": Object {
|
|
766
|
+
"type": "io.mock.doctype",
|
|
767
|
+
},
|
|
768
|
+
"mock2": Object {
|
|
769
|
+
"type": "io.mock.doctype2",
|
|
770
|
+
},
|
|
771
|
+
},
|
|
772
|
+
"related": "http://collect.cozy.mock/",
|
|
773
|
+
"slug": "collect",
|
|
774
|
+
"tags": Array [
|
|
775
|
+
"konnector",
|
|
776
|
+
"collect",
|
|
777
|
+
"bills",
|
|
778
|
+
"providers",
|
|
779
|
+
"files",
|
|
780
|
+
],
|
|
781
|
+
"type": "webapp",
|
|
782
|
+
"uninstallable": false,
|
|
783
|
+
"version": "3.0.0",
|
|
784
|
+
"versions": Object {
|
|
785
|
+
"beta": Array [
|
|
786
|
+
"3.0.0",
|
|
787
|
+
],
|
|
788
|
+
"dev": Array [
|
|
789
|
+
"3.0.0",
|
|
790
|
+
],
|
|
791
|
+
"stable": Array [
|
|
792
|
+
"3.0.0",
|
|
793
|
+
],
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
Object {
|
|
797
|
+
"categories": Array [
|
|
798
|
+
"others",
|
|
799
|
+
],
|
|
800
|
+
"developer": Object {
|
|
801
|
+
"name": "Cozy",
|
|
802
|
+
},
|
|
803
|
+
"editor": "Cozy",
|
|
804
|
+
"icon": "<svg></svg>",
|
|
805
|
+
"isInRegistry": true,
|
|
806
|
+
"locales": Object {
|
|
807
|
+
"name": "For Dev Only",
|
|
808
|
+
},
|
|
809
|
+
"name": "DevOnly",
|
|
810
|
+
"slug": "devonly",
|
|
811
|
+
"type": "webapp",
|
|
812
|
+
"uninstallable": true,
|
|
813
|
+
"versions": Object {
|
|
814
|
+
"beta": Array [],
|
|
815
|
+
"dev": Array [
|
|
816
|
+
"1.0.0-betaojdkehy989ekhflldh",
|
|
817
|
+
],
|
|
818
|
+
"stable": Array [],
|
|
819
|
+
},
|
|
820
|
+
},
|
|
821
|
+
Object {
|
|
822
|
+
"categories": Array [
|
|
823
|
+
"cozy",
|
|
824
|
+
],
|
|
825
|
+
"developer": Object {
|
|
826
|
+
"name": "Cozy",
|
|
827
|
+
},
|
|
828
|
+
"editor": "Cozy",
|
|
829
|
+
"icon": "<svg></svg>",
|
|
830
|
+
"installed": true,
|
|
831
|
+
"name": "Drive",
|
|
832
|
+
"name_prefix": "Cozy",
|
|
833
|
+
"permissions": Object {
|
|
834
|
+
"mock2": Object {
|
|
835
|
+
"type": "io.mock.doctype2",
|
|
836
|
+
},
|
|
837
|
+
},
|
|
838
|
+
"related": "http://drive.cozy.mock/",
|
|
839
|
+
"slug": "drive",
|
|
840
|
+
"tags": Array [
|
|
841
|
+
"search",
|
|
842
|
+
"files",
|
|
843
|
+
"folders",
|
|
844
|
+
],
|
|
845
|
+
"type": "webapp",
|
|
846
|
+
"uninstallable": false,
|
|
847
|
+
"version": "3.0.0-beta89bnhj3993",
|
|
848
|
+
},
|
|
849
|
+
Object {
|
|
850
|
+
"categories": Array [
|
|
851
|
+
"isp",
|
|
852
|
+
"telecom",
|
|
853
|
+
],
|
|
854
|
+
"developer": Object {
|
|
855
|
+
"name": "Cozy",
|
|
856
|
+
},
|
|
857
|
+
"icon": "<svg></svg>",
|
|
858
|
+
"isInRegistry": true,
|
|
859
|
+
"name": "Bouilligue",
|
|
860
|
+
"slug": "konnector-bouilligue",
|
|
861
|
+
"type": "konnector",
|
|
862
|
+
"uninstallable": true,
|
|
863
|
+
"versions": Object {
|
|
864
|
+
"beta": Array [
|
|
865
|
+
"0.1.0",
|
|
866
|
+
],
|
|
867
|
+
"dev": Array [
|
|
868
|
+
"0.1.0",
|
|
869
|
+
],
|
|
870
|
+
"stable": Array [
|
|
871
|
+
"0.1.0",
|
|
872
|
+
],
|
|
873
|
+
},
|
|
874
|
+
},
|
|
875
|
+
Object {
|
|
876
|
+
"categories": Array [
|
|
877
|
+
"transport",
|
|
878
|
+
],
|
|
879
|
+
"developer": Object {
|
|
880
|
+
"name": "Cozy",
|
|
881
|
+
},
|
|
882
|
+
"icon": "<svg></svg>",
|
|
883
|
+
"installed": true,
|
|
884
|
+
"isInRegistry": true,
|
|
885
|
+
"name": "Trinlane",
|
|
886
|
+
"permissions": Object {
|
|
887
|
+
"mock": Object {
|
|
888
|
+
"type": "io.mock.doctype",
|
|
889
|
+
},
|
|
890
|
+
},
|
|
891
|
+
"slug": "konnector-trinlane",
|
|
892
|
+
"tags": Array [
|
|
893
|
+
"transport",
|
|
894
|
+
"files",
|
|
895
|
+
"bills",
|
|
896
|
+
],
|
|
897
|
+
"type": "konnector",
|
|
898
|
+
"uninstallable": true,
|
|
899
|
+
"version": "0.1.0",
|
|
900
|
+
"versions": Object {
|
|
901
|
+
"beta": Array [
|
|
902
|
+
"0.1.0",
|
|
903
|
+
],
|
|
904
|
+
"dev": Array [
|
|
905
|
+
"0.1.0",
|
|
906
|
+
],
|
|
907
|
+
"stable": Array [
|
|
908
|
+
"0.1.0",
|
|
909
|
+
],
|
|
910
|
+
},
|
|
911
|
+
},
|
|
912
|
+
Object {
|
|
913
|
+
"categories": Array [
|
|
914
|
+
"cozy",
|
|
915
|
+
],
|
|
916
|
+
"developer": Object {
|
|
917
|
+
"name": "Cozy",
|
|
918
|
+
},
|
|
919
|
+
"editor": "Cozy",
|
|
920
|
+
"icon": "<svg></svg>",
|
|
921
|
+
"isInRegistry": true,
|
|
922
|
+
"locales": Object {
|
|
923
|
+
"en": Object {
|
|
924
|
+
"long_description": "A long description finally short",
|
|
925
|
+
},
|
|
926
|
+
},
|
|
927
|
+
"name": "Photos",
|
|
928
|
+
"name_prefix": "Cozy",
|
|
929
|
+
"slug": "photos",
|
|
930
|
+
"type": "webapp",
|
|
931
|
+
"uninstallable": true,
|
|
932
|
+
"versions": Object {
|
|
933
|
+
"beta": Array [
|
|
934
|
+
"3.0.0",
|
|
935
|
+
],
|
|
936
|
+
"dev": Array [
|
|
937
|
+
"3.0.0",
|
|
938
|
+
],
|
|
939
|
+
"stable": Array [
|
|
940
|
+
"3.0.0",
|
|
941
|
+
],
|
|
942
|
+
},
|
|
943
|
+
},
|
|
944
|
+
Object {
|
|
945
|
+
"availableVersion": "3.0.0",
|
|
946
|
+
"categories": Array [
|
|
947
|
+
"partners",
|
|
948
|
+
],
|
|
949
|
+
"icon": "<svg></svg>",
|
|
950
|
+
"installed": true,
|
|
951
|
+
"isInRegistry": true,
|
|
952
|
+
"name": "Tasky",
|
|
953
|
+
"slug": "tasky",
|
|
954
|
+
"type": "webapp",
|
|
955
|
+
"uninstallable": true,
|
|
956
|
+
"versions": Object {
|
|
957
|
+
"beta": Array [
|
|
958
|
+
"3.0.0",
|
|
959
|
+
"1.0.0",
|
|
960
|
+
],
|
|
961
|
+
"dev": Array [
|
|
962
|
+
"3.0.0",
|
|
963
|
+
"1.0.0",
|
|
964
|
+
],
|
|
965
|
+
"stable": Array [
|
|
966
|
+
"3.0.0",
|
|
967
|
+
"1.0.0",
|
|
968
|
+
],
|
|
969
|
+
},
|
|
970
|
+
},
|
|
971
|
+
]
|
|
972
|
+
`;
|