Merge remote-tracking branch 'origin/develop' into feature/auth-screens-redesign
This commit is contained in:
commit
f6e24cff3e
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"npmClient": "yarn",
|
||||
"packages": [
|
||||
"packages/*"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/backend-core",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase backend core libraries used in server and worker",
|
||||
"main": "dist/src/index.js",
|
||||
"types": "dist/src/index.d.ts",
|
||||
|
@ -23,7 +23,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@budibase/nano": "10.1.1",
|
||||
"@budibase/types": "2.2.12-alpha.40",
|
||||
"@budibase/types": "2.2.12-alpha.42",
|
||||
"@shopify/jest-koa-mocks": "5.0.1",
|
||||
"@techpass/passport-openidconnect": "0.3.2",
|
||||
"aws-cloudfront-sign": "2.2.0",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@budibase/bbui",
|
||||
"description": "A UI solution used in the different Budibase projects.",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"license": "MPL-2.0",
|
||||
"svelte": "src/index.js",
|
||||
"module": "dist/bbui.es.js",
|
||||
|
@ -38,7 +38,7 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"@adobe/spectrum-css-workflow-icons": "1.2.1",
|
||||
"@budibase/string-templates": "2.2.12-alpha.40",
|
||||
"@budibase/string-templates": "2.2.12-alpha.42",
|
||||
"@spectrum-css/accordion": "3.0.24",
|
||||
"@spectrum-css/actionbutton": "1.0.1",
|
||||
"@spectrum-css/actiongroup": "1.0.1",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const ignoredClasses = [".flatpickr-calendar"]
|
||||
const ignoredClasses = [".flatpickr-calendar", ".spectrum-Popover"]
|
||||
let clickHandlers = []
|
||||
|
||||
/**
|
||||
|
@ -19,7 +19,7 @@ const handleClick = event => {
|
|||
}
|
||||
|
||||
// Ignore clicks for modals, unless the handler is registered from a modal
|
||||
const sourceInModal = handler.element.closest(".spectrum-Modal") != null
|
||||
const sourceInModal = handler.anchor.closest(".spectrum-Modal") != null
|
||||
const clickInModal = event.target.closest(".spectrum-Modal") != null
|
||||
if (clickInModal && !sourceInModal) {
|
||||
return
|
||||
|
@ -33,10 +33,10 @@ document.documentElement.addEventListener("click", handleClick, true)
|
|||
/**
|
||||
* Adds or updates a click handler
|
||||
*/
|
||||
const updateHandler = (id, element, callback) => {
|
||||
const updateHandler = (id, element, anchor, callback) => {
|
||||
let existingHandler = clickHandlers.find(x => x.id === id)
|
||||
if (!existingHandler) {
|
||||
clickHandlers.push({ id, element, callback })
|
||||
clickHandlers.push({ id, element, anchor, callback })
|
||||
} else {
|
||||
existingHandler.callback = callback
|
||||
}
|
||||
|
@ -51,12 +51,22 @@ const removeHandler = id => {
|
|||
|
||||
/**
|
||||
* Svelte action to apply a click outside handler for a certain element
|
||||
* opts.anchor is an optional param specifying the real root source of the
|
||||
* component being observed. This is required for things like popovers, where
|
||||
* the element using the clickoutside action is the popover, but the popover is
|
||||
* rendered at the root of the DOM somewhere, whereas the popover anchor is the
|
||||
* element we actually want to consider when determining the source component.
|
||||
*/
|
||||
export default (element, callback) => {
|
||||
export default (element, opts) => {
|
||||
const id = Math.random()
|
||||
updateHandler(id, element, callback)
|
||||
const update = newOpts => {
|
||||
const callback = newOpts?.callback || newOpts
|
||||
const anchor = newOpts?.anchor || element
|
||||
updateHandler(id, element, anchor, callback)
|
||||
}
|
||||
update(opts)
|
||||
return {
|
||||
update: newCallback => updateHandler(id, element, newCallback),
|
||||
update,
|
||||
destroy: () => removeHandler(id),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,7 +68,10 @@
|
|||
<div
|
||||
tabindex="0"
|
||||
use:positionDropdown={{ anchor, align, maxWidth, useAnchorWidth }}
|
||||
use:clickOutside={handleOutsideClick}
|
||||
use:clickOutside={{
|
||||
callback: handleOutsideClick,
|
||||
anchor,
|
||||
}}
|
||||
on:keydown={handleEscape}
|
||||
class={"spectrum-Popover is-open " + (tooltipClasses || "")}
|
||||
role="presentation"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/builder",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"license": "GPL-3.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -71,10 +71,10 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@budibase/bbui": "2.2.12-alpha.40",
|
||||
"@budibase/client": "2.2.12-alpha.40",
|
||||
"@budibase/frontend-core": "2.2.12-alpha.40",
|
||||
"@budibase/string-templates": "2.2.12-alpha.40",
|
||||
"@budibase/bbui": "2.2.12-alpha.42",
|
||||
"@budibase/client": "2.2.12-alpha.42",
|
||||
"@budibase/frontend-core": "2.2.12-alpha.42",
|
||||
"@budibase/string-templates": "2.2.12-alpha.42",
|
||||
"@sentry/browser": "5.19.1",
|
||||
"@spectrum-css/accordion": "^3.0.24",
|
||||
"@spectrum-css/page": "^3.0.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/cli",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase CLI, for developers, self hosting and migrations.",
|
||||
"main": "src/index.js",
|
||||
"bin": {
|
||||
|
@ -26,9 +26,9 @@
|
|||
"outputPath": "build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@budibase/backend-core": "2.2.12-alpha.40",
|
||||
"@budibase/string-templates": "2.2.12-alpha.40",
|
||||
"@budibase/types": "2.2.12-alpha.40",
|
||||
"@budibase/backend-core": "2.2.12-alpha.42",
|
||||
"@budibase/string-templates": "2.2.12-alpha.42",
|
||||
"@budibase/types": "2.2.12-alpha.42",
|
||||
"axios": "0.21.2",
|
||||
"chalk": "4.1.0",
|
||||
"cli-progress": "3.11.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/client",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"license": "MPL-2.0",
|
||||
"module": "dist/budibase-client.js",
|
||||
"main": "dist/budibase-client.js",
|
||||
|
@ -19,9 +19,9 @@
|
|||
"dev:builder": "rollup -cw"
|
||||
},
|
||||
"dependencies": {
|
||||
"@budibase/bbui": "2.2.12-alpha.40",
|
||||
"@budibase/frontend-core": "2.2.12-alpha.40",
|
||||
"@budibase/string-templates": "2.2.12-alpha.40",
|
||||
"@budibase/bbui": "2.2.12-alpha.42",
|
||||
"@budibase/frontend-core": "2.2.12-alpha.42",
|
||||
"@budibase/string-templates": "2.2.12-alpha.42",
|
||||
"@spectrum-css/button": "^3.0.3",
|
||||
"@spectrum-css/card": "^3.0.3",
|
||||
"@spectrum-css/divider": "^1.0.3",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@budibase/frontend-core",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase frontend core libraries used in builder and client",
|
||||
"author": "Budibase",
|
||||
"license": "MPL-2.0",
|
||||
"svelte": "src/index.js",
|
||||
"dependencies": {
|
||||
"@budibase/bbui": "2.2.12-alpha.40",
|
||||
"@budibase/bbui": "2.2.12-alpha.42",
|
||||
"lodash": "^4.17.21",
|
||||
"svelte": "^3.46.2"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/sdk",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase Public API SDK",
|
||||
"author": "Budibase",
|
||||
"license": "MPL-2.0",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@budibase/server",
|
||||
"email": "hi@budibase.com",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase Web Server",
|
||||
"main": "src/index.ts",
|
||||
"repository": {
|
||||
|
@ -43,11 +43,11 @@
|
|||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@apidevtools/swagger-parser": "10.0.3",
|
||||
"@budibase/backend-core": "2.2.12-alpha.40",
|
||||
"@budibase/client": "2.2.12-alpha.40",
|
||||
"@budibase/pro": "2.2.12-alpha.40",
|
||||
"@budibase/string-templates": "2.2.12-alpha.40",
|
||||
"@budibase/types": "2.2.12-alpha.40",
|
||||
"@budibase/backend-core": "2.2.12-alpha.42",
|
||||
"@budibase/client": "2.2.12-alpha.42",
|
||||
"@budibase/pro": "2.2.12-alpha.42",
|
||||
"@budibase/string-templates": "2.2.12-alpha.42",
|
||||
"@budibase/types": "2.2.12-alpha.42",
|
||||
"@bull-board/api": "3.7.0",
|
||||
"@bull-board/koa": "3.9.4",
|
||||
"@elastic/elasticsearch": "7.10.0",
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
}
|
||||
},
|
||||
"ts-node": {
|
||||
"require": ["tsconfig-paths/register"]
|
||||
"require": ["tsconfig-paths/register"],
|
||||
"swc": true
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../types" },
|
||||
|
|
|
@ -1273,13 +1273,13 @@
|
|||
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
||||
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
||||
|
||||
"@budibase/backend-core@2.2.12-alpha.40":
|
||||
version "2.2.12-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/backend-core/-/backend-core-2.2.12-alpha.40.tgz#49bae56f5d8c1511100d64c447171c96e1929b26"
|
||||
integrity sha512-wvArhOlcSGq3K9hE6zFcFB5zztzZjmAA+I3+2DYud9/8KxBOyQmPlUyRRrHXsrtURDiEtLDyIc/AG9pvDEFwGw==
|
||||
"@budibase/backend-core@2.2.12-alpha.42":
|
||||
version "2.2.12-alpha.42"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/backend-core/-/backend-core-2.2.12-alpha.42.tgz#75f441fe31636dc2bfc06143d1bd6724c8a7ebbf"
|
||||
integrity sha512-oUKBq5BlCLhzC+6yX8L7t0/FucbMzJK+PtURiGfeeAnXK9eBbANxT7YsgUJHzUwax2PBjKCGoUlTjePj5i+p/w==
|
||||
dependencies:
|
||||
"@budibase/nano" "10.1.1"
|
||||
"@budibase/types" "2.2.12-alpha.40"
|
||||
"@budibase/types" "2.2.12-alpha.42"
|
||||
"@shopify/jest-koa-mocks" "5.0.1"
|
||||
"@techpass/passport-openidconnect" "0.3.2"
|
||||
aws-cloudfront-sign "2.2.0"
|
||||
|
@ -1374,13 +1374,13 @@
|
|||
qs "^6.11.0"
|
||||
tough-cookie "^4.1.2"
|
||||
|
||||
"@budibase/pro@2.2.12-alpha.40":
|
||||
version "2.2.12-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-2.2.12-alpha.40.tgz#e41af1af7db36aac4e27412b58cf6a25ab921606"
|
||||
integrity sha512-Z7kW/KLu0Bst8+JVHdYJYpr65SVavFH55mmqDcCD/j44pNxZKchNBCYe5KTukNwtJS7wnLPAinQI52dDhYcpfg==
|
||||
"@budibase/pro@2.2.12-alpha.42":
|
||||
version "2.2.12-alpha.42"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-2.2.12-alpha.42.tgz#3f35bd9a5fe3b169a85ade96f116555133b83133"
|
||||
integrity sha512-9nrMVa38WOVNBfUSVLwz8MveAQYcey3g2uKjb+3p66OVFdB+NLXlsaBxTmzyDI8AyF3iOcKgJe0A0v3MjNv4+g==
|
||||
dependencies:
|
||||
"@budibase/backend-core" "2.2.12-alpha.40"
|
||||
"@budibase/types" "2.2.12-alpha.40"
|
||||
"@budibase/backend-core" "2.2.12-alpha.42"
|
||||
"@budibase/types" "2.2.12-alpha.42"
|
||||
"@koa/router" "8.0.8"
|
||||
bull "4.10.1"
|
||||
joi "17.6.0"
|
||||
|
@ -1405,10 +1405,10 @@
|
|||
svelte-apexcharts "^1.0.2"
|
||||
svelte-flatpickr "^3.1.0"
|
||||
|
||||
"@budibase/types@2.2.12-alpha.40":
|
||||
version "2.2.12-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-2.2.12-alpha.40.tgz#114c2de00f502736d90b18238ed31eb0b2ef6a19"
|
||||
integrity sha512-YLCycoImazSypq89w+1l3LHEMZ9qEh5NPBJ5DQ07Un/1Sq5H4QxVLK8r7Z1VtxIqtAh95H3nMPnAB/vLpJEL8Q==
|
||||
"@budibase/types@2.2.12-alpha.42":
|
||||
version "2.2.12-alpha.42"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-2.2.12-alpha.42.tgz#1f130c8e4af14504ab47d5186b697c90ff6567db"
|
||||
integrity sha512-0/uSvuvQ3mO0GxishZFhFAZd4VvZPqJ7smiDcB1dZpLU9pDeb2m+ccSK+yTEsgLTXlctPFg2d6i8bRE6PmODYQ==
|
||||
|
||||
"@bull-board/api@3.7.0":
|
||||
version "3.7.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/string-templates",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Handlebars wrapper for Budibase templating.",
|
||||
"main": "src/index.cjs",
|
||||
"module": "dist/bundle.mjs",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@budibase/types",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase types",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@budibase/worker",
|
||||
"email": "hi@budibase.com",
|
||||
"version": "2.2.12-alpha.40",
|
||||
"version": "2.2.12-alpha.42",
|
||||
"description": "Budibase background service",
|
||||
"main": "src/index.ts",
|
||||
"repository": {
|
||||
|
@ -36,10 +36,10 @@
|
|||
"author": "Budibase",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@budibase/backend-core": "2.2.12-alpha.40",
|
||||
"@budibase/pro": "2.2.12-alpha.40",
|
||||
"@budibase/string-templates": "2.2.12-alpha.40",
|
||||
"@budibase/types": "2.2.12-alpha.40",
|
||||
"@budibase/backend-core": "2.2.12-alpha.42",
|
||||
"@budibase/pro": "2.2.12-alpha.42",
|
||||
"@budibase/string-templates": "2.2.12-alpha.42",
|
||||
"@budibase/types": "2.2.12-alpha.42",
|
||||
"@koa/router": "8.0.8",
|
||||
"@sentry/node": "6.17.7",
|
||||
"@techpass/passport-openidconnect": "0.3.2",
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
}
|
||||
},
|
||||
"ts-node": {
|
||||
"require": ["tsconfig-paths/register"]
|
||||
"require": ["tsconfig-paths/register"],
|
||||
"swc": true
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../types" },
|
||||
|
|
|
@ -470,13 +470,13 @@
|
|||
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
||||
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
||||
|
||||
"@budibase/backend-core@2.2.12-alpha.40":
|
||||
version "2.2.12-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/backend-core/-/backend-core-2.2.12-alpha.40.tgz#49bae56f5d8c1511100d64c447171c96e1929b26"
|
||||
integrity sha512-wvArhOlcSGq3K9hE6zFcFB5zztzZjmAA+I3+2DYud9/8KxBOyQmPlUyRRrHXsrtURDiEtLDyIc/AG9pvDEFwGw==
|
||||
"@budibase/backend-core@2.2.12-alpha.42":
|
||||
version "2.2.12-alpha.42"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/backend-core/-/backend-core-2.2.12-alpha.42.tgz#75f441fe31636dc2bfc06143d1bd6724c8a7ebbf"
|
||||
integrity sha512-oUKBq5BlCLhzC+6yX8L7t0/FucbMzJK+PtURiGfeeAnXK9eBbANxT7YsgUJHzUwax2PBjKCGoUlTjePj5i+p/w==
|
||||
dependencies:
|
||||
"@budibase/nano" "10.1.1"
|
||||
"@budibase/types" "2.2.12-alpha.40"
|
||||
"@budibase/types" "2.2.12-alpha.42"
|
||||
"@shopify/jest-koa-mocks" "5.0.1"
|
||||
"@techpass/passport-openidconnect" "0.3.2"
|
||||
aws-cloudfront-sign "2.2.0"
|
||||
|
@ -521,23 +521,23 @@
|
|||
qs "^6.11.0"
|
||||
tough-cookie "^4.1.2"
|
||||
|
||||
"@budibase/pro@2.2.12-alpha.40":
|
||||
version "2.2.12-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-2.2.12-alpha.40.tgz#e41af1af7db36aac4e27412b58cf6a25ab921606"
|
||||
integrity sha512-Z7kW/KLu0Bst8+JVHdYJYpr65SVavFH55mmqDcCD/j44pNxZKchNBCYe5KTukNwtJS7wnLPAinQI52dDhYcpfg==
|
||||
"@budibase/pro@2.2.12-alpha.42":
|
||||
version "2.2.12-alpha.42"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-2.2.12-alpha.42.tgz#3f35bd9a5fe3b169a85ade96f116555133b83133"
|
||||
integrity sha512-9nrMVa38WOVNBfUSVLwz8MveAQYcey3g2uKjb+3p66OVFdB+NLXlsaBxTmzyDI8AyF3iOcKgJe0A0v3MjNv4+g==
|
||||
dependencies:
|
||||
"@budibase/backend-core" "2.2.12-alpha.40"
|
||||
"@budibase/types" "2.2.12-alpha.40"
|
||||
"@budibase/backend-core" "2.2.12-alpha.42"
|
||||
"@budibase/types" "2.2.12-alpha.42"
|
||||
"@koa/router" "8.0.8"
|
||||
bull "4.10.1"
|
||||
joi "17.6.0"
|
||||
jsonwebtoken "8.5.1"
|
||||
node-fetch "^2.6.1"
|
||||
|
||||
"@budibase/types@2.2.12-alpha.40":
|
||||
version "2.2.12-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-2.2.12-alpha.40.tgz#114c2de00f502736d90b18238ed31eb0b2ef6a19"
|
||||
integrity sha512-YLCycoImazSypq89w+1l3LHEMZ9qEh5NPBJ5DQ07Un/1Sq5H4QxVLK8r7Z1VtxIqtAh95H3nMPnAB/vLpJEL8Q==
|
||||
"@budibase/types@2.2.12-alpha.42":
|
||||
version "2.2.12-alpha.42"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-2.2.12-alpha.42.tgz#1f130c8e4af14504ab47d5186b697c90ff6567db"
|
||||
integrity sha512-0/uSvuvQ3mO0GxishZFhFAZd4VvZPqJ7smiDcB1dZpLU9pDeb2m+ccSK+yTEsgLTXlctPFg2d6i8bRE6PmODYQ==
|
||||
|
||||
"@cspotcode/source-map-support@^0.8.0":
|
||||
version "0.8.1"
|
||||
|
|
Loading…
Reference in New Issue