From f2355323397ffd60e700162591d11c6bb5fb6e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C3=ABl=20Guilloux?= Date: Sun, 15 Oct 2023 20:58:51 +0200 Subject: [PATCH] fix(packages): add provenance --- .github/workflows/ci.yml | 4 +- integrations/astro/package.json | 8 + integrations/astro/src/index.ts | 1 - integrations/language-server/package.json | 12 +- integrations/nuxt/package.json | 8 + integrations/pinceau/package.json | 8 + integrations/react/package.json | 8 + integrations/react/src/transforms/variants.ts | 2 - integrations/repl/package.json | 8 + integrations/repl/src/components/Dropdown.vue | 39 +- integrations/repl/src/components/Icon.vue | 6 +- integrations/repl/src/components/Logo.vue | 111 +- integrations/repl/src/components/Repl.vue | 20 +- integrations/repl/src/components/TopBar.vue | 135 +- .../repl/src/components/VersionSelect.vue | 22 +- .../src/components/editor/EditorContainer.vue | 2 - .../src/components/editor/FileSelector.vue | 2 +- .../components/editor/FrameworkSelector.vue | 12 +- .../repl/src/components/editor/types.ts | 2 +- .../repl/src/components/monaco/cdn.ts | 2 +- .../repl/src/components/monaco/env.ts | 1 - .../monaco/grammars/JavaScript.tmLanguage.js | 6846 ++++++++--------- .../monaco/grammars/TypeScript.tmLanguage.js | 6542 ++++++++-------- .../monaco/grammars/html.tmLanguage.js | 3218 ++++---- .../monaco/grammars/vue.tmLanguage.js | 1158 +-- .../src/components/monaco/volar.worker.ts | 5 +- integrations/repl/src/store/index.ts | 4 +- integrations/repl/src/store/react.ts | 4 +- integrations/repl/test/App.vue | 2 +- integrations/repl/vite.config.ts | 4 +- integrations/svelte/package.json | 8 + integrations/volar/package.json | 8 + integrations/vscode/package.json | 8 +- integrations/vue/package.json | 8 + integrations/vue/src/transforms/add-class.ts | 2 +- package.json | 16 +- packages/configs/package.json | 8 + packages/configs/tsconfig.base.json | 14 +- packages/configs/tsconfig.paths.json | 4 +- packages/core/package.json | 8 + packages/integration/package.json | 8 + packages/palette/package.json | 8 + packages/palette/vite.config.base.ts | 1 - packages/palette/vite.config.react.ts | 2 - packages/runtime/package.json | 8 + packages/stringify/package.json | 8 + packages/style/package.json | 8 + packages/style/src/types/css.ts | 2 +- packages/theme/package.json | 8 + 49 files changed, 9249 insertions(+), 9084 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c817c6ef..f8ba4ba6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: ["main"] + branches: [main] pull_request: types: [opened, synchronize] @@ -26,7 +26,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - cache: 'pnpm' + cache: pnpm - run: corepack enable diff --git a/integrations/astro/package.json b/integrations/astro/package.json index 4359eb5f..39bc27e0 100644 --- a/integrations/astro/package.json +++ b/integrations/astro/package.json @@ -3,6 +3,14 @@ "type": "module", "private": true, "version": "1.0.0-beta.3", + "homepage": "https://github.com/Tahul/pinceau#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/Tahul/pinceau.git" + }, + "bugs": { + "url": "https://github.com/Tahul/pinceau/issues" + }, "exports": { ".": { "types": "./dist/index.d.ts", diff --git a/integrations/astro/src/index.ts b/integrations/astro/src/index.ts index bbb4162c..f2e60775 100644 --- a/integrations/astro/src/index.ts +++ b/integrations/astro/src/index.ts @@ -1,4 +1,3 @@ -import type { PinceauPluginsOptions } from '@pinceau/core' import type { PinceauAstroOptions } from './types' export * from './types' diff --git a/integrations/language-server/package.json b/integrations/language-server/package.json index ebbaf87a..f3ce718b 100644 --- a/integrations/language-server/package.json +++ b/integrations/language-server/package.json @@ -1,14 +1,18 @@ { "name": "@pinceau/language-server", "version": "1.0.0-beta.3", + "homepage": "https://github.com/Tahul/pinceau#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/Tahul/pinceau.git" + }, + "bugs": { + "url": "https://github.com/Tahul/pinceau/issues" + }, "type": "module", "description": "Pinceau language server providing hints on tokens values and other features.", "author": "Tahul ", "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/Tahul/pinceau-vscode.git" - }, "main": "dist/index.js", "scripts": { "stub": "unbuild --stub", diff --git a/integrations/nuxt/package.json b/integrations/nuxt/package.json index 717057c2..ee5554a7 100644 --- a/integrations/nuxt/package.json +++ b/integrations/nuxt/package.json @@ -1,6 +1,14 @@ { "name": "@pinceau/nuxt", "version": "1.0.0-beta.3", + "homepage": "https://github.com/Tahul/pinceau#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/Tahul/pinceau.git" + }, + "bugs": { + "url": "https://github.com/Tahul/pinceau/issues" + }, "type": "module", "exports": { ".": { diff --git a/integrations/pinceau/package.json b/integrations/pinceau/package.json index 7b4e72e8..9569a401 100644 --- a/integrations/pinceau/package.json +++ b/integrations/pinceau/package.json @@ -2,6 +2,14 @@ "name": "pinceau", "type": "module", "version": "1.0.0-beta.3", + "homepage": "https://github.com/Tahul/pinceau#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/Tahul/pinceau.git" + }, + "bugs": { + "url": "https://github.com/Tahul/pinceau/issues" + }, "exports": { ".": { "types": "./dist/index.d.ts", diff --git a/integrations/react/package.json b/integrations/react/package.json index 17eb3ea1..db67783c 100644 --- a/integrations/react/package.json +++ b/integrations/react/package.json @@ -2,6 +2,14 @@ "name": "@pinceau/react", "type": "module", "version": "1.0.0-beta.3", + "homepage": "https://github.com/Tahul/pinceau#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/Tahul/pinceau.git" + }, + "bugs": { + "url": "https://github.com/Tahul/pinceau/issues" + }, "exports": { ".": { "types": "./dist/index.d.ts", diff --git a/integrations/react/src/transforms/variants.ts b/integrations/react/src/transforms/variants.ts index 0f070158..d4ab5a00 100644 --- a/integrations/react/src/transforms/variants.ts +++ b/integrations/react/src/transforms/variants.ts @@ -1,5 +1,3 @@ -import type { PinceauTransformContext } from '@pinceau/core' -import { getCharAfterLastImport, parseAst } from '@pinceau/core/utils' import type { Variants } from '@pinceau/style' export interface PropOptions { diff --git a/integrations/repl/package.json b/integrations/repl/package.json index 539364d6..91759a54 100644 --- a/integrations/repl/package.json +++ b/integrations/repl/package.json @@ -2,6 +2,14 @@ "name": "@pinceau/repl", "type": "module", "version": "1.0.0-beta.3", + "homepage": "https://github.com/Tahul/pinceau#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/Tahul/pinceau.git" + }, + "bugs": { + "url": "https://github.com/Tahul/pinceau/issues" + }, "description": "Pinceau component for editing Pinceau components.", "exports": { ".": { diff --git a/integrations/repl/src/components/Dropdown.vue b/integrations/repl/src/components/Dropdown.vue index df0ef248..10a988a6 100644 --- a/integrations/repl/src/components/Dropdown.vue +++ b/integrations/repl/src/components/Dropdown.vue @@ -1,30 +1,17 @@ - - + diff --git a/integrations/repl/src/components/Icon.vue b/integrations/repl/src/components/Icon.vue index 6eef67ff..8c89bc3e 100644 --- a/integrations/repl/src/components/Icon.vue +++ b/integrations/repl/src/components/Icon.vue @@ -3,10 +3,12 @@ + fill="#717175" + /> + fill="#717175" + /> diff --git a/integrations/repl/src/components/Logo.vue b/integrations/repl/src/components/Logo.vue index ba26aedd..b3d7ec03 100644 --- a/integrations/repl/src/components/Logo.vue +++ b/integrations/repl/src/components/Logo.vue @@ -3,107 +3,144 @@ + fill="white" + /> + fill="url(#paint0_radial_297_500)" + /> + fill="url(#paint1_radial_297_500)" + /> + fill="white" + /> + fill="url(#paint2_radial_297_500)" + /> + fill="url(#paint3_radial_297_500)" + /> + fill="white" + /> + fill="url(#paint4_radial_297_500)" + /> + fill="url(#paint5_radial_297_500)" + /> + fill="white" + /> + fill="url(#paint6_radial_297_500)" + /> + fill="url(#paint7_radial_297_500)" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> - + - + - + - + - + - + - + - + - + diff --git a/integrations/repl/src/components/Repl.vue b/integrations/repl/src/components/Repl.vue index 7887c75f..d2d0db7a 100644 --- a/integrations/repl/src/components/Repl.vue +++ b/integrations/repl/src/components/Repl.vue @@ -1,7 +1,7 @@ + - - - diff --git a/integrations/repl/src/components/VersionSelect.vue b/integrations/repl/src/components/VersionSelect.vue index e8df5a0e..5ceb4a50 100644 --- a/integrations/repl/src/components/VersionSelect.vue +++ b/integrations/repl/src/components/VersionSelect.vue @@ -2,14 +2,14 @@ import { onMounted, ref } from 'vue' import Dropdown from './Dropdown.vue' -const versions = ref<{ value: string; title: string; }[]>() - -const version = defineModel() const props = defineProps<{ pkg: string label: string }>() +const versions = ref<{ value: string; title: string }[]>() + +const version = defineModel() async function fetchVersions(): Promise { const res = await fetch(`https://data.jsdelivr.com/v1/package/npm/${props.pkg}`) const { versions } = (await res.json()) as { versions: string[] } @@ -24,7 +24,8 @@ async function fetchVersions(): Promise { if (isInPreRelease) { filteredVersions.push(v) } - } else { + } + else { filteredVersions.push(v) isInPreRelease = false } @@ -33,11 +34,14 @@ async function fetchVersions(): Promise { } } return filteredVersions - } else if (props.pkg === 'typescript') { + } + else if (props.pkg === 'typescript') { return ['latest', ...versions.filter(v => !v.includes('dev') && !v.includes('insiders'))] - } else if (props.pkg === 'react') { + } + else if (props.pkg === 'react') { return versions.filter(v => !v.includes('experimental') && !v.includes('canary') && !v.includes('next') && !v.includes('beta') && !v.includes('alpha') && !v.includes('0.0.0')) - } else if (props.pkg === 'pinceau') { + } + else if (props.pkg === 'pinceau') { return ['latest', ...versions] } return versions @@ -48,7 +52,7 @@ onMounted(() => { versions.value = fetchedVersions.map((v) => { return { title: v, - value: v + value: v, } }) }) @@ -57,6 +61,6 @@ onMounted(() => { diff --git a/integrations/repl/src/components/editor/EditorContainer.vue b/integrations/repl/src/components/editor/EditorContainer.vue index 9f1ebb34..daf6d95f 100644 --- a/integrations/repl/src/components/editor/EditorContainer.vue +++ b/integrations/repl/src/components/editor/EditorContainer.vue @@ -4,7 +4,6 @@ import Message from '../Message.vue' import { debounce } from '../../utils' import type { Store } from '../../store' import FileSelector from './FileSelector.vue' -import Toolbar from './Toolbar.vue' import type { EditorComponentType } from './types' const props = defineProps<{ @@ -32,7 +31,6 @@ function getItem() { watch(showMessage, () => { setItem() }) -