diff --git a/.changeset/hungry-donkeys-run.md b/.changeset/hungry-donkeys-run.md new file mode 100644 index 0000000000..8c764299cc --- /dev/null +++ b/.changeset/hungry-donkeys-run.md @@ -0,0 +1,6 @@ +--- +'@evidence-dev/sdk': patch +'@evidence-dev/universal-sql': patch +--- + +Fix type errors diff --git a/.changeset/new-tigers-confess.md b/.changeset/new-tigers-confess.md deleted file mode 100644 index c7fcfa571e..0000000000 --- a/.changeset/new-tigers-confess.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@evidence-dev/sdk': patch -'@evidence-dev/core-components': patch ---- - -Override nanoid to 3.3.8 diff --git a/.changeset/rare-rivers-complain.md b/.changeset/rare-rivers-complain.md deleted file mode 100644 index 40f6dfb3fd..0000000000 --- a/.changeset/rare-rivers-complain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@evidence-dev/core-components': patch ---- - -Fix axis line appearance in sparklines diff --git a/.changeset/seven-books-press.md b/.changeset/seven-books-press.md new file mode 100644 index 0000000000..8f52e9a4fe --- /dev/null +++ b/.changeset/seven-books-press.md @@ -0,0 +1,6 @@ +--- +'@evidence-dev/evidence': minor +'@evidence-dev/core-components': minor +--- + +Improved settings page UI diff --git a/.changeset/slow-ties-do.md b/.changeset/slow-ties-do.md deleted file mode 100644 index 2e1af903a4..0000000000 --- a/.changeset/slow-ties-do.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@evidence-dev/evidence': patch -'@evidence-dev/sdk': patch -'@evidence-dev/core-components': patch ---- - -Update vite to 5.4.14 diff --git a/.eslintrc.cjs b/.eslintrc.cjs index b81404c360..126feed526 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,5 +10,15 @@ module.exports = { browser: true, es2017: true, node: true + }, + rules: { + 'no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_' + } + ] } }; diff --git a/.gitignore b/.gitignore index 0b41bf736e..ce0aee452f 100644 --- a/.gitignore +++ b/.gitignore @@ -39,5 +39,6 @@ packages/ui/core-components/coverage sites/docs/.evidence/meta/query-cache/hashes.json priority_support_users.csv +.aider* evidence-*.tgz diff --git a/e2e/base-path/CHANGELOG.md b/e2e/base-path/CHANGELOG.md index fdedafefe8..90c5616c99 100644 --- a/e2e/base-path/CHANGELOG.md +++ b/e2e/base-path/CHANGELOG.md @@ -1,5 +1,23 @@ # e2e-base-path +## 0.0.18 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 0.0.17 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + ## 0.0.16 ### Patch Changes diff --git a/e2e/base-path/package.json b/e2e/base-path/package.json index 1ac8456922..9474ba270a 100644 --- a/e2e/base-path/package.json +++ b/e2e/base-path/package.json @@ -1,6 +1,6 @@ { "name": "e2e-base-path", - "version": "0.0.16", + "version": "0.0.18", "scripts": { "build": "cross-env EVIDENCE_BUILD_DIR=./build/my-base-path evidence build", "build:strict": "cross-env EVIDENCE_BUILD_DIR=./build/my-base-path evidence build:strict", diff --git a/e2e/dev-server-startup/CHANGELOG.md b/e2e/dev-server-startup/CHANGELOG.md index e4f14e1f2e..0de67522b7 100644 --- a/e2e/dev-server-startup/CHANGELOG.md +++ b/e2e/dev-server-startup/CHANGELOG.md @@ -1,5 +1,23 @@ # e2e-dev-server-startup +## 0.0.6 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 0.0.5 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + ## 0.0.4 ### Patch Changes diff --git a/e2e/dev-server-startup/package.json b/e2e/dev-server-startup/package.json index 28bcc6c815..ccf6ffbb86 100644 --- a/e2e/dev-server-startup/package.json +++ b/e2e/dev-server-startup/package.json @@ -1,6 +1,6 @@ { "name": "e2e-dev-server-startup", - "version": "0.0.4", + "version": "0.0.6", "scripts": { "build": "evidence build", "build:strict": "evidence build:strict", diff --git a/e2e/prerender/CHANGELOG.md b/e2e/prerender/CHANGELOG.md index 05ee7cf7ee..94549c5bde 100644 --- a/e2e/prerender/CHANGELOG.md +++ b/e2e/prerender/CHANGELOG.md @@ -1,5 +1,23 @@ # e2e-prerender +## 0.0.22 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 0.0.21 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + ## 0.0.20 ### Patch Changes diff --git a/e2e/prerender/package.json b/e2e/prerender/package.json index 0ab3078396..e55ebeb74c 100644 --- a/e2e/prerender/package.json +++ b/e2e/prerender/package.json @@ -1,6 +1,6 @@ { "name": "e2e-prerender", - "version": "0.0.20", + "version": "0.0.22", "scripts": { "build": "evidence build", "build:strict": "evidence build:strict", diff --git a/e2e/spa/CHANGELOG.md b/e2e/spa/CHANGELOG.md index 9a939e548c..f5391ac671 100644 --- a/e2e/spa/CHANGELOG.md +++ b/e2e/spa/CHANGELOG.md @@ -1,5 +1,23 @@ # e2e-spa +## 0.0.33 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 0.0.32 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + ## 0.0.31 ### Patch Changes diff --git a/e2e/spa/package.json b/e2e/spa/package.json index 0db2f55645..b2a0fdacd9 100644 --- a/e2e/spa/package.json +++ b/e2e/spa/package.json @@ -1,6 +1,6 @@ { "name": "e2e-spa", - "version": "0.0.31", + "version": "0.0.33", "scripts": { "build": "cross-env VITE_EVIDENCE_SPA=true evidence build", "build:strict": "cross-env VITE_EVIDENCE_SPA=true evidence build:strict", diff --git a/e2e/themes/CHANGELOG.md b/e2e/themes/CHANGELOG.md index cd298a1deb..dd3717734b 100644 --- a/e2e/themes/CHANGELOG.md +++ b/e2e/themes/CHANGELOG.md @@ -1,5 +1,23 @@ # e2e-themes +## 0.0.29 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 0.0.28 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + ## 0.0.27 ### Patch Changes diff --git a/e2e/themes/package.json b/e2e/themes/package.json index f84d4eb75a..78744492aa 100644 --- a/e2e/themes/package.json +++ b/e2e/themes/package.json @@ -1,6 +1,6 @@ { "name": "e2e-themes", - "version": "0.0.27", + "version": "0.0.29", "scripts": { "build": "cross-env evidence build", "build:strict": "cross-env evidence build:strict", diff --git a/packages/evidence/CHANGELOG.md b/packages/evidence/CHANGELOG.md index 8ab4e1683a..6b7a8fa346 100644 --- a/packages/evidence/CHANGELOG.md +++ b/packages/evidence/CHANGELOG.md @@ -1,5 +1,21 @@ # @evidence-dev/evidence +## 40.0.9 + +### Patch Changes + +- b0c5f5c20: Mute a warning that is caused by ESM/CJS interactions. There is an upcoming fix for this issue + +## 40.0.8 + +### Patch Changes + +- bcb0bf5dd: Update vite to 5.4.14 +- Updated dependencies [17eb07aff] +- Updated dependencies [bcb0bf5dd] + - @evidence-dev/sdk@3.0.8 + - @evidence-dev/universal-sql@2.2.9 + ## 40.0.7 ### Patch Changes diff --git a/packages/evidence/package.json b/packages/evidence/package.json index 624b4b252b..43a564b387 100644 --- a/packages/evidence/package.json +++ b/packages/evidence/package.json @@ -1,6 +1,6 @@ { "name": "@evidence-dev/evidence", - "version": "40.0.7", + "version": "40.0.9", "description": "dependencies for evidence projects", "type": "module", "keywords": [ diff --git a/packages/evidence/scripts/build-template.js b/packages/evidence/scripts/build-template.js index ed530f4cd3..cc3b6caddd 100644 --- a/packages/evidence/scripts/build-template.js +++ b/packages/evidence/scripts/build-template.js @@ -54,6 +54,18 @@ fsExtra.outputFileSync( import { evidenceThemes } from '@evidence-dev/tailwind/vite-plugin'; import tailwindcss from '@tailwindcss/vite'; + + process.removeAllListeners('warning'); + process.on('warning', (warning) => { + if (warning.name === 'ExperimentalWarning' && + warning.message.includes('CommonJS module') && + warning.message.includes('ES Module')) { + return; + } + console.warn(warning); + }); + + const logger = createLogger(); const strictFs = (process.env.NODE_ENV === 'development') ? false : true; diff --git a/packages/lib/component-utilities/CHANGELOG.md b/packages/lib/component-utilities/CHANGELOG.md index 535bb9dedd..66ff087032 100644 --- a/packages/lib/component-utilities/CHANGELOG.md +++ b/packages/lib/component-utilities/CHANGELOG.md @@ -1,5 +1,13 @@ # @evidence-dev/component-utilities +## 4.0.8 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [bcb0bf5dd] + - @evidence-dev/sdk@3.0.8 + ## 4.0.7 ### Patch Changes diff --git a/packages/lib/component-utilities/package.json b/packages/lib/component-utilities/package.json index 08b35e4b14..9304bc75f4 100644 --- a/packages/lib/component-utilities/package.json +++ b/packages/lib/component-utilities/package.json @@ -1,6 +1,6 @@ { "name": "@evidence-dev/component-utilities", - "version": "4.0.7", + "version": "4.0.8", "description": "", "main": "index.js", "exports": { diff --git a/packages/lib/sdk/CHANGELOG.md b/packages/lib/sdk/CHANGELOG.md index 596c07338f..d0d15c0b08 100644 --- a/packages/lib/sdk/CHANGELOG.md +++ b/packages/lib/sdk/CHANGELOG.md @@ -1,5 +1,13 @@ # @evidence-dev/sdk +## 3.0.8 + +### Patch Changes + +- 17eb07aff: Override nanoid to 3.3.8 +- bcb0bf5dd: Update vite to 5.4.14 + - @evidence-dev/universal-sql@2.2.9 + ## 3.0.7 ### Patch Changes diff --git a/packages/lib/sdk/package.json b/packages/lib/sdk/package.json index 9a3abfe9aa..1bdd07b0c8 100644 --- a/packages/lib/sdk/package.json +++ b/packages/lib/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@evidence-dev/sdk", - "version": "3.0.7", + "version": "3.0.8", "description": "", "bin": { "evidence-sdk": "./src/cli.js" diff --git a/packages/lib/sdk/src/build-dev/vite/config-virtual.d.ts b/packages/lib/sdk/src/build-dev/vite/evidence-config.d.ts similarity index 100% rename from packages/lib/sdk/src/build-dev/vite/config-virtual.d.ts rename to packages/lib/sdk/src/build-dev/vite/evidence-config.d.ts diff --git a/packages/lib/sdk/src/build-dev/vite/virtuals/queries.svelte.js b/packages/lib/sdk/src/build-dev/vite/virtuals/queries.svelte.js index 44ff9ca96d..8fc1abec14 100644 --- a/packages/lib/sdk/src/build-dev/vite/virtuals/queries.svelte.js +++ b/packages/lib/sdk/src/build-dev/vite/virtuals/queries.svelte.js @@ -1,3 +1,5 @@ +// @ts-nocheck Adding nocheck because type errors in this file were failing the build and @ItsMeBrianD told said this code is dead + import { getContext } from 'svelte'; import { ALL_QUERIES_CONTEXT_KEY, QUERIES_CONTEXT_KEY } from '$evidence/contextKeys'; import { Query } from '@evidence-dev/sdk/usql'; diff --git a/packages/lib/sdk/src/plugins/datasources/cli/edit/Options.js b/packages/lib/sdk/src/plugins/datasources/cli/edit/Options.js index 4f5c72a86d..176fb276bd 100644 --- a/packages/lib/sdk/src/plugins/datasources/cli/edit/Options.js +++ b/packages/lib/sdk/src/plugins/datasources/cli/edit/Options.js @@ -10,7 +10,7 @@ export const OptionGetSpec = Symbol(); export const IsOptions = Symbol(); /** - * @param {import('../../schemas/datasourcePluginOptions.schema.js').IDatasourceOptionSpecSchema} fieldSpec + * @param {import('../../schemas/datasourcePluginOptions.schema.js').IDatasourceOptionSpec} fieldSpec * @param {string} prop * @param {*} sourceOptions * @param {OptionsOpts} [opts] @@ -228,7 +228,7 @@ export const getSecretOptions = (options) => filterByMode(options, OptionSecretM /** * @param {*} options * @param {string[]} optionPath - * @returns {import('../../schemas/datasourcePluginOptions.schema.js').IDatasourceOptionSpecSchema} + * @returns {import('../../schemas/datasourcePluginOptions.schema.js').IDatasourceOptionSpec} */ export const getSpecAtPath = (options, optionPath) => { let x = options[OptionSpecMode]; diff --git a/packages/lib/sdk/src/types.d.ts b/packages/lib/sdk/src/types.d.ts index 05e163d35c..2d9e69b2be 100644 --- a/packages/lib/sdk/src/types.d.ts +++ b/packages/lib/sdk/src/types.d.ts @@ -1 +1 @@ -/// +/// diff --git a/packages/lib/sdk/src/utils/svelte/addBasePath.js b/packages/lib/sdk/src/utils/svelte/addBasePath.js index a2f58d4257..3b39d0df80 100644 --- a/packages/lib/sdk/src/utils/svelte/addBasePath.js +++ b/packages/lib/sdk/src/utils/svelte/addBasePath.js @@ -1,20 +1,30 @@ /** * Adjusts a path to include the configured base path * Ignores undefined, and absolute URLs - * @param {unknown} path + * @template T + * @param {T} path * @param {import("../../configuration/schemas/config.schema.js").EvidenceConfig} config * @example addBasePath('http://localhost:3000/test') // 'http://localhost:3000/test' * @example addBasePath('/test') // '/base/test' * @example addBasePath(undefined) // undefined * - * @returns + * @returns {T | string} */ export const addBasePath = (path, config) => { - if (path instanceof String) path = path.toString(); - if (typeof path !== 'string') return path; - if (path.startsWith('http')) return path; - if (path.startsWith('#')) return path; // ignore hash links - if (/^[^/]*:/.test(path)) return path; // ignore other protocols + /** @type {string} */ + let _path; + + if (path instanceof String) { + _path = path.toString(); + } else if (typeof path !== 'string') { + return path; + } else { + _path = path; + } + + if (_path.startsWith('http')) return _path; + if (_path.startsWith('#')) return _path; // ignore hash links + if (/^[^/]*:/.test(_path)) return _path; // ignore other protocols let basePath = config.deployment.basePath; if (basePath) { @@ -24,12 +34,12 @@ export const addBasePath = (path, config) => { if (basePath.endsWith('/')) { basePath = basePath.slice(0, -1); } - if (path.startsWith(basePath)) return path; - if (!path.startsWith('/')) { - path = `/${path}`; + if (_path.startsWith(basePath)) return _path; + if (!_path.startsWith('/')) { + _path = `/${_path}`; } - return `${basePath}${path}`; + return `${basePath}${_path}`; } else { - return path; + return _path; } }; diff --git a/packages/lib/sdk/src/utils/svelte/addBasePath.spec.js b/packages/lib/sdk/src/utils/svelte/addBasePath.spec.js index a85b2ec11a..ce0e5a00b3 100644 --- a/packages/lib/sdk/src/utils/svelte/addBasePath.spec.js +++ b/packages/lib/sdk/src/utils/svelte/addBasePath.spec.js @@ -79,4 +79,8 @@ describe('addBasePath', () => { const obj = {}; expect(addBasePath(obj, config)).toBe(obj); }); + it('should add slash', () => { + basePath = '/base'; + expect(addBasePath('test', config)).toBe('/base/test'); + }); }); diff --git a/packages/lib/universal-sql/CHANGELOG.md b/packages/lib/universal-sql/CHANGELOG.md index e95518a92d..b942892baf 100644 --- a/packages/lib/universal-sql/CHANGELOG.md +++ b/packages/lib/universal-sql/CHANGELOG.md @@ -1,5 +1,13 @@ # @evidence-dev/universal-sql +## 2.2.9 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [bcb0bf5dd] + - @evidence-dev/sdk@3.0.8 + ## 2.2.8 ### Patch Changes diff --git a/packages/lib/universal-sql/package.json b/packages/lib/universal-sql/package.json index 3fed8daf76..3c6ab70aff 100644 --- a/packages/lib/universal-sql/package.json +++ b/packages/lib/universal-sql/package.json @@ -1,6 +1,6 @@ { "name": "@evidence-dev/universal-sql", - "version": "2.2.8", + "version": "2.2.9", "description": "", "keywords": [], "author": "", diff --git a/packages/lib/universal-sql/src/client-duckdb/browser.d.ts b/packages/lib/universal-sql/src/client-duckdb/browser.d.ts index a3faa0aa5e..f3f51e0d2f 100644 --- a/packages/lib/universal-sql/src/client-duckdb/browser.d.ts +++ b/packages/lib/universal-sql/src/client-duckdb/browser.d.ts @@ -17,9 +17,9 @@ export function updateSearchPath(schemas): Promise; * Queries the database with the given SQL statement. * * @param {string} sql - * @returns {Promise} + * @returns {Promise[]>} */ -export function query(sql: string): Promise; +export function query(sql: string): Promise[]>; /** * Adds a new view to the database, pointing to the provided parquet URLs. diff --git a/packages/lib/universal-sql/src/client-duckdb/browser.js b/packages/lib/universal-sql/src/client-duckdb/browser.js index efea1aa7bb..27c5b439a5 100644 --- a/packages/lib/universal-sql/src/client-duckdb/browser.js +++ b/packages/lib/universal-sql/src/client-duckdb/browser.js @@ -150,7 +150,7 @@ export async function setParquetURLs(urls, { append, addBasePath = (x) => x } = * Queries the database with the given SQL statement. * * @param {string} sql - * @returns {Promise} + * @returns {Promise[]>} */ export async function query(sql) { // After this point, the database has been initialized diff --git a/packages/lib/universal-sql/src/client-duckdb/node-async.d.ts b/packages/lib/universal-sql/src/client-duckdb/node-async.d.ts deleted file mode 100644 index cf84ea22bb..0000000000 --- a/packages/lib/universal-sql/src/client-duckdb/node-async.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Initializes the database. - * - * @returns {Promise} - */ -export async function initDB(): Promise; - -/** - * Queries the database with the given SQL statement. - * - * @param {string} sql - * @returns {Promise} - */ -export function query(sql: string): Promise | null>; diff --git a/packages/lib/universal-sql/src/client-duckdb/node-async.js b/packages/lib/universal-sql/src/client-duckdb/node-async.js deleted file mode 100644 index 93a547f65e..0000000000 --- a/packages/lib/universal-sql/src/client-duckdb/node-async.js +++ /dev/null @@ -1,52 +0,0 @@ -import { AsyncDuckDB, ConsoleLogger, selectBundle } from '@duckdb/duckdb-wasm'; -import { createRequire } from 'module'; -import { dirname, resolve } from 'path'; -import Worker from 'web-worker'; - -const require = createRequire(import.meta.url); -const DUCKDB_DIST = dirname(require.resolve('@duckdb/duckdb-wasm')); - -/** @type {AsyncDuckDB} */ -let db; - -/** @type {Awaited>} */ -let connection; - -/** - * Initializes the database. - * - * @returns {Promise} - */ -export async function initDB() { - // If the database is already available, don't do anything - if (db) return; - - const DUCKDB_BUNDLES = await selectBundle({ - mvp: { - mainModule: resolve(DUCKDB_DIST, './duckdb-mvp.wasm'), - mainWorker: resolve(DUCKDB_DIST, './duckdb-node-mvp.worker.cjs') - }, - eh: { - mainModule: resolve(DUCKDB_DIST, './duckdb-eh.wasm'), - mainWorker: resolve(DUCKDB_DIST, './duckdb-node-eh.worker.cjs') - } - }); - const logger = new ConsoleLogger(); - const worker = new Worker(DUCKDB_BUNDLES.mainWorker); - - // and synchronous database - db = new AsyncDuckDB(logger, worker); - await db.instantiate(DUCKDB_BUNDLES.mainModule); - await db.open({ query: { castBigIntToDouble: true, castTimestampToDate: true } }); - connection = await db.connect(); -} - -/** - * Queries the database with the given SQL statement. - * - * @param {string} sql - * @returns {Promise} - */ -export async function query(sql) { - return connection.query(sql); -} diff --git a/packages/lib/universal-sql/src/client-duckdb/node.d.ts b/packages/lib/universal-sql/src/client-duckdb/node.d.ts index cb9d1664f4..779ea3ee2b 100644 --- a/packages/lib/universal-sql/src/client-duckdb/node.d.ts +++ b/packages/lib/universal-sql/src/client-duckdb/node.d.ts @@ -19,12 +19,12 @@ export function updateSearchPath(schemas): Promise; * * @param {string} sql * @param {{ route_hash: string, query_name: string, prerendering: boolean }} [cache_options] - * @returns {import('apache-arrow').Table | null} + * @returns {Record} */ export function query( sql: string, cache_options?: { route_hash: string; query_name: string; prerendering: boolean } -): import('apache-arrow').Table | null; +): Record[]; /** * Adds a new view to the database, pointing to the provided parquet URLs. diff --git a/packages/ui/core-components/CHANGELOG.md b/packages/ui/core-components/CHANGELOG.md index d312989f9b..402c5a041c 100644 --- a/packages/ui/core-components/CHANGELOG.md +++ b/packages/ui/core-components/CHANGELOG.md @@ -1,5 +1,16 @@ # @evidence-dev/core-components +## 5.1.2 + +### Patch Changes + +- 17eb07aff: Override nanoid to 3.3.8 +- 9179782aa: Fix axis line appearance in sparklines +- bcb0bf5dd: Update vite to 5.4.14 +- 59d6755a8: Fix mobile usage issue for Info component + - @evidence-dev/component-utilities@4.0.8 + - @evidence-dev/tailwind@3.0.8 + ## 5.1.1 ### Patch Changes diff --git a/packages/ui/core-components/package.json b/packages/ui/core-components/package.json index 2c22efc07d..39f4fa6a47 100644 --- a/packages/ui/core-components/package.json +++ b/packages/ui/core-components/package.json @@ -24,7 +24,7 @@ "main": "./dist/index.js", "type": "module", "types": "./dist/index.d.ts", - "version": "5.1.1", + "version": "5.1.2", "evidence": { "components": true }, diff --git a/packages/ui/core-components/src/lib/atoms/button/Button.stories.svelte b/packages/ui/core-components/src/lib/atoms/button/Button.stories.svelte index 712c36988f..eaa327006c 100644 --- a/packages/ui/core-components/src/lib/atoms/button/Button.stories.svelte +++ b/packages/ui/core-components/src/lib/atoms/button/Button.stories.svelte @@ -10,38 +10,92 @@ - const outlines = [false, true]; + + {#each variants as variant} +
+ {variant} +
+
+ {#each sizes as size} +
+ + + {size} + +
+ {/each} +
+ {/each} +
- const disableds = [false, true]; - + + {#each variants as variant} +
+ {variant} +
+
+ {#each sizes as size} +
+ + + {size} + +
+ {/each} +
+ {/each} +
- -
- - {#each outlines as outline} - outline={outline} - {/each} - {#each variants as variant} - {#each disableds as disabled} - disabled={disabled} - {#each outlines as outline} -
- {#each sizes as size} - - - - {/each} -
- {/each} + + {#each variants as variant} +
+ {variant} +
+
+ {#each sizes as size} +
+ + + {size} + +
{/each} - {/each} -
-
+
+ {/each} +
+ + + {#each variants as variant} +
+ {variant} +
+
+ {#each sizes as size} +
+ + + {size} + +
+ {/each} +
+ {/each} +
+ + + + class='w-full mt-6' + + {#each variants as variant} + + {/each} diff --git a/packages/ui/core-components/src/lib/atoms/button/Button.svelte b/packages/ui/core-components/src/lib/atoms/button/Button.svelte index 8add72ea18..66edc6ad69 100644 --- a/packages/ui/core-components/src/lib/atoms/button/Button.svelte +++ b/packages/ui/core-components/src/lib/atoms/button/Button.svelte @@ -1,47 +1,11 @@ - - diff --git a/packages/ui/core-components/src/lib/atoms/hover-card/HoverCard.svelte b/packages/ui/core-components/src/lib/atoms/hover-card/HoverCard.svelte index b0dae74ff2..a61e0067a6 100644 --- a/packages/ui/core-components/src/lib/atoms/hover-card/HoverCard.svelte +++ b/packages/ui/core-components/src/lib/atoms/hover-card/HoverCard.svelte @@ -11,9 +11,10 @@ export let sideOffset = 4; export let openDelay = 0; export let closeDelay = 0; + export let open = false; - + diff --git a/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-item.svelte b/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-item.svelte index a15b5f467e..8bc61a28b5 100644 --- a/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-item.svelte +++ b/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-item.svelte @@ -10,6 +10,10 @@ export { className as class }; - + diff --git a/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-trigger.svelte b/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-trigger.svelte index 3222fafbd0..1675cbf1ea 100644 --- a/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-trigger.svelte +++ b/packages/ui/core-components/src/lib/atoms/shadcn/accordion/accordion-trigger.svelte @@ -24,7 +24,7 @@ diff --git a/packages/ui/core-components/src/lib/atoms/shadcn/dropdown-menu/dropdown-menu-content.svelte b/packages/ui/core-components/src/lib/atoms/shadcn/dropdown-menu/dropdown-menu-content.svelte index 1f5d1a22d4..3cde342075 100644 --- a/packages/ui/core-components/src/lib/atoms/shadcn/dropdown-menu/dropdown-menu-content.svelte +++ b/packages/ui/core-components/src/lib/atoms/shadcn/dropdown-menu/dropdown-menu-content.svelte @@ -19,7 +19,7 @@ {transitionConfig} {sideOffset} class={cn( - 'z-50 min-w-[8rem] rounded-md border border-base-200 bg-popover p-1 shadow-md bg-base-100 focus:outline-none antialiased text-base-conetnt print:hidden', + 'z-50 min-w-[8rem] rounded-md border border-base-300 bg-popover p-1 shadow-md bg-base-100 focus:outline-none antialiased text-base-conetnt print:hidden', className )} {...$$restProps} diff --git a/packages/ui/core-components/src/lib/atoms/switch/Switch.svelte b/packages/ui/core-components/src/lib/atoms/switch/Switch.svelte new file mode 100644 index 0000000000..f4396c055a --- /dev/null +++ b/packages/ui/core-components/src/lib/atoms/switch/Switch.svelte @@ -0,0 +1,25 @@ + + + + + diff --git a/packages/ui/core-components/src/lib/organisms/layout/EvidenceDefaultLayout.svelte b/packages/ui/core-components/src/lib/organisms/layout/EvidenceDefaultLayout.svelte index c1eac6b754..57425f5aec 100644 --- a/packages/ui/core-components/src/lib/organisms/layout/EvidenceDefaultLayout.svelte +++ b/packages/ui/core-components/src/lib/organisms/layout/EvidenceDefaultLayout.svelte @@ -213,7 +213,7 @@ 'print:w-[650px] print:md:w-[841px] mx-auto print:md:px-0 print:px-0 px-6 sm:px-8 md:px-12 flex justify-start'} style="max-width:{maxWidthEffective}px;" > - {#if !hideSidebar && sidebarFrontMatter !== 'never'} + {#if !hideSidebar && sidebarFrontMatter !== 'never' && $page.route.id !== '/settings'}
{/if}
- {#if !hideBreadcrumbsEffective} + {#if !hideBreadcrumbsEffective && $page.route.id !== '/settings'}
{#if $page.route.id !== '/settings'} @@ -255,7 +256,7 @@ {/if}
- {#if !hideTocEffective} + {#if !hideTocEffective && $page.route.id !== '/settings'}
diff --git a/packages/ui/core-components/src/lib/organisms/source-config/NewSourceForm.svelte b/packages/ui/core-components/src/lib/organisms/source-config/NewSourceForm.svelte index 497b296a90..6819eb37f3 100644 --- a/packages/ui/core-components/src/lib/organisms/source-config/NewSourceForm.svelte +++ b/packages/ui/core-components/src/lib/organisms/source-config/NewSourceForm.svelte @@ -1,76 +1,222 @@ -
-
-

Add new source

- - -
- +
+ {#if sourceAdded} +
+
+ +
+

Connected

+

+ Add files to sources/{source.name} in order to query this source. +

+
+
+ +
+ {:else if !configuring} +

+ + New Source +

+
+ + + +
+ +
+ +
+ + +
+ +
+ {:else} +
+
+ {#if isSimpleIcon(iconName)} + + {:else if isEvidenceIcon(iconName)} + + {:else} + + {/if} +
+
+
+
+

+ {source.type} +

+

{source.name}

+
+
+
-
- +
+ newSourceAdded(e)} + on:cancel={() => (configuring = false)} + />
- + {/if}
diff --git a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.stories.svelte b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.stories.svelte deleted file mode 100644 index 113fe692d5..0000000000 --- a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.stories.svelte +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - diff --git a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.svelte b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.svelte index 16ac1c436b..56e56f26db 100644 --- a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.svelte +++ b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfig.svelte @@ -7,7 +7,8 @@ import NewSourceForm from './NewSourceForm.svelte'; import SourceConfigRow from './SourceConfigRow.svelte'; import { Button } from '../../atoms/button/index.js'; - import { FolderPlus } from '@evidence-dev/component-utilities/icons'; + import { Plus, Database, Icon } from '@evidence-dev/component-utilities/icons'; + import { fly } from 'svelte/transition'; /** @type {Record} */ export let availableSourcePlugins = {}; @@ -22,123 +23,78 @@ /** @type {Pick[]} */ export let sources = []; - let showNewSource = sources.length === 0; - - /** @type {string} */ - let lastAdded; - /** @param {import('svelte').ComponentEvents['newSource']} e */ function addNewSource(e) { - const { newSourceType, newSourceName } = e.detail; - if (!newSourceType) return; - sources.push({ - name: newSourceName, - type: newSourceType, - options: {}, - environmentVariables: {} - }); - lastAdded = newSourceName; - showNewSource = false; + sources.push(e.detail); + sources = sources; } - /** @type {string[]} */ - let duplicatePackageNames = []; - $: if (sources.length) { - const allNames = sources.reduce( - (a, v) => { - if (a.sourceNames.has(v.name)) { - a.duplicateNames.add(v.name); - } - a.sourceNames.add(v.name); - - return a; - }, - { sourceNames: new Set(), duplicateNames: new Set() } - ); - - duplicatePackageNames = Array.from(allNames.duplicateNames); - } + let addingSource = false; -
-
-

Data Sources

- +
+ {#if sources?.length > 0} + {#if !addingSource} +
+ {#each sources as source (source?.name)} + + {/each} +
+ + {:else} +
+ +
+ {/if} + {:else if !addingSource}
- {#if sources.length > 0} -
-

-

Name

-

Type

-

-

- - {#if duplicatePackageNames.length} -
-

- Duplicate Packages found; this could lead to unexpected behavior -

-
    - {#each duplicatePackageNames as d} -
  • {d}
  • - {/each} -
-
- {/if} - - {#each sources as source} - - {/each} - -
- +
+ +
+

No Sources

+

Get started by adding your first source.

- - {#if showNewSource} - - {/if} - {:else} - -
- -
- {/if} +
+
- -
-
-
- - Learn more about - - Configuring Data Sources → - -
-
- - + {:else} +
+ +
+ {/if} +
diff --git a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigForm.svelte b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigForm.svelte index df7da9129c..8b74e0d9ac 100644 --- a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigForm.svelte +++ b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigForm.svelte @@ -1,17 +1,19 @@
-

Configure {source.name}

-
- {#if configurationError} -

{configurationError}

- {:else if configurationOkay} -

Configuration Updated

+
+ {#if !isNewSource} + {/if} - -

Source Info

- - - - {#if Object.keys(sourcePlugin.options).length} -
-

Source Options

+ + {#if Object.keys(sourcePlugin?.options).length} {/if} -
- -
- {#if validationError} -

{validationError}

- {:else if validationOkay} -

Connection Successful!

- {/if} - - - + {#if hasSecretOptions(sourcePlugin?.options)} + + {/if} +
+ +
+
+ {#if configurationError} +

+ {configurationError} +

+ {:else if validationError} +

{validationError}

+ {:else if configurationOkay} +
+
+
+
+

Connected

+
+ {/if} +
+
+ {#if isNewSource} + + {/if} + + {#if isNewSource && source?.type === 'duckdb'} + + + {:else if !configurationOkay || JSON.stringify(source) !== lastTestedConfig} + + {:else} +
+ +
+ {/if} +
diff --git a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigFormField.svelte b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigFormField.svelte index 95afaff028..2d792b05a9 100644 --- a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigFormField.svelte +++ b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigFormField.svelte @@ -2,10 +2,11 @@ // @ts-check import yaml from 'yaml'; + import { slide } from 'svelte/transition'; import { JSONPath } from '@astronautlabs/jsonpath'; import SourceConfigFormSection from './SourceConfigFormSection.svelte'; - import Hint from '../../atoms/hint/Hint.svelte'; + import Switch from '$lib/atoms/switch/Switch.svelte'; /** @type {import('@evidence-dev/sdk/plugins').IDatasourceOptionSpec} */ export let spec; @@ -149,24 +150,14 @@ $: fieldDisabled = disabled || spec.forceReference || (spec.references && refVal !== null); -
-
+ + diff --git a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigRow.svelte b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigRow.svelte index 6355ae7b43..017c56ebda 100644 --- a/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigRow.svelte +++ b/packages/ui/core-components/src/lib/organisms/source-config/SourceConfigRow.svelte @@ -11,11 +11,10 @@ import * as evidenceIcons from '@evidence-dev/icons'; import { Button } from '../../atoms/button/index.js'; - import { Database, ExclamationCircle, Pencil } from '@steeze-ui/tabler-icons'; + import { Database, ExclamationCircle } from '@steeze-ui/tabler-icons'; import SourceConfigForm from './SourceConfigForm.svelte'; - import { Hint } from '../../atoms/hint/index.js'; - /** @type {Pick} */ + /** @type {Pick} */ export let source; /** @type {Pick[]} */ @@ -24,9 +23,7 @@ /** @type {Record} */ export let availableSourcePlugins; - export let startOpen = false; - - let open = startOpen; + let open = false; $: sourcePlugin = availableSourcePlugins?.[source.type]; @@ -45,44 +42,43 @@ const isEvidenceIcon = (iconName) => typeof iconName !== 'undefined' && iconName in evidenceIcons; -
- {#if isSimpleIcon(iconName)} - - {:else if isEvidenceIcon(iconName)} - - {:else if !sourcePlugin} - - {:else} - - {/if} -

{source.name}

-
-

- {source.type} -

- {#if !sourcePlugin} -

- No connector for {source.type} is available -

- Make sure you have installed it, and included it in your evidence.plugins.yaml file - {/if} -
-
- +
+
+
+ {#if isSimpleIcon(iconName)} + + {:else if isEvidenceIcon(iconName)} + + {:else if !sourcePlugin} + + {:else} + + {/if} +
+
+
+
+

+ {source.type} +

+

{source.name}

+
+
+
+ +
+
+ {#if open} +
+ (source = e.detail)} + /> +
+ {/if}
- -{#if open} -
- (source = e.detail)} - /> -
-{/if} diff --git a/packages/ui/core-components/src/lib/organisms/source-config/atoms/SourceNameField.svelte b/packages/ui/core-components/src/lib/organisms/source-config/atoms/SourceNameField.svelte index 4a0f188364..552f79b00c 100644 --- a/packages/ui/core-components/src/lib/organisms/source-config/atoms/SourceNameField.svelte +++ b/packages/ui/core-components/src/lib/organisms/source-config/atoms/SourceNameField.svelte @@ -1,4 +1,5 @@ - -
+
+ {#if nameError} - {nameError} + {nameError} + {/if} + {#if showPrefix} +

+ Name of the new directory that will be created for this source, under `/sources`. +

+ {:else} +

+ Tables from this source can be queried using `<source name>.<tablename>`. Changing the name will change how you reference the source in your queries, but it will not + change the source directory. +

{/if}
diff --git a/packages/ui/core-components/src/lib/unsorted/ui/CodeBlock.svelte b/packages/ui/core-components/src/lib/unsorted/ui/CodeBlock.svelte index 46bb13ce95..a2aa2324fd 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/CodeBlock.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/CodeBlock.svelte @@ -3,6 +3,7 @@ -
+
{#if copyToClipboard} {/if} diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyEnvironmentVariables.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyEnvironmentVariables.svelte new file mode 100644 index 0000000000..b7eb64d2d2 --- /dev/null +++ b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyEnvironmentVariables.svelte @@ -0,0 +1,38 @@ + + + diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyIcon.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyIcon.svelte index 202a7a4b02..4f20751289 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyIcon.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/CopyIcon.svelte @@ -1,7 +1,3 @@ - - - - export const evidenceInclude = true; - - -
-
-
-

Deployment

-

- Evidence projects can be deployed to a variety of cloud environments. The easiest way to - deploy your project is with Evidence Cloud. +

+
+

Evidence Cloud

+ +
+
+ 1 +
+

Check your project into version control

+
+
+

+ Evidence Cloud deploys your project from its Github repository. As you make changes to your + project and commit them to main, Evidence cloud will update your deployed project.

-

Environment Variables

-
- +
+
+
+ 2
- -

Deployment Environment

-
- {#if selectedDeployment.FormComponent} -
- +
+
+ 3
- {/if} -
- - - +

Done

+
+
+

+ When you make changes to your project locally, push them to main, and Evidence cloud will + update your deployed project. +

+
+

Other Environments

+

+ Documentation on deploying Evidence projects to a variety of cloud environments is available + here. For all deployment environments, you will need to set the environment variables using the key + value pairs below. +

+ +
+

+ To use different connection settings your deployment environment, + + set different environment variable values in your deployment environment + + . +

+
+
+
diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/EnvironmentVarListing.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/EnvironmentVarListing.svelte index 5db1ff4fea..6ad07cb3b0 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/EnvironmentVarListing.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/EnvironmentVarListing.svelte @@ -1,124 +1,21 @@ - - -

- To use different data environments in production vs development, - - use different environment variable values. - -

- -{#if credentials.authenticator === 'externalbrowser'} -
-

- External browser authentication isn't supported in cloud deployments, as it needs access to a - browser. Set up one of the other authentication options for a deployment. -

-{:else if credentials.authenticator === 'gcloud-cli'} -
-

- GCloud authentication isn't supported in cloud deployments, as it needs access to a browser. Set - up one of the other authentication options for a deployment. -

-{:else} - - -
- -
- -
- KeyValue -
- {#each sources as datasource} - {#each Object.entries(datasource.environmentVariables) as [key, value]} -
-
- -
-
- -
-
- {/each} - {/each} -
-
-{/if} - - +
+ Key + Value +
+
+ {#each sources as datasource} + {#each Object.entries(datasource?.environmentVariables) as [key, value]} + + + {/each} + {/each} +
diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/VariableCopy.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/VariableCopy.svelte index 65ca739d78..79d3ad4061 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Deployment/VariableCopy.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Deployment/VariableCopy.svelte @@ -1,13 +1,8 @@ - - - - - - - - - +
Format NameFormat CodeExample InputExample Output
+ + + + + {#each formats as format} @@ -24,71 +20,12 @@ placeholder={format.exampleInput || defaultExample(format.valueType)} bind:value={format.userInput} on:blur={(format.userInput = undefined)} - class="align_left input_box" + class="rounded shadow-sm border border-base-300 px-2 py-1 text-sm w-full bg-base-100 focus:ring-base-300 focus:border-base-300 focus:outline-none focus:ring-1" /> - + {/each}
Format NameFormat CodeExample InputExample Output
{formatExample(format)} + {formatExample(format)} +
- - diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CurrencyFormatGrid.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CurrencyFormatGrid.svelte index d747307266..414ba98ab7 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CurrencyFormatGrid.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CurrencyFormatGrid.svelte @@ -1,7 +1,3 @@ - - - +
+ +
{#if selectedCurrency != 'Choose a currency'}
- - - - - - +
Format NameFormat CodeExample InputExample Output
+ + + + + {#each formats.filter((d) => d.parentFormat === selectedCurrency) as format (format.formatTag)} @@ -37,94 +38,12 @@ placeholder={format.exampleInput || defaultExample(format.valueType)} bind:value={format.userInput} on:blur={(format.userInput = undefined)} - class="align_left input_box" + class="rounded shadow-sm border border-base-300 px-2 py-1 text-sm w-full bg-base-100 focus:ring-base-300 focus:border-base-300 focus:outline-none focus:ring-1" /> - + {/each}
Format NameFormat CodeExample InputExample Output
{formatExample(format)}{formatExample(format)}
{/if} - - diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatGrid.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatGrid.svelte index cb7dbf00c1..2e0cfd25b9 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatGrid.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatGrid.svelte @@ -1,26 +1,22 @@ - - - - - - - - - +
Format NameFormat CodeExample InputExample Output
+ + + + + + - {#each formats as format} - + {#each formats as format (format.formatTag)} + - - + {/each}
Format NameFormat CodeExample InputExample Output
{format.formatTag} {format.formatCode} @@ -29,97 +25,15 @@ placeholder={format.exampleInput || defaultExample(format.valueType)} bind:value={format.userInput} on:blur={(format.userInput = undefined)} - class="align_left input_box" + class="rounded shadow-sm border border-base-300 px-2 py-1 text-sm w-full bg-base-100 focus:ring-base-300 focus:border-base-300 focus:outline-none focus:ring-1" /> {formatExample(format)} - + {formatExample(format)} +
- - diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatsSection.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatsSection.svelte index 7fc69aa46e..4e41e5223f 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatsSection.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/CustomFormatsSection.svelte @@ -1,13 +1,11 @@ - - {#if customFormattingSettings.customFormats && customFormattingSettings.customFormats.length > 0} - - - +
+ + + + + +
{/if} -
-
- - -
-
- - + +
+
+ + +
+
+ + +
+
+ + +
+ +
{@html newFormatValidationErrors}
-
- - -
-
- -
-
{@html newFormatValidationErrors}
- - diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/FormattingSettingsPanel.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/FormattingSettingsPanel.svelte index c8b5b28b9f..fa22e6b646 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Formatting/FormattingSettingsPanel.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Formatting/FormattingSettingsPanel.svelte @@ -4,9 +4,9 @@ import { BUILT_IN_FORMATS } from '@evidence-dev/component-utilities/builtInFormats'; import BuiltInFormatGrid from './BuiltInFormatGrid.svelte'; import CustomFormatsSection from './CustomFormatsSection.svelte'; - import CollapsibleTableSection from './CollapsibleTableSection.svelte'; import CurrencyFormatGrid from './CurrencyFormatGrid.svelte'; - import Prism from '../QueryViewerSupport/Prismjs.svelte'; + import CodeBlock from '../CodeBlock.svelte'; + import { Accordion, AccordionItem } from '../../../atoms/accordion/index.js'; /** @type {{ customFormats?: { formatTag: string }[] }}*/ export let customFormattingSettings; @@ -26,125 +26,54 @@ from table`; let valueExample = ``; -
-
-
-

Value Formatting

-

- Evidence supports built-in formats (like usd and pct) and - Excel-style formats (like $#,##0.0). The easiest way to apply these formats is - using component props. For example: -

-

In the Value component, you can use the fmt prop

-
- -
-
-

- In charts, you can use the xFmt and yFmt props -

-
- -
-
-

- You can also set formats within your SQL queries using SQL format tags. Use these by - aliasing your column names and appending a format. For example: -

-
- -
-

-

-
-

Built-in Formats

-

All built-in formats are listed below for reference.

- +
+
+

Using Formats

+

In the Value component, you can use the fmt prop

+ +

In charts, you can use the xFmt and yFmt props

+ +

+ You can also set formats within your SQL queries using SQL format tags. Use these by aliasing + your column names and appending a format. For example: +

+ +
+
+

Builtin Formats

+

All built-in formats are listed below for reference.

+ + d.formatCategory === 'date')} /> - - + + d.formatCategory === 'currency')} /> - - + + d.formatCategory === 'number')} /> - - + + d.formatCategory === 'percent')} /> - -
-
-

Custom Formats

-

- Add new formats to your project. Custom formats use excel-style format codes. -

- -
+ +
- - - - + href="https://support.microsoft.com/en-us/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68" + >excel-style format codes and are saved in your project. +

+ +
+ diff --git a/packages/ui/core-components/src/lib/unsorted/ui/Info.svelte b/packages/ui/core-components/src/lib/unsorted/ui/Info.svelte index 9ee2515750..1de5d93e19 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/Info.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/Info.svelte @@ -9,32 +9,41 @@ import chroma from 'chroma-js'; import HoverCard from '../../atoms/hover-card/HoverCard.svelte'; - /** @type {import('@steeze-ui/svelte-icon').IconSource} */ let icon = InfoCircled; - export let description = ''; - export let size = 4; - export let className = undefined; - const { resolveColor } = getThemeStores(); export let color = 'base-content-muted'; + $: colorStore = resolveColor(color); $: textColor = chroma($colorStore).css(); + + // State for manual toggle + let isOpen = false; + + function toggleOpen() { + isOpen = !isOpen; + } - + (e.key === 'Enter' || e.key === ' ') && toggleOpen()} > +

{description} diff --git a/packages/ui/core-components/src/lib/unsorted/ui/TelemetryOptOut/TelemetrySettingsPanel.svelte b/packages/ui/core-components/src/lib/unsorted/ui/TelemetryOptOut/TelemetrySettingsPanel.svelte index 183ec033ad..45a17b34c1 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/TelemetryOptOut/TelemetrySettingsPanel.svelte +++ b/packages/ui/core-components/src/lib/unsorted/ui/TelemetryOptOut/TelemetrySettingsPanel.svelte @@ -1,9 +1,7 @@ - - -

-
-
-

Telemetry

-

- Evidence collects anonymous usage data to help us understand how often the tool is being - used. +

+ + +

+ Sharing anonymous CLI usage data is one of the best ways you can support Evidence.

- -
-

- Each time you run a query, we get the following pieces of information: -

-
    -
  1. - A random identifier that is stored in .evidence/customization/.profile.json -
  2. -
  3. - An anonymized identifier based on the git repository you're using for the project -
  4. -
  5. Whether your project is running in development or build mode
  6. -
  7. - Whether your query returned from the cache, from your datasource, or returned an error -
  8. -
  9. - The type of Evidence datasource connectors you are using (postgres, snowflake, etc.) -
  10. -
  11. The operating system your project is running on (windows, mac, etc.)
  12. -
-

- Sharing anonymous usage data is one of the best ways you can support Evidence. -

-
- - -
-
-
-
-
- - - - +
+ +
+ + +
diff --git a/packages/ui/core-components/src/lib/unsorted/ui/VersionControl/VersionControlPanel.svelte b/packages/ui/core-components/src/lib/unsorted/ui/VersionControl/VersionControlPanel.svelte deleted file mode 100644 index 6553e7bf32..0000000000 --- a/packages/ui/core-components/src/lib/unsorted/ui/VersionControl/VersionControlPanel.svelte +++ /dev/null @@ -1,191 +0,0 @@ - - - - -
-
-
-

Version Control

- Use version control to keep track of changes to your project. A published git repo is needed if - you want to deploy your Evidence project online. - -
- {#if settings.localGitRepo} - - - - {:else} - - - - {/if} - Local Git Repo - {#if settings.localGitRepo} -
- Tracking {settings.localGitRepo} -
- {:else} - - - Use your code editor to initialize a repo or run `git init` in a terminal - - {/if} -
- -
- {#if settings.gitRepo} - - - - {:else} - - - - {/if} - Git Repo Published - {#if settings.gitRepo} - - {:else} - - - Publish your git repo to a platform like GitHub or GitLab - - {/if} -
-
-
- -
- - diff --git a/packages/ui/core-components/src/lib/unsorted/ui/VersionControl/index.js b/packages/ui/core-components/src/lib/unsorted/ui/VersionControl/index.js deleted file mode 100644 index 4982fa8bf3..0000000000 --- a/packages/ui/core-components/src/lib/unsorted/ui/VersionControl/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default as VersionControlPanel } from './VersionControlPanel.svelte'; diff --git a/packages/ui/core-components/src/lib/unsorted/ui/index.js b/packages/ui/core-components/src/lib/unsorted/ui/index.js index bb88f76db9..59b3936fb6 100644 --- a/packages/ui/core-components/src/lib/unsorted/ui/index.js +++ b/packages/ui/core-components/src/lib/unsorted/ui/index.js @@ -26,4 +26,3 @@ export * from './Formatting'; export * from './QueryViewerSupport'; export * from './Tabs'; export * from './TelemetryOptOut'; -export * from './VersionControl'; diff --git a/packages/ui/tailwind/CHANGELOG.md b/packages/ui/tailwind/CHANGELOG.md index 7049d45fa4..1367f9984f 100644 --- a/packages/ui/tailwind/CHANGELOG.md +++ b/packages/ui/tailwind/CHANGELOG.md @@ -1,5 +1,13 @@ # @evidence-dev/tailwind +## 3.0.8 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [bcb0bf5dd] + - @evidence-dev/sdk@3.0.8 + ## 3.0.7 ### Patch Changes diff --git a/packages/ui/tailwind/package.json b/packages/ui/tailwind/package.json index fa3e9ce84e..e38f9d8665 100644 --- a/packages/ui/tailwind/package.json +++ b/packages/ui/tailwind/package.json @@ -1,6 +1,6 @@ { "name": "@evidence-dev/tailwind", - "version": "3.0.7", + "version": "3.0.8", "description": "", "keywords": [], "author": "", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9cdf17998..5bb1b0c5b5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -724,7 +724,7 @@ importers: devDependencies: '@types/mssql': specifier: ^9.1.5 - version: 9.1.6 + version: 9.1.7 dotenv: specifier: ^16.0.1 version: 16.4.7 @@ -1081,7 +1081,7 @@ importers: version: 1.26.5 mock-fs: specifier: ^5.2.0 - version: 5.4.1 + version: 5.5.0 parcel: specifier: ^2.8.3 version: 2.13.3(postcss@8.5.1)(typescript@5.4.2) @@ -1090,7 +1090,7 @@ importers: version: 5.4.2 vitest: specifier: ^2.0.5 - version: 2.1.9 + version: 2.1.9(yaml@2.7.0) packages/lib/sdk: dependencies: @@ -1291,7 +1291,7 @@ importers: version: 20.11.28 mock-fs: specifier: ^5.2.0 - version: 5.4.1 + version: 5.5.0 vitest: specifier: ^2.0.5 version: 2.1.9(@types/node@20.11.28) @@ -1469,7 +1469,7 @@ importers: version: 8.5.3(storybook@8.5.3)(svelte@4.2.19) '@storybook/sveltekit': specifier: ^8.3.4 - version: 8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14) + version: 8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss-load-config@4.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14) '@storybook/testing-library': specifier: ^0.2.2 version: 0.2.2 @@ -6562,134 +6562,134 @@ packages: picomatch: 2.3.1 dev: false - /@rollup/rollup-android-arm-eabi@4.34.3: - resolution: {integrity: sha512-8kq/NjMKkMTGKMPldWihncOl62kgnLYk7cW+/4NCUWfS70/wz4+gQ7rMxMMpZ3dIOP/xw7wKNzIuUnN/H2GfUg==} + /@rollup/rollup-android-arm-eabi@4.34.4: + resolution: {integrity: sha512-gGi5adZWvjtJU7Axs//CWaQbQd/vGy8KGcnEaCWiyCqxWYDxwIlAHFuSe6Guoxtd0SRvSfVTDMPd5H+4KE2kKA==} cpu: [arm] os: [android] requiresBuild: true optional: true - /@rollup/rollup-android-arm64@4.34.3: - resolution: {integrity: sha512-1PqMHiuRochQ6++SDI7SaRDWJKr/NgAlezBi5nOne6Da6IWJo3hK0TdECBDwd92IUDPG4j/bZmWuwOnomNT8wA==} + /@rollup/rollup-android-arm64@4.34.4: + resolution: {integrity: sha512-1aRlh1gqtF7vNPMnlf1vJKk72Yshw5zknR/ZAVh7zycRAGF2XBMVDAHmFQz/Zws5k++nux3LOq/Ejj1WrDR6xg==} cpu: [arm64] os: [android] requiresBuild: true optional: true - /@rollup/rollup-darwin-arm64@4.34.3: - resolution: {integrity: sha512-fqbrykX4mGV3DlCDXhF4OaMGcchd2tmLYxVt3On5oOZWVDFfdEoYAV2alzNChl8OzNaeMAGqm1f7gk7eIw/uDg==} + /@rollup/rollup-darwin-arm64@4.34.4: + resolution: {integrity: sha512-drHl+4qhFj+PV/jrQ78p9ch6A0MfNVZScl/nBps5a7u01aGf/GuBRrHnRegA9bP222CBDfjYbFdjkIJ/FurvSQ==} cpu: [arm64] os: [darwin] requiresBuild: true optional: true - /@rollup/rollup-darwin-x64@4.34.3: - resolution: {integrity: sha512-8Wxrx/KRvMsTyLTbdrMXcVKfpW51cCNW8x7iQD72xSEbjvhCY3b+w83Bea3nQfysTMR7K28esc+ZFITThXm+1w==} + /@rollup/rollup-darwin-x64@4.34.4: + resolution: {integrity: sha512-hQqq/8QALU6t1+fbNmm6dwYsa0PDD4L5r3TpHx9dNl+aSEMnIksHZkSO3AVH+hBMvZhpumIGrTFj8XCOGuIXjw==} cpu: [x64] os: [darwin] requiresBuild: true optional: true - /@rollup/rollup-freebsd-arm64@4.34.3: - resolution: {integrity: sha512-lpBmV2qSiELh+ATQPTjQczt5hvbTLsE0c43Rx4bGxN2VpnAZWy77we7OO62LyOSZNY7CzjMoceRPc+Lt4e9J6A==} + /@rollup/rollup-freebsd-arm64@4.34.4: + resolution: {integrity: sha512-/L0LixBmbefkec1JTeAQJP0ETzGjFtNml2gpQXA8rpLo7Md+iXQzo9kwEgzyat5Q+OG/C//2B9Fx52UxsOXbzw==} cpu: [arm64] os: [freebsd] requiresBuild: true optional: true - /@rollup/rollup-freebsd-x64@4.34.3: - resolution: {integrity: sha512-sNPvBIXpgaYcI6mAeH13GZMXFrrw5mdZVI1M9YQPRG2LpjwL8DSxSIflZoh/B5NEuOi53kxsR/S2GKozK1vDXA==} + /@rollup/rollup-freebsd-x64@4.34.4: + resolution: {integrity: sha512-6Rk3PLRK+b8L/M6m/x6Mfj60LhAUcLJ34oPaxufA+CfqkUrDoUPQYFdRrhqyOvtOKXLJZJwxlOLbQjNYQcRQfw==} cpu: [x64] os: [freebsd] requiresBuild: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.34.3: - resolution: {integrity: sha512-MW6N3AoC61OfE1VgnN5O1OW0gt8VTbhx9s/ZEPLBM11wEdHjeilPzOxVmmsrx5YmejpGPvez8QwGGvMU+pGxpw==} + /@rollup/rollup-linux-arm-gnueabihf@4.34.4: + resolution: {integrity: sha512-kmT3x0IPRuXY/tNoABp2nDvI9EvdiS2JZsd4I9yOcLCCViKsP0gB38mVHOhluzx+SSVnM1KNn9k6osyXZhLoCA==} cpu: [arm] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm-musleabihf@4.34.3: - resolution: {integrity: sha512-2SQkhr5xvatYq0/+H6qyW0zvrQz9LM4lxGkpWURLoQX5+yP8MsERh4uWmxFohOvwCP6l/+wgiHZ1qVwLDc7Qmw==} + /@rollup/rollup-linux-arm-musleabihf@4.34.4: + resolution: {integrity: sha512-3iSA9tx+4PZcJH/Wnwsvx/BY4qHpit/u2YoZoXugWVfc36/4mRkgGEoRbRV7nzNBSCOgbWMeuQ27IQWgJ7tRzw==} cpu: [arm] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm64-gnu@4.34.3: - resolution: {integrity: sha512-R3JLYt8YoRwKI5shJsovLpcR6pwIMui/MGG/MmxZ1DYI3iRSKI4qcYrvYgDf4Ss2oCR3RL3F3dYK7uAGQgMIuQ==} + /@rollup/rollup-linux-arm64-gnu@4.34.4: + resolution: {integrity: sha512-7CwSJW+sEhM9sESEk+pEREF2JL0BmyCro8UyTq0Kyh0nu1v0QPNY3yfLPFKChzVoUmaKj8zbdgBxUhBRR+xGxg==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm64-musl@4.34.3: - resolution: {integrity: sha512-4XQhG8v/t3S7Rxs7rmFUuM6j09hVrTArzONS3fUZ6oBRSN/ps9IPQjVhp62P0W3KhqJdQADo/MRlYRMdgxr/3w==} + /@rollup/rollup-linux-arm64-musl@4.34.4: + resolution: {integrity: sha512-GZdafB41/4s12j8Ss2izofjeFXRAAM7sHCb+S4JsI9vaONX/zQ8cXd87B9MRU/igGAJkKvmFmJJBeeT9jJ5Cbw==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-loongarch64-gnu@4.34.3: - resolution: {integrity: sha512-QlW1jCUZ1LHUIYCAK2FciVw1ptHsxzApYVi05q7bz2A8oNE8QxQ85NhM4arLxkAlcnS42t4avJbSfzSQwbIaKg==} + /@rollup/rollup-linux-loongarch64-gnu@4.34.4: + resolution: {integrity: sha512-uuphLuw1X6ur11675c2twC6YxbzyLSpWggvdawTUamlsoUv81aAXRMPBC1uvQllnBGls0Qt5Siw8reSIBnbdqQ==} cpu: [loong64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-powerpc64le-gnu@4.34.3: - resolution: {integrity: sha512-kMbLToizVeCcN69+nnm20Dh0hrRIAjgaaL+Wh0gWZcNt8e542d2FUGtsyuNsHVNNF3gqTJrpzUGIdwMGLEUM7g==} + /@rollup/rollup-linux-powerpc64le-gnu@4.34.4: + resolution: {integrity: sha512-KvLEw1os2gSmD6k6QPCQMm2T9P2GYvsMZMRpMz78QpSoEevHbV/KOUbI/46/JRalhtSAYZBYLAnT9YE4i/l4vg==} cpu: [ppc64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.34.3: - resolution: {integrity: sha512-YgD0DnZ3CHtvXRH8rzjVSxwI0kMTr0RQt3o1N92RwxGdx7YejzbBO0ELlSU48DP96u1gYYVWfUhDRyaGNqJqJg==} + /@rollup/rollup-linux-riscv64-gnu@4.34.4: + resolution: {integrity: sha512-wcpCLHGM9yv+3Dql/CI4zrY2mpQ4WFergD3c9cpRowltEh5I84pRT/EuHZsG0In4eBPPYthXnuR++HrFkeqwkA==} cpu: [riscv64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-s390x-gnu@4.34.3: - resolution: {integrity: sha512-dIOoOz8altjp6UjAi3U9EW99s8nta4gzi52FeI45GlPyrUH4QixUoBMH9VsVjt+9A2RiZBWyjYNHlJ/HmJOBCQ==} + /@rollup/rollup-linux-s390x-gnu@4.34.4: + resolution: {integrity: sha512-nLbfQp2lbJYU8obhRQusXKbuiqm4jSJteLwfjnunDT5ugBKdxqw1X9KWwk8xp1OMC6P5d0WbzxzhWoznuVK6XA==} cpu: [s390x] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-x64-gnu@4.34.3: - resolution: {integrity: sha512-lOyG3aF4FTKrhpzXfMmBXgeKUUXdAWmP2zSNf8HTAXPqZay6QYT26l64hVizBjq+hJx3pl0DTEyvPi9sTA6VGA==} + /@rollup/rollup-linux-x64-gnu@4.34.4: + resolution: {integrity: sha512-JGejzEfVzqc/XNiCKZj14eb6s5w8DdWlnQ5tWUbs99kkdvfq9btxxVX97AaxiUX7xJTKFA0LwoS0KU8C2faZRg==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-x64-musl@4.34.3: - resolution: {integrity: sha512-usztyYLu2i+mYzzOjqHZTaRXbUOqw3P6laNUh1zcqxbPH1P2Tz/QdJJCQSnGxCtsRQeuU2bCyraGMtMumC46rw==} + /@rollup/rollup-linux-x64-musl@4.34.4: + resolution: {integrity: sha512-/iFIbhzeyZZy49ozAWJ1ZR2KW6ZdYUbQXLT4O5n1cRZRoTpwExnHLjlurDXXPKEGxiAg0ujaR9JDYKljpr2fDg==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.34.3: - resolution: {integrity: sha512-ojFOKaz/ZyalIrizdBq2vyc2f0kFbJahEznfZlxdB6pF9Do6++i1zS5Gy6QLf8D7/S57MHrmBLur6AeRYeQXSA==} + /@rollup/rollup-win32-arm64-msvc@4.34.4: + resolution: {integrity: sha512-qORc3UzoD5UUTneiP2Afg5n5Ti1GAW9Gp5vHPxzvAFFA3FBaum9WqGvYXGf+c7beFdOKNos31/41PRMUwh1tpA==} cpu: [arm64] os: [win32] requiresBuild: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.34.3: - resolution: {integrity: sha512-K/V97GMbNa+Da9mGcZqmSl+DlJmWfHXTuI9V8oB2evGsQUtszCl67+OxWjBKpeOnYwox9Jpmt/J6VhpeRCYqow==} + /@rollup/rollup-win32-ia32-msvc@4.34.4: + resolution: {integrity: sha512-5g7E2PHNK2uvoD5bASBD9aelm44nf1w4I5FEI7MPHLWcCSrR8JragXZWgKPXk5i2FU3JFfa6CGZLw2RrGBHs2Q==} cpu: [ia32] os: [win32] requiresBuild: true optional: true - /@rollup/rollup-win32-x64-msvc@4.34.3: - resolution: {integrity: sha512-CUypcYP31Q8O04myV6NKGzk9GVXslO5EJNfmARNSzLF2A+5rmZUlDJ4et6eoJaZgBT9wrC2p4JZH04Vkic8HdQ==} + /@rollup/rollup-win32-x64-msvc@4.34.4: + resolution: {integrity: sha512-p0scwGkR4kZ242xLPBuhSckrJ734frz6v9xZzD+kHVYRAkSUmdSLCIJRfql6H5//aF8Q10K+i7q8DiPfZp0b7A==} cpu: [x64] os: [win32] requiresBuild: true @@ -7620,7 +7620,7 @@ packages: storybook: 8.5.3(prettier@3.4.2) dev: true - /@storybook/svelte-vite@8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14): + /@storybook/svelte-vite@8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss-load-config@4.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14): resolution: {integrity: sha512-FN2mNSECoZexvKjf5kCuJ2gtIvy1ojryiTHynWGOxzcOqiy172sF+XqUBQvQXgMdA2gPWlDC1KBxrAAnepwyVQ==} engines: {node: '>=18.0.0'} peerDependencies: @@ -7675,7 +7675,7 @@ packages: - supports-color dev: true - /@storybook/sveltekit@8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14): + /@storybook/sveltekit@8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss-load-config@4.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14): resolution: {integrity: sha512-wfHMi7lytOwPAkw5w74uLIYAQRU2fyqvz3ScQdKIoXnMChN2zC/2btpMbCBSY9SRmWtfUON2YyTt/NCvA6VS8A==} engines: {node: '>=18.0.0'} peerDependencies: @@ -7686,7 +7686,7 @@ packages: '@storybook/addon-actions': 8.5.3(storybook@8.5.3) '@storybook/builder-vite': 8.5.3(storybook@8.5.3)(vite@5.4.14) '@storybook/svelte': 8.5.3(storybook@8.5.3)(svelte@4.2.19) - '@storybook/svelte-vite': 8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14) + '@storybook/svelte-vite': 8.5.3(@sveltejs/vite-plugin-svelte@3.0.2)(postcss-load-config@4.0.2)(postcss@8.5.1)(storybook@8.5.3)(svelte@4.2.19)(vite@5.4.14) storybook: 8.5.3(prettier@3.4.2) svelte: 4.2.19 vite: 5.4.14(@types/node@20.11.28) @@ -8533,8 +8533,8 @@ packages: '@types/node': 22.13.1 dev: true - /@types/mssql@9.1.6: - resolution: {integrity: sha512-1JxvEgzVPtBkDOGjzuhsoYxjb4sKrcMC4V5NanUVSZMlXG4ksoZUpjY0m4gjpwfjZ3h22rJ6n0gTJ9l100H5wg==} + /@types/mssql@9.1.7: + resolution: {integrity: sha512-eIOEe78nuSW5KctDHImDhLZ9a+jV/z/Xs5RBhcG/jrk+YWqhdNmzBmHVWV7aWQ5fW+jbIGtX6Ph+bbVqfhzafg==} dependencies: '@types/node': 22.13.1 tarn: 3.0.2 @@ -8990,7 +8990,7 @@ packages: resolution: {integrity: sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 + vite: '>=6.0.0' peerDependenciesMeta: msw: optional: true @@ -10090,7 +10090,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001697 - electron-to-chromium: 1.5.92 + electron-to-chromium: 1.5.93 node-releases: 2.0.19 update-browserslist-db: 1.1.2(browserslist@4.24.4) @@ -11397,8 +11397,8 @@ packages: /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - /electron-to-chromium@1.5.92: - resolution: {integrity: sha512-BeHgmNobs05N1HMmMZ7YIuHfYBGlq/UmvlsTgg+fsbFs9xVMj+xJHFg19GN04+9Q+r8Xnh9LXqaYIyEWElnNgQ==} + /electron-to-chromium@1.5.93: + resolution: {integrity: sha512-M+29jTcfNNoR9NV7la4SwUqzWAxEwnc7ThA5e1m6LRSotmpfpCpLcIfgtSCVL+MllNLgAyM/5ru86iMRemPzDQ==} /emittery@0.10.2: resolution: {integrity: sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==} @@ -15399,8 +15399,8 @@ packages: yargs-unparser: 2.0.0 dev: true - /mock-fs@5.4.1: - resolution: {integrity: sha512-sz/Q8K1gXXXHR+qr0GZg2ysxCRr323kuN10O7CtQjraJsFDJ4SJ+0I5MzALz7aRp9lHk8Cc/YdsT95h9Ka1aFw==} + /mock-fs@5.5.0: + resolution: {integrity: sha512-d/P1M/RacgM3dB0sJ8rjeRNXxtapkPCUnMGmIN0ixJ16F/E4GUZCvWcSGfWGz8eaXYvn1s9baUwNjI4LOPEjiA==} engines: {node: '>=12.0.0'} dev: true @@ -15795,6 +15795,10 @@ packages: engines: {node: '>= 6'} dev: false + /object-hash@3.0.0: + resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} + engines: {node: '>= 6'} + /object-inspect@1.13.4: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} engines: {node: '>= 0.4'} @@ -17204,32 +17208,32 @@ packages: dependencies: glob: 7.2.3 - /rollup@4.34.3: - resolution: {integrity: sha512-ORCtU0UBJyiAIn9m0llUXJXAswG/68pZptCrqxHG7//Z2DDzAUeyyY5hqf4XrsGlUxscMr9GkQ2QI7KTLqeyPw==} + /rollup@4.34.4: + resolution: {integrity: sha512-spF66xoyD7rz3o08sHP7wogp1gZ6itSq22SGa/IZTcUDXDlOyrShwMwkVSB+BUxFRZZCUYqdb3KWDEOMVQZxuw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.6 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.34.3 - '@rollup/rollup-android-arm64': 4.34.3 - '@rollup/rollup-darwin-arm64': 4.34.3 - '@rollup/rollup-darwin-x64': 4.34.3 - '@rollup/rollup-freebsd-arm64': 4.34.3 - '@rollup/rollup-freebsd-x64': 4.34.3 - '@rollup/rollup-linux-arm-gnueabihf': 4.34.3 - '@rollup/rollup-linux-arm-musleabihf': 4.34.3 - '@rollup/rollup-linux-arm64-gnu': 4.34.3 - '@rollup/rollup-linux-arm64-musl': 4.34.3 - '@rollup/rollup-linux-loongarch64-gnu': 4.34.3 - '@rollup/rollup-linux-powerpc64le-gnu': 4.34.3 - '@rollup/rollup-linux-riscv64-gnu': 4.34.3 - '@rollup/rollup-linux-s390x-gnu': 4.34.3 - '@rollup/rollup-linux-x64-gnu': 4.34.3 - '@rollup/rollup-linux-x64-musl': 4.34.3 - '@rollup/rollup-win32-arm64-msvc': 4.34.3 - '@rollup/rollup-win32-ia32-msvc': 4.34.3 - '@rollup/rollup-win32-x64-msvc': 4.34.3 + '@rollup/rollup-android-arm-eabi': 4.34.4 + '@rollup/rollup-android-arm64': 4.34.4 + '@rollup/rollup-darwin-arm64': 4.34.4 + '@rollup/rollup-darwin-x64': 4.34.4 + '@rollup/rollup-freebsd-arm64': 4.34.4 + '@rollup/rollup-freebsd-x64': 4.34.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.34.4 + '@rollup/rollup-linux-arm-musleabihf': 4.34.4 + '@rollup/rollup-linux-arm64-gnu': 4.34.4 + '@rollup/rollup-linux-arm64-musl': 4.34.4 + '@rollup/rollup-linux-loongarch64-gnu': 4.34.4 + '@rollup/rollup-linux-powerpc64le-gnu': 4.34.4 + '@rollup/rollup-linux-riscv64-gnu': 4.34.4 + '@rollup/rollup-linux-s390x-gnu': 4.34.4 + '@rollup/rollup-linux-x64-gnu': 4.34.4 + '@rollup/rollup-linux-x64-musl': 4.34.4 + '@rollup/rollup-win32-arm64-msvc': 4.34.4 + '@rollup/rollup-win32-ia32-msvc': 4.34.4 + '@rollup/rollup-win32-x64-msvc': 4.34.4 fsevents: 2.3.3 /rrweb-cssom@0.6.0: @@ -18532,12 +18536,12 @@ packages: jest-worker: 27.5.1 schema-utils: 4.3.0 serialize-javascript: 6.0.2 - terser: 5.38.0 + terser: 5.38.1 webpack: 5.97.1(webpack-cli@4.10.0) dev: true - /terser@5.38.0: - resolution: {integrity: sha512-a4GD5R1TjEeuCT6ZRiYMHmIf7okbCPEuhQET8bczV6FrQMMlFXA1n+G0KKjdlFCm3TEHV77GxfZB3vZSUQGFpg==} + /terser@5.38.1: + resolution: {integrity: sha512-GWANVlPM/ZfYzuPHjq0nxT+EbOEDDN3Jwhwdg1D8TU8oSkktp8w64Uq4auuGLxFSoNTRDncTq2hQHX1Ld9KHkA==} engines: {node: '>=10'} hasBin: true dependencies: @@ -19378,9 +19382,10 @@ packages: debug: 4.4.0 es-module-lexer: 1.6.0 pathe: 1.1.2 - vite: 5.4.14(@types/node@20.11.28) + vite: 6.1.0(@types/node@20.11.28) transitivePeerDependencies: - '@types/node' + - jiti - less - lightningcss - sass @@ -19389,6 +19394,8 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: true /vite-node@2.1.9(@types/node@20.11.28): @@ -19400,9 +19407,10 @@ packages: debug: 4.4.0 es-module-lexer: 1.6.0 pathe: 1.1.2 - vite: 5.4.14(@types/node@20.11.28) + vite: 6.1.0(@types/node@20.11.28) transitivePeerDependencies: - '@types/node' + - jiti - less - lightningcss - sass @@ -19411,6 +19419,8 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: true /vite-node@2.1.9(@types/node@22.13.1): @@ -19422,9 +19432,10 @@ packages: debug: 4.4.0 es-module-lexer: 1.6.0 pathe: 1.1.2 - vite: 5.4.14(@types/node@22.13.1) + vite: 6.1.0(@types/node@22.13.1) transitivePeerDependencies: - '@types/node' + - jiti - less - lightningcss - sass @@ -19433,8 +19444,35 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false + /vite-node@2.1.9(yaml@2.7.0): + resolution: {integrity: sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + dependencies: + cac: 6.7.14 + debug: 4.4.0 + es-module-lexer: 1.6.0 + pathe: 1.1.2 + vite: 6.1.0(yaml@2.7.0) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + dev: true + /vite@5.4.14(@types/node@20.11.28): resolution: {integrity: sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -19469,7 +19507,7 @@ packages: '@types/node': 20.11.28 esbuild: 0.21.5 postcss: 8.5.1 - rollup: 4.34.3 + rollup: 4.34.4 optionalDependencies: fsevents: 2.3.3 @@ -19507,7 +19545,7 @@ packages: '@types/node': 20.17.17 esbuild: 0.21.5 postcss: 8.5.1 - rollup: 4.34.3 + rollup: 4.34.4 optionalDependencies: fsevents: 2.3.3 @@ -19545,11 +19583,155 @@ packages: '@types/node': 22.13.1 esbuild: 0.21.5 postcss: 8.5.1 - rollup: 4.34.3 + rollup: 4.34.4 + optionalDependencies: + fsevents: 2.3.3 + dev: false + + /vite@6.1.0(@types/node@20.11.28): + resolution: {integrity: sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + dependencies: + '@types/node': 20.11.28 + esbuild: 0.24.2 + postcss: 8.5.1 + rollup: 4.34.4 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /vite@6.1.0(@types/node@22.13.1): + resolution: {integrity: sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + dependencies: + '@types/node': 22.13.1 + esbuild: 0.24.2 + postcss: 8.5.1 + rollup: 4.34.4 optionalDependencies: fsevents: 2.3.3 dev: false + /vite@6.1.0(yaml@2.7.0): + resolution: {integrity: sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + dependencies: + esbuild: 0.24.2 + postcss: 8.5.1 + rollup: 4.34.4 + yaml: 2.7.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + /vitefu@0.2.5(vite@5.4.14): resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} peerDependencies: @@ -19775,6 +19957,7 @@ packages: vite-node: 2.1.9 why-is-node-running: 2.3.0 transitivePeerDependencies: + - jiti - less - lightningcss - msw @@ -19784,6 +19967,8 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: true /vitest@2.1.9(@types/node@20.11.28): @@ -19833,6 +20018,7 @@ packages: vite-node: 2.1.9(@types/node@20.11.28) why-is-node-running: 2.3.0 transitivePeerDependencies: + - jiti - less - lightningcss - msw @@ -19842,6 +20028,8 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: true /vitest@2.1.9(@types/node@22.13.1): @@ -19891,6 +20079,7 @@ packages: vite-node: 2.1.9(@types/node@22.13.1) why-is-node-running: 2.3.0 transitivePeerDependencies: + - jiti - less - lightningcss - msw @@ -19900,8 +20089,70 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false + /vitest@2.1.9(yaml@2.7.0): + resolution: {integrity: sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': 2.1.9 + '@vitest/ui': 2.1.9 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + dependencies: + '@vitest/expect': 2.1.9 + '@vitest/mocker': 2.1.9(vite@5.4.14) + '@vitest/pretty-format': 2.1.9 + '@vitest/runner': 2.1.9 + '@vitest/snapshot': 2.1.9 + '@vitest/spy': 2.1.9 + '@vitest/utils': 2.1.9 + chai: 5.1.2 + debug: 4.4.0 + expect-type: 1.1.0 + magic-string: 0.30.17 + pathe: 1.1.2 + std-env: 3.8.0 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinypool: 1.0.2 + tinyrainbow: 1.2.0 + vite: 5.4.14(@types/node@20.11.28) + vite-node: 2.1.9(yaml@2.7.0) + why-is-node-running: 2.3.0 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + dev: true + /void-elements@3.1.0: resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} engines: {node: '>=0.10.0'} diff --git a/sites/docs/CHANGELOG.md b/sites/docs/CHANGELOG.md index e0fc00e08e..71ae61df6e 100644 --- a/sites/docs/CHANGELOG.md +++ b/sites/docs/CHANGELOG.md @@ -1,5 +1,26 @@ # evidence-docs +## 0.0.57 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 0.0.56 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/sdk@3.0.8 + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + - @evidence-dev/component-utilities@4.0.8 + - @evidence-dev/tailwind@3.0.8 + ## 0.0.55 ### Patch Changes diff --git a/sites/docs/package.json b/sites/docs/package.json index da95db8518..fdc0da0dfa 100644 --- a/sites/docs/package.json +++ b/sites/docs/package.json @@ -1,7 +1,7 @@ { "name": "my-evidence-project", "private": true, - "version": "0.0.55", + "version": "0.0.57", "scripts": { "build": "evidence build", "build:strict": "evidence build:strict", diff --git a/sites/example-project/CHANGELOG.md b/sites/example-project/CHANGELOG.md index b7309e52f4..61b5d3a673 100644 --- a/sites/example-project/CHANGELOG.md +++ b/sites/example-project/CHANGELOG.md @@ -1,5 +1,19 @@ # @evidence-dev/components +## 3.5.48 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/sdk@3.0.8 + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/component-utilities@4.0.8 + - @evidence-dev/universal-sql@2.2.9 + - @evidence-dev/tailwind@3.0.8 + ## 3.5.47 ### Patch Changes diff --git a/sites/example-project/package.json b/sites/example-project/package.json index b1174a4a0f..148021f8f2 100644 --- a/sites/example-project/package.json +++ b/sites/example-project/package.json @@ -1,6 +1,6 @@ { "name": "@evidence-dev/components", - "version": "3.5.47", + "version": "3.5.48", "scripts": { "dev": "cross-env EVIDENCE_PAGES_DIR=./src/pages EVIDENCE_DATA_DIR=./static/data EVIDENCE_DATA_URL_PREFIX=static/data vite dev --port 3000", "build": "cross-env EVIDENCE_PAGES_DIR=./src/pages NODE_OPTIONS=--max-old-space-size=8192 vite build", diff --git a/sites/example-project/src/pages/api/[...route]/evidencemeta.json/+server.js b/sites/example-project/src/pages/api/[...route]/evidencemeta.json/+server.js index e13b49a3ac..3bee2da692 100644 --- a/sites/example-project/src/pages/api/[...route]/evidencemeta.json/+server.js +++ b/sites/example-project/src/pages/api/[...route]/evidencemeta.json/+server.js @@ -27,6 +27,10 @@ export const entries = async () => { /** @type {import("./$types").RequestHandler} */ export async function GET({ params: { route } }) { + if (route === '/settings') { + const queries = []; + return json({ queries }); + } let routesDir; if ((await fs.readdir(process.cwd())).includes('src')) { routesDir = path.join('src', 'pages'); // example project wackiness diff --git a/sites/example-project/src/pages/settings/+page.server.js b/sites/example-project/src/pages/settings/+page.server.js index f74ef15d07..dcaec12a1d 100644 --- a/sites/example-project/src/pages/settings/+page.server.js +++ b/sites/example-project/src/pages/settings/+page.server.js @@ -1,3 +1,5 @@ +// @ts-check + import { dev } from '$app/environment'; import { fail } from '@sveltejs/kit'; import { logQueryEvent } from '@evidence-dev/telemetry'; @@ -39,7 +41,7 @@ export const load = async () => { export const actions = { updateSource: async (e) => { // editSourceConfig, refactor to use logic without prompts - const formData = Object.fromEntries(await e.request.formData()); + const formData = Object.fromEntries(/** @type {any} */ (await e.request.formData())); const source = formData.source ? JSON.parse(formData.source) : null; if (!source) { @@ -70,7 +72,7 @@ export const actions = { }, testSource: async (e) => { // loadSourcePlugins().getByPackageName('')[1].testConnection - const formData = Object.fromEntries(await e.request.formData()); + const formData = Object.fromEntries(/** @type {any} */ (await e.request.formData())); if (!formData?.source) { return fail(400, { message: "Missing required field 'source'" }); } @@ -87,9 +89,7 @@ export const actions = { return fail(400, r.error.format()); } const datasourcePlugins = await loadSourcePlugins(); - const [pack, pluginSpec] = datasourcePlugins.getBySource(r.data.type); - - console.log(r, pack, pluginSpec, datasourcePlugins); + const [_, pluginSpec] = datasourcePlugins.getBySource(r.data.type); if (!pluginSpec) { logQueryEvent('db-plugin-unvailable', r.data.type, undefined, undefined, dev); @@ -102,7 +102,6 @@ export const actions = { return fail(200, { message: valid.reason }); } else { logQueryEvent('db-connection-success', r.data.type, r.data.name, undefined, dev); - return { success: true }; diff --git a/sites/example-project/src/pages/settings/+page.svelte b/sites/example-project/src/pages/settings/+page.svelte index 67fe1b8e95..f7fcfc5803 100644 --- a/sites/example-project/src/pages/settings/+page.svelte +++ b/sites/example-project/src/pages/settings/+page.svelte @@ -7,9 +7,7 @@ $: ({ settings, customFormattingSettings, sources, plugins } = data); import { dev } from '$app/environment'; - import { - VersionControlPanel, DeploySettingsPanel, FormattingSettingsPanel, TelemetrySettingsPanel, @@ -18,14 +16,98 @@ {#if dev} -
- - - - - +
+
+ ← Home +

Project Settings

+
+
+ +
+
+ +
+
+
+

Sources

+

+ Sources connect your Evidence project to databases, local files, and APIs. Each source + creates a directory in your project under /sources where + you can add queries. + + Learn more about sources. + +

+
+ +
+
+
+

Deployment

+

+ Evidence projects can be deployed to a variety of cloud environments. The easiest way + to deploy your project with authentication, scheduled updates, and a custom domain is + with Evidence Cloud. + Learn more about deployment. +

+
+ +
+
+
+

Value Formatting

+

+ Evidence supports built-in formats and Excel-style formats. You can apply these + formats using component props or SQL format tags. + + Learn more about formatting. + +

+
+ +
+
+
+

Telemetry

+

+ The Evidence CLI collects anonymous usage data to help us understand how often the + tool is being used. + View telemetry source code. + +

+
+ +
+
+
-
{:else}

Settings are only available in development mode.

{/if} diff --git a/sites/test-env/CHANGELOG.md b/sites/test-env/CHANGELOG.md index 5770a6f0ba..f18c4ad90d 100644 --- a/sites/test-env/CHANGELOG.md +++ b/sites/test-env/CHANGELOG.md @@ -1,5 +1,26 @@ # evidence-test-environment +## 3.0.85 + +### Patch Changes + +- Updated dependencies [b0c5f5c20] + - @evidence-dev/evidence@40.0.9 + +## 3.0.84 + +### Patch Changes + +- Updated dependencies [17eb07aff] +- Updated dependencies [9179782aa] +- Updated dependencies [bcb0bf5dd] +- Updated dependencies [59d6755a8] + - @evidence-dev/sdk@3.0.8 + - @evidence-dev/core-components@5.1.2 + - @evidence-dev/evidence@40.0.8 + - @evidence-dev/component-utilities@4.0.8 + - @evidence-dev/tailwind@3.0.8 + ## 3.0.83 ### Patch Changes diff --git a/sites/test-env/package.json b/sites/test-env/package.json index 001910d3cb..0ea2d8c512 100644 --- a/sites/test-env/package.json +++ b/sites/test-env/package.json @@ -1,6 +1,6 @@ { "name": "evidence-test-environment", - "version": "3.0.83", + "version": "3.0.85", "private": true, "scripts": { "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 evidence build",