diff --git a/app/components/Avatar/Avatar.tsx b/app/components/Avatar/Avatar.tsx index 8e73c595f0..8512ba6f08 100644 --- a/app/components/Avatar/Avatar.tsx +++ b/app/components/Avatar/Avatar.tsx @@ -24,6 +24,7 @@ type Props = { src?: string; model?: IAvatar; alt?: string; + shape?: "square"; showBorder?: boolean; onClick?: React.MouseEventHandler; className?: string; @@ -65,11 +66,15 @@ const Relative = styled.div` flex-shrink: 0; `; -const CircleImg = styled.img<{ size: number; $showBorder?: boolean }>` +const CircleImg = styled.img<{ + size: number; + shape?: "square"; + $showBorder?: boolean; +}>` display: block; width: ${(props) => props.size}px; height: ${(props) => props.size}px; - border-radius: 50%; + border-radius: ${(props) => (props.shape === "square" ? 4 : props.size)}px; border: ${(props) => props.$showBorder === false ? "none" diff --git a/app/components/Avatar/Initials.tsx b/app/components/Avatar/Initials.tsx index bb46dfef76..0ac7f92d93 100644 --- a/app/components/Avatar/Initials.tsx +++ b/app/components/Avatar/Initials.tsx @@ -3,19 +3,17 @@ import Flex from "~/components/Flex"; const Initials = styled(Flex)<{ color?: string; + shape?: "square"; size: number; $showBorder?: boolean; }>` align-items: center; justify-content: center; - border-radius: 50%; - width: 100%; - height: 100%; + border-radius: ${(props) => (props.shape === "square" ? 4 : props.size)}px; color: #fff; background-color: ${(props) => props.color}; width: ${(props) => props.size}px; height: ${(props) => props.size}px; - border-radius: 50%; border: 2px solid ${(props) => props.$showBorder === false ? "transparent" : props.theme.background}; diff --git a/app/components/Combobox.tsx b/app/components/Combobox.tsx deleted file mode 100644 index a259286dc0..0000000000 --- a/app/components/Combobox.tsx +++ /dev/null @@ -1,215 +0,0 @@ -/* eslint-disable react/prop-types */ -import { observer } from "mobx-react"; -import * as React from "react"; -import { - unstable_useComboboxState as useComboboxState, - unstable_Combobox as ComboboxInput, - unstable_ComboboxPopover as ComboboxPopover, - unstable_ComboboxOption as ComboboxOption, -} from "reakit/Combobox"; -import styled from "styled-components"; -import breakpoint from "styled-components-breakpoint"; -import { s, ellipsis } from "@shared/styles"; -import { Backdrop, Background, Placement } from "~/components/ContextMenu"; -import { MenuAnchorCSS } from "~/components/ContextMenu/MenuItem"; -import { LabelText, Outline, Wrapper } from "~/components/Input"; -import { Positioner } from "~/components/InputSelect"; -import { Portal } from "~/components/Portal"; -import useBoolean from "~/hooks/useBoolean"; -import useMobile from "~/hooks/useMobile"; -import { undraggableOnDesktop } from "~/styles"; - -type Suggestion = { - id: string; - value: string; - /** A label to show instead of the value if a more rich component is needed */ - label?: React.ReactNode; - [key: string]: any; -}; - -type Option = Omit; - -type Props = Omit, "list"> & { - /** All possible suggestions, populated as search result options */ - suggestions: Suggestion[]; - /** Value held by the search input bar */ - value: string; - /** Label for search input */ - label?: string; - /** Label for the search results list */ - listLabel: string; - /** Handler which triggers upon search input change */ - onChangeInput: (value: string) => void; - /** Handler which triggers when one of the search result options is selected */ - onSelectOption: (option: Option) => void; -}; - -function Combobox({ - suggestions = [], - value, - label, - listLabel, - onChangeInput, - onSelectOption, - ...rest -}: Props) { - const [focused, handleFocus, handleBlur] = useBoolean(); - const [listWidth, setListWidth] = React.useState(0); - const isMobile = useMobile(); - - const handleChange = (ev: React.ChangeEvent) => { - state.setInputValue(ev.target.value); - }; - - const state = useComboboxState({ - gutter: 2, - values: suggestions.map((s) => s.value), - }); - - const items = React.useMemo( - () => suggestions.filter((s) => state.matches.includes(s.value)), - [state.matches, suggestions] - ); - - React.useEffect(() => { - if (!isMobile && state.visible && state.unstable_disclosureRef.current) { - const elem = state.unstable_disclosureRef.current; - setListWidth(elem.clientWidth); - } - }, [state.visible, state.unstable_disclosureRef, isMobile]); - - React.useEffect(() => { - state.setValues(suggestions.map((s) => s.value)); - }, [suggestions]); - - React.useEffect(() => { - onChangeInput(state.inputValue); - }, [state.inputValue, onChangeInput]); - - return ( - <> - - - - - {( - props: React.HTMLAttributes & { - placement: Placement; - } - ) => { - const topAnchor = props.style?.top === "0"; - const rightAnchor = props.placement === "bottom-end"; - - if (!items.length) { - return null; - } - - return ( - <> - {state.visible && isMobile && ( - - - - )} - - - - {state.visible - ? items.map((item) => ( - { - onSelectOption(item); - state.setInputValue(""); - state.hide(); - }} - > - {item.label ?? item.value} - - )) - : null} - - - - - ); - }} - - - ); -} - -const StyledComboboxInput = styled(ComboboxInput)` - border: 0; - flex: 1; - padding: 8px 12px 8px; - outline: none; - background: none; - color: ${s("text")}; - height: 30px; - min-width: 0; - font-size: 15px; - - ${ellipsis()} - ${undraggableOnDesktop()} - - &:disabled, - &::placeholder { - color: ${s("placeholder")}; - opacity: 1; - } - - &:-webkit-autofill, - &:-webkit-autofill:hover, - &:-webkit-autofill:focus { - -webkit-box-shadow: 0 0 0px 1000px ${s("background")} inset; - } - - &::-webkit-search-cancel-button { - -webkit-appearance: none; - } - - ${breakpoint("mobile", "tablet")` - font-size: 16px; - `}; -`; - -const StyledComboboxOption = styled(ComboboxOption)` - ${MenuAnchorCSS} - - /* overriding the styles from MenuAnchorCSS because we use   here */ - svg:not(:last-child) { - margin-right: 0px; - } -`; - -export default observer(Combobox); diff --git a/app/components/List/Item.tsx b/app/components/List/Item.tsx index 081b252dc4..e57d2e24af 100644 --- a/app/components/List/Item.tsx +++ b/app/components/List/Item.tsx @@ -12,6 +12,7 @@ export type Props = Omit, "title"> & { title: React.ReactNode; subtitle?: React.ReactNode; actions?: React.ReactNode; + onClick?: React.MouseEventHandler; border?: boolean; small?: boolean; }; @@ -74,6 +75,7 @@ const ListItem = ( const Wrapper = styled.a<{ $small?: boolean; $border?: boolean; + onClick?: React.MouseEventHandler; to?: LocationDescriptor; }>` display: flex; @@ -89,6 +91,11 @@ const Wrapper = styled.a<{ border-bottom: 0; } + &:hover { + background: ${(props) => + props.onClick ? props.theme.secondaryBackground : "inherit"}; + } + cursor: ${({ to }) => (to ? "var(--pointer)" : "default")}; `; diff --git a/app/components/NudeButton.tsx b/app/components/NudeButton.tsx index f5ecf8856a..c3b3622b2a 100644 --- a/app/components/NudeButton.tsx +++ b/app/components/NudeButton.tsx @@ -1,8 +1,9 @@ +import { darken } from "polished"; import styled from "styled-components"; import ActionButton, { Props as ActionButtonProps, } from "~/components/ActionButton"; -import { undraggableOnDesktop } from "~/styles"; +import { hover, undraggableOnDesktop } from "~/styles"; type Props = ActionButtonProps & { width?: number | string; @@ -32,6 +33,11 @@ const NudeButton = styled(ActionButton).attrs((props: Props) => ({ user-select: none; color: inherit; ${undraggableOnDesktop()} + + &:${hover}, + &[aria-expanded="true"] { + background: ${(props) => darken(0.05, props.theme.buttonNeutralBackground)}; + } `; export default NudeButton; diff --git a/app/components/Sharing/DocumentMemberList.tsx b/app/components/Sharing/DocumentMemberList.tsx index f79e113ac8..3b6cde294e 100644 --- a/app/components/Sharing/DocumentMemberList.tsx +++ b/app/components/Sharing/DocumentMemberList.tsx @@ -1,25 +1,17 @@ import { t } from "i18next"; -import isNil from "lodash/isNil"; import orderBy from "lodash/orderBy"; import { observer } from "mobx-react"; import * as React from "react"; import { useHistory } from "react-router-dom"; import { toast } from "sonner"; -import styled from "styled-components"; import { Pagination } from "@shared/constants"; import Document from "~/models/Document"; -import User from "~/models/User"; import UserMembership from "~/models/UserMembership"; -import Avatar from "~/components/Avatar"; -import { AvatarSize } from "~/components/Avatar/Avatar"; -import Combobox from "~/components/Combobox"; -import Flex from "~/components/Flex"; import LoadingIndicator from "~/components/LoadingIndicator"; import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; -import useThrottledCallback from "~/hooks/useThrottledCallback"; import { homePath } from "~/utils/routeHelpers"; import MemberListItem from "./MemberListItem"; @@ -28,13 +20,12 @@ type Props = { document: Document; /** Children to be rendered before the list of members */ children?: React.ReactNode; + /** List of users that have been invited to the document during the current editing session */ + invitedInSession: string[]; }; -function DocumentMembersList({ document, children }: Props) { +function DocumentMembersList({ document, invitedInSession }: Props) { const { users, userMemberships } = useStores(); - const [query, setQuery] = React.useState(""); - const [selectedUser, setSelectedUser] = React.useState(null); - const [invitedInSession, setInvitedInSession] = React.useState([]); const user = useCurrentUser(); const history = useHistory(); const can = usePolicy(document); @@ -63,51 +54,6 @@ function DocumentMembersList({ document, children }: Props) { void fetchDocumentMembers(); }, [fetchTeamMembers, fetchDocumentMembers]); - const inviteUser = React.useCallback( - (user: User) => { - setInvitedInSession((prev) => [...prev, user.id]); - return userMemberships.create({ - documentId: document.id, - userId: user.id, - }); - }, - [userMemberships, document.id] - ); - - const fetchUsersByQuery = useThrottledCallback( - (query) => - users.fetchPage({ - query, - }), - 250 - ); - - const nonMembers = React.useMemo( - () => - users.notInDocument(document.id, query).filter((u) => u.id !== user.id), - [users, users.orderedData, document.id, document.members, user.id, query] - ); - - React.useEffect(() => { - if (!isNil(query)) { - void fetchUsersByQuery(query); - } - }, [query, fetchUsersByQuery]); - - React.useEffect(() => { - if (selectedUser) { - void inviteUser(selectedUser); - } - }, [selectedUser, inviteUser]); - - const handleQuery = (value: string) => { - setQuery(value); - }; - - const handleSelect = (user: User) => { - setSelectedUser(user); - }; - const handleRemoveUser = React.useCallback( async (item) => { try { @@ -171,32 +117,7 @@ function DocumentMembersList({ document, children }: Props) { } return ( - - {can.manageUsers && ( - ({ - id: user.id, - value: user.name, - label: ( - - - {user.name} - - ), - }))} - value={query} - onChangeInput={handleQuery} - onSelectOption={handleSelect} - listLabel={t("Workspace members")} - placeholder={`${t("Find by name")}…`} - autoFocus - /> - )} - {children} + <> {members.map((item) => ( ))} - + ); } -const RelativeFlex = styled(Flex)` - position: relative; - margin-bottom: 12px; -`; - export default observer(DocumentMembersList); diff --git a/app/components/Sharing/MemberListItem.tsx b/app/components/Sharing/MemberListItem.tsx index de5bc662c9..076d9f2d19 100644 --- a/app/components/Sharing/MemberListItem.tsx +++ b/app/components/Sharing/MemberListItem.tsx @@ -1,8 +1,8 @@ import { observer } from "mobx-react"; import * as React from "react"; import { useTranslation } from "react-i18next"; +import styled from "styled-components"; import { DocumentPermission } from "@shared/types"; -import Membership from "~/models/Membership"; import User from "~/models/User"; import UserMembership from "~/models/UserMembership"; import Avatar from "~/components/Avatar"; @@ -13,7 +13,7 @@ import { EmptySelectValue, Permission } from "~/types"; type Props = { user: User; - membership?: Membership | UserMembership | undefined; + membership?: UserMembership | undefined; onAdd?: () => void; onRemove?: () => void; onLeave?: () => void; @@ -64,32 +64,55 @@ const MemberListItem = ({ const disabled = !onUpdate && !onLeave; return ( - } - border={false} - style={{ marginRight: -8 }} - small - actions={ - + image={ + } + subtitle={ + membership?.sourceId + ? t("Has access through parent") + : user.isSuspended + ? t("Suspended") + : user.isInvited + ? t("Invited") + : user.isViewer + ? t("Viewer") + : user.email + ? user.email + : t("Member") + } + border={false} + actions={ + disabled ? null : ( +
+ +
+ ) + } + small /> ); }; +export const StyledListItem = styled(ListItem)` + margin: 0 -16px; + padding: 6px 16px; + border-radius: 8px; +`; + export default observer(MemberListItem); diff --git a/app/components/Sharing/PublicAccess.tsx b/app/components/Sharing/PublicAccess.tsx index b59b3a812a..b4fab55635 100644 --- a/app/components/Sharing/PublicAccess.tsx +++ b/app/components/Sharing/PublicAccess.tsx @@ -83,8 +83,9 @@ function PublicAccess({ document, share, sharedParent, onCopied }: Props) { const handleUrlSlugChange = React.useMemo( () => debounce(async (ev) => { - const share = shares.getByDocumentId(document.id); - invariant(share, "Share must exist"); + if (!share) { + return; + } const val = ev.target.value; setUrlSlug(val); @@ -109,7 +110,7 @@ function PublicAccess({ document, share, sharedParent, onCopied }: Props) { } } }, 500), - [t, document.id, shares] + [t, share] ); const userLocale = useUserLocale(); diff --git a/app/components/Sharing/SharePopover.tsx b/app/components/Sharing/SharePopover.tsx index 554dcdd977..372db04bee 100644 --- a/app/components/Sharing/SharePopover.tsx +++ b/app/components/Sharing/SharePopover.tsx @@ -1,30 +1,45 @@ +import { AnimatePresence, m } from "framer-motion"; import { observer } from "mobx-react"; -import { GroupIcon, QuestionMarkIcon, TeamIcon } from "outline-icons"; +import { + BackIcon, + LinkIcon, + MoreIcon, + QuestionMarkIcon, + UserIcon, +} from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; -import styled from "styled-components"; +import styled, { useTheme } from "styled-components"; import { s } from "@shared/styles"; import { CollectionPermission } from "@shared/types"; import Collection from "~/models/Collection"; import Document from "~/models/Document"; import Share from "~/models/Share"; -import Button from "~/components/Button"; +import User from "~/models/User"; import CopyToClipboard from "~/components/CopyToClipboard"; import Flex from "~/components/Flex"; import Text from "~/components/Text"; +import useBoolean from "~/hooks/useBoolean"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; import useKeyDown from "~/hooks/useKeyDown"; import usePolicy from "~/hooks/usePolicy"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; +import useThrottledCallback from "~/hooks/useThrottledCallback"; import { documentPath, urlify } from "~/utils/routeHelpers"; import Avatar from "../Avatar"; +import { AvatarSize } from "../Avatar/Avatar"; +import Button from "../Button"; +import Empty from "../Empty"; import CollectionIcon from "../Icons/CollectionIcon"; -import Item from "../List/Item"; +import { NativeInput } from "../Input"; +import NudeButton from "../NudeButton"; +import Squircle from "../Squircle"; import Tooltip from "../Tooltip"; import DocumentMembersList from "./DocumentMemberList"; +import { StyledListItem } from "./MemberListItem"; import PublicAccess from "./PublicAccess"; type Props = { @@ -40,6 +55,28 @@ type Props = { visible: boolean; }; +const presence = { + initial: { + opacity: 0, + width: 0, + marginRight: 0, + }, + animate: { + opacity: 1, + width: "auto", + marginRight: 8, + transition: { + type: "spring", + bounce: 0, + }, + }, + exit: { + opacity: 0, + width: 0, + marginRight: 0, + }, +}; + function useUsersInCollection(collection?: Collection) { const { users, memberships } = useStores(); const { request } = useRequest(() => @@ -66,15 +103,32 @@ function SharePopover({ onRequestClose, visible, }: Props) { - const user = useCurrentUser(); const team = useCurrentTeam(); const { t } = useTranslation(); const can = usePolicy(document); + const { userMemberships } = useStores(); + const [query, setQuery] = React.useState(""); + const [picker, showPicker, hidePicker] = useBoolean(); const timeout = React.useRef>(); const buttonRef = React.useRef(null); - const collection = document.collection; + const [invitedInSession, setInvitedInSession] = React.useState([]); - useKeyDown("Escape", onRequestClose); + useKeyDown( + "Escape", + (ev) => { + ev.preventDefault(); + ev.stopImmediatePropagation(); + + if (picker) { + hidePicker(); + } else { + onRequestClose(); + } + }, + { + allowInInput: true, + } + ); React.useEffect(() => { if (visible) { @@ -97,110 +151,273 @@ function SharePopover({ }; }, [onRequestClose, t]); - const usersInCollection = useUsersInCollection(collection); + const handleInvite = React.useCallback( + (user: User) => { + setInvitedInSession((prev) => [...prev, user.id]); + return userMemberships.create({ + documentId: document.id, + userId: user.id, + }); + }, + [userMemberships, document.id] + ); + + const handleQuery = React.useCallback( + (event) => { + showPicker(); + setQuery(event.target.value); + }, + [showPicker, setQuery] + ); return ( <> - - {t("People with access")} + {can.manageUsers && ( + + + {picker && ( + + + + )} + + + {picker ? ( + invitedInSession.length ? ( + + ) : null + ) : ( + + + + + + )} + + )} - - - - - + {picker && ( + + + + )} + + + + + + + {team.sharing && visible && can.share && ( + <> + {t("Public access")} + + + + )} + + + ); +} + +const Picker = observer( + ({ + document, + query, + onInvite, + }: { + document: Document; + query: string; + onInvite: (user: User) => Promise; + }) => { + const { users } = useStores(); + const { t } = useTranslation(); + const user = useCurrentUser(); + + const fetchUsersByQuery = useThrottledCallback( + (query) => users.fetchPage({ query }), + 250 + ); + + const suggestions = React.useMemo( + () => + users.notInDocument(document.id, query).filter((u) => u.id !== user.id), + [users, users.orderedData, document.id, document.members, user.id, query] + ); + + React.useEffect(() => { + if (query) { + void fetchUsersByQuery(query); + } + }, [query, fetchUsersByQuery]); + + return suggestions.length ? ( + <> + {suggestions.map((suggestion) => ( + onInvite(suggestion)} + title={suggestion.name} + subtitle={ + suggestion.isSuspended + ? t("Suspended") + : suggestion.isInvited + ? t("Invited") + : suggestion.isViewer + ? t("Viewer") + : suggestion.email + ? suggestion.email + : t("Member") + } + image={ + + } + border={false} + small + /> + ))} + + ) : ( + {t("No matches")} + ); + } +); + +const DocumentOtherAccessList = observer( + ({ + document, + children, + }: { + document: Document; + children: React.ReactNode; + }) => { + const { t } = useTranslation(); + const theme = useTheme(); + const collection = document.collection; + const usersInCollection = useUsersInCollection(collection); + const user = useCurrentUser(); + + return ( + <> {collection ? ( <> {collection.permission ? ( - } + + + + } title={t("All members")} + subtitle={t("Everyone in the workspace")} actions={ - + {collection?.permission === CollectionPermission.ReadWrite ? t("Can edit") : t("Can view")} - + } border={false} small /> ) : usersInCollection ? ( - } - title={t("Collection members")} - actions={{t("Can view")}} + title={collection.name} + subtitle={t("Everyone in the collection")} + actions={{t("Can view")}} border={false} small /> ) : ( - } title={user.name} - actions={{t("Can edit")}} + subtitle={t("You have full access")} + actions={{t("Can edit")}} border={false} small /> )} + {children} ) : document.isDraft ? ( - } - title={document.createdBy.name} - actions={ - - {t("Can edit")} - - } - border={false} - small - /> + <> + } + title={document.createdBy.name} + actions={ + + {t("Can edit")} + + } + border={false} + small + /> + {children} + ) : ( - } - title={t("More people may have access")} - actions={ - - {t("Can edit")} - - } - border={false} - small - /> + <> + {children} + + + + } + title={t("Other members")} + subtitle={t("Other workspace members may have access")} + actions={ + + } + border={false} + small + /> + )} - + + ); + } +); - {team.sharing && visible && can.share && ( - <> - - {t("Public access")} - - - - )} - - ); -} - -const CollectionAccess = ({ +const AccessTooltip = ({ children, tooltip, }: { - children: React.ReactNode; + children?: React.ReactNode; tooltip?: string; }) => { const { t } = useTranslation(); @@ -217,10 +434,7 @@ const CollectionAccess = ({ ); }; -const MorePeopleIcon = styled(GroupIcon)` - margin: -4px; - color: ${s("textSecondary")}; -`; +const Content = styled.div``; const Heading = styled(Text).attrs({ size: "large", weight: "bold" })` display: flex; @@ -229,11 +443,28 @@ const Heading = styled(Text).attrs({ size: "large", weight: "bold" })` margin-top: 12px; `; -const Separator = styled.div` - height: 1px; - margin: 16px 0; - width: 100%; - background-color: ${s("divider")}; +const Input = styled(Flex)` + position: sticky; + z-index: 1; + top: 0; + background: ${s("menuBackground")}; + color: ${s("textTertiary")}; + border-bottom: 1px solid ${s("inputBorder")}; + padding: 0 24px 8px 24px; + margin-top: 0; + margin-left: -24px; + margin-right: -24px; + margin-bottom: 24px; + + &:before { + content: ""; + position: absolute; + left: 0; + right: 0; + top: -20px; + height: 20px; + background: ${s("menuBackground")}; + } `; export default observer(SharePopover); diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index cc4e61af5c..9e955bc44c 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -243,12 +243,8 @@ router.post( if (published !== undefined) { share.published = published; - - // Reset nested document sharing when unpublishing a share link. So that - // If it's ever re-published this doesn't immediately share nested docs - // without forewarning the user - if (!published) { - share.includeChildDocuments = false; + if (published) { + share.includeChildDocuments = true; } } diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index ddd98e41e2..56c393738f 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -245,8 +245,10 @@ "Could not remove user": "Could not remove user", "Permissions for {{ userName }} updated": "Permissions for {{ userName }} updated", "Could not update user": "Could not update user", - "Workspace members": "Workspace members", - "Find by name": "Find by name", + "Has access through parent": "Has access through parent", + "Suspended": "Suspended", + "Invited": "Invited", + "Member": "Member", "Leave": "Leave", "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", @@ -259,14 +261,19 @@ "Share child documents": "Share child documents", "Custom link": "Custom link", "Copy public link": "Copy public link", - "People with access": "People with access", - "All members": "All members", - "Can view": "Can view", - "Collection members": "Collection members", - "Created the document": "Created the document", - "More people may have access": "More people may have access", - "This document may be shared with more workspace members through a parent document you do not have access to": "This document may be shared with more workspace members through a parent document you do not have access to", + "Invite by name": "Invite by name", + "Done": "Done", "Public access": "Public access", + "No matches": "No matches", + "All members": "All members", + "Everyone in the workspace": "Everyone in the workspace", + "Can view": "Can view", + "Everyone in the collection": "Everyone in the collection", + "You have full access": "You have full access", + "Created the document": "Created the document", + "Other members": "Other members", + "Other workspace members may have access": "Other workspace members may have access", + "This document may be shared with more workspace members through a parent document or collection you do not have access to": "This document may be shared with more workspace members through a parent document or collection you do not have access to", "Access inherited from collection": "Access inherited from collection", "Logo": "Logo", "Move document": "Move document", @@ -506,7 +513,6 @@ "No people left to add": "No people left to add", "Active <1> ago": "Active <1> ago", "Never signed in": "Never signed in", - "Invited": "Invited", "{{ userName }} was removed from the collection": "{{ userName }} was removed from the collection", "{{ userName }} permissions were updated": "{{ userName }} permissions were updated", "The {{ groupName }} group was removed from the collection": "The {{ groupName }} group was removed from the collection", @@ -786,7 +792,6 @@ "Where do I find the file?": "Where do I find the file?", "In Notion, click Settings & Members in the left sidebar and open Settings. Look for the Export section, and click Export all workspace content. Choose HTML as the format for the best data compatability.": "In Notion, click Settings & Members in the left sidebar and open Settings. Look for the Export section, and click Export all workspace content. Choose HTML as the format for the best data compatability.", "Last active": "Last active", - "Suspended": "Suspended", "Shared": "Shared", "by {{ name }}": "by {{ name }}", "Last accessed": "Last accessed",