diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index cd021f95c3..0b58733c71 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -205,7 +205,7 @@ dependencies: '@rush-temp/chunter-assets': file:projects/chunter-assets.tgz '@rush-temp/chunter-resources': file:projects/chunter-resources.tgz_096c09b0b673a57c275d9767a12070b1 '@rush-temp/client': file:projects/client.tgz - '@rush-temp/client-resources': file:projects/client-resources.tgz + '@rush-temp/client-resources': file:projects/client-resources.tgz_ac194b5590200ebf8338e0f86ec190f4 '@rush-temp/contact': file:projects/contact.tgz '@rush-temp/contact-assets': file:projects/contact-assets.tgz '@rush-temp/contact-resources': file:projects/contact-resources.tgz_096c09b0b673a57c275d9767a12070b1 @@ -9398,6 +9398,63 @@ packages: - sugarss dev: false + /svelte-check/2.3.0_4374c622c67ed7479ff0e44c29d09bce: + resolution: {integrity: sha512-SBKdJyUmxzPmJf/ZPqDSQOoa9JzOcgEpV7u3UaYcgVn7fA0veZ3FA5JgLU8KYtf84Gp6guBVcrC7XKLjJa5SXQ==} + hasBin: true + peerDependencies: + svelte: ^3.24.0 + dependencies: + chokidar: 3.5.2 + fast-glob: 3.2.7 + import-fresh: 3.3.0 + minimist: 1.2.5 + picocolors: 1.0.0 + sade: 1.7.4 + source-map: 0.7.3 + svelte: 3.44.3 + svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f + typescript: 4.5.4 + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - node-sass + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss + dev: false + + /svelte-check/2.3.0_ac194b5590200ebf8338e0f86ec190f4: + resolution: {integrity: sha512-SBKdJyUmxzPmJf/ZPqDSQOoa9JzOcgEpV7u3UaYcgVn7fA0veZ3FA5JgLU8KYtf84Gp6guBVcrC7XKLjJa5SXQ==} + hasBin: true + peerDependencies: + svelte: ^3.24.0 + dependencies: + chokidar: 3.5.2 + fast-glob: 3.2.7 + import-fresh: 3.3.0 + minimist: 1.2.5 + picocolors: 1.0.0 + sade: 1.7.4 + source-map: 0.7.3 + svelte-preprocess: 4.10.1_3ae2e5fc7d8fb60bbcea513ad0b15c0f + typescript: 4.5.4 + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - node-sass + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss + dev: false + /svelte-dev-helper/1.1.9: resolution: {integrity: sha1-fRh9tcbNu9ZNdaMvkbiZi94yc8M=} dev: false @@ -10807,7 +10864,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -10868,7 +10925,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -10905,8 +10962,9 @@ packages: - supports-color dev: false - file:projects/client-resources.tgz: - resolution: {integrity: sha512-e47yiBH1dhkmjli6rn91Rq2XbDYF7+nHL71ll9NIn0LwZys7VxpLFO7eilXcF3NUObCLLtgPoh67aYcpeA64ug==, tarball: file:projects/client-resources.tgz} + file:projects/client-resources.tgz_ac194b5590200ebf8338e0f86ec190f4: + resolution: {integrity: sha512-0Aexa54EuAfPkz9aIldqI9KQyiORenx6EXyqob6quCA+elkNUJL8GSjn/t3c9ORtOjf7Qm0AJgoGw5XxJeNBrg==, tarball: file:projects/client-resources.tgz} + id: file:projects/client-resources.tgz name: '@rush-temp/client-resources' version: 0.0.0 dependencies: @@ -10920,9 +10978,21 @@ packages: eslint-plugin-node: 11.1.0_eslint@7.32.0 eslint-plugin-promise: 5.2.0_eslint@7.32.0 prettier: 2.5.1 + svelte-check: 2.3.0_ac194b5590200ebf8338e0f86ec190f4 typescript: 4.5.4 transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - node-sass + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss - supports-color + - svelte dev: false file:projects/client.tgz: @@ -10969,7 +11039,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -11159,7 +11229,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f transitivePeerDependencies: @@ -11332,7 +11402,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -11389,7 +11459,7 @@ packages: sass: 1.45.0 smartcrop: 2.0.5 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -11465,7 +11535,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -11526,7 +11596,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -11587,7 +11657,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12170,7 +12240,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12286,7 +12356,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12397,7 +12467,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12622,7 +12692,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12683,7 +12753,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f transitivePeerDependencies: @@ -12760,7 +12830,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12903,7 +12973,7 @@ packages: prosemirror-state: 1.3.4 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -12938,7 +13008,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -13014,7 +13084,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -13056,7 +13126,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 @@ -13117,7 +13187,7 @@ packages: prettier-plugin-svelte: 2.5.1_prettier@2.5.1+svelte@3.44.3 sass: 1.45.0 svelte: 3.44.3 - svelte-check: 2.2.11_4374c622c67ed7479ff0e44c29d09bce + svelte-check: 2.3.0_4374c622c67ed7479ff0e44c29d09bce svelte-loader: 3.1.2_svelte@3.44.3 svelte-preprocess: 4.10.1_14d64cad431e31f100de7363af24a44f typescript: 4.5.4 diff --git a/packages/text-editor/lang/en.json b/packages/text-editor/lang/en.json index 24658a9c66..3316422456 100644 --- a/packages/text-editor/lang/en.json +++ b/packages/text-editor/lang/en.json @@ -1,5 +1,6 @@ { "string": { - "Suggested": "SUGGESTED" + "Suggested": "SUGGESTED", + "NoItems": "No items" } } diff --git a/packages/text-editor/src/components/MentionList.svelte b/packages/text-editor/src/components/MentionList.svelte index 43069bf0f3..fa2b59265f 100644 --- a/packages/text-editor/src/components/MentionList.svelte +++ b/packages/text-editor/src/components/MentionList.svelte @@ -82,8 +82,8 @@ function updateStyle (popup: HTMLDivElement): void { const x = clientRect().left const height = popup.getBoundingClientRect().height - const y = clientRect().top - height - 16 - style = `left: ${x}px; top: ${y}px;` + const y = clientRect().bottom + style = `left: ${x}px; bottom: calc(100vh - ${y}px + 1.75rem); max-height: calc(${y}px - 2.5rem);` } let style = 'visibility: hidden' @@ -101,27 +101,35 @@ $: updateItems(category, query) -
-
-
- {#each categories as c} -
- { - category = c - onCategory(c) - updateItems(c, query) - } }/> -
- {/each} -
-
- updateItems(category, query) } placeholder={category.label} /> -
-