box-ui-elements 20.0.0 → 20.0.1-beta.2
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/explorer.css +1 -1
- package/dist/explorer.js +1 -1
- package/dist/openwith.js +1 -1
- package/dist/picker.js +1 -1
- package/dist/preview.css +1 -1
- package/dist/preview.js +1 -1
- package/dist/sharing.js +1 -1
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/uploader.js +1 -1
- package/es/components/contact-datalist-item/ContactDatalistItem.js +4 -2
- package/es/components/contact-datalist-item/ContactDatalistItem.js.map +1 -1
- package/es/components/pill-selector-dropdown/PillSelector.js +2 -1
- package/es/components/pill-selector-dropdown/PillSelector.js.flow +1 -0
- package/es/components/pill-selector-dropdown/PillSelector.js.map +1 -1
- package/es/components/pill-selector-dropdown/RoundPill.js +4 -2
- package/es/components/pill-selector-dropdown/RoundPill.js.flow +3 -2
- package/es/components/pill-selector-dropdown/RoundPill.js.map +1 -1
- package/es/components/pill-selector-dropdown/flowTypes.js.flow +1 -0
- package/es/components/pill-selector-dropdown/flowTypes.js.map +1 -1
- package/es/elements/common/messages.js +1 -1
- package/es/elements/common/messages.js.flow +1 -1
- package/es/elements/common/messages.js.map +1 -1
- package/es/elements/content-sidebar/additional-tabs/AdditionalTab.scss +2 -0
- package/es/features/unified-share-modal/ContactsField.js +3 -1
- package/es/features/unified-share-modal/ContactsField.js.flow +2 -1
- package/es/features/unified-share-modal/ContactsField.js.map +1 -1
- package/es/src/components/contact-datalist-item/ContactDatalistItem.d.ts +1 -0
- package/es/src/features/unified-share-modal/types.d.ts +1 -1
- package/i18n/en-CA.js +1 -1
- package/i18n/en-CA.properties +1 -1
- package/i18n/en-US.js +1 -1
- package/i18n/en-US.properties +1 -1
- package/i18n/en-x-pseudo.js +955 -955
- package/i18n/en-x-pseudo.properties +968 -942
- package/package.json +1 -1
- package/src/components/contact-datalist-item/ContactDatalistItem.tsx +3 -1
- package/src/components/contact-datalist-item/__tests__/ContactDatalistItem.test.tsx +29 -0
- package/src/components/pill-selector-dropdown/PillSelector.js +1 -0
- package/src/components/pill-selector-dropdown/RoundPill.js +3 -2
- package/src/components/pill-selector-dropdown/__tests__/RoundPill.test.js +19 -1
- package/src/components/pill-selector-dropdown/flowTypes.js +1 -0
- package/src/elements/common/messages.js +1 -1
- package/src/elements/content-preview/__tests__/__snapshots__/PreviewError.test.js.snap +1 -1
- package/src/elements/content-sidebar/additional-tabs/AdditionalTab.scss +2 -0
- package/src/features/unified-share-modal/ContactsField.js +2 -1
- package/src/features/unified-share-modal/__tests__/__snapshots__/ContactsField.test.js.snap +9 -0
- package/src/features/unified-share-modal/types.ts +1 -1
|
@@ -38,10 +38,12 @@ class ContactDatalistItem extends React.PureComponent {
|
|
|
38
38
|
getAvatarUrl() {
|
|
39
39
|
const {
|
|
40
40
|
getContactAvatarUrl,
|
|
41
|
-
id
|
|
41
|
+
id,
|
|
42
|
+
type
|
|
42
43
|
} = this.props;
|
|
43
44
|
Promise.resolve(getContactAvatarUrl && id ? getContactAvatarUrl({
|
|
44
|
-
id
|
|
45
|
+
id,
|
|
46
|
+
type
|
|
45
47
|
}) : undefined).then(this.getAvatarUrlHandler).catch(() => {// noop
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/contact-datalist-item/ContactDatalistItem.tsx"],"names":["React","Avatar","DatalistItem","ContactDatalistItem","PureComponent","constructor","props","avatarUrl","isMounted","setState","state","undefined","getAvatarUrl","getContactAvatarUrl","id","Promise","resolve","then","getAvatarUrlHandler","catch","componentDidMount","componentWillUnmount","render","isExternal","name","showAvatar","subtitle","rest"],"mappings":";;;;;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAKA,OAAO,4BAAP;;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/contact-datalist-item/ContactDatalistItem.tsx"],"names":["React","Avatar","DatalistItem","ContactDatalistItem","PureComponent","constructor","props","avatarUrl","isMounted","setState","state","undefined","getAvatarUrl","getContactAvatarUrl","id","type","Promise","resolve","then","getAvatarUrlHandler","catch","componentDidMount","componentWillUnmount","render","isExternal","name","showAvatar","subtitle","rest"],"mappings":";;;;;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAKA,OAAO,4BAAP;;AAiBA,MAAMC,mBAAN,SAAkCH,KAAK,CAACI,aAAxC,CAA0G;AACtGC,EAAAA,WAAW,CAACC,KAAD,EAAkC;AACzC,UAAMA,KAAN;;AADyC,uCAKjC,KALiC;;AAAA,iDAYtBC,SAAD,IAA0C;AAC5D,UAAI,KAAKC,SAAT,EAAoB;AAChB,aAAKC,QAAL,CAAc;AACVF,UAAAA;AADU,SAAd;AAGH;AACJ,KAlB4C;;AAEzC,SAAKG,KAAL,GAAa;AAAEH,MAAAA,SAAS,EAAEI;AAAb,KAAb;AACH;;AAiBD;;;;;AAKAC,EAAAA,YAAY,GAAG;AACX,UAAM;AAAEC,MAAAA,mBAAF;AAAuBC,MAAAA,EAAvB;AAA2BC,MAAAA;AAA3B,QAAoC,KAAKT,KAA/C;AACAU,IAAAA,OAAO,CAACC,OAAR,CACIJ,mBAAmB,IAAIC,EAAvB,GACMD,mBAAmB,CAAC;AAChBC,MAAAA,EADgB;AAEhBC,MAAAA;AAFgB,KAAD,CADzB,GAKMJ,SANV,EAQKO,IARL,CAQU,KAAKC,mBARf,EASKC,KATL,CASW,MAAM,CACT;AACH,KAXL;AAYH;;AAEDC,EAAAA,iBAAiB,GAAG;AAChB,SAAKb,SAAL,GAAiB,IAAjB;AACA,SAAKI,YAAL;AACH;;AAEDU,EAAAA,oBAAoB,GAAG;AACnB,SAAKd,SAAL,GAAiB,KAAjB;AACH;;AAEDe,EAAAA,MAAM,GAAG;AACL;AACA,wBAAqF,KAAKjB,KAA1F;AAAA,UAAM;AAAEO,MAAAA,mBAAF;AAAuBC,MAAAA,EAAvB;AAA2BU,MAAAA,UAA3B;AAAuCC,MAAAA,IAAvC;AAA6CC,MAAAA,UAA7C;AAAyDC,MAAAA;AAAzD,KAAN;AAAA,UAA4EC,IAA5E;;AACA,UAAM;AAAErB,MAAAA;AAAF,QAAgB,KAAKG,KAA3B;AACA,WACI,oBAAC,YAAD;AAAc,MAAA,SAAS,EAAC;AAAxB,OAAqDkB,IAArD,GACKF,UAAU,IACP,oBAAC,MAAD;AACI,MAAA,SAAS,EAAC,gBADd;AAEI,MAAA,EAAE,EAAEZ,EAFR;AAGI,MAAA,IAAI,EAAEW,IAHV;AAII,MAAA,UAAU,EAAED,UAJhB;AAKI,MAAA,kBAAkB,MALtB;AAMI,MAAA,SAAS,EAAEjB;AANf,MAFR,EAWI;AAAK,MAAA,SAAS,EAAC;AAAf,OACI;AAAK,MAAA,SAAS,EAAC;AAAf,OAA4CkB,IAA5C,CADJ,EAEKE,QAAQ,IAAI;AAAK,MAAA,SAAS,EAAC;AAAf,OAAgDA,QAAhD,CAFjB,CAXJ,CADJ;AAkBH;;AAzEqG;;AA4E1G,eAAexB,mBAAf","sourcesContent":["import * as React from 'react';\nimport Avatar from '../avatar';\nimport DatalistItem from '../datalist-item';\n\nimport { ContactType } from '../../features/unified-share-modal/types';\nimport { SuggestedPillType } from '../pill-selector-dropdown/types';\n\nimport './ContactDatalistItem.scss';\n\nexport interface ContactDatalistItemProps {\n getContactAvatarUrl?: (contact: ContactType) => string | Promise<string | null | undefined>;\n getPillImageUrl?: (data: SuggestedPillType) => string | Promise<string>;\n id?: string;\n isExternal?: boolean;\n name: string | null | undefined;\n showAvatar?: boolean;\n subtitle?: React.ReactNode;\n type?: string | null | undefined;\n}\n\ninterface ContactDatalistItemState {\n avatarUrl: string | null | undefined;\n}\n\nclass ContactDatalistItem extends React.PureComponent<ContactDatalistItemProps, ContactDatalistItemState> {\n constructor(props: ContactDatalistItemProps) {\n super(props);\n this.state = { avatarUrl: undefined };\n }\n\n isMounted = false;\n\n /**\n * Success handler for getting avatar url\n *\n * @param {string} [avatarUrl] the user avatar url\n */\n getAvatarUrlHandler = (avatarUrl: string | null | undefined) => {\n if (this.isMounted) {\n this.setState({\n avatarUrl,\n });\n }\n };\n\n /**\n * Gets the avatar URL for the user from the getContactAvatarUrl prop\n *\n * @return {void}\n */\n getAvatarUrl() {\n const { getContactAvatarUrl, id, type } = this.props;\n Promise.resolve(\n getContactAvatarUrl && id\n ? getContactAvatarUrl({\n id,\n type,\n })\n : undefined,\n )\n .then(this.getAvatarUrlHandler)\n .catch(() => {\n // noop\n });\n }\n\n componentDidMount() {\n this.isMounted = true;\n this.getAvatarUrl();\n }\n\n componentWillUnmount() {\n this.isMounted = false;\n }\n\n render() {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { getContactAvatarUrl, id, isExternal, name, showAvatar, subtitle, ...rest } = this.props;\n const { avatarUrl } = this.state;\n return (\n <DatalistItem className=\"contact-data-list-item\" {...rest}>\n {showAvatar && (\n <Avatar\n className=\"contact-avatar\"\n id={id}\n name={name}\n isExternal={isExternal}\n shouldShowExternal\n avatarUrl={avatarUrl}\n />\n )}\n <div className=\"contact-name-container\">\n <div className=\"contact-text contact-name\">{name}</div>\n {subtitle && <div className=\"contact-text contact-sub-name\">{subtitle}</div>}\n </div>\n </DatalistItem>\n );\n }\n}\n\nexport default ContactDatalistItem;\n"],"file":"ContactDatalistItem.js"}
|
|
@@ -230,7 +230,8 @@ class PillSelectorBase extends React.Component {
|
|
|
230
230
|
showAvatar: showAvatars,
|
|
231
231
|
id: option.id,
|
|
232
232
|
hasWarning: option.hasWarning,
|
|
233
|
-
isExternal: option.isExternalUser
|
|
233
|
+
isExternal: option.isExternalUser,
|
|
234
|
+
type: option.type
|
|
234
235
|
});
|
|
235
236
|
}) : selectedOptions.map((option, index) => {
|
|
236
237
|
// TODO: This and associated types will be removed once all views are updates with round pills.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/pill-selector-dropdown/PillSelector.js"],"names":["React","classNames","uniqueId","List","Tooltip","KEYS","RoundPill","Pill","SuggestedPillsRow","stopDefaultEvent","event","preventDefault","stopPropagation","PillSelectorBase","Component","isFocused","selectedIndex","selectedOptions","props","size","length","key","map","option","inputEl","focus","setState","inputValue","value","numPills","getNumSelected","state","backspace","index","resetSelectedIndex","onRemove","selectedOption","get","arrowLeft","Math","max","hiddenEl","arrowRight","render","allowInvalidPills","className","disabled","error","errorTooltipPosition","getPillClassName","getPillImageUrl","inputProps","isInputDisabled","isInputFocusedNextLine","onInput","onSuggestedPillAdd","placeholder","innerRef","showAvatars","showRoundedPills","suggestedPillsData","suggestedPillsFilter","suggestedPillsTitle","validator","rest","suggestedPillsEnabled","hasError","classes","ariaAttrs","errorMessageID","handleBlur","handleClick","handleFocus","handleKeyDown","undefined","bind","displayText","text","id","hasWarning","isExternalUser","hiddenRef","input","getPillsByKey","PillSelector","forwardRef","ref","displayName"],"mappings":";;;;;;;;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAAqB,iBAArB;AACA,SAASC,IAAT,QAAqB,WAArB;AAEA,OAAOC,OAAP,MAAoB,YAApB;AACA,SAASC,IAAT,QAAqB,iBAArB;AAEA,OAAOC,SAAP,MAAsB,aAAtB;AACA,OAAOC,IAAP,MAAiB,QAAjB;AACA,OAAOC,iBAAP,MAA8B,qBAA9B;;AAIA,SAASC,gBAAT,CAA0BC,KAA1B,EAAiC;AAC7BA,EAAAA,KAAK,CAACC,cAAN;AACAD,EAAAA,KAAK,CAACE,eAAN;AACH;;AAoDD,MAAMC,gBAAN,SAA+Bb,KAAK,CAACc,SAArC,CAA6D;AAAA;AAAA;;AAAA,mCAYjD;AACJC,MAAAA,SAAS,EAAE,KADP;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,MAAA,OAAO,EAAEE,OATb;AAUI,MAAA,WAAW,EAAE,KAAKxB,cAAL,OAA0B,CAA1B,GAA8B0B,WAA9B,GAA4C,EAV7D;AAWI,MAAA,GAAG,EAAE0B,KAAK,IAAI;AACV,aAAK1D,OAAL,GAAe0D,KAAf;AACH;AAbL,OApDJ,EAmEI,oBAAC,iBAAD;AACI,MAAA,kBAAkB,EAAE3B,kBADxB;AAEI,MAAA,mBAAmB,EAAE,KAAK4B,aAAL,CAAmB,OAAnB,CAFzB;AAGI,MAAA,oBAAoB,EAAEtB,oBAH1B;AAII,MAAA,kBAAkB,EAAED,kBAJxB;AAKI,MAAA,KAAK,EAAEE;AALX,MAnEJ,EA0EI;AAAM,MAAA,EAAE,EAAE,KAAKO,cAAf;AAA+B,MAAA,SAAS,EAAC,sBAAzC;AAAgE,MAAA,IAAI,EAAC;AAArE,OACKtB,KADL,CA1EJ,CAFJ,CADJ;AAmFH;;AArPwD;;gBAAvDlC,gB,kBACkC;AAChC+B,EAAAA,iBAAiB,EAAE,KADa;AAEhCE,EAAAA,QAAQ,EAAE,KAFsB;AAGhCC,EAAAA,KAAK,EAAE,EAHyB;AAIhCC,EAAAA,oBAAoB,EAAE,aAJU;AAKhCG,EAAAA,UAAU,EAAE,EALoB;AAMhCK,EAAAA,WAAW,EAAE,EANmB;AAOhCvC,EAAAA,eAAe,EAAE,EAPe;AAQhC8C,EAAAA,SAAS,EAAE,MAAM;AARe,C;;AAuPxC,SAASlD,gBAAT;AAEA,MAAMuE,YAAY,GAAGpF,KAAK,CAACqF,UAAN,CAA0C,CAACnE,KAAD,EAAgBoE,GAAhB,KAC3D,oBAAC,gBAAD,eAAsBpE,KAAtB;AAA6B,EAAA,QAAQ,EAAEoE;AAAvC,GADiB,CAArB;AAGAF,YAAY,CAACG,WAAb,GAA2B,cAA3B;AAEA,eAAeH,YAAf","sourcesContent":["// @flow\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport uniqueId from 'lodash/uniqueId';\nimport { List } from 'immutable';\n\nimport Tooltip from '../tooltip';\nimport { KEYS } from '../../constants';\n\nimport RoundPill from './RoundPill';\nimport Pill from './Pill';\nimport SuggestedPillsRow from './SuggestedPillsRow';\nimport type { RoundOption, Option, OptionValue, SuggestedPillsFilter } from './flowTypes';\nimport type { Position } from '../tooltip';\n\nfunction stopDefaultEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\n\ntype Props = {\n allowInvalidPills: boolean,\n className?: string,\n disabled?: boolean,\n error?: React.Node,\n /** Position of error message tooltip */\n errorTooltipPosition?: Position,\n /** Called on pill render to get a specific class name to use for a particular option. Note: Only has effect when showRoundedPills is true. */\n getPillClassName?: (option: Option) => string,\n /** Function to retrieve the image URL associated with a pill */\n getPillImageUrl?: (data: { id: string | number, [key: string]: any }) => string,\n innerRef?: React.Ref<any>,\n inputProps: Object,\n /** Allows disabling the textarea element without disabling the whole PillSelector */\n isInputDisabled?: boolean,\n /** Whether to show textarea in next line when focused */\n isInputFocusedNextLine?: boolean,\n onInput: Function,\n onRemove: Function,\n onSuggestedPillAdd?: Function,\n placeholder: string,\n selectedOptions: List<Object>,\n /** Whether to show avatars in pills (if rounded style is enabled) */\n showAvatars?: boolean,\n /** Whether to use rounded style for pills */\n showRoundedPills?: boolean,\n suggestedPillsData?: Array<Object>,\n suggestedPillsFilter?: SuggestedPillsFilter,\n suggestedPillsTitle?: string,\n validator: (option: Option | OptionValue) => boolean,\n};\n\ntype State = {\n isFocused: boolean,\n selectedIndex: number,\n};\n\ntype DefaultProps = {\n allowInvalidPills: boolean,\n disabled: boolean,\n error: string,\n errorTooltipPosition: Position,\n inputProps: Object,\n placeholder: string,\n selectedOptions: List<Object>,\n validator: () => boolean,\n};\n\ntype Config = React.Config<Props, DefaultProps>;\n\nclass PillSelectorBase extends React.Component<Props, State> {\n static defaultProps: DefaultProps = {\n allowInvalidPills: false,\n disabled: false,\n error: '',\n errorTooltipPosition: 'bottom-left',\n inputProps: {},\n placeholder: '',\n selectedOptions: [],\n validator: () => true,\n };\n\n state = {\n isFocused: false,\n selectedIndex: -1,\n };\n\n getNumSelected = (): number => {\n const { selectedOptions } = this.props;\n\n return typeof selectedOptions.size === 'number' ? selectedOptions.size : selectedOptions.length;\n };\n\n getPillsByKey = (key: string): Array<any> => {\n const { selectedOptions } = this.props;\n\n return selectedOptions.map(option => option[key]);\n };\n\n inputEl: HTMLInputElement;\n\n handleClick = () => {\n this.inputEl.focus();\n };\n\n handleFocus = () => {\n this.setState({ isFocused: true });\n };\n\n handleBlur = () => {\n this.setState({ isFocused: false });\n };\n\n hiddenEl: HTMLSpanElement;\n\n handleKeyDown = (event: SyntheticKeyboardEvent<>) => {\n const inputValue = this.inputEl.value;\n const numPills = this.getNumSelected();\n const { selectedIndex } = this.state;\n\n switch (event.key) {\n case KEYS.backspace: {\n let index = -1;\n if (selectedIndex >= 0) {\n // remove selected pill\n index = selectedIndex;\n this.resetSelectedIndex();\n this.inputEl.focus();\n } else if (inputValue === '') {\n // remove last pill\n index = numPills - 1;\n }\n if (index >= 0) {\n const { onRemove, selectedOptions } = this.props;\n const selectedOption =\n // $FlowFixMe\n typeof selectedOptions.get === 'function' ? selectedOptions.get(index) : selectedOptions[index];\n onRemove(selectedOption, index);\n stopDefaultEvent(event);\n }\n break;\n }\n case KEYS.arrowLeft:\n if (selectedIndex >= 0) {\n // select previous pill\n this.setState({\n selectedIndex: Math.max(selectedIndex - 1, 0),\n });\n stopDefaultEvent(event);\n } else if (inputValue === '' && numPills > 0) {\n // select last pill\n this.hiddenEl.focus();\n this.setState({ selectedIndex: numPills - 1 });\n stopDefaultEvent(event);\n }\n break;\n case KEYS.arrowRight: {\n if (selectedIndex >= 0) {\n const index = selectedIndex + 1;\n if (index >= numPills) {\n // deselect last pill\n this.resetSelectedIndex();\n this.inputEl.focus();\n } else {\n // select next pill\n this.setState({ selectedIndex: index });\n }\n stopDefaultEvent(event);\n }\n break;\n }\n // no default\n }\n };\n\n errorMessageID = uniqueId('errorMessage');\n\n hiddenRef = (hiddenEl: ?HTMLSpanElement) => {\n if (hiddenEl) {\n this.hiddenEl = hiddenEl;\n }\n };\n\n resetSelectedIndex = () => {\n if (this.state.selectedIndex !== -1) {\n this.setState({ selectedIndex: -1 });\n }\n };\n\n render() {\n const { isFocused, selectedIndex } = this.state;\n const {\n allowInvalidPills,\n className,\n disabled,\n error,\n errorTooltipPosition,\n getPillClassName,\n getPillImageUrl,\n inputProps,\n isInputDisabled,\n isInputFocusedNextLine,\n onInput,\n onRemove,\n onSuggestedPillAdd,\n placeholder,\n innerRef,\n selectedOptions,\n showAvatars,\n showRoundedPills,\n suggestedPillsData,\n suggestedPillsFilter,\n suggestedPillsTitle,\n validator,\n ...rest\n } = this.props;\n const suggestedPillsEnabled = suggestedPillsData && suggestedPillsData.length > 0;\n const hasError = !!error;\n const classes = classNames('bdl-PillSelector', 'pill-selector-input-wrapper', {\n 'is-disabled': disabled,\n 'bdl-is-disabled': disabled,\n 'is-focused': isFocused,\n 'show-error': hasError,\n 'pill-selector-suggestions-enabled': suggestedPillsEnabled,\n 'bdl-PillSelector--suggestionsEnabled': suggestedPillsEnabled,\n });\n const ariaAttrs = {\n 'aria-invalid': hasError,\n 'aria-errormessage': this.errorMessageID,\n 'aria-describedby': this.errorMessageID,\n };\n\n return (\n <Tooltip isShown={hasError} text={error || ''} position={errorTooltipPosition} theme=\"error\">\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n <span\n className={classes}\n onBlur={this.handleBlur}\n onClick={this.handleClick}\n onFocus={this.handleFocus}\n onKeyDown={this.handleKeyDown}\n ref={innerRef}\n >\n {showRoundedPills\n ? selectedOptions.map((option: RoundOption, index: number) => {\n return (\n <RoundPill\n className={getPillClassName ? getPillClassName(option) : undefined}\n getPillImageUrl={getPillImageUrl}\n isValid={allowInvalidPills ? validator(option) : true}\n isDisabled={disabled}\n isSelected={index === selectedIndex}\n key={option.value}\n onRemove={onRemove.bind(this, option, index)}\n // $FlowFixMe option.text is for backwards compatibility\n text={option.displayText || option.text}\n showAvatar={showAvatars}\n id={option.id}\n hasWarning={option.hasWarning}\n isExternal={option.isExternalUser}\n />\n );\n })\n : selectedOptions.map((option: Option, index: number) => {\n // TODO: This and associated types will be removed once all views are updates with round pills.\n return (\n <Pill\n isValid={allowInvalidPills ? validator(option) : true}\n isDisabled={disabled}\n isSelected={index === selectedIndex}\n key={option.value}\n onRemove={onRemove.bind(this, option, index)}\n // $FlowFixMe option.text is for backwards compatibility\n text={option.displayText || option.text}\n />\n );\n })}\n\n {/* hidden element for focus/key events during pill selection */}\n <span\n aria-hidden=\"true\"\n className=\"accessibility-hidden\"\n onBlur={this.resetSelectedIndex}\n ref={this.hiddenRef}\n tabIndex={-1}\n data-testid=\"pill-selection-helper\"\n />\n <textarea\n {...ariaAttrs}\n {...rest}\n {...inputProps}\n autoComplete=\"off\"\n className={classNames('bdl-PillSelector-input', 'pill-selector-input', className, {\n 'bdl-PillSelector-input--nextLine': isInputFocusedNextLine,\n })}\n disabled={disabled || isInputDisabled}\n onInput={onInput}\n placeholder={this.getNumSelected() === 0 ? placeholder : ''}\n ref={input => {\n this.inputEl = input;\n }}\n />\n <SuggestedPillsRow\n onSuggestedPillAdd={onSuggestedPillAdd}\n selectedPillsValues={this.getPillsByKey('value')}\n suggestedPillsFilter={suggestedPillsFilter}\n suggestedPillsData={suggestedPillsData}\n title={suggestedPillsTitle}\n />\n <span id={this.errorMessageID} className=\"accessibility-hidden\" role=\"alert\">\n {error}\n </span>\n </span>\n </Tooltip>\n );\n }\n}\n\nexport { PillSelectorBase };\n\nconst PillSelector = React.forwardRef<Config, HTMLSpanElement>((props: Config, ref: React.Ref<any>) => (\n <PillSelectorBase {...props} innerRef={ref} />\n));\nPillSelector.displayName = 'PillSelector';\n\nexport default PillSelector;\n"],"file":"PillSelector.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/pill-selector-dropdown/PillSelector.js"],"names":["React","classNames","uniqueId","List","Tooltip","KEYS","RoundPill","Pill","SuggestedPillsRow","stopDefaultEvent","event","preventDefault","stopPropagation","PillSelectorBase","Component","isFocused","selectedIndex","selectedOptions","props","size","length","key","map","option","inputEl","focus","setState","inputValue","value","numPills","getNumSelected","state","backspace","index","resetSelectedIndex","onRemove","selectedOption","get","arrowLeft","Math","max","hiddenEl","arrowRight","render","allowInvalidPills","className","disabled","error","errorTooltipPosition","getPillClassName","getPillImageUrl","inputProps","isInputDisabled","isInputFocusedNextLine","onInput","onSuggestedPillAdd","placeholder","innerRef","showAvatars","showRoundedPills","suggestedPillsData","suggestedPillsFilter","suggestedPillsTitle","validator","rest","suggestedPillsEnabled","hasError","classes","ariaAttrs","errorMessageID","handleBlur","handleClick","handleFocus","handleKeyDown","undefined","bind","displayText","text","id","hasWarning","isExternalUser","type","hiddenRef","input","getPillsByKey","PillSelector","forwardRef","ref","displayName"],"mappings":";;;;;;;;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAAqB,iBAArB;AACA,SAASC,IAAT,QAAqB,WAArB;AAEA,OAAOC,OAAP,MAAoB,YAApB;AACA,SAASC,IAAT,QAAqB,iBAArB;AAEA,OAAOC,SAAP,MAAsB,aAAtB;AACA,OAAOC,IAAP,MAAiB,QAAjB;AACA,OAAOC,iBAAP,MAA8B,qBAA9B;;AAIA,SAASC,gBAAT,CAA0BC,KAA1B,EAAiC;AAC7BA,EAAAA,KAAK,CAACC,cAAN;AACAD,EAAAA,KAAK,CAACE,eAAN;AACH;;AAoDD,MAAMC,gBAAN,SAA+Bb,KAAK,CAACc,SAArC,CAA6D;AAAA;AAAA;;AAAA,mCAYjD;AACJC,MAAAA,SAAS,EAAE,KADP;AAEJC,MAAAA,aAAa,EAAE,CAAC;AAFZ,KAZiD;;AAAA,4CAiBxC,MAAc;AAC3B,YAAM;AAAEC,QAAAA;AAAF,UAAsB,KAAKC,KAAjC;AAEA,aAAO,OAAOD,eAAe,CAACE,IAAvB,KAAgC,QAAh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EAAE2B,KAAK,IAAI;AACV,aAAK3D,OAAL,GAAe2D,KAAf;AACH;AAbL,OArDJ,EAoEI,oBAAC,iBAAD;AACI,MAAA,kBAAkB,EAAE5B,kBADxB;AAEI,MAAA,mBAAmB,EAAE,KAAK6B,aAAL,CAAmB,OAAnB,CAFzB;AAGI,MAAA,oBAAoB,EAAEvB,oBAH1B;AAII,MAAA,kBAAkB,EAAED,kBAJxB;AAKI,MAAA,KAAK,EAAEE;AALX,MApEJ,EA2EI;AAAM,MAAA,EAAE,EAAE,KAAKO,cAAf;AAA+B,MAAA,SAAS,EAAC,sBAAzC;AAAgE,MAAA,IAAI,EAAC;AAArE,OACKtB,KADL,CA3EJ,CAFJ,CADJ;AAoFH;;AAtPwD;;gBAAvDlC,gB,kBACkC;AAChC+B,EAAAA,iBAAiB,EAAE,KADa;AAEhCE,EAAAA,QAAQ,EAAE,KAFsB;AAGhCC,EAAAA,KAAK,EAAE,EAHyB;AAIhCC,EAAAA,oBAAoB,EAAE,aAJU;AAKhCG,EAAAA,UAAU,EAAE,EALoB;AAMhCK,EAAAA,WAAW,EAAE,EANmB;AAOhCvC,EAAAA,eAAe,EAAE,EAPe;AAQhC8C,EAAAA,SAAS,EAAE,MAAM;AARe,C;;AAwPxC,SAASlD,gBAAT;AAEA,MAAMwE,YAAY,GAAGrF,KAAK,CAACsF,UAAN,CAA0C,CAACpE,KAAD,EAAgBqE,GAAhB,KAC3D,oBAAC,gBAAD,eAAsBrE,KAAtB;AAA6B,EAAA,QAAQ,EAAEqE;AAAvC,GADiB,CAArB;AAGAF,YAAY,CAACG,WAAb,GAA2B,cAA3B;AAEA,eAAeH,YAAf","sourcesContent":["// @flow\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport uniqueId from 'lodash/uniqueId';\nimport { List } from 'immutable';\n\nimport Tooltip from '../tooltip';\nimport { KEYS } from '../../constants';\n\nimport RoundPill from './RoundPill';\nimport Pill from './Pill';\nimport SuggestedPillsRow from './SuggestedPillsRow';\nimport type { RoundOption, Option, OptionValue, SuggestedPillsFilter } from './flowTypes';\nimport type { Position } from '../tooltip';\n\nfunction stopDefaultEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\n\ntype Props = {\n allowInvalidPills: boolean,\n className?: string,\n disabled?: boolean,\n error?: React.Node,\n /** Position of error message tooltip */\n errorTooltipPosition?: Position,\n /** Called on pill render to get a specific class name to use for a particular option. Note: Only has effect when showRoundedPills is true. */\n getPillClassName?: (option: Option) => string,\n /** Function to retrieve the image URL associated with a pill */\n getPillImageUrl?: (data: { id: string | number, [key: string]: any }) => string,\n innerRef?: React.Ref<any>,\n inputProps: Object,\n /** Allows disabling the textarea element without disabling the whole PillSelector */\n isInputDisabled?: boolean,\n /** Whether to show textarea in next line when focused */\n isInputFocusedNextLine?: boolean,\n onInput: Function,\n onRemove: Function,\n onSuggestedPillAdd?: Function,\n placeholder: string,\n selectedOptions: List<Object>,\n /** Whether to show avatars in pills (if rounded style is enabled) */\n showAvatars?: boolean,\n /** Whether to use rounded style for pills */\n showRoundedPills?: boolean,\n suggestedPillsData?: Array<Object>,\n suggestedPillsFilter?: SuggestedPillsFilter,\n suggestedPillsTitle?: string,\n validator: (option: Option | OptionValue) => boolean,\n};\n\ntype State = {\n isFocused: boolean,\n selectedIndex: number,\n};\n\ntype DefaultProps = {\n allowInvalidPills: boolean,\n disabled: boolean,\n error: string,\n errorTooltipPosition: Position,\n inputProps: Object,\n placeholder: string,\n selectedOptions: List<Object>,\n validator: () => boolean,\n};\n\ntype Config = React.Config<Props, DefaultProps>;\n\nclass PillSelectorBase extends React.Component<Props, State> {\n static defaultProps: DefaultProps = {\n allowInvalidPills: false,\n disabled: false,\n error: '',\n errorTooltipPosition: 'bottom-left',\n inputProps: {},\n placeholder: '',\n selectedOptions: [],\n validator: () => true,\n };\n\n state = {\n isFocused: false,\n selectedIndex: -1,\n };\n\n getNumSelected = (): number => {\n const { selectedOptions } = this.props;\n\n return typeof selectedOptions.size === 'number' ? selectedOptions.size : selectedOptions.length;\n };\n\n getPillsByKey = (key: string): Array<any> => {\n const { selectedOptions } = this.props;\n\n return selectedOptions.map(option => option[key]);\n };\n\n inputEl: HTMLInputElement;\n\n handleClick = () => {\n this.inputEl.focus();\n };\n\n handleFocus = () => {\n this.setState({ isFocused: true });\n };\n\n handleBlur = () => {\n this.setState({ isFocused: false });\n };\n\n hiddenEl: HTMLSpanElement;\n\n handleKeyDown = (event: SyntheticKeyboardEvent<>) => {\n const inputValue = this.inputEl.value;\n const numPills = this.getNumSelected();\n const { selectedIndex } = this.state;\n\n switch (event.key) {\n case KEYS.backspace: {\n let index = -1;\n if (selectedIndex >= 0) {\n // remove selected pill\n index = selectedIndex;\n this.resetSelectedIndex();\n this.inputEl.focus();\n } else if (inputValue === '') {\n // remove last pill\n index = numPills - 1;\n }\n if (index >= 0) {\n const { onRemove, selectedOptions } = this.props;\n const selectedOption =\n // $FlowFixMe\n typeof selectedOptions.get === 'function' ? selectedOptions.get(index) : selectedOptions[index];\n onRemove(selectedOption, index);\n stopDefaultEvent(event);\n }\n break;\n }\n case KEYS.arrowLeft:\n if (selectedIndex >= 0) {\n // select previous pill\n this.setState({\n selectedIndex: Math.max(selectedIndex - 1, 0),\n });\n stopDefaultEvent(event);\n } else if (inputValue === '' && numPills > 0) {\n // select last pill\n this.hiddenEl.focus();\n this.setState({ selectedIndex: numPills - 1 });\n stopDefaultEvent(event);\n }\n break;\n case KEYS.arrowRight: {\n if (selectedIndex >= 0) {\n const index = selectedIndex + 1;\n if (index >= numPills) {\n // deselect last pill\n this.resetSelectedIndex();\n this.inputEl.focus();\n } else {\n // select next pill\n this.setState({ selectedIndex: index });\n }\n stopDefaultEvent(event);\n }\n break;\n }\n // no default\n }\n };\n\n errorMessageID = uniqueId('errorMessage');\n\n hiddenRef = (hiddenEl: ?HTMLSpanElement) => {\n if (hiddenEl) {\n this.hiddenEl = hiddenEl;\n }\n };\n\n resetSelectedIndex = () => {\n if (this.state.selectedIndex !== -1) {\n this.setState({ selectedIndex: -1 });\n }\n };\n\n render() {\n const { isFocused, selectedIndex } = this.state;\n const {\n allowInvalidPills,\n className,\n disabled,\n error,\n errorTooltipPosition,\n getPillClassName,\n getPillImageUrl,\n inputProps,\n isInputDisabled,\n isInputFocusedNextLine,\n onInput,\n onRemove,\n onSuggestedPillAdd,\n placeholder,\n innerRef,\n selectedOptions,\n showAvatars,\n showRoundedPills,\n suggestedPillsData,\n suggestedPillsFilter,\n suggestedPillsTitle,\n validator,\n ...rest\n } = this.props;\n const suggestedPillsEnabled = suggestedPillsData && suggestedPillsData.length > 0;\n const hasError = !!error;\n const classes = classNames('bdl-PillSelector', 'pill-selector-input-wrapper', {\n 'is-disabled': disabled,\n 'bdl-is-disabled': disabled,\n 'is-focused': isFocused,\n 'show-error': hasError,\n 'pill-selector-suggestions-enabled': suggestedPillsEnabled,\n 'bdl-PillSelector--suggestionsEnabled': suggestedPillsEnabled,\n });\n const ariaAttrs = {\n 'aria-invalid': hasError,\n 'aria-errormessage': this.errorMessageID,\n 'aria-describedby': this.errorMessageID,\n };\n\n return (\n <Tooltip isShown={hasError} text={error || ''} position={errorTooltipPosition} theme=\"error\">\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n <span\n className={classes}\n onBlur={this.handleBlur}\n onClick={this.handleClick}\n onFocus={this.handleFocus}\n onKeyDown={this.handleKeyDown}\n ref={innerRef}\n >\n {showRoundedPills\n ? selectedOptions.map((option: RoundOption, index: number) => {\n return (\n <RoundPill\n className={getPillClassName ? getPillClassName(option) : undefined}\n getPillImageUrl={getPillImageUrl}\n isValid={allowInvalidPills ? validator(option) : true}\n isDisabled={disabled}\n isSelected={index === selectedIndex}\n key={option.value}\n onRemove={onRemove.bind(this, option, index)}\n // $FlowFixMe option.text is for backwards compatibility\n text={option.displayText || option.text}\n showAvatar={showAvatars}\n id={option.id}\n hasWarning={option.hasWarning}\n isExternal={option.isExternalUser}\n type={option.type}\n />\n );\n })\n : selectedOptions.map((option: Option, index: number) => {\n // TODO: This and associated types will be removed once all views are updates with round pills.\n return (\n <Pill\n isValid={allowInvalidPills ? validator(option) : true}\n isDisabled={disabled}\n isSelected={index === selectedIndex}\n key={option.value}\n onRemove={onRemove.bind(this, option, index)}\n // $FlowFixMe option.text is for backwards compatibility\n text={option.displayText || option.text}\n />\n );\n })}\n\n {/* hidden element for focus/key events during pill selection */}\n <span\n aria-hidden=\"true\"\n className=\"accessibility-hidden\"\n onBlur={this.resetSelectedIndex}\n ref={this.hiddenRef}\n tabIndex={-1}\n data-testid=\"pill-selection-helper\"\n />\n <textarea\n {...ariaAttrs}\n {...rest}\n {...inputProps}\n autoComplete=\"off\"\n className={classNames('bdl-PillSelector-input', 'pill-selector-input', className, {\n 'bdl-PillSelector-input--nextLine': isInputFocusedNextLine,\n })}\n disabled={disabled || isInputDisabled}\n onInput={onInput}\n placeholder={this.getNumSelected() === 0 ? placeholder : ''}\n ref={input => {\n this.inputEl = input;\n }}\n />\n <SuggestedPillsRow\n onSuggestedPillAdd={onSuggestedPillAdd}\n selectedPillsValues={this.getPillsByKey('value')}\n suggestedPillsFilter={suggestedPillsFilter}\n suggestedPillsData={suggestedPillsData}\n title={suggestedPillsTitle}\n />\n <span id={this.errorMessageID} className=\"accessibility-hidden\" role=\"alert\">\n {error}\n </span>\n </span>\n </Tooltip>\n );\n }\n}\n\nexport { PillSelectorBase };\n\nconst PillSelector = React.forwardRef<Config, HTMLSpanElement>((props: Config, ref: React.Ref<any>) => (\n <PillSelectorBase {...props} innerRef={ref} />\n));\nPillSelector.displayName = 'PillSelector';\n\nexport default PillSelector;\n"],"file":"PillSelector.js"}
|
|
@@ -78,10 +78,12 @@ class RoundPill extends React.PureComponent {
|
|
|
78
78
|
getAvatarUrl() {
|
|
79
79
|
const {
|
|
80
80
|
getPillImageUrl,
|
|
81
|
-
id
|
|
81
|
+
id,
|
|
82
|
+
type
|
|
82
83
|
} = this.props;
|
|
83
84
|
Promise.resolve(getPillImageUrl && id ? getPillImageUrl({
|
|
84
|
-
id
|
|
85
|
+
id,
|
|
86
|
+
type
|
|
85
87
|
}) : undefined).then(this.getAvatarUrlHandler).catch(() => {// noop
|
|
86
88
|
});
|
|
87
89
|
}
|
|
@@ -22,6 +22,7 @@ type Props = {
|
|
|
22
22
|
onRemove: () => any,
|
|
23
23
|
showAvatar?: boolean,
|
|
24
24
|
text: string,
|
|
25
|
+
type?: string | null,
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
type State = {
|
|
@@ -82,8 +83,8 @@ class RoundPill extends React.PureComponent<Props, State> {
|
|
|
82
83
|
* @return {void}
|
|
83
84
|
*/
|
|
84
85
|
getAvatarUrl() {
|
|
85
|
-
const { getPillImageUrl, id } = this.props;
|
|
86
|
-
Promise.resolve(getPillImageUrl && id ? getPillImageUrl({ id }) : undefined)
|
|
86
|
+
const { getPillImageUrl, id, type } = this.props;
|
|
87
|
+
Promise.resolve(getPillImageUrl && id ? getPillImageUrl({ id, type }) : undefined)
|
|
87
88
|
.then(this.getAvatarUrlHandler)
|
|
88
89
|
.catch(() => {
|
|
89
90
|
// noop
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/pill-selector-dropdown/RoundPill.js"],"names":["React","noop","classNames","X","LabelPill","Avatar","RemoveButton","onClick","rest","RoundPill","PureComponent","avatarUrl","undefined","className","isSelected","isDisabled","hasWarning","isValid","props","onRemove","isMounted","setState","getAvatarUrl","getPillImageUrl","id","Promise","resolve","then","getAvatarUrlHandler","catch","componentDidMount","componentWillUnmount","render","isExternal","showAvatar","text","state","getStyles","handleClickRemove"],"mappings":";;;;;;;;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,aAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,CAAP,MAAc,qBAAd,C,CACA;;AACA,OAAOC,SAAP,MAAsB,eAAtB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AAEA,OAAO,kBAAP;;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/pill-selector-dropdown/RoundPill.js"],"names":["React","noop","classNames","X","LabelPill","Avatar","RemoveButton","onClick","rest","RoundPill","PureComponent","avatarUrl","undefined","className","isSelected","isDisabled","hasWarning","isValid","props","onRemove","isMounted","setState","getAvatarUrl","getPillImageUrl","id","type","Promise","resolve","then","getAvatarUrlHandler","catch","componentDidMount","componentWillUnmount","render","isExternal","showAvatar","text","state","getStyles","handleClickRemove"],"mappings":";;;;;;;;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,aAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,CAAP,MAAc,qBAAd,C,CACA;;AACA,OAAOC,SAAP,MAAsB,eAAtB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AAEA,OAAO,kBAAP;;AAsBA,MAAMC,YAAY,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,MAAeC,IAAf;;AAAA,SACjB,oBAAC,CAAD,eAAOA,IAAP;AAAa,mBAAY,MAAzB;AAAgC,IAAA,OAAO,EAAED;AAAzC,KADiB;AAAA,CAArB;;AAIA,MAAME,SAAN,SAAwBT,KAAK,CAACU,aAA9B,CAA0D;AAAA;AAAA;;AAAA,mCAS9C;AACJC,MAAAA,SAAS,EAAEC;AADP,KAT8C;;AAAA,uCAajC,KAbiC;;AAAA,uCAe1C,MAAc;AACtB,YAAM;AAAEC,QAAAA,SAAF;AAAaC,QAAAA,UAAb;AAAyBC,QAAAA,UAAzB;AAAqCC,QAAAA,UAArC;AAAiDC,QAAAA;AAAjD,UAA6D,KAAKC,KAAxE;AAEA,aAAOhB,UAAU,CAAC,eAAD,EAAkBW,SAAlB,EAA6B;AAC1C,mCAA2BC,UAAU,IAAI,CAACC,UADA;AAE1C,mCAA2BA,UAFe;AAG1C,kCAA0BC,UAHgB;AAI1C,gCAAwB,CAACC;AAJiB,OAA7B,CAAjB;AAMH,KAxBqD;;AAAA,+CA0BlC,MA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GI,MAAA,SAAS,EAAEM,SAHf;AAII,MAAA,EAAE,EAAEa,EAJR;AAKI,MAAA,UAAU,EAAEU,UALhB;AAMI,MAAA,IAAI,EAAEE,IANV;AAOI,MAAA,IAAI,EAAC,OAPT;AAQI,MAAA,kBAAkB;AARtB,MADO,GAWP,IAZR,EAaI,oBAAC,SAAD,CAAW,IAAX;AAAgB,MAAA,SAAS,EAAC;AAA1B,OAAgDA,IAAhD,CAbJ,EAcI,oBAAC,SAAD,CAAW,IAAX;AACI,MAAA,SAAS,EAAC,wBADd;AAEI,MAAA,SAAS,EAAE9B,YAFf;AAGI,MAAA,OAAO,EAAE,KAAKiC;AAHlB,MAdJ,CADJ;AAsBH;;AA7FqD;;gBAApD9B,S,kBACoB;AAClBM,EAAAA,UAAU,EAAE,KADM;AAElBD,EAAAA,UAAU,EAAE,KAFM;AAGlBG,EAAAA,OAAO,EAAE,IAHS;AAIlBD,EAAAA,UAAU,EAAE,KAJM;AAKlBmB,EAAAA,UAAU,EAAE;AALM,C;;AA+F1B,eAAe1B,SAAf","sourcesContent":["// @flow\nimport React from 'react';\nimport noop from 'lodash/noop';\nimport classNames from 'classnames';\nimport X from '../../icon/fill/X16';\n// $FlowFixMe this imports from a typescript file\nimport LabelPill from '../label-pill';\nimport Avatar from '../avatar';\n\nimport './RoundPill.scss';\n\ntype Props = {\n className?: string,\n /** Function to retrieve the image URL associated with a pill */\n getPillImageUrl?: (data: { id: string | number, [key: string]: any }) => string | Promise<?string>,\n hasWarning?: boolean,\n id?: string | number,\n isDisabled?: boolean,\n isExternal?: boolean,\n isSelected?: boolean,\n isValid?: boolean,\n onRemove: () => any,\n showAvatar?: boolean,\n text: string,\n type?: string | null,\n};\n\ntype State = {\n avatarUrl: ?string,\n};\n\nconst RemoveButton = ({ onClick, ...rest }: { onClick: () => any }) => (\n <X {...rest} aria-hidden=\"true\" onClick={onClick} />\n);\n\nclass RoundPill extends React.PureComponent<Props, State> {\n static defaultProps = {\n isDisabled: false,\n isSelected: false,\n isValid: true,\n hasWarning: false,\n showAvatar: false,\n };\n\n state = {\n avatarUrl: undefined,\n };\n\n isMounted: boolean = false;\n\n getStyles = (): string => {\n const { className, isSelected, isDisabled, hasWarning, isValid } = this.props;\n\n return classNames('bdl-RoundPill', className, {\n 'bdl-RoundPill--selected': isSelected && !isDisabled,\n 'bdl-RoundPill--disabled': isDisabled,\n 'bdl-RoundPill--warning': hasWarning,\n 'bdl-RoundPill--error': !isValid,\n });\n };\n\n handleClickRemove = () => {\n const { isDisabled, onRemove } = this.props;\n return isDisabled ? noop : onRemove();\n };\n\n /**\n * Success handler for getting avatar url\n *\n * @param {string} [avatarUrl] the user avatar url\n */\n getAvatarUrlHandler = (avatarUrl: ?string) => {\n if (this.isMounted) {\n this.setState({\n avatarUrl,\n });\n }\n };\n\n /**\n * Gets the avatar URL for the user from the getPillImageUrl prop\n *\n * @return {void}\n */\n getAvatarUrl() {\n const { getPillImageUrl, id, type } = this.props;\n Promise.resolve(getPillImageUrl && id ? getPillImageUrl({ id, type }) : undefined)\n .then(this.getAvatarUrlHandler)\n .catch(() => {\n // noop\n });\n }\n\n componentDidMount() {\n this.isMounted = true;\n this.getAvatarUrl();\n }\n\n componentWillUnmount() {\n this.isMounted = false;\n }\n\n render() {\n const { id, isExternal, showAvatar, text } = this.props;\n const { avatarUrl } = this.state;\n\n return (\n <LabelPill.Pill size=\"large\" className={this.getStyles()}>\n {showAvatar ? (\n <LabelPill.Icon\n Component={Avatar}\n className=\"bdl-RoundPill-avatar\"\n avatarUrl={avatarUrl}\n id={id}\n isExternal={isExternal}\n name={text}\n size=\"small\"\n shouldShowExternal\n />\n ) : null}\n <LabelPill.Text className=\"bdl-RoundPill-text\">{text}</LabelPill.Text>\n <LabelPill.Icon\n className=\"bdl-RoundPill-closeBtn\"\n Component={RemoveButton}\n onClick={this.handleClickRemove}\n />\n </LabelPill.Pill>\n );\n }\n}\n\nexport default RoundPill;\n"],"file":"RoundPill.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/pill-selector-dropdown/flowTypes.js"],"names":["List"],"mappings":"AACA,SAASA,IAAT,QAAqB,WAArB","sourcesContent":["// @flow\nimport { List } from 'immutable';\nimport type { SelectOptionProp, SelectOptionValueProp } from '../select-field/props';\n\nexport type Option = SelectOptionProp;\nexport type OptionValue = SelectOptionValueProp;\nexport type SelectedOptions = Array<Option> | List<Option>;\n\nexport type SuggestedPill = {\n email: string,\n id: number,\n name: string,\n text?: string,\n type?: string,\n value?: string,\n};\n\nexport type RoundOption = {\n hasWarning: boolean,\n id?: number | string,\n isExternalUser: boolean,\n} & Option;\n\nexport type SelectedRoundOptions = Array<RoundOption> | List<RoundOption>;\n\nexport type SuggestedPills = Array<SuggestedPill>;\n\nexport type SuggestedPillsFilter = $Keys<SuggestedPill>;\n"],"file":"flowTypes.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/pill-selector-dropdown/flowTypes.js"],"names":["List"],"mappings":"AACA,SAASA,IAAT,QAAqB,WAArB","sourcesContent":["// @flow\nimport { List } from 'immutable';\nimport type { SelectOptionProp, SelectOptionValueProp } from '../select-field/props';\n\nexport type Option = SelectOptionProp;\nexport type OptionValue = SelectOptionValueProp;\nexport type SelectedOptions = Array<Option> | List<Option>;\n\nexport type SuggestedPill = {\n email: string,\n id: number,\n name: string,\n text?: string,\n type?: string,\n value?: string,\n};\n\nexport type RoundOption = {\n hasWarning: boolean,\n id?: number | string,\n isExternalUser: boolean,\n type?: string,\n} & Option;\n\nexport type SelectedRoundOptions = Array<RoundOption> | List<RoundOption>;\n\nexport type SuggestedPills = Array<SuggestedPill>;\n\nexport type SuggestedPillsFilter = $Keys<SuggestedPill>;\n"],"file":"flowTypes.js"}
|
|
@@ -27,7 +27,7 @@ const messages = defineMessages({
|
|
|
27
27
|
},
|
|
28
28
|
previewError: {
|
|
29
29
|
"id": "be.previewError",
|
|
30
|
-
"defaultMessage": "
|
|
30
|
+
"defaultMessage": "This preview didn\u2019t load. Please try to open or download the file to view."
|
|
31
31
|
},
|
|
32
32
|
previewErrorBlockedByPolicy: {
|
|
33
33
|
"id": "be.previewErrorBlockedByPolicy",
|
|
@@ -35,7 +35,7 @@ const messages = defineMessages({
|
|
|
35
35
|
previewError: {
|
|
36
36
|
id: 'be.previewError',
|
|
37
37
|
description: 'Error message when Preview fails due to the files call.',
|
|
38
|
-
defaultMessage: '
|
|
38
|
+
defaultMessage: 'This preview didn’t load. Please try to open or download the file to view.',
|
|
39
39
|
},
|
|
40
40
|
previewErrorBlockedByPolicy: {
|
|
41
41
|
id: 'be.previewErrorBlockedByPolicy',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/elements/common/messages.js"],"names":["defineMessages","messages","today","yesterday","logo","error","preview","previewError","previewErrorBlockedByPolicy","boxEditErrorBlockedByPolicy","previewUpdate","reload","open","close","copy","delete","rename","remove","resume","resumeAll","retry","share","download","save","cancel","create","choose","upload","add","gridView","gridViewColumnSize","gridViewIncreaseColumnSize","gridViewDecreaseColumnSize","listView","sort","newFolder","in","print","selected","max","nameDate","modified","modifiedDateBy","modifiedDate","created","owner","uploader","interacted","interactedDate","name","size","deleteDialogLabel","deleteDialogFileText","deleteDialogFolderText","renameDialogLabel","renameDialogText","renameDialogErrorInvalid","renameDialogErrorInUse","renameDialogErrorTooLong","createDialogLabel","createDialogText","createDialogErrorInvalid","createDialogErrorTooLong","createDialogErrorInUse","shareDialogLabel","shareDialogText","shareDialogNone","shareAccessOpen","shareAccessCollab","shareAccessCompany","shareAccessNone","shareAccessRemove","searchPlaceholder","sidebarAccessStats","sidebarContentInsights","sidebarShow","sidebarHide","description","descriptionPlaceholder","sidebarDetailsTitle","sidebarSkillsTitle","sidebarSkillsErrorTitle","sidebarSkillsErrorContent","sidebarActivityTitle","sidebarDocGenTitle","sidebarMetadataTitle","sidebarMetadataEditingErrorContent","sidebarMetadataFetchingErrorContent","sidebarFileFetchingErrorContent","sidebarProperties","sidebarNavLabel","defaultSkill","statusSkill","topicsSkill","keywordSkill","faceSkill","transcriptSkill","skillPendingStatus","skillInvokedStatus","skillUnknownError","skillInvalidFileSizeError","skillInvalidFileExtensionError","skillNoInfoFoundError","skillFileProcessingError","uploadErrorTooManyFiles","uploadError","uploadEmptyWithFolderUploadEnabled","uploadEmptyWithFolderUploadDisabled","uploadEmptyFileInput","uploadEmptyFolderInput","uploadNoDragDrop","uploadInProgress","uploadSuccess","uploadSuccessFileInput","uploadSuccessFolderInput","uploadOptions","nameASC","nameDESC","dateASC","dateDESC","sizeASC","sizeDESC","searchState","selectedState","errorState","folderState","metadataState","recentsState","loadingState","errorBreadcrumb","rootBreadcrumb","searchBreadcrumb","recentsBreadcrumb","selectedBreadcrumb","uploadsManagerUploadInProgress","uploadsManagerUploadPrompt","uploadsManagerUploadComplete","uploadsManagerUploadFailed","uploadsCancelButtonTooltip","uploadsRetryButtonTooltip","uploadsFileSizeLimitExceededErrorMessage","uploadsFileSizeLimitExceededErrorMessageForUpgradeCta","uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta","uploadsStorageLimitErrorMessage","uploadsPendingFolderSizeLimitErrorMessage","uploadsItemNameInUseErrorMessage","uploadsProvidedFolderNameInvalidMessage","uploadsOneOrMoreChildFoldersFailedToUploadMessage","uploadsPackageUploadErrorMessage","uploadsDefaultErrorMessage","errorOccured","editLabel","getVersionInfo","keywordsApplied","keywordsList","noActivity","noActivityAnnotationPrompt","noActivityCommentPrompt","versionDeleted","versionPromoted","versionRestored","versionMultipleUsersUploaded","versionUploadCollapsed","versionUploaded","fileRequestDisplayName","defaultInlineErrorContentMessage","fileDescriptionInlineErrorTitleMessage","defaultErrorMaskHeaderMessage","defaultErrorMaskSubHeaderMessage","fileAccessStatsErrorHeaderMessage","fileAccessStatsPermissionsError","fileClassificationErrorHeaderMessage","currentUserErrorHeaderMessage","activityFeedItemApiError","nextFile","nextPage","pageStatus","previousFile","previousPage","previousSegment","nextSegment","transcriptEdit","emptyOpenWithDescription","errorOpenWithDescription","defaultOpenWithDescription","executeIntegrationOpenWithErrorHeader","executeIntegrationOpenWithErrorSubHeader","boxToolsInstallMessage","boxToolsBlacklistedError","drawAnnotation","pointAnnotation","expand","collapse","back","priorCollaborator","moreOptions","bookmark","collaboratedFolder","externalFolder","file","personalFolder","sidebarDocGenTooltip"],"mappings":"AAAA;;;;;AAMA,SAASA,cAAT,QAA+B,YAA/B;AAEA,MAAMC,QAAQ,GAAGD,cAAc,CAAC;AAC5BE,EAAAA,KAAK;AAAA;AAAA;AAAA,GADuB;AAM5BC,EAAAA,SAAS;AAAA;AAAA;AAAA,GANmB;AAW5BC,EAAAA,IAAI;AAAA;AAAA;AAAA,GAXwB;AAgB5BC,EAAAA,KAAK;AAAA;AAAA;AAAA,GAhBuB;AAqB5BC,EAAAA,OAAO;AAAA;AAAA;AAAA,GArBqB;AA0B5BC,EAAAA,YAAY;AAAA;AAAA;AAAA,GA1BgB;AA+B5BC,EAAAA,2BAA2B;AAAA;AAAA;AAAA,GA/BC;AAoC5BC,EAAAA,2BAA2B;AAAA;AAAA;AAAA,GApCC;AAyC5BC,EAAAA,aAAa;AAAA;AAAA;AAAA,GAzCe;AA8C5BC,EAAAA,MAAM;AAAA;AAAA;AAAA,GA9CsB;AAmD5BC,EAAAA,IAAI;AAAA;AAAA;AAAA,GAnDwB;AAwD5BC,EAAAA,KAAK;AAAA;AAAA;AAAA,GAxDuB;AA6D5BC,EAAAA,IAAI;AAAA;AAAA;AAAA,GA7DwB;AAkE5BC,EAAAA,MAAM;AAAA;AAAA;AAAA,GAlEsB;AAuE5BC,EAAAA,MAAM;AAAA;AAAA;AAAA,GAvEsB;AA4E5BC,EAAAA,MAAM;AAAA;AAAA;AAAA,GA5EsB;AAiF5BC,EAAAA,MAAM;AAAA;AAAA;AAAA,GAjFsB;AAsF5BC,EAAAA,SAAS;AAAA;AAAA;AAAA,GAtFmB;AA2F5BC,EAAAA,KAAK;AAAA;AAAA;AAAA,GA3FuB;AAgG5BC,EAAAA,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7Ba;AAy7B5BC,EAAAA,MAAM;AAAA;AAAA;AAAA,GAz7BsB;AA87B5BC,EAAAA,QAAQ;AAAA;AAAA;AAAA,GA97BoB;AAm8B5BC,EAAAA,IAAI;AAAA;AAAA;AAAA,GAn8BwB;AAw8B5BC,EAAAA,iBAAiB;AAAA;AAAA;AAAA,GAx8BW;AA88B5BC,EAAAA,WAAW;AAAA;AAAA;AAAA,GA98BiB;AAm9B5BC,EAAAA,QAAQ;AAAA;AAAA;AAAA,GAn9BoB;AAw9B5BC,EAAAA,kBAAkB;AAAA;AAAA;AAAA,GAx9BU;AA69B5BC,EAAAA,cAAc;AAAA;AAAA;AAAA,GA79Bc;AAk+B5BC,EAAAA,IAAI;AAAA;AAAA;AAAA,GAl+BwB;AAu+B5BC,EAAAA,cAAc;AAAA;AAAA;AAAA,GAv+Bc;AA4+B5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA;AA5+BQ,CAAD,CAA/B;AAm/BA,eAAexM,QAAf","sourcesContent":["/**\n * @flow\n * @file i18n messages\n * @author Box\n */\n\nimport { defineMessages } from 'react-intl';\n\nconst messages = defineMessages({\n today: {\n id: 'be.today',\n description: 'Shown instead of todays date.',\n defaultMessage: 'today',\n },\n yesterday: {\n id: 'be.yesterday',\n description: 'Shown instead of yesterdays date.',\n defaultMessage: 'yesterday',\n },\n logo: {\n id: 'be.logo',\n description: 'Placeholder for a logo.',\n defaultMessage: 'Logo',\n },\n error: {\n id: 'be.error',\n description: 'Generic error label.',\n defaultMessage: 'Error',\n },\n preview: {\n id: 'be.preview',\n description: 'Label for preview action.',\n defaultMessage: 'Preview',\n },\n previewError: {\n id: 'be.previewError',\n description: 'Error message when Preview fails due to the files call.',\n defaultMessage: 'We’re sorry, the preview didn’t load. Please refresh the page.',\n },\n previewErrorBlockedByPolicy: {\n id: 'be.previewErrorBlockedByPolicy',\n description: 'Error message when Preview fails due to the files call which is blocked by an access policy.',\n defaultMessage: 'Your access to this content is restricted due to a security policy.',\n },\n boxEditErrorBlockedByPolicy: {\n id: 'be.boxEditErrorBlockedByPolicy',\n defaultMessage: 'Local editing of this content has been disabled based on an access policy',\n description: 'Shown in the open with dropdown when an application is blocked by shield access policy.',\n },\n previewUpdate: {\n id: 'be.previewUpdate',\n description: 'Message when new preview is available.',\n defaultMessage: 'A new version of this file is available.',\n },\n reload: {\n id: 'be.reload',\n description: 'Label for reload button.',\n defaultMessage: 'Reload',\n },\n open: {\n id: 'be.open',\n description: 'Label for open action.',\n defaultMessage: 'Open',\n },\n close: {\n id: 'be.close',\n description: 'Label for close action.',\n defaultMessage: 'Close',\n },\n copy: {\n id: 'be.copy',\n description: 'Label for copy action.',\n defaultMessage: 'Copy',\n },\n delete: {\n id: 'be.delete',\n description: 'Label for delete action.',\n defaultMessage: 'Delete',\n },\n rename: {\n id: 'be.rename',\n description: 'Label for rename action.',\n defaultMessage: 'Rename',\n },\n remove: {\n id: 'be.remove',\n description: 'Label for remove action.',\n defaultMessage: 'Remove',\n },\n resume: {\n id: 'be.resume',\n description: 'Label for resume action for a single file.',\n defaultMessage: 'Resume',\n },\n resumeAll: {\n id: 'be.resumeAll',\n description: 'Label for resume action for multiple files.',\n defaultMessage: 'Resume All',\n },\n retry: {\n id: 'be.retry',\n description: 'Label for retry action.',\n defaultMessage: 'Retry',\n },\n share: {\n id: 'be.share',\n description: 'Label for share action.',\n defaultMessage: 'Share',\n },\n download: {\n id: 'be.download',\n description: 'Label for download action.',\n defaultMessage: 'Download',\n },\n save: {\n id: 'be.save',\n description: 'Label for save action.',\n defaultMessage: 'Save',\n },\n cancel: {\n id: 'be.cancel',\n description: 'Label for cancel action.',\n defaultMessage: 'Cancel',\n },\n create: {\n id: 'be.create',\n description: 'Label for create action.',\n defaultMessage: 'Create',\n },\n choose: {\n id: 'be.choose',\n description: 'Label for choose action.',\n defaultMessage: 'Choose',\n },\n upload: {\n id: 'be.upload',\n description: 'Label for upload action.',\n defaultMessage: 'Upload',\n },\n add: {\n id: 'be.add',\n description: 'Label for add action',\n defaultMessage: 'Add',\n },\n gridView: {\n id: 'be.gridView',\n description: 'Label for switching to grid view',\n defaultMessage: 'Switch to Grid View',\n },\n gridViewColumnSize: {\n id: 'be.gridView.columnSize',\n description: 'Label for the size of columns in grid view',\n defaultMessage: 'Column size',\n },\n gridViewIncreaseColumnSize: {\n id: 'be.gridView.increaseColumnSize',\n description: 'Label for increasing the size of columns in grid view',\n defaultMessage: 'Increase column size',\n },\n gridViewDecreaseColumnSize: {\n id: 'be.gridView.decreaseColumnSize',\n description: 'Label for decreasing the size of columns in grid view',\n defaultMessage: 'Decrease column size',\n },\n listView: {\n id: 'be.listView',\n description: 'Label for switching to list view',\n defaultMessage: 'Switch to List View',\n },\n sort: {\n id: 'be.sort',\n description: 'Label for sort action',\n defaultMessage: 'Sort',\n },\n newFolder: {\n id: 'be.newFolder',\n description: 'Label for create new folder action.',\n defaultMessage: 'New Folder',\n },\n in: {\n id: 'be.in',\n description: 'Label for in action.',\n defaultMessage: 'In',\n },\n print: {\n id: 'be.print',\n description: 'Label for print action',\n defaultMessage: 'Print',\n },\n selected: {\n id: 'be.selected',\n description: 'Default label for selected items list in the footer.',\n defaultMessage: '{count} Selected',\n },\n max: {\n id: 'be.max',\n description: 'Indicator on the footer that max items have been selected.',\n defaultMessage: 'max',\n },\n nameDate: {\n id: 'be.nameDate',\n description: 'Text for modified or interacted date with user.',\n defaultMessage: '{date} by {name}',\n },\n modified: {\n id: 'be.itemModified',\n description: 'Label for item modified date.',\n defaultMessage: 'Modified',\n },\n modifiedDateBy: {\n id: 'be.modifiedDateBy',\n description: 'Text for modified date with user with modified prefix.',\n defaultMessage: 'Modified {date} by {name}',\n },\n modifiedDate: {\n id: 'be.modifiedDate',\n description: 'Text for modified date with modified prefix.',\n defaultMessage: 'Modified {date}',\n },\n created: {\n id: 'be.itemCreated',\n description: 'Label for item created date.',\n defaultMessage: 'Created',\n },\n owner: {\n id: 'be.itemOwner',\n description: 'Label for item owner.',\n defaultMessage: 'Owner',\n },\n uploader: {\n id: 'be.itemUploader',\n description: 'label for item uploader.',\n defaultMessage: 'Uploader',\n },\n interacted: {\n id: 'be.itemInteracted',\n description: 'Label for item last accessed date.',\n defaultMessage: 'Last Accessed',\n },\n interactedDate: {\n id: 'be.interactedDate',\n description: 'Text for last accessed date with last access prefix.',\n defaultMessage: 'Last accessed on {date}',\n },\n name: {\n id: 'be.itemName',\n description: 'Label for item name attribute.',\n defaultMessage: 'Name',\n },\n size: {\n id: 'be.itemSize',\n description: 'Label for item size attribute.',\n defaultMessage: 'Size',\n },\n deleteDialogLabel: {\n id: 'be.deleteDialogLabel',\n description: 'Label for delete confirmation dialog',\n defaultMessage: 'Confirm Delete',\n },\n deleteDialogFileText: {\n id: 'be.deleteDialogFileText',\n description: 'Text for delete confirmation dialog for files',\n defaultMessage: 'Are you sure you want to delete {name}?',\n },\n deleteDialogFolderText: {\n id: 'be.deleteDialogFolderText',\n description: 'Text for delete confirmation dialog for folders',\n defaultMessage: 'Are you sure you want to delete {name} and all its contents?',\n },\n renameDialogLabel: {\n id: 'be.renameDialogLabel',\n description: 'Label for rename dialog',\n defaultMessage: 'Rename',\n },\n renameDialogText: {\n id: 'be.renameDialogText',\n description: 'Text for rename dialog',\n defaultMessage: 'Please enter a new name for {name}:',\n },\n renameDialogErrorInvalid: {\n id: 'be.renameDialogErrorInvalid',\n description: 'Error text for rename dialog when name is invalid',\n defaultMessage: 'This name is invalid.',\n },\n renameDialogErrorInUse: {\n id: 'be.renameDialogErrorInUse',\n description: 'Error text for rename dialog when name is already in use',\n defaultMessage: 'An item with the same name already exists.',\n },\n renameDialogErrorTooLong: {\n id: 'be.renameDialogErrorTooLong',\n description: 'Error text for rename dialog when name is too long',\n defaultMessage: 'This name is too long.',\n },\n createDialogLabel: {\n id: 'be.createDialogLabel',\n description: 'Label for create folder dialog',\n defaultMessage: 'New Folder',\n },\n createDialogText: {\n id: 'be.createDialogText',\n description: 'Text for create folder dialog',\n defaultMessage: 'Please enter a name.',\n },\n createDialogErrorInvalid: {\n id: 'be.createDialogErrorInvalid',\n description: 'Error text for create folder dialog when name is invalid',\n defaultMessage: 'This is an invalid folder name.',\n },\n createDialogErrorTooLong: {\n id: 'be.createDialogErrorTooLong',\n description: 'Error text for create folder dialog when name is too long',\n defaultMessage: 'This folder name is too long.',\n },\n createDialogErrorInUse: {\n id: 'be.createDialogErrorInUse',\n description: 'Error text for create folder dialog when name is already in use',\n defaultMessage: 'A folder with the same name already exists.',\n },\n shareDialogLabel: {\n id: 'be.shareDialogLabel',\n description: 'Label for shared link dialog',\n defaultMessage: 'Share',\n },\n shareDialogText: {\n id: 'be.shareDialogText',\n description: 'Text for share link dialog',\n defaultMessage: 'Shared Link:',\n },\n shareDialogNone: {\n id: 'be.shareDialogNone',\n description: 'Text for no shared link',\n defaultMessage: 'None',\n },\n shareAccessOpen: {\n id: 'be.shareAccessOpen',\n description: 'Dropdown select option for open share access.',\n defaultMessage: 'Access: People with the link',\n },\n shareAccessCollab: {\n id: 'be.shareAccessCollab',\n description: 'Dropdown select option for collaborator share access.',\n defaultMessage: 'Access: People in this folder',\n },\n shareAccessCompany: {\n id: 'be.shareAccessCompany',\n description: 'Dropdown select option for enterprise share access.',\n defaultMessage: 'People in this company',\n },\n shareAccessNone: {\n id: 'be.shareAccessNone',\n description: 'Dropdown select option for no access.',\n defaultMessage: 'No shared link',\n },\n shareAccessRemove: {\n id: 'be.shareAccessRemove',\n description: 'Dropdown select option to remove access.',\n defaultMessage: 'Remove shared link',\n },\n searchPlaceholder: {\n id: 'be.searchPlaceholder',\n description: 'Shown as a placeholder in the search box.',\n defaultMessage: 'Search files and folders',\n },\n sidebarAccessStats: {\n id: 'be.sidebarAccessStats',\n description: 'Title for the sidebar access stats.',\n defaultMessage: 'Access Stats',\n },\n sidebarContentInsights: {\n id: 'be.sidebarContentInsights',\n description: 'Title for the sidebar content insights.',\n defaultMessage: 'Content Insights',\n },\n sidebarShow: {\n id: 'be.sidebarShow',\n description: 'Label for the show sidebar button.',\n defaultMessage: 'Show Sidebar',\n },\n sidebarHide: {\n id: 'be.sidebarHide',\n description: 'Label for the hide sidebar button.',\n defaultMessage: 'Hide Sidebar',\n },\n description: {\n id: 'be.description',\n description: 'Label for the description field in the preview sidebar.',\n defaultMessage: 'Description',\n },\n descriptionPlaceholder: {\n id: 'be.descriptionPlaceholder',\n description: 'Placeholder for file description in preview sidebar.',\n defaultMessage: 'Enter a description',\n },\n sidebarDetailsTitle: {\n id: 'be.sidebarDetailsTitle',\n description: 'Title for the preview details sidebar.',\n defaultMessage: 'Details',\n },\n sidebarSkillsTitle: {\n id: 'be.sidebarSkillsTitle',\n description: 'Title for the preview details skills.',\n defaultMessage: 'Skills',\n },\n sidebarSkillsErrorTitle: {\n id: 'be.sidebarSkillsErrorTitle',\n description: 'Generic error title for skills editing.',\n defaultMessage: 'Skills Error',\n },\n sidebarSkillsErrorContent: {\n id: 'be.sidebarSkillsErrorContent',\n description: 'Generic error content for skills editing.',\n defaultMessage: 'An error has occurred while updating skills. Please refresh the page and try again.',\n },\n sidebarActivityTitle: {\n id: 'be.sidebarActivityTitle',\n description: 'Title for the preview activity feed.',\n defaultMessage: 'Activity',\n },\n sidebarDocGenTitle: {\n id: 'be.sidebarDocGenTitle',\n description: 'Title for the DocGen sidebar tab.',\n defaultMessage: 'Doc Gen Tags',\n },\n sidebarMetadataTitle: {\n id: 'be.sidebarMetadataTitle',\n description: 'Title for the preview metadata.',\n defaultMessage: 'Metadata',\n },\n sidebarMetadataEditingErrorContent: {\n id: 'be.sidebarMetadataEditingErrorContent',\n description: 'Generic error content for metadata editing.',\n defaultMessage: 'An error has occurred while updating metadata. Please refresh the page and try again.',\n },\n sidebarMetadataFetchingErrorContent: {\n id: 'be.sidebarMetadataFetchingErrorContent',\n description: 'Generic error content for metadata fetching.',\n defaultMessage: 'An error has occurred while fetching metadata. Please refresh the page and try again.',\n },\n sidebarFileFetchingErrorContent: {\n id: 'be.sidebarFileFetchingErrorContent',\n description: 'Generic error content for file fetching.',\n defaultMessage: 'An error has occurred while fetching your Box file. Please refresh the page and try again.',\n },\n sidebarProperties: {\n id: 'be.sidebarProperties',\n description: 'Label for file properties section in the preview sidebar',\n defaultMessage: 'File Properties',\n },\n sidebarNavLabel: {\n id: 'be.sidebarNavLabel',\n description: 'Label for the sidebar tabs list',\n defaultMessage: 'Sidebar',\n },\n defaultSkill: {\n id: 'be.defaultSkill',\n description: 'Label for default skill section in the preview sidebar',\n defaultMessage: 'Skill Card',\n },\n statusSkill: {\n id: 'be.statusSkill',\n description: 'Label for status skill card in the preview sidebar',\n defaultMessage: 'Status',\n },\n topicsSkill: {\n id: 'be.topicsSkill',\n description: 'Label for keywords/topics skill section in the preview sidebar',\n defaultMessage: 'Topics',\n },\n keywordSkill: {\n id: 'be.keywordSkill',\n description: 'Label for keywords/topics skill section in the preview sidebar',\n defaultMessage: 'Topics',\n },\n faceSkill: {\n id: 'be.faceSkill',\n description: 'Label for face skill section in the preview sidebar',\n defaultMessage: 'Faces',\n },\n transcriptSkill: {\n id: 'be.transcriptSkill',\n description: 'Label for transcript skill section in the preview sidebar',\n defaultMessage: 'Transcript',\n },\n skillPendingStatus: {\n id: 'be.skillPendingStatus',\n description: 'Default message when skills are still running',\n defaultMessage: 'We’re working on processing your file - please hold!',\n },\n skillInvokedStatus: {\n id: 'be.skillInvokedStatus',\n description: 'Default message when skills are waiting to run',\n defaultMessage: 'We’re preparing to process your file - please hold!',\n },\n skillUnknownError: {\n id: 'be.skillUnknownError',\n description: 'Default error message when skills fail to run',\n defaultMessage: 'Something went wrong with running this skill or fetching its data.',\n },\n skillInvalidFileSizeError: {\n id: 'be.skillInvalidFileSizeError',\n description: 'Error message when skill fails due to file size',\n defaultMessage: 'We’re sorry, no skills information was found. This file size is currently not supported.',\n },\n skillInvalidFileExtensionError: {\n id: 'be.skillInvalidFileExtensionError',\n description: 'Error message when skill fails due to file extension',\n defaultMessage: 'We’re sorry, no skills information was found. This file extension is currently not supported.',\n },\n skillNoInfoFoundError: {\n id: 'be.skillNoInfoFoundError',\n description: 'Error message when a skill has no data',\n defaultMessage: 'We’re sorry, no skills information was found.',\n },\n skillFileProcessingError: {\n id: 'be.skillFileProcessingError',\n description: 'Error message when a skill processing failed',\n defaultMessage: 'We’re sorry, something went wrong with processing the file.',\n },\n uploadErrorTooManyFiles: {\n id: 'be.uploadErrorTooManyFiles',\n description: 'Message shown when too many files are uploaded at once',\n defaultMessage: 'You can only upload up to {fileLimit} file(s) at a time.',\n },\n uploadError: {\n id: 'be.uploadError',\n description: 'Message shown when there is a network error when uploading',\n defaultMessage: 'A network error has occurred while trying to upload.',\n },\n uploadEmptyWithFolderUploadEnabled: {\n id: 'be.uploadEmptyWithFolderUploadEnabled',\n description: 'Message shown when there are no items to upload and folder upload is enabled',\n defaultMessage: 'Drag and drop files and folders',\n },\n uploadEmptyWithFolderUploadDisabled: {\n id: 'be.uploadEmptyWithFolderUploadDisabled',\n description: 'Message shown when there are no items to upload and folder upload is disabled',\n defaultMessage: 'Drag and drop files',\n },\n uploadEmptyFileInput: {\n id: 'be.uploadEmptyFileInput',\n description: 'Message shown for upload link for uploading more files when there are no items to upload',\n defaultMessage: 'Browse your device',\n },\n uploadEmptyFolderInput: {\n id: 'be.uploadEmptyFolderInput',\n description: 'Message shown for upload link for uploading more folders when there are no items to upload',\n defaultMessage: 'Select Folders',\n },\n uploadNoDragDrop: {\n id: 'be.uploadNoDragDrop',\n description: 'Message shown on a device with no drag and drop support when there are no items to upload',\n defaultMessage: 'Select files from your device',\n },\n uploadInProgress: {\n id: 'be.uploadInProgress',\n description: 'Message shown when user drag and drops files onto uploads in progress',\n defaultMessage: 'Drag and drop to add additional files',\n },\n uploadSuccess: {\n id: 'be.uploadSuccess',\n description: 'Message shown when all files have been successfully uploaded',\n defaultMessage: 'Success! Your files have been uploaded.',\n },\n uploadSuccessFileInput: {\n id: 'be.uploadSuccessFileInput',\n description: 'Message shown for upload link for uploading more files after a successful upload',\n defaultMessage: 'Select More Files',\n },\n uploadSuccessFolderInput: {\n id: 'be.uploadSuccessFolderInput',\n description: 'Message shown for upload link for uploading more folders after a successful upload',\n defaultMessage: 'Select More Folders',\n },\n uploadOptions: {\n id: 'be.uploadOptions',\n description: 'Message shown for letting user choose between {option1} and {option2}',\n defaultMessage: '{option1} or {option2}',\n },\n nameASC: {\n id: 'be.nameASC',\n description: 'Name ascending option shown in the share access drop down select.',\n defaultMessage: 'Name: A → Z',\n },\n nameDESC: {\n id: 'be.nameDESC',\n description: 'Name descending option shown in the share access drop down select.',\n defaultMessage: 'Name: Z → A',\n },\n dateASC: {\n id: 'be.dateASC',\n description: 'Date ascending option shown in the share access drop down select.',\n defaultMessage: 'Date: Oldest → Newest',\n },\n dateDESC: {\n id: 'be.dateDESC',\n description: 'Date descending option shown in the share access drop down select.',\n defaultMessage: 'Date: Newest → Oldest',\n },\n sizeASC: {\n id: 'be.sizeASC',\n description: 'Size ascending option shown in the share access drop down select.',\n defaultMessage: 'Size: Smallest → Largest',\n },\n sizeDESC: {\n id: 'be.sizeDESC',\n description: 'Size descending option shown in the share access drop down select.',\n defaultMessage: 'Size: Largest → Smallest',\n },\n searchState: {\n id: 'be.searchState',\n description: 'Message shown when there are no search results.',\n defaultMessage: 'Sorry, we couldn’t find what you’re looking for.',\n },\n selectedState: {\n id: 'be.selectedState',\n description: 'Message shown when there are no selected items.',\n defaultMessage: 'You haven’t selected any items yet.',\n },\n errorState: {\n id: 'be.errorState',\n description: 'Message shown when there is an error.',\n defaultMessage: 'A network error has occurred while trying to load.',\n },\n folderState: {\n id: 'be.folderState',\n description: 'Message shown when there are no folder items.',\n defaultMessage: 'There are no items in this folder.',\n },\n metadataState: {\n id: 'be.metadataState',\n description: 'Message shown when there are no items for provided metadata query.',\n defaultMessage: 'There are no items in this folder.',\n },\n recentsState: {\n id: 'be.recentsState',\n description: 'Message shown when there are no recent items.',\n defaultMessage: 'There are no recent items yet.',\n },\n loadingState: {\n id: 'be.loadingState',\n description: 'Message shown when folder items are still fetching.',\n defaultMessage: 'Please wait while the items load...',\n },\n errorBreadcrumb: {\n id: 'be.errorBreadcrumb',\n description: 'Default label for signifying error in the sub header.',\n defaultMessage: 'Error',\n },\n rootBreadcrumb: {\n id: 'be.rootBreadcrumb',\n description: 'Default label for root folder.',\n defaultMessage: 'All Files',\n },\n searchBreadcrumb: {\n id: 'be.searchBreadcrumb',\n description: 'Shown as the title in the sub header while searching.',\n defaultMessage: 'Search Results',\n },\n recentsBreadcrumb: {\n id: 'be.recentsBreadcrumb',\n description: 'Shown as the title in the sub header when showing recents.',\n defaultMessage: 'Recents',\n },\n selectedBreadcrumb: {\n id: 'be.selectedBreadcrumb',\n description: 'Shown as the title in the sub header while showing selected items.',\n defaultMessage: 'Selected Items',\n },\n uploadsManagerUploadInProgress: {\n id: 'be.uploadsManagerUploadInProgress',\n description: 'Text shown when uploads are in progress',\n defaultMessage: 'Uploading',\n },\n uploadsManagerUploadPrompt: {\n id: 'be.uploadsManagerUploadPrompt',\n description: 'Text shown to guide the user to drag drop file to upload',\n defaultMessage: 'Drop files on this page to upload them into this folder.',\n },\n uploadsManagerUploadComplete: {\n id: 'be.uploadsManagerUploadComplete',\n description: 'Text shown when uploads are completed',\n defaultMessage: 'Completed',\n },\n uploadsManagerUploadFailed: {\n id: 'be.uploadsManagerUploadFailed',\n description: 'Text shown when uploads failed',\n defaultMessage: 'Some Uploads Failed',\n },\n uploadsCancelButtonTooltip: {\n id: 'be.uploadsCancelButtonTooltip',\n description: 'Cancel upload button tooltip',\n defaultMessage: 'Cancel this upload',\n },\n uploadsRetryButtonTooltip: {\n id: 'be.uploadsRetryButtonTooltip',\n description: 'Retry upload button tooltip',\n defaultMessage: 'Retry upload',\n },\n uploadsFileSizeLimitExceededErrorMessage: {\n id: 'be.uploadsFileSizeLimitExceededErrorMessage',\n description: 'Error message shown when file size exceeds the limit',\n defaultMessage: 'File size exceeds the folder owner’s file size limit',\n },\n uploadsFileSizeLimitExceededErrorMessageForUpgradeCta: {\n id: 'be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta',\n description: 'Error message shown when file size exceeds the limit',\n defaultMessage: 'This file exceeds your plan’s upload limit. Upgrade now to store larger files.',\n },\n uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta: {\n id: 'be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta',\n description: 'Upgrade message shown when file size exceeds the limit',\n defaultMessage: 'Upgrade',\n },\n uploadsStorageLimitErrorMessage: {\n id: 'be.uploadsStorageLimitErrorMessage',\n description: 'Error message shown when account storage limit has been reached',\n defaultMessage: 'Account storage limit reached',\n },\n uploadsPendingFolderSizeLimitErrorMessage: {\n id: 'be.uploadsPendingFolderSizeLimitErrorMessage',\n description: 'Error message shown when pending app folder size exceeds the limit',\n defaultMessage: 'Pending app folder size limit exceeded',\n },\n uploadsItemNameInUseErrorMessage: {\n id: 'be.uploadsItemNameInUseErrorMessage',\n description: 'Error message shown when attempting to upload a file which name already exists',\n defaultMessage: 'A file with this name already exists.',\n },\n uploadsProvidedFolderNameInvalidMessage: {\n id: 'be.uploadsProvidedFolderNameInvalidMessage',\n description: 'Error message shown when pending folder upload contains invalid characters',\n defaultMessage: 'Provided folder name, {name}, could not be used to create a folder.',\n },\n uploadsOneOrMoreChildFoldersFailedToUploadMessage: {\n id: 'be.uploadsOneOrMoreChildFoldersFailedToUploadMessage',\n description: 'Error message shown when one or more child folders failed to upload',\n defaultMessage: 'One or more child folders failed to upload.',\n },\n uploadsPackageUploadErrorMessage: {\n id: 'be.uploadsPackageUploadErrorMessage',\n description: 'Error message to display when a macOS package failed to upload',\n defaultMessage: 'Failed to upload package file. Please retry by saving as a single file.',\n },\n uploadsDefaultErrorMessage: {\n id: 'be.uploadsDefaultErrorMessage',\n description: 'Default error message shown when upload fails',\n defaultMessage: 'Something went wrong with the upload. Please try again.',\n },\n errorOccured: {\n id: 'be.errorOccured',\n defaultMessage: 'An error occurred',\n description: 'Title when an error occurs',\n },\n editLabel: {\n id: 'be.editLabel',\n defaultMessage: 'Edit',\n description: 'Label for an edit action',\n },\n getVersionInfo: {\n id: 'be.getVersionInfo',\n defaultMessage: 'Get version information',\n description: 'Aria label for button to get information about a file’s versions',\n },\n keywordsApplied: {\n id: 'be.keywordsAppliedList',\n defaultMessage: 'Keywords were applied',\n description: 'Message displayed in the activity feed for when image keyword search applies keywords',\n },\n keywordsList: {\n id: 'be.keywordsList',\n defaultMessage: 'Keywords: {words}',\n description: 'Label for a list of keywords. {words} are the list of keywords.',\n },\n noActivity: {\n id: 'be.noActivity',\n defaultMessage: 'No activity to show',\n description: 'Message displayed in an empty activity feed',\n },\n noActivityAnnotationPrompt: {\n id: 'be.noActivityAnnotationPrompt',\n defaultMessage: 'Hover over the preview and use the controls at the bottom to annotate the file.',\n description: 'Message shown alongside empty activity feed when user can annotate',\n },\n noActivityCommentPrompt: {\n id: 'be.noActivityCommentPrompt',\n defaultMessage: 'Comment and @mention people to notify them.',\n description: 'Message shown in ',\n },\n versionDeleted: {\n id: 'be.versionDeleted',\n defaultMessage: '{name} deleted v{version_number}',\n description:\n 'Message displayed in the activity feed for a deleted version. {name} is the user who performed the action. {version_number} is the file version string.',\n },\n versionPromoted: {\n id: 'be.versionPromoted',\n defaultMessage: '{name} promoted v{version_promoted} to v{version_number}',\n description:\n 'Message displayed in the activity feed for a promoted version. {name} is the user who performed the action. {version_promoted} is the originating file version string. {version_number} is the file version string.',\n },\n versionRestored: {\n id: 'be.versionRestored',\n defaultMessage: '{name} restored v{version_number}',\n description:\n 'Message displayed in the activity feed for a restored version. {name} is the user who performed the action. {version_number} is the file version string.',\n },\n versionMultipleUsersUploaded: {\n id: 'be.versionMultipleUsersUploaded',\n defaultMessage: '{numberOfCollaborators} collaborators uploaded v{versions}',\n description:\n 'Message displayed in the activity feed to represent the range of versions uploaded by multiple users. {numberOfCollaborators} is a number and {versions} is a range of versions.',\n },\n versionUploadCollapsed: {\n id: 'be.versionUploadCollapsed',\n defaultMessage: '{name} uploaded v{versions}',\n description:\n 'Message displayed in the activity feed to represent the range of versions uploaded by a single user. {name} is the user who uploaded. {versions} is a range of versions.',\n },\n versionUploaded: {\n id: 'be.versionUploaded',\n defaultMessage: '{name} uploaded v{version_number}',\n description:\n 'Message displayed in the activity feed for a newly uploaded version. {name} is the user who performed the action. {version_number} is the file version string.',\n },\n fileRequestDisplayName: {\n defaultMessage: 'File Request',\n description:\n 'name of the File Request feature used to translate when a File Request is uploaded by the service',\n id: 'be.fileRequestDisplayName',\n },\n defaultInlineErrorContentMessage: {\n id: 'be.defaultInlineErrorContentMessage',\n description: 'Default bottom inline error message',\n defaultMessage: 'Please try again later.',\n },\n fileDescriptionInlineErrorTitleMessage: {\n id: 'be.fileDescriptionInlineErrorTitleMessage',\n description: 'Inline error title message for file description',\n defaultMessage: 'Something went wrong when saving the description.',\n },\n defaultErrorMaskHeaderMessage: {\n id: 'be.defaultErrorMaskHeaderMessage',\n description: 'Default error mask top message',\n defaultMessage: 'We’re sorry, something went wrong.',\n },\n defaultErrorMaskSubHeaderMessage: {\n id: 'be.defaultErrorMaskSubHeaderMessage',\n description: 'Default error mask bottom message',\n defaultMessage: 'Please refresh the page or try again later.',\n },\n fileAccessStatsErrorHeaderMessage: {\n id: 'be.fileAccessStatsErrorHeaderMessage',\n description: 'File access stats error message',\n defaultMessage: 'Something went wrong when fetching the access stats.',\n },\n fileAccessStatsPermissionsError: {\n id: 'be.accessStatsPermissionsError',\n description: 'The text for when the user does not have permissions to see access stats.',\n defaultMessage: 'Sorry, you do not have permission to see the access stats for this file.',\n },\n fileClassificationErrorHeaderMessage: {\n id: 'be.fileClassificationErrorHeaderMessage',\n description: 'File classification error message',\n defaultMessage: 'Something went wrong when fetching classification.',\n },\n currentUserErrorHeaderMessage: {\n id: 'be.currentUserErrorHeaderMessage',\n description: 'Current user error message',\n defaultMessage: 'Something went wrong when fetching the current user.',\n },\n activityFeedItemApiError: {\n id: 'be.activityFeedItemApiError',\n description: 'Error message for feed item API errors',\n defaultMessage: 'There was a problem loading the activity feed. Please refresh the page or try again later.',\n },\n nextFile: {\n defaultMessage: 'Next File',\n description: 'Next file button title',\n id: 'be.nextFile',\n },\n nextPage: {\n defaultMessage: 'Next Page',\n description: 'Next page button tooltip',\n id: 'be.pagination.nextPage',\n },\n pageStatus: {\n defaultMessage: '{pageNumber} of {pageCount}',\n description: 'Pagination menu button with current page number out of total number of pages',\n id: 'be.pagination.pageStatus',\n },\n previousFile: {\n defaultMessage: 'Previous File',\n description: 'Previous file button title',\n id: 'be.previousFile',\n },\n previousPage: {\n defaultMessage: 'Previous Page',\n description: 'Previous page button tooltip',\n id: 'be.pagination.previousPage',\n },\n previousSegment: {\n id: 'be.previousSegment',\n description: 'Title for previous segment on skill timeline',\n defaultMessage: 'Previous Segment',\n },\n nextSegment: {\n id: 'be.nextSegment',\n description: 'Title for next segment on skill timeline',\n defaultMessage: 'Next Segment',\n },\n transcriptEdit: {\n id: 'be.transcriptEdit',\n description: 'Message to the user for editing the transcript in the sidebar',\n defaultMessage: 'Click any section to edit.',\n },\n emptyOpenWithDescription: {\n id: 'be.emptyOpenWithDescription',\n description: 'Message to the user when there are no Open With integrations',\n defaultMessage: 'No integrations are available for this file',\n },\n errorOpenWithDescription: {\n id: 'be.errorOpenWithDescription',\n description: 'Message to the user when the open with element errors',\n defaultMessage: 'Opening this file with other services is currently unavailable',\n },\n defaultOpenWithDescription: {\n id: 'be.defaultOpenWithDescription',\n description: 'Message to the user when there is at least one Open With integration available',\n defaultMessage: 'Open this file with a partner service',\n },\n executeIntegrationOpenWithErrorHeader: {\n id: 'be.executeIntegrationOpenWithErrorHeader',\n description: 'Header message to the user when an Open With integration fails to execute',\n defaultMessage: 'We’re sorry, this integration is currently unavailable.',\n },\n executeIntegrationOpenWithErrorSubHeader: {\n id: 'be.executeIntegrationOpenWithErrorSubHeader',\n description: 'Sub header message to the user when an Open With integration fails to execute',\n defaultMessage: 'Please try again later.',\n },\n boxToolsInstallMessage: {\n id: 'be.boxToolsInstallMessage',\n description: 'Message shown telling user how to install Box Tools',\n defaultMessage: 'Install {boxTools} to open this file on your desktop',\n },\n boxToolsBlacklistedError: {\n id: 'be.boxEditBlacklistedError',\n description: 'Message when Box Tools cannot open a particular file type',\n defaultMessage: 'This file cannot be opened locally',\n },\n drawAnnotation: {\n id: 'be.drawAnnotation',\n description: 'Message to the user to enter into drawing annotation mode',\n defaultMessage: 'Drawing annotation mode',\n },\n pointAnnotation: {\n id: 'be.pointAnnotation',\n description: 'Message to the user to enter into point annotation mode',\n defaultMessage: 'Point annotation mode',\n },\n expand: {\n id: 'be.expand',\n description: 'Message to the user to expand the Transcript entries',\n defaultMessage: 'Expand',\n },\n collapse: {\n id: 'be.collapse',\n description: 'Message to the user to collapse the Transcript entries',\n defaultMessage: 'Collapse',\n },\n back: {\n id: 'be.back',\n description: 'Label for back button',\n defaultMessage: 'Back',\n },\n priorCollaborator: {\n id: 'be.priorCollaborator',\n description:\n 'If a user has been deleted, we call the user \"a prior collaborator\" - meaning someone who used to be able to collaborate on the content.',\n defaultMessage: 'A Prior Collaborator',\n },\n moreOptions: {\n id: 'be.moreOptions',\n description: 'Label for a button that displays more options',\n defaultMessage: 'More options',\n },\n bookmark: {\n id: 'be.bookmark',\n description: 'Icon title for a Box item of type bookmark or web-link',\n defaultMessage: 'Bookmark',\n },\n collaboratedFolder: {\n id: 'be.collaboratedFolder',\n description: 'Icon title for a Box item of type folder that has collaborators',\n defaultMessage: 'Collaborated Folder',\n },\n externalFolder: {\n id: 'be.externalFolder',\n description: \"Icon title for a Box item of type folder that has collaborators outside of the user's enterprise\",\n defaultMessage: 'External Folder',\n },\n file: {\n id: 'be.file',\n description: 'Icon title for a Box item of type file',\n defaultMessage: 'File',\n },\n personalFolder: {\n id: 'be.personalFolder',\n description: 'Icon title for a Box item of type folder that is private and has no collaborators',\n defaultMessage: 'Personal Folder',\n },\n sidebarDocGenTooltip: {\n id: 'be.sidebarDocGenTooltip',\n defaultMessage: 'Box Doc Gen',\n description: 'Icon title for a Box file of type DocGen template',\n },\n});\n\nexport default messages;\n"],"file":"messages.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/elements/common/messages.js"],"names":["defineMessages","messages","today","yesterday","logo","error","preview","previewError","previewErrorBlockedByPolicy","boxEditErrorBlockedByPolicy","previewUpdate","reload","open","close","copy","delete","rename","remove","resume","resumeAll","retry","share","download","save","cancel","create","choose","upload","add","gridView","gridViewColumnSize","gridViewIncreaseColumnSize","gridViewDecreaseColumnSize","listView","sort","newFolder","in","print","selected","max","nameDate","modified","modifiedDateBy","modifiedDate","created","owner","uploader","interacted","interactedDate","name","size","deleteDialogLabel","deleteDialogFileText","deleteDialogFolderText","renameDialogLabel","renameDialogText","renameDialogErrorInvalid","renameDialogErrorInUse","renameDialogErrorTooLong","createDialogLabel","createDialogText","createDialogErrorInvalid","createDialogErrorTooLong","createDialogErrorInUse","shareDialogLabel","shareDialogText","shareDialogNone","shareAccessOpen","shareAccessCollab","shareAccessCompany","shareAccessNone","shareAccessRemove","searchPlaceholder","sidebarAccessStats","sidebarContentInsights","sidebarShow","sidebarHide","description","descriptionPlaceholder","sidebarDetailsTitle","sidebarSkillsTitle","sidebarSkillsErrorTitle","sidebarSkillsErrorContent","sidebarActivityTitle","sidebarDocGenTitle","sidebarMetadataTitle","sidebarMetadataEditingErrorContent","sidebarMetadataFetchingErrorContent","sidebarFileFetchingErrorContent","sidebarProperties","sidebarNavLabel","defaultSkill","statusSkill","topicsSkill","keywordSkill","faceSkill","transcriptSkill","skillPendingStatus","skillInvokedStatus","skillUnknownError","skillInvalidFileSizeError","skillInvalidFileExtensionError","skillNoInfoFoundError","skillFileProcessingError","uploadErrorTooManyFiles","uploadError","uploadEmptyWithFolderUploadEnabled","uploadEmptyWithFolderUploadDisabled","uploadEmptyFileInput","uploadEmptyFolderInput","uploadNoDragDrop","uploadInProgress","uploadSuccess","uploadSuccessFileInput","uploadSuccessFolderInput","uploadOptions","nameASC","nameDESC","dateASC","dateDESC","sizeASC","sizeDESC","searchState","selectedState","errorState","folderState","metadataState","recentsState","loadingState","errorBreadcrumb","rootBreadcrumb","searchBreadcrumb","recentsBreadcrumb","selectedBreadcrumb","uploadsManagerUploadInProgress","uploadsManagerUploadPrompt","uploadsManagerUploadComplete","uploadsManagerUploadFailed","uploadsCancelButtonTooltip","uploadsRetryButtonTooltip","uploadsFileSizeLimitExceededErrorMessage","uploadsFileSizeLimitExceededErrorMessageForUpgradeCta","uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta","uploadsStorageLimitErrorMessage","uploadsPendingFolderSizeLimitErrorMessage","uploadsItemNameInUseErrorMessage","uploadsProvidedFolderNameInvalidMessage","uploadsOneOrMoreChildFoldersFailedToUploadMessage","uploadsPackageUploadErrorMessage","uploadsDefaultErrorMessage","errorOccured","editLabel","getVersionInfo","keywordsApplied","keywordsList","noActivity","noActivityAnnotationPrompt","noActivityCommentPrompt","versionDeleted","versionPromoted","versionRestored","versionMultipleUsersUploaded","versionUploadCollapsed","versionUploaded","fileRequestDisplayName","defaultInlineErrorContentMessage","fileDescriptionInlineErrorTitleMessage","defaultErrorMaskHeaderMessage","defaultErrorMaskSubHeaderMessage","fileAccessStatsErrorHeaderMessage","fileAccessStatsPermissionsError","fileClassificationErrorHeaderMessage","currentUserErrorHeaderMessage","activityFeedItemApiError","nextFile","nextPage","pageStatus","previousFile","previousPage","previousSegment","nextSegment","transcriptEdit","emptyOpenWithDescription","errorOpenWithDescription","defaultOpenWithDescription","executeIntegrationOpenWithErrorHeader","executeIntegrationOpenWithErrorSubHeader","boxToolsInstallMessage","boxToolsBlacklistedError","drawAnnotation","pointAnnotation","expand","collapse","back","priorCollaborator","moreOptions","bookmark","collaboratedFolder","externalFolder","file","personalFolder","sidebarDocGenTooltip"],"mappings":"AAAA;;;;;AAMA,SAASA,cAAT,QAA+B,YAA/B;AAEA,MAAMC,QAAQ,GAAGD,cAAc,CAAC;AAC5BE,EAAAA,KAAK;AAAA;AAAA;AAAA,GADuB;AAM5BC,EAAAA,SAAS;AAAA;AAAA;AAAA,GANmB;AA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A,cAAc;AAAA;AAAA;AAAA,GA79Bc;AAk+B5BC,EAAAA,IAAI;AAAA;AAAA;AAAA,GAl+BwB;AAu+B5BC,EAAAA,cAAc;AAAA;AAAA;AAAA,GAv+Bc;AA4+B5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA;AA5+BQ,CAAD,CAA/B;AAm/BA,eAAexM,QAAf","sourcesContent":["/**\n * @flow\n * @file i18n messages\n * @author Box\n */\n\nimport { defineMessages } from 'react-intl';\n\nconst messages = defineMessages({\n today: {\n id: 'be.today',\n description: 'Shown instead of todays date.',\n defaultMessage: 'today',\n },\n yesterday: {\n id: 'be.yesterday',\n description: 'Shown instead of yesterdays date.',\n defaultMessage: 'yesterday',\n },\n logo: {\n id: 'be.logo',\n description: 'Placeholder for a logo.',\n defaultMessage: 'Logo',\n },\n error: {\n id: 'be.error',\n description: 'Generic error label.',\n defaultMessage: 'Error',\n },\n preview: {\n id: 'be.preview',\n description: 'Label for preview action.',\n defaultMessage: 'Preview',\n },\n previewError: {\n id: 'be.previewError',\n description: 'Error message when Preview fails due to the files call.',\n defaultMessage: 'This preview didn’t load. Please try to open or download the file to view.',\n },\n previewErrorBlockedByPolicy: {\n id: 'be.previewErrorBlockedByPolicy',\n description: 'Error message when Preview fails due to the files call which is blocked by an access policy.',\n defaultMessage: 'Your access to this content is restricted due to a security policy.',\n },\n boxEditErrorBlockedByPolicy: {\n id: 'be.boxEditErrorBlockedByPolicy',\n defaultMessage: 'Local editing of this content has been disabled based on an access policy',\n description: 'Shown in the open with dropdown when an application is blocked by shield access policy.',\n },\n previewUpdate: {\n id: 'be.previewUpdate',\n description: 'Message when new preview is available.',\n defaultMessage: 'A new version of this file is available.',\n },\n reload: {\n id: 'be.reload',\n description: 'Label for reload button.',\n defaultMessage: 'Reload',\n },\n open: {\n id: 'be.open',\n description: 'Label for open action.',\n defaultMessage: 'Open',\n },\n close: {\n id: 'be.close',\n description: 'Label for close action.',\n defaultMessage: 'Close',\n },\n copy: {\n id: 'be.copy',\n description: 'Label for copy action.',\n defaultMessage: 'Copy',\n },\n delete: {\n id: 'be.delete',\n description: 'Label for delete action.',\n defaultMessage: 'Delete',\n },\n rename: {\n id: 'be.rename',\n description: 'Label for rename action.',\n defaultMessage: 'Rename',\n },\n remove: {\n id: 'be.remove',\n description: 'Label for remove action.',\n defaultMessage: 'Remove',\n },\n resume: {\n id: 'be.resume',\n description: 'Label for resume action for a single file.',\n defaultMessage: 'Resume',\n },\n resumeAll: {\n id: 'be.resumeAll',\n description: 'Label for resume action for multiple files.',\n defaultMessage: 'Resume All',\n },\n retry: {\n id: 'be.retry',\n description: 'Label for retry action.',\n defaultMessage: 'Retry',\n },\n share: {\n id: 'be.share',\n description: 'Label for share action.',\n defaultMessage: 'Share',\n },\n download: {\n id: 'be.download',\n description: 'Label for download action.',\n defaultMessage: 'Download',\n },\n save: {\n id: 'be.save',\n description: 'Label for save action.',\n defaultMessage: 'Save',\n },\n cancel: {\n id: 'be.cancel',\n description: 'Label for cancel action.',\n defaultMessage: 'Cancel',\n },\n create: {\n id: 'be.create',\n description: 'Label for create action.',\n defaultMessage: 'Create',\n },\n choose: {\n id: 'be.choose',\n description: 'Label for choose action.',\n defaultMessage: 'Choose',\n },\n upload: {\n id: 'be.upload',\n description: 'Label for upload action.',\n defaultMessage: 'Upload',\n },\n add: {\n id: 'be.add',\n description: 'Label for add action',\n defaultMessage: 'Add',\n },\n gridView: {\n id: 'be.gridView',\n description: 'Label for switching to grid view',\n defaultMessage: 'Switch to Grid View',\n },\n gridViewColumnSize: {\n id: 'be.gridView.columnSize',\n description: 'Label for the size of columns in grid view',\n defaultMessage: 'Column size',\n },\n gridViewIncreaseColumnSize: {\n id: 'be.gridView.increaseColumnSize',\n description: 'Label for increasing the size of columns in grid view',\n defaultMessage: 'Increase column size',\n },\n gridViewDecreaseColumnSize: {\n id: 'be.gridView.decreaseColumnSize',\n description: 'Label for decreasing the size of columns in grid view',\n defaultMessage: 'Decrease column size',\n },\n listView: {\n id: 'be.listView',\n description: 'Label for switching to list view',\n defaultMessage: 'Switch to List View',\n },\n sort: {\n id: 'be.sort',\n description: 'Label for sort action',\n defaultMessage: 'Sort',\n },\n newFolder: {\n id: 'be.newFolder',\n description: 'Label for create new folder action.',\n defaultMessage: 'New Folder',\n },\n in: {\n id: 'be.in',\n description: 'Label for in action.',\n defaultMessage: 'In',\n },\n print: {\n id: 'be.print',\n description: 'Label for print action',\n defaultMessage: 'Print',\n },\n selected: {\n id: 'be.selected',\n description: 'Default label for selected items list in the footer.',\n defaultMessage: '{count} Selected',\n },\n max: {\n id: 'be.max',\n description: 'Indicator on the footer that max items have been selected.',\n defaultMessage: 'max',\n },\n nameDate: {\n id: 'be.nameDate',\n description: 'Text for modified or interacted date with user.',\n defaultMessage: '{date} by {name}',\n },\n modified: {\n id: 'be.itemModified',\n description: 'Label for item modified date.',\n defaultMessage: 'Modified',\n },\n modifiedDateBy: {\n id: 'be.modifiedDateBy',\n description: 'Text for modified date with user with modified prefix.',\n defaultMessage: 'Modified {date} by {name}',\n },\n modifiedDate: {\n id: 'be.modifiedDate',\n description: 'Text for modified date with modified prefix.',\n defaultMessage: 'Modified {date}',\n },\n created: {\n id: 'be.itemCreated',\n description: 'Label for item created date.',\n defaultMessage: 'Created',\n },\n owner: {\n id: 'be.itemOwner',\n description: 'Label for item owner.',\n defaultMessage: 'Owner',\n },\n uploader: {\n id: 'be.itemUploader',\n description: 'label for item uploader.',\n defaultMessage: 'Uploader',\n },\n interacted: {\n id: 'be.itemInteracted',\n description: 'Label for item last accessed date.',\n defaultMessage: 'Last Accessed',\n },\n interactedDate: {\n id: 'be.interactedDate',\n description: 'Text for last accessed date with last access prefix.',\n defaultMessage: 'Last accessed on {date}',\n },\n name: {\n id: 'be.itemName',\n description: 'Label for item name attribute.',\n defaultMessage: 'Name',\n },\n size: {\n id: 'be.itemSize',\n description: 'Label for item size attribute.',\n defaultMessage: 'Size',\n },\n deleteDialogLabel: {\n id: 'be.deleteDialogLabel',\n description: 'Label for delete confirmation dialog',\n defaultMessage: 'Confirm Delete',\n },\n deleteDialogFileText: {\n id: 'be.deleteDialogFileText',\n description: 'Text for delete confirmation dialog for files',\n defaultMessage: 'Are you sure you want to delete {name}?',\n },\n deleteDialogFolderText: {\n id: 'be.deleteDialogFolderText',\n description: 'Text for delete confirmation dialog for folders',\n defaultMessage: 'Are you sure you want to delete {name} and all its contents?',\n },\n renameDialogLabel: {\n id: 'be.renameDialogLabel',\n description: 'Label for rename dialog',\n defaultMessage: 'Rename',\n },\n renameDialogText: {\n id: 'be.renameDialogText',\n description: 'Text for rename dialog',\n defaultMessage: 'Please enter a new name for {name}:',\n },\n renameDialogErrorInvalid: {\n id: 'be.renameDialogErrorInvalid',\n description: 'Error text for rename dialog when name is invalid',\n defaultMessage: 'This name is invalid.',\n },\n renameDialogErrorInUse: {\n id: 'be.renameDialogErrorInUse',\n description: 'Error text for rename dialog when name is already in use',\n defaultMessage: 'An item with the same name already exists.',\n },\n renameDialogErrorTooLong: {\n id: 'be.renameDialogErrorTooLong',\n description: 'Error text for rename dialog when name is too long',\n defaultMessage: 'This name is too long.',\n },\n createDialogLabel: {\n id: 'be.createDialogLabel',\n description: 'Label for create folder dialog',\n defaultMessage: 'New Folder',\n },\n createDialogText: {\n id: 'be.createDialogText',\n description: 'Text for create folder dialog',\n defaultMessage: 'Please enter a name.',\n },\n createDialogErrorInvalid: {\n id: 'be.createDialogErrorInvalid',\n description: 'Error text for create folder dialog when name is invalid',\n defaultMessage: 'This is an invalid folder name.',\n },\n createDialogErrorTooLong: {\n id: 'be.createDialogErrorTooLong',\n description: 'Error text for create folder dialog when name is too long',\n defaultMessage: 'This folder name is too long.',\n },\n createDialogErrorInUse: {\n id: 'be.createDialogErrorInUse',\n description: 'Error text for create folder dialog when name is already in use',\n defaultMessage: 'A folder with the same name already exists.',\n },\n shareDialogLabel: {\n id: 'be.shareDialogLabel',\n description: 'Label for shared link dialog',\n defaultMessage: 'Share',\n },\n shareDialogText: {\n id: 'be.shareDialogText',\n description: 'Text for share link dialog',\n defaultMessage: 'Shared Link:',\n },\n shareDialogNone: {\n id: 'be.shareDialogNone',\n description: 'Text for no shared link',\n defaultMessage: 'None',\n },\n shareAccessOpen: {\n id: 'be.shareAccessOpen',\n description: 'Dropdown select option for open share access.',\n defaultMessage: 'Access: People with the link',\n },\n shareAccessCollab: {\n id: 'be.shareAccessCollab',\n description: 'Dropdown select option for collaborator share access.',\n defaultMessage: 'Access: People in this folder',\n },\n shareAccessCompany: {\n id: 'be.shareAccessCompany',\n description: 'Dropdown select option for enterprise share access.',\n defaultMessage: 'People in this company',\n },\n shareAccessNone: {\n id: 'be.shareAccessNone',\n description: 'Dropdown select option for no access.',\n defaultMessage: 'No shared link',\n },\n shareAccessRemove: {\n id: 'be.shareAccessRemove',\n description: 'Dropdown select option to remove access.',\n defaultMessage: 'Remove shared link',\n },\n searchPlaceholder: {\n id: 'be.searchPlaceholder',\n description: 'Shown as a placeholder in the search box.',\n defaultMessage: 'Search files and folders',\n },\n sidebarAccessStats: {\n id: 'be.sidebarAccessStats',\n description: 'Title for the sidebar access stats.',\n defaultMessage: 'Access Stats',\n },\n sidebarContentInsights: {\n id: 'be.sidebarContentInsights',\n description: 'Title for the sidebar content insights.',\n defaultMessage: 'Content Insights',\n },\n sidebarShow: {\n id: 'be.sidebarShow',\n description: 'Label for the show sidebar button.',\n defaultMessage: 'Show Sidebar',\n },\n sidebarHide: {\n id: 'be.sidebarHide',\n description: 'Label for the hide sidebar button.',\n defaultMessage: 'Hide Sidebar',\n },\n description: {\n id: 'be.description',\n description: 'Label for the description field in the preview sidebar.',\n defaultMessage: 'Description',\n },\n descriptionPlaceholder: {\n id: 'be.descriptionPlaceholder',\n description: 'Placeholder for file description in preview sidebar.',\n defaultMessage: 'Enter a description',\n },\n sidebarDetailsTitle: {\n id: 'be.sidebarDetailsTitle',\n description: 'Title for the preview details sidebar.',\n defaultMessage: 'Details',\n },\n sidebarSkillsTitle: {\n id: 'be.sidebarSkillsTitle',\n description: 'Title for the preview details skills.',\n defaultMessage: 'Skills',\n },\n sidebarSkillsErrorTitle: {\n id: 'be.sidebarSkillsErrorTitle',\n description: 'Generic error title for skills editing.',\n defaultMessage: 'Skills Error',\n },\n sidebarSkillsErrorContent: {\n id: 'be.sidebarSkillsErrorContent',\n description: 'Generic error content for skills editing.',\n defaultMessage: 'An error has occurred while updating skills. Please refresh the page and try again.',\n },\n sidebarActivityTitle: {\n id: 'be.sidebarActivityTitle',\n description: 'Title for the preview activity feed.',\n defaultMessage: 'Activity',\n },\n sidebarDocGenTitle: {\n id: 'be.sidebarDocGenTitle',\n description: 'Title for the DocGen sidebar tab.',\n defaultMessage: 'Doc Gen Tags',\n },\n sidebarMetadataTitle: {\n id: 'be.sidebarMetadataTitle',\n description: 'Title for the preview metadata.',\n defaultMessage: 'Metadata',\n },\n sidebarMetadataEditingErrorContent: {\n id: 'be.sidebarMetadataEditingErrorContent',\n description: 'Generic error content for metadata editing.',\n defaultMessage: 'An error has occurred while updating metadata. Please refresh the page and try again.',\n },\n sidebarMetadataFetchingErrorContent: {\n id: 'be.sidebarMetadataFetchingErrorContent',\n description: 'Generic error content for metadata fetching.',\n defaultMessage: 'An error has occurred while fetching metadata. Please refresh the page and try again.',\n },\n sidebarFileFetchingErrorContent: {\n id: 'be.sidebarFileFetchingErrorContent',\n description: 'Generic error content for file fetching.',\n defaultMessage: 'An error has occurred while fetching your Box file. Please refresh the page and try again.',\n },\n sidebarProperties: {\n id: 'be.sidebarProperties',\n description: 'Label for file properties section in the preview sidebar',\n defaultMessage: 'File Properties',\n },\n sidebarNavLabel: {\n id: 'be.sidebarNavLabel',\n description: 'Label for the sidebar tabs list',\n defaultMessage: 'Sidebar',\n },\n defaultSkill: {\n id: 'be.defaultSkill',\n description: 'Label for default skill section in the preview sidebar',\n defaultMessage: 'Skill Card',\n },\n statusSkill: {\n id: 'be.statusSkill',\n description: 'Label for status skill card in the preview sidebar',\n defaultMessage: 'Status',\n },\n topicsSkill: {\n id: 'be.topicsSkill',\n description: 'Label for keywords/topics skill section in the preview sidebar',\n defaultMessage: 'Topics',\n },\n keywordSkill: {\n id: 'be.keywordSkill',\n description: 'Label for keywords/topics skill section in the preview sidebar',\n defaultMessage: 'Topics',\n },\n faceSkill: {\n id: 'be.faceSkill',\n description: 'Label for face skill section in the preview sidebar',\n defaultMessage: 'Faces',\n },\n transcriptSkill: {\n id: 'be.transcriptSkill',\n description: 'Label for transcript skill section in the preview sidebar',\n defaultMessage: 'Transcript',\n },\n skillPendingStatus: {\n id: 'be.skillPendingStatus',\n description: 'Default message when skills are still running',\n defaultMessage: 'We’re working on processing your file - please hold!',\n },\n skillInvokedStatus: {\n id: 'be.skillInvokedStatus',\n description: 'Default message when skills are waiting to run',\n defaultMessage: 'We’re preparing to process your file - please hold!',\n },\n skillUnknownError: {\n id: 'be.skillUnknownError',\n description: 'Default error message when skills fail to run',\n defaultMessage: 'Something went wrong with running this skill or fetching its data.',\n },\n skillInvalidFileSizeError: {\n id: 'be.skillInvalidFileSizeError',\n description: 'Error message when skill fails due to file size',\n defaultMessage: 'We’re sorry, no skills information was found. This file size is currently not supported.',\n },\n skillInvalidFileExtensionError: {\n id: 'be.skillInvalidFileExtensionError',\n description: 'Error message when skill fails due to file extension',\n defaultMessage: 'We’re sorry, no skills information was found. This file extension is currently not supported.',\n },\n skillNoInfoFoundError: {\n id: 'be.skillNoInfoFoundError',\n description: 'Error message when a skill has no data',\n defaultMessage: 'We’re sorry, no skills information was found.',\n },\n skillFileProcessingError: {\n id: 'be.skillFileProcessingError',\n description: 'Error message when a skill processing failed',\n defaultMessage: 'We’re sorry, something went wrong with processing the file.',\n },\n uploadErrorTooManyFiles: {\n id: 'be.uploadErrorTooManyFiles',\n description: 'Message shown when too many files are uploaded at once',\n defaultMessage: 'You can only upload up to {fileLimit} file(s) at a time.',\n },\n uploadError: {\n id: 'be.uploadError',\n description: 'Message shown when there is a network error when uploading',\n defaultMessage: 'A network error has occurred while trying to upload.',\n },\n uploadEmptyWithFolderUploadEnabled: {\n id: 'be.uploadEmptyWithFolderUploadEnabled',\n description: 'Message shown when there are no items to upload and folder upload is enabled',\n defaultMessage: 'Drag and drop files and folders',\n },\n uploadEmptyWithFolderUploadDisabled: {\n id: 'be.uploadEmptyWithFolderUploadDisabled',\n description: 'Message shown when there are no items to upload and folder upload is disabled',\n defaultMessage: 'Drag and drop files',\n },\n uploadEmptyFileInput: {\n id: 'be.uploadEmptyFileInput',\n description: 'Message shown for upload link for uploading more files when there are no items to upload',\n defaultMessage: 'Browse your device',\n },\n uploadEmptyFolderInput: {\n id: 'be.uploadEmptyFolderInput',\n description: 'Message shown for upload link for uploading more folders when there are no items to upload',\n defaultMessage: 'Select Folders',\n },\n uploadNoDragDrop: {\n id: 'be.uploadNoDragDrop',\n description: 'Message shown on a device with no drag and drop support when there are no items to upload',\n defaultMessage: 'Select files from your device',\n },\n uploadInProgress: {\n id: 'be.uploadInProgress',\n description: 'Message shown when user drag and drops files onto uploads in progress',\n defaultMessage: 'Drag and drop to add additional files',\n },\n uploadSuccess: {\n id: 'be.uploadSuccess',\n description: 'Message shown when all files have been successfully uploaded',\n defaultMessage: 'Success! Your files have been uploaded.',\n },\n uploadSuccessFileInput: {\n id: 'be.uploadSuccessFileInput',\n description: 'Message shown for upload link for uploading more files after a successful upload',\n defaultMessage: 'Select More Files',\n },\n uploadSuccessFolderInput: {\n id: 'be.uploadSuccessFolderInput',\n description: 'Message shown for upload link for uploading more folders after a successful upload',\n defaultMessage: 'Select More Folders',\n },\n uploadOptions: {\n id: 'be.uploadOptions',\n description: 'Message shown for letting user choose between {option1} and {option2}',\n defaultMessage: '{option1} or {option2}',\n },\n nameASC: {\n id: 'be.nameASC',\n description: 'Name ascending option shown in the share access drop down select.',\n defaultMessage: 'Name: A → Z',\n },\n nameDESC: {\n id: 'be.nameDESC',\n description: 'Name descending option shown in the share access drop down select.',\n defaultMessage: 'Name: Z → A',\n },\n dateASC: {\n id: 'be.dateASC',\n description: 'Date ascending option shown in the share access drop down select.',\n defaultMessage: 'Date: Oldest → Newest',\n },\n dateDESC: {\n id: 'be.dateDESC',\n description: 'Date descending option shown in the share access drop down select.',\n defaultMessage: 'Date: Newest → Oldest',\n },\n sizeASC: {\n id: 'be.sizeASC',\n description: 'Size ascending option shown in the share access drop down select.',\n defaultMessage: 'Size: Smallest → Largest',\n },\n sizeDESC: {\n id: 'be.sizeDESC',\n description: 'Size descending option shown in the share access drop down select.',\n defaultMessage: 'Size: Largest → Smallest',\n },\n searchState: {\n id: 'be.searchState',\n description: 'Message shown when there are no search results.',\n defaultMessage: 'Sorry, we couldn’t find what you’re looking for.',\n },\n selectedState: {\n id: 'be.selectedState',\n description: 'Message shown when there are no selected items.',\n defaultMessage: 'You haven’t selected any items yet.',\n },\n errorState: {\n id: 'be.errorState',\n description: 'Message shown when there is an error.',\n defaultMessage: 'A network error has occurred while trying to load.',\n },\n folderState: {\n id: 'be.folderState',\n description: 'Message shown when there are no folder items.',\n defaultMessage: 'There are no items in this folder.',\n },\n metadataState: {\n id: 'be.metadataState',\n description: 'Message shown when there are no items for provided metadata query.',\n defaultMessage: 'There are no items in this folder.',\n },\n recentsState: {\n id: 'be.recentsState',\n description: 'Message shown when there are no recent items.',\n defaultMessage: 'There are no recent items yet.',\n },\n loadingState: {\n id: 'be.loadingState',\n description: 'Message shown when folder items are still fetching.',\n defaultMessage: 'Please wait while the items load...',\n },\n errorBreadcrumb: {\n id: 'be.errorBreadcrumb',\n description: 'Default label for signifying error in the sub header.',\n defaultMessage: 'Error',\n },\n rootBreadcrumb: {\n id: 'be.rootBreadcrumb',\n description: 'Default label for root folder.',\n defaultMessage: 'All Files',\n },\n searchBreadcrumb: {\n id: 'be.searchBreadcrumb',\n description: 'Shown as the title in the sub header while searching.',\n defaultMessage: 'Search Results',\n },\n recentsBreadcrumb: {\n id: 'be.recentsBreadcrumb',\n description: 'Shown as the title in the sub header when showing recents.',\n defaultMessage: 'Recents',\n },\n selectedBreadcrumb: {\n id: 'be.selectedBreadcrumb',\n description: 'Shown as the title in the sub header while showing selected items.',\n defaultMessage: 'Selected Items',\n },\n uploadsManagerUploadInProgress: {\n id: 'be.uploadsManagerUploadInProgress',\n description: 'Text shown when uploads are in progress',\n defaultMessage: 'Uploading',\n },\n uploadsManagerUploadPrompt: {\n id: 'be.uploadsManagerUploadPrompt',\n description: 'Text shown to guide the user to drag drop file to upload',\n defaultMessage: 'Drop files on this page to upload them into this folder.',\n },\n uploadsManagerUploadComplete: {\n id: 'be.uploadsManagerUploadComplete',\n description: 'Text shown when uploads are completed',\n defaultMessage: 'Completed',\n },\n uploadsManagerUploadFailed: {\n id: 'be.uploadsManagerUploadFailed',\n description: 'Text shown when uploads failed',\n defaultMessage: 'Some Uploads Failed',\n },\n uploadsCancelButtonTooltip: {\n id: 'be.uploadsCancelButtonTooltip',\n description: 'Cancel upload button tooltip',\n defaultMessage: 'Cancel this upload',\n },\n uploadsRetryButtonTooltip: {\n id: 'be.uploadsRetryButtonTooltip',\n description: 'Retry upload button tooltip',\n defaultMessage: 'Retry upload',\n },\n uploadsFileSizeLimitExceededErrorMessage: {\n id: 'be.uploadsFileSizeLimitExceededErrorMessage',\n description: 'Error message shown when file size exceeds the limit',\n defaultMessage: 'File size exceeds the folder owner’s file size limit',\n },\n uploadsFileSizeLimitExceededErrorMessageForUpgradeCta: {\n id: 'be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta',\n description: 'Error message shown when file size exceeds the limit',\n defaultMessage: 'This file exceeds your plan’s upload limit. Upgrade now to store larger files.',\n },\n uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta: {\n id: 'be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta',\n description: 'Upgrade message shown when file size exceeds the limit',\n defaultMessage: 'Upgrade',\n },\n uploadsStorageLimitErrorMessage: {\n id: 'be.uploadsStorageLimitErrorMessage',\n description: 'Error message shown when account storage limit has been reached',\n defaultMessage: 'Account storage limit reached',\n },\n uploadsPendingFolderSizeLimitErrorMessage: {\n id: 'be.uploadsPendingFolderSizeLimitErrorMessage',\n description: 'Error message shown when pending app folder size exceeds the limit',\n defaultMessage: 'Pending app folder size limit exceeded',\n },\n uploadsItemNameInUseErrorMessage: {\n id: 'be.uploadsItemNameInUseErrorMessage',\n description: 'Error message shown when attempting to upload a file which name already exists',\n defaultMessage: 'A file with this name already exists.',\n },\n uploadsProvidedFolderNameInvalidMessage: {\n id: 'be.uploadsProvidedFolderNameInvalidMessage',\n description: 'Error message shown when pending folder upload contains invalid characters',\n defaultMessage: 'Provided folder name, {name}, could not be used to create a folder.',\n },\n uploadsOneOrMoreChildFoldersFailedToUploadMessage: {\n id: 'be.uploadsOneOrMoreChildFoldersFailedToUploadMessage',\n description: 'Error message shown when one or more child folders failed to upload',\n defaultMessage: 'One or more child folders failed to upload.',\n },\n uploadsPackageUploadErrorMessage: {\n id: 'be.uploadsPackageUploadErrorMessage',\n description: 'Error message to display when a macOS package failed to upload',\n defaultMessage: 'Failed to upload package file. Please retry by saving as a single file.',\n },\n uploadsDefaultErrorMessage: {\n id: 'be.uploadsDefaultErrorMessage',\n description: 'Default error message shown when upload fails',\n defaultMessage: 'Something went wrong with the upload. Please try again.',\n },\n errorOccured: {\n id: 'be.errorOccured',\n defaultMessage: 'An error occurred',\n description: 'Title when an error occurs',\n },\n editLabel: {\n id: 'be.editLabel',\n defaultMessage: 'Edit',\n description: 'Label for an edit action',\n },\n getVersionInfo: {\n id: 'be.getVersionInfo',\n defaultMessage: 'Get version information',\n description: 'Aria label for button to get information about a file’s versions',\n },\n keywordsApplied: {\n id: 'be.keywordsAppliedList',\n defaultMessage: 'Keywords were applied',\n description: 'Message displayed in the activity feed for when image keyword search applies keywords',\n },\n keywordsList: {\n id: 'be.keywordsList',\n defaultMessage: 'Keywords: {words}',\n description: 'Label for a list of keywords. {words} are the list of keywords.',\n },\n noActivity: {\n id: 'be.noActivity',\n defaultMessage: 'No activity to show',\n description: 'Message displayed in an empty activity feed',\n },\n noActivityAnnotationPrompt: {\n id: 'be.noActivityAnnotationPrompt',\n defaultMessage: 'Hover over the preview and use the controls at the bottom to annotate the file.',\n description: 'Message shown alongside empty activity feed when user can annotate',\n },\n noActivityCommentPrompt: {\n id: 'be.noActivityCommentPrompt',\n defaultMessage: 'Comment and @mention people to notify them.',\n description: 'Message shown in ',\n },\n versionDeleted: {\n id: 'be.versionDeleted',\n defaultMessage: '{name} deleted v{version_number}',\n description:\n 'Message displayed in the activity feed for a deleted version. {name} is the user who performed the action. {version_number} is the file version string.',\n },\n versionPromoted: {\n id: 'be.versionPromoted',\n defaultMessage: '{name} promoted v{version_promoted} to v{version_number}',\n description:\n 'Message displayed in the activity feed for a promoted version. {name} is the user who performed the action. {version_promoted} is the originating file version string. {version_number} is the file version string.',\n },\n versionRestored: {\n id: 'be.versionRestored',\n defaultMessage: '{name} restored v{version_number}',\n description:\n 'Message displayed in the activity feed for a restored version. {name} is the user who performed the action. {version_number} is the file version string.',\n },\n versionMultipleUsersUploaded: {\n id: 'be.versionMultipleUsersUploaded',\n defaultMessage: '{numberOfCollaborators} collaborators uploaded v{versions}',\n description:\n 'Message displayed in the activity feed to represent the range of versions uploaded by multiple users. {numberOfCollaborators} is a number and {versions} is a range of versions.',\n },\n versionUploadCollapsed: {\n id: 'be.versionUploadCollapsed',\n defaultMessage: '{name} uploaded v{versions}',\n description:\n 'Message displayed in the activity feed to represent the range of versions uploaded by a single user. {name} is the user who uploaded. {versions} is a range of versions.',\n },\n versionUploaded: {\n id: 'be.versionUploaded',\n defaultMessage: '{name} uploaded v{version_number}',\n description:\n 'Message displayed in the activity feed for a newly uploaded version. {name} is the user who performed the action. {version_number} is the file version string.',\n },\n fileRequestDisplayName: {\n defaultMessage: 'File Request',\n description:\n 'name of the File Request feature used to translate when a File Request is uploaded by the service',\n id: 'be.fileRequestDisplayName',\n },\n defaultInlineErrorContentMessage: {\n id: 'be.defaultInlineErrorContentMessage',\n description: 'Default bottom inline error message',\n defaultMessage: 'Please try again later.',\n },\n fileDescriptionInlineErrorTitleMessage: {\n id: 'be.fileDescriptionInlineErrorTitleMessage',\n description: 'Inline error title message for file description',\n defaultMessage: 'Something went wrong when saving the description.',\n },\n defaultErrorMaskHeaderMessage: {\n id: 'be.defaultErrorMaskHeaderMessage',\n description: 'Default error mask top message',\n defaultMessage: 'We’re sorry, something went wrong.',\n },\n defaultErrorMaskSubHeaderMessage: {\n id: 'be.defaultErrorMaskSubHeaderMessage',\n description: 'Default error mask bottom message',\n defaultMessage: 'Please refresh the page or try again later.',\n },\n fileAccessStatsErrorHeaderMessage: {\n id: 'be.fileAccessStatsErrorHeaderMessage',\n description: 'File access stats error message',\n defaultMessage: 'Something went wrong when fetching the access stats.',\n },\n fileAccessStatsPermissionsError: {\n id: 'be.accessStatsPermissionsError',\n description: 'The text for when the user does not have permissions to see access stats.',\n defaultMessage: 'Sorry, you do not have permission to see the access stats for this file.',\n },\n fileClassificationErrorHeaderMessage: {\n id: 'be.fileClassificationErrorHeaderMessage',\n description: 'File classification error message',\n defaultMessage: 'Something went wrong when fetching classification.',\n },\n currentUserErrorHeaderMessage: {\n id: 'be.currentUserErrorHeaderMessage',\n description: 'Current user error message',\n defaultMessage: 'Something went wrong when fetching the current user.',\n },\n activityFeedItemApiError: {\n id: 'be.activityFeedItemApiError',\n description: 'Error message for feed item API errors',\n defaultMessage: 'There was a problem loading the activity feed. Please refresh the page or try again later.',\n },\n nextFile: {\n defaultMessage: 'Next File',\n description: 'Next file button title',\n id: 'be.nextFile',\n },\n nextPage: {\n defaultMessage: 'Next Page',\n description: 'Next page button tooltip',\n id: 'be.pagination.nextPage',\n },\n pageStatus: {\n defaultMessage: '{pageNumber} of {pageCount}',\n description: 'Pagination menu button with current page number out of total number of pages',\n id: 'be.pagination.pageStatus',\n },\n previousFile: {\n defaultMessage: 'Previous File',\n description: 'Previous file button title',\n id: 'be.previousFile',\n },\n previousPage: {\n defaultMessage: 'Previous Page',\n description: 'Previous page button tooltip',\n id: 'be.pagination.previousPage',\n },\n previousSegment: {\n id: 'be.previousSegment',\n description: 'Title for previous segment on skill timeline',\n defaultMessage: 'Previous Segment',\n },\n nextSegment: {\n id: 'be.nextSegment',\n description: 'Title for next segment on skill timeline',\n defaultMessage: 'Next Segment',\n },\n transcriptEdit: {\n id: 'be.transcriptEdit',\n description: 'Message to the user for editing the transcript in the sidebar',\n defaultMessage: 'Click any section to edit.',\n },\n emptyOpenWithDescription: {\n id: 'be.emptyOpenWithDescription',\n description: 'Message to the user when there are no Open With integrations',\n defaultMessage: 'No integrations are available for this file',\n },\n errorOpenWithDescription: {\n id: 'be.errorOpenWithDescription',\n description: 'Message to the user when the open with element errors',\n defaultMessage: 'Opening this file with other services is currently unavailable',\n },\n defaultOpenWithDescription: {\n id: 'be.defaultOpenWithDescription',\n description: 'Message to the user when there is at least one Open With integration available',\n defaultMessage: 'Open this file with a partner service',\n },\n executeIntegrationOpenWithErrorHeader: {\n id: 'be.executeIntegrationOpenWithErrorHeader',\n description: 'Header message to the user when an Open With integration fails to execute',\n defaultMessage: 'We’re sorry, this integration is currently unavailable.',\n },\n executeIntegrationOpenWithErrorSubHeader: {\n id: 'be.executeIntegrationOpenWithErrorSubHeader',\n description: 'Sub header message to the user when an Open With integration fails to execute',\n defaultMessage: 'Please try again later.',\n },\n boxToolsInstallMessage: {\n id: 'be.boxToolsInstallMessage',\n description: 'Message shown telling user how to install Box Tools',\n defaultMessage: 'Install {boxTools} to open this file on your desktop',\n },\n boxToolsBlacklistedError: {\n id: 'be.boxEditBlacklistedError',\n description: 'Message when Box Tools cannot open a particular file type',\n defaultMessage: 'This file cannot be opened locally',\n },\n drawAnnotation: {\n id: 'be.drawAnnotation',\n description: 'Message to the user to enter into drawing annotation mode',\n defaultMessage: 'Drawing annotation mode',\n },\n pointAnnotation: {\n id: 'be.pointAnnotation',\n description: 'Message to the user to enter into point annotation mode',\n defaultMessage: 'Point annotation mode',\n },\n expand: {\n id: 'be.expand',\n description: 'Message to the user to expand the Transcript entries',\n defaultMessage: 'Expand',\n },\n collapse: {\n id: 'be.collapse',\n description: 'Message to the user to collapse the Transcript entries',\n defaultMessage: 'Collapse',\n },\n back: {\n id: 'be.back',\n description: 'Label for back button',\n defaultMessage: 'Back',\n },\n priorCollaborator: {\n id: 'be.priorCollaborator',\n description:\n 'If a user has been deleted, we call the user \"a prior collaborator\" - meaning someone who used to be able to collaborate on the content.',\n defaultMessage: 'A Prior Collaborator',\n },\n moreOptions: {\n id: 'be.moreOptions',\n description: 'Label for a button that displays more options',\n defaultMessage: 'More options',\n },\n bookmark: {\n id: 'be.bookmark',\n description: 'Icon title for a Box item of type bookmark or web-link',\n defaultMessage: 'Bookmark',\n },\n collaboratedFolder: {\n id: 'be.collaboratedFolder',\n description: 'Icon title for a Box item of type folder that has collaborators',\n defaultMessage: 'Collaborated Folder',\n },\n externalFolder: {\n id: 'be.externalFolder',\n description: \"Icon title for a Box item of type folder that has collaborators outside of the user's enterprise\",\n defaultMessage: 'External Folder',\n },\n file: {\n id: 'be.file',\n description: 'Icon title for a Box item of type file',\n defaultMessage: 'File',\n },\n personalFolder: {\n id: 'be.personalFolder',\n description: 'Icon title for a Box item of type folder that is private and has no collaborators',\n defaultMessage: 'Personal Folder',\n },\n sidebarDocGenTooltip: {\n id: 'be.sidebarDocGenTooltip',\n defaultMessage: 'Box Doc Gen',\n description: 'Icon title for a Box file of type DocGen template',\n },\n});\n\nexport default messages;\n"],"file":"messages.js"}
|
|
@@ -216,12 +216,14 @@ class ContactsField extends React.Component {
|
|
|
216
216
|
email,
|
|
217
217
|
isExternalUser,
|
|
218
218
|
text = null,
|
|
219
|
-
id
|
|
219
|
+
id,
|
|
220
|
+
type
|
|
220
221
|
} = _ref5;
|
|
221
222
|
return React.createElement(ContactDatalistItem, {
|
|
222
223
|
getContactAvatarUrl: getContactAvatarUrl,
|
|
223
224
|
key: id,
|
|
224
225
|
id: id,
|
|
226
|
+
type: type,
|
|
225
227
|
isExternal: isExternalUser,
|
|
226
228
|
name: text,
|
|
227
229
|
subtitle: email || groupLabel,
|