Skip to content

Commit 17a118e

Browse files
committed
merge main
2 parents 9fd45e5 + 76b49d3 commit 17a118e

File tree

193 files changed

+12347
-19768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+12347
-19768
lines changed

.babelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ permissions:
55
on:
66
push:
77
branches:
8-
- "**"
8+
- main
99
pull_request:
1010
branches:
11-
- "**"
11+
- main
1212
workflow_dispatch:
1313

1414
jobs:
@@ -17,11 +17,10 @@ jobs:
1717
strategy:
1818
matrix:
1919
node-version:
20-
- 18.x
2120
- 20.x
2221
- 22.x
2322
steps:
24-
- uses: actions/checkout@v5
23+
- uses: actions/checkout@v6
2524
- name: Use Node.js ${{ matrix.node-version }}
2625
uses: actions/setup-node@v6
2726
with:
@@ -32,7 +31,7 @@ jobs:
3231
- run: npm run doc
3332
- name: Save build
3433
if: matrix.node-version == '20.x'
35-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@v6
3635
with:
3736
name: build
3837
path: |
@@ -45,7 +44,7 @@ jobs:
4544
runs-on: ubuntu-latest
4645
if: github.ref == 'refs/heads/main'
4746
steps:
48-
- uses: actions/download-artifact@v5
47+
- uses: actions/download-artifact@v7
4948
with:
5049
name: build
5150
- uses: peaceiris/actions-gh-pages@v4
@@ -69,18 +68,18 @@ jobs:
6968
needs: build
7069
runs-on: ubuntu-latest
7170
steps:
72-
- uses: actions/download-artifact@v5
71+
- uses: actions/download-artifact@v7
7372
with:
7473
name: build
7574
- uses: actions/setup-node@v6
7675
with:
7776
node-version: 20.x
78-
- uses: rlespinasse/github-slug-action@v3.x
77+
- uses: rlespinasse/github-slug-action@v4.x
7978
- name: Append commit hash to package version
8079
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
8180
- name: Disable pre- and post-publish actions
8281
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
83-
- uses: JS-DevTools/npm-publish@v4.1.0
82+
- uses: JS-DevTools/npm-publish@v4.1.4
8483
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
8584
with:
8685
token: ${{ secrets.NPM_TOKEN }}
@@ -91,15 +90,15 @@ jobs:
9190
runs-on: ubuntu-latest
9291
if: github.ref == 'refs/heads/main'
9392
steps:
94-
- uses: actions/download-artifact@v5
93+
- uses: actions/download-artifact@v7
9594
with:
9695
name: build
9796
- uses: actions/setup-node@v6
9897
with:
9998
node-version: 20.x
10099
- name: Disable pre- and post-publish actions
101100
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
102-
- uses: JS-DevTools/npm-publish@v4.1.0
101+
- uses: JS-DevTools/npm-publish@v4.1.4
103102
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
104103
with:
105104
token: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ src/versionInfo.ts
55
.idea
66
.vscode
77
coverage
8-
Documentation/api
8+
docs/api
99
examples/storybook
1010
.history/
11-
Documentation/form-examples/main.js
11+
docs/form-examples/solid-ui.js

.npmignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.storybook/main.js

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
export default {
2-
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
2+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
33

44
addons: [
55
'@storybook/addon-links',
6-
'@storybook/addon-actions',
7-
'@storybook/addon-essentials'
6+
'@storybook/addon-essentials',
7+
'@storybook/addon-mdx-gfm',
8+
'@storybook/addon-webpack5-compiler-swc'
89
],
910

1011
framework: {
@@ -14,5 +15,28 @@ export default {
1415

1516
docs: {
1617
autodocs: true
18+
},
19+
webpackFinal: async (config) => {
20+
// For Storybook, we DON'T externalize rdflib and solid-logic
21+
// Instead, we let webpack bundle them from node_modules
22+
23+
// Handle Node.js modules for browser
24+
config.resolve.fallback = {
25+
...config.resolve.fallback,
26+
path: false,
27+
fs: false,
28+
crypto: false,
29+
stream: false,
30+
util: false,
31+
buffer: false
32+
}
33+
34+
// Alias $rdf to rdflib for solid-logic compatibility
35+
config.resolve.alias = {
36+
...config.resolve.alias,
37+
$rdf: 'rdflib'
38+
}
39+
40+
return config
1741
}
1842
}

.storybook/preview.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
export const parameters = {
2-
actions: { argTypesRegex: '^on[A-Z].*' },
1+
// For backward compatibility, provide rdflib and solid-logic as globals
2+
import * as rdflib from 'rdflib'
3+
import * as solidLogic from 'solid-logic'
4+
5+
// Some legacy code might expect these as globals
6+
if (typeof window !== 'undefined') {
7+
window.$rdf = rdflib
8+
window.SolidLogic = solidLogic
39
}
10+
11+
export const parameters = {}

LICENSE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright 2019 - present
1+
MIT License
2+
3+
Copyright (c) 2019 Solid
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
46
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

0 commit comments

Comments
 (0)