Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
66 changes: 66 additions & 0 deletions .github/workflows/generator-generic-ossf-slsa3-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow lets you generate SLSA provenance file for your project.
# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
# https://github.com/slsa-framework/slsa-github-generator.
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.

name: SLSA generic generator
on:
workflow_dispatch:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
outputs:
digests: ${{ steps.hash.outputs.digests }}

steps:
- uses: actions/checkout@v4

# ========================================================
#
# Step 1: Build your artifacts.
#
# ========================================================
- name: Build artifacts
run: |
# These are some amazing artifacts.
echo "artifact1" > artifact1
echo "artifact2" > artifact2
# ========================================================
#
# Step 2: Add a step to generate the provenance subjects
# as shown below. Update the sha256 sum arguments
# to include all binaries that you generate
# provenance for.
#
# ========================================================
- name: Generate subject for provenance
id: hash
run: |
set -euo pipefail
# List the artifacts the provenance will refer to.
files=$(ls artifact*)
# Generate the subjects (base64 encoded).
echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
provenance:
needs: [build]
permissions:
actions: read # To read the workflow path.
id-token: write # To sign the provenance.
contents: write # To add assets to a release.
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0
with:
base64-subjects: "${{ needs.build.outputs.digests }}"
upload-assets: true # Optional: Upload to a new release
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
/docs/.cache/
/docs/public/
/examples/*/build
/packages/blocks-docs/docs.json
/packages/blocks-docs/docs-base-blocks.json
/packages/blocks-docs/docs-interface-blocks.json
/packages/cli-next/test/fixtures/
/packages/esbuild-bundler/test/fixtures/
/packages/webpack-bundler/test/fixtures/
flow-typed
.nyc_output
.test-tmp
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
},
"devDependencies": {
"husky": "^3.1.0",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"react": "^16.14.0",
"react-dom": "^16.9.24",
"prettier": "^3.6.2",
"pretty-quick": "^4.2.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"release-it": "17.3.0"
},
"resolutions": {
"@types/react": "^16.14.0",
"@types/react-dom": "^16.9.24",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"**/mocha/mkdirp": "^0.5.6",
Expand All @@ -40,6 +40,7 @@
"http-cache-semantics": "^4.1.1",
"parse-url": "^8.1.0",
"psl": "^1.10.0",
"trim": "1.0.1",
"typescript": "^5.4.5"
},
"scripts": {
Expand All @@ -53,5 +54,6 @@
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
4 changes: 0 additions & 4 deletions packages/sdk/.eslintignore

This file was deleted.

159 changes: 0 additions & 159 deletions packages/sdk/.eslintrc.js

This file was deleted.

File renamed without changes.
2 changes: 0 additions & 2 deletions packages/sdk/.storybook/addons.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/sdk/.storybook/config.js

This file was deleted.

58 changes: 0 additions & 58 deletions packages/sdk/.storybook/preview-head.html

This file was deleted.

8 changes: 0 additions & 8 deletions packages/sdk/.storybook/webpack.config.js

This file was deleted.

11 changes: 10 additions & 1 deletion packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ Not every commit needs to result in a change to this file (e.g. docs and chore c
commit that affects the code in a way that consumers might care about should include edits to the
'Unreleased' section though. Breaking changes should be prefixed with `**BREAKING:**`.

## [Unreleased](https://github.com/airtable/blocks/compare/@airtable/blocks@1.18.2...HEAD)
## [Unreleased](https://github.com/airtable/blocks/compare/@airtable/blocks@1.19.0...HEAD)

No changes.

## [1.19.0](https://github.com/airtable/blocks/compare/@airtable/blocks@1.18.2...@airtable/blocks@1.19.0) - 2025-06-06

- Add `useColorScheme` React hook, making a user's light/dark mode preference available in
JavaScript. Airtable will also set
[`color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme) on extension
iframes, so
[`prefers-color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
media queries will match the user's Airtable preferences before browser-wide settings.

## [1.18.2](https://github.com/airtable/blocks/compare/@airtable/blocks@1.18.1...@airtable/blocks@1.18.2) - 2024-09-25

- Upgrade Typescript version to 5.4.5
Expand Down
7 changes: 0 additions & 7 deletions packages/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ To get started, check out the
questions, feedback, or feature requests, we encourage you to post in the
[community forum](https://community.airtable.com/c/developers/custom-blocks-beta/54).

This git repository contains a few related projects:

- [The sdk itself](./packages/sdk) - this is what you use when building your extension!
- [A blocks testing framework](./packages/blocks-testing) - this is used to help test your
extension.
- [The new Blocks CLI](./packages/cli-next) - this is used to run your extension!

By using the software, you accept and agree to abide by terms of the developer agreement below:

## Developer agreement
Expand Down
Loading