Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live demo #1

Merged
merged 178 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
f02e202
Initial commit
razor-x Jan 29, 2023
ca6d7fc
Rename and reset version
razor-x Feb 22, 2023
d49de11
Update LICENSE
razor-x Feb 22, 2023
80ea707
Do not publish to npm
razor-x Feb 22, 2023
c54e804
Publish as restricted
razor-x Feb 22, 2023
608ec4d
Update GitHub action instructions
razor-x Feb 22, 2023
c8010e4
Update contributing section
razor-x Feb 22, 2023
cb40aa8
Use gh workflow for initial version
razor-x Feb 22, 2023
e50835f
Remove CHANGELOG
razor-x Feb 22, 2023
11c3ba6
Update publishing instruction
razor-x Feb 22, 2023
90fad68
Add CODEOWNERS file
razor-x Feb 22, 2023
c5ce4c6
Support installing private packages
razor-x Feb 22, 2023
43f6790
Update Quickstart instructions
razor-x Feb 28, 2023
e421311
Add semantic-release
razor-x Feb 22, 2023
fda050e
Generate release notes
razor-x Feb 22, 2023
c7070b3
Add stalebot config
razor-x Mar 29, 2023
bf5c6de
Add Codespaces to feature list
razor-x Mar 29, 2023
910e9b4
Update example package name value
razor-x Mar 29, 2023
7f6d4c3
Update example name in README
razor-x Mar 29, 2023
0a4b8ff
Update recommended upstream name to makenew
razor-x Mar 29, 2023
0e568a7
Use Angular Commit Message Conventions
razor-x Mar 29, 2023
50fbc5b
Add DPDM dependency check
razor-x Mar 29, 2023
85bea0b
Update Typecheck step name
razor-x Mar 29, 2023
0cc8b92
1.0.0
seambot Mar 29, 2023
3950889
Revert "Publish as restricted"
razor-x Mar 30, 2023
6dbf6ed
Revert "Do not publish to npm"
razor-x Mar 30, 2023
46464cd
Revert "Support installing private packages"
razor-x Mar 30, 2023
80741cf
Use MIT License
razor-x Mar 30, 2023
1e95830
Remove conflicting sort-imports rules
razor-x Apr 4, 2023
3974f42
1.0.1
seambot Apr 4, 2023
80ab333
Merge branch 'main' into public
razor-x Apr 4, 2023
002eac4
Replace makenew boilerplate
razor-x Apr 4, 2023
341d9d1
Remove landlubber and examples
razor-x Apr 4, 2023
5a8a8b4
Add react
razor-x Apr 4, 2023
90c0991
Add react eslint support
razor-x Apr 4, 2023
feb2577
Use es2022 module and target
razor-x Apr 4, 2023
9cdfccd
Add seamapi
razor-x Apr 4, 2023
4392c39
Use moduleResolution nodenext
razor-x Apr 4, 2023
16ae05b
Use plugin:react/jsx-runtime
razor-x Apr 4, 2023
b4b683d
Add SeamProvider
razor-x Apr 4, 2023
3ce791b
Refine SeamProvider
razor-x Apr 4, 2023
4cd39de
Call useClientSession with useQuery
razor-x Apr 4, 2023
00e016c
Move useSeam to modules
razor-x Apr 4, 2023
e877a01
Add exports
razor-x Apr 4, 2023
1b509c0
Make context creation safe
razor-x Apr 4, 2023
8948dd6
Add seam-client-stub
razor-x Apr 4, 2023
737add8
Move hooks to lib/hooks
razor-x Apr 4, 2023
2cb43c8
Remove queryKey namespace
razor-x Apr 4, 2023
e748ce9
Export SeamProviderProps interface
razor-x Apr 4, 2023
e1785c8
Export Device interface
razor-x Apr 4, 2023
2f0f15b
Add useDevices hook
razor-x Apr 4, 2023
3308e24
Prefer ReactElement
razor-x Apr 4, 2023
d4e96ef
Add DeviceList component
razor-x Apr 4, 2023
22cb945
Export components
razor-x Apr 5, 2023
4a40461
Fix key check
razor-x Apr 5, 2023
1873386
Add basic examples
razor-x Apr 5, 2023
b163188
Remove AVA and todo module
razor-x Apr 5, 2023
e675d49
Move vite config inside example
razor-x Apr 5, 2023
f3d7bd3
Use example:basic as start command
razor-x Apr 5, 2023
aba6a2f
Run format
razor-x Apr 5, 2023
1bf5d21
Update example description
razor-x Apr 5, 2023
3763985
Add base vite config
razor-x Apr 5, 2023
6940f14
Use ts for vite config
razor-x Apr 5, 2023
4433a4c
Disable semantic-release for now
razor-x Apr 5, 2023
49c35ec
Merge branch 'main' into ver/0
razor-x Apr 5, 2023
35b0973
Do not ignore d.ts files in src
razor-x Apr 5, 2023
604fcac
Do note use ts for vite config
razor-x Apr 5, 2023
fb13351
Setup basic jest
razor-x Apr 5, 2023
5daef02
Make jest work with imports
razor-x Apr 5, 2023
ed70e4a
Do not use /// refs
razor-x Apr 5, 2023
0b9049d
Setup testing-library
razor-x Apr 5, 2023
7acb683
Update tests
razor-x Apr 5, 2023
c7840d5
Typecheck js files
razor-x Apr 5, 2023
d154ffc
Add missing test scripts
razor-x Apr 5, 2023
93e1c0b
Add storybook
razor-x Apr 5, 2023
c9ecd0b
Move DeviceList to folder
razor-x Apr 5, 2023
491e921
Test docs build on ci
razor-x Apr 5, 2023
c916358
Update storybook scripts
razor-x Apr 5, 2023
a1520fb
Remove default stories
razor-x Apr 5, 2023
40d03e2
Remove .storybook from tsconfig
razor-x Apr 5, 2023
41d4510
Patch extension issue with storybook
razor-x Apr 5, 2023
305a1a5
Render device_id label
razor-x Apr 5, 2023
c710aee
Wrap story with SeamProvider
razor-x Apr 5, 2023
d76dcb5
Stub a default session key
razor-x Apr 5, 2023
9bd446b
Add fixed port for docs
razor-x Apr 5, 2023
857a586
Exclude all test and stories from build
razor-x Apr 5, 2023
baa6893
Exclude all stories and tests from package
razor-x Apr 5, 2023
ec7753a
Build storybook to docs
razor-x Apr 5, 2023
8ae54e2
Prefer find over get in tests
razor-x Apr 5, 2023
b4e533d
Run format
razor-x Apr 5, 2023
783d759
Move dependencies up in package.json
razor-x Apr 5, 2023
7759edc
Add react-dom to peerDependencies
razor-x Apr 5, 2023
08e855b
Generate code
seambot Apr 5, 2023
aa98a8d
Remove default intro
razor-x Apr 5, 2023
18ff342
Add manufacturer control
razor-x Apr 5, 2023
206a4e6
Run format
seambot Apr 5, 2023
a618a98
Move manufacturer filter to Seam stub
razor-x Apr 5, 2023
bf30540
Return clientSessionId from useClientSession
razor-x Apr 5, 2023
501b0fd
Remove $ in error message
razor-x Apr 5, 2023
e100ae6
Use ref for seam client
razor-x Apr 5, 2023
86a8d3e
Use ref for query client
razor-x Apr 5, 2023
d4d973d
Add comments for storybook docs
razor-x Apr 5, 2023
150ccb2
Add vercel.json
razor-x Apr 5, 2023
35b83de
Remove c8
razor-x Apr 5, 2023
d089031
Pass collect-coverage
razor-x Apr 5, 2023
82f2a0e
Explicit install command
razor-x Apr 5, 2023
ef3dd31
Update story text
razor-x Apr 5, 2023
bfbae9e
Add staticDirs to storybook config
razor-x Apr 5, 2023
bad6d9c
Move public to .storybook
razor-x Apr 5, 2023
dcdec48
Use webp logo
razor-x Apr 5, 2023
f08dbf3
Add seam branded theme
razor-x Apr 5, 2023
aa5136b
Update brandUrl
razor-x Apr 5, 2023
7d6315e
Use npm ci for buildCommand
razor-x Apr 5, 2023
5db8b33
Update test name
razor-x Apr 5, 2023
97ce76f
Remove node_version arg in doc check
razor-x Apr 5, 2023
4cb445d
Fallback to global seam options when creating context
razor-x Apr 5, 2023
20e0dfb
Move throw to component
razor-x Apr 5, 2023
8fadeae
Ignore vite timestamp files
razor-x Apr 5, 2023
70d6ab1
Load publishableKey from global scope in example
razor-x Apr 5, 2023
bcadb68
Run format
seambot Apr 5, 2023
196cf60
Add publishableKey to storybook args
razor-x Apr 5, 2023
11ffb64
Remove type cast
razor-x Apr 5, 2023
0bc846d
Fix typo
razor-x Apr 5, 2023
06ce58f
Remove old eslint ignore rule
razor-x Apr 5, 2023
0d93ace
Update dependencies
razor-x Apr 14, 2023
4fd7e48
Merge branch 'ver/0' into main-upstream
razor-x Apr 14, 2023
fa5b3ce
Update README Description
razor-x Apr 14, 2023
2ea519c
Remove non-lib files
razor-x Apr 14, 2023
4baad18
Update minimum version of seamapi
razor-x Apr 14, 2023
a920b0a
Import seamapi
razor-x Apr 14, 2023
e2b2d1d
Remove client stub
razor-x Apr 14, 2023
d4f5993
Set skipLibCheck true
razor-x Apr 14, 2023
9fb6ff5
Remove clientSessionToken from provider scope
razor-x Apr 14, 2023
f24426d
Remove TODO
razor-x Apr 14, 2023
8be8029
Resume client session from local storage
razor-x Apr 14, 2023
959bc69
Rename DeviceList to DeviceManager
razor-x Apr 14, 2023
5bbd4cd
Proxy API requests with vite
razor-x Apr 14, 2023
53e6017
Use real (sandbox) publishableKey
razor-x Apr 14, 2023
e26a111
Fix contextRef checks
razor-x Apr 14, 2023
cc680e0
Move changeOrigin down
razor-x Apr 14, 2023
2caf0b7
Add storybook proxy
razor-x Apr 14, 2023
0ba48e9
Generate and cache a userIdentifierKey
razor-x Apr 14, 2023
4b1ab18
Fix use-devices hook
razor-x Apr 14, 2023
ca1df6d
Set queryKey for useSeam
razor-x Apr 14, 2023
98eb7e5
Do not use args for publishableKey
razor-x Apr 14, 2023
e90de3a
Use client in queryKey
razor-x Apr 14, 2023
32955ec
Use seamapi alpha
razor-x Apr 15, 2023
40034a3
Generate code
seambot Apr 15, 2023
43dd78f
Fix CODEOWNERS
razor-x Apr 15, 2023
71bbb88
Fix linter error
razor-x Apr 15, 2023
e236c12
Downgrade tsc-alias
razor-x Apr 15, 2023
71d13b1
Add api rewrite
razor-x Apr 15, 2023
06e0174
Add fixtures to import group
razor-x Apr 17, 2023
d24631a
Update storybook title
razor-x Apr 17, 2023
8fca150
Update intro title
razor-x Apr 17, 2023
45551e2
Add link to license in README
razor-x Apr 17, 2023
f24010b
Simplify useClientSession
razor-x Apr 17, 2023
70738e8
Simplify useUserIdentifierKey
razor-x Apr 17, 2023
01769f6
Apply minor suggestions from code review
razor-x Apr 17, 2023
f4a6691
Run npm update
razor-x Apr 17, 2023
cd617ae
Update tsc-alias
razor-x Apr 17, 2023
2b85c21
Merge remote-tracking branch 'origin/main' into all-the-things
razor-x Apr 17, 2023
28aed14
Add Windows and macOS to .gitignore
razor-x Apr 17, 2023
7585cbe
Set explicit vite port
razor-x Apr 18, 2023
5260c85
Set portsAttributes
razor-x Apr 18, 2023
15787f1
Type middleware.js
razor-x Apr 18, 2023
00cd425
Remove storybook/main.ts from ts exclude
razor-x Apr 18, 2023
54ec3c4
Prefer enabled in use-devices
razor-x Apr 18, 2023
3117882
Rename i18nStub to t
razor-x Apr 18, 2023
c6bd67b
Run format
seambot Apr 18, 2023
4b29c5a
Note upstream issue for middleware.js
razor-x Apr 18, 2023
b6172f6
Remove extra quotes in stale config
razor-x Apr 19, 2023
4220186
Remove TODO comments that were moved to issues
razor-x Apr 19, 2023
14060c7
Update .nvmrc to use 18
razor-x Apr 19, 2023
95f299c
Set SEAM_PUBLISHABLE_KEY in env when running jest
razor-x Apr 19, 2023
54e3d89
Remove trailingComma override
razor-x Apr 19, 2023
05612be
Run format
seambot Apr 19, 2023
567f7a2
Move publishableKey into const in fixture
razor-x Apr 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"sourceType": "module",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
]
}
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG VARIANT="18"

FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}

USER node
WORKDIR /home/node

RUN mkdir -p .config/git \
&& echo ".vscode/*" >> .config/git/ignore \
&& echo "*.code-workspace" >> .config/git/ignore \
&& echo ".history/" >> .config/git/ignore
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "TypeScript",
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "18"
}
},
"extensions": [
"ms-vsliveshare.vsliveshare",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode"
],
"forwardPorts": [6006, 6007, 8080],
"portsAttributes": {
"6006": { "label": "Storybook" },
"6007": { "label": "Docs" },
"8080": { "label": "Example" }
},
"postCreateCommand": "npm install",
"remoteUser": "node"
}
53 changes: 53 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"root": true,
"extends": [
"standard-with-typescript",
"standard-jsx",
"standard-react",
"plugin:react/jsx-runtime",
"plugin:storybook/recommended",
"prettier"
],
"plugins": ["simple-import-sort", "unused-imports"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"no-console": "warn",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"import/extensions": ["error", "ignorePackages"],
"import/no-duplicates": ["error", { "prefer-inline": true }],
"simple-import-sort/imports": [
"error",
{
"groups": [
["^\\u0000"],
["^node:"],
["^@?\\w"],
["index.js"],
["^fixtures/", "^lib/"],
["^"],
["^\\."]
]
}
],
"simple-import-sort/exports": "error"
}
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @razor-x
* @azat-co
38 changes: 38 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Setup
description: Setup Node.js and install dependencies.

inputs:
node_version:
description: The Node.js version.
required: false
default: '18'
registry_url:
description: The Node.js package registry URL.
required: false
default: https://registry.npmjs.org
install_dependencies:
description: Install dependencies.
required: false
default: 'true'

runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
if: inputs.install_dependencies == 'true'
with:
cache: npm
node-version: ${{ inputs.node_version }}
registry-url: ${{ inputs.registry_url }}
- name: Setup Node.js without cache
uses: actions/setup-node@v3
if: inputs.install_dependencies == 'false'
with:
node-version: ${{ inputs.node_version }}
registry-url: ${{ inputs.registry_url }}
- name: Install dependencies
if: inputs.install_dependencies == 'true'
shell: bash
run: npm ci
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
daysUntilStale: 21
daysUntilClose: 7
exemptLabels:
- pinned
- security
staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
closeComment: false
pulls:
daysUntilStale: 3
daysUntilClose: 1
staleLabel: stale
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
38 changes: 38 additions & 0 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: _build

on:
workflow_call:
inputs:
node_version:
description: The Node.js version.
type: string
required: false
default: '18'
outputs:
artifact_name:
description: The artifact name.
value: build-${{ github.sha }}

jobs:
build:
name: Package
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
node_version: ${{ inputs.node_version }}
- name: Build
run: npm run build
- name: Package
run: npm pack
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build-${{ github.sha }}
if-no-files-found: error
path: '*.tgz'
46 changes: 46 additions & 0 deletions .github/workflows/_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: _publish

on:
workflow_call:
inputs:
artifact_name:
description: The artifact name.
type: string
required: true
registry_host:
description: The package registry host.
type: string
required: true
secrets:
registry_token:
description: The package registry token.
required: true

jobs:
publish:
name: Publish package
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
install_dependencies: 'false'
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: .
- name: Get meta
id: meta
run: echo "tgz=$(ls *.tgz | head -n1)" >> $GITHUB_OUTPUT
- name: Publish
uses: rxfork/npm-publish@v1
with:
access: public
target: ${{ steps.meta.outputs.tgz }}
token: ${{ secrets.registry_token }}
registry: ${{ inputs.registry_host }}
Loading