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

[v8] code block + rich text nits; auto infer draft mode for nextjs #120

Merged
merged 127 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
c0c819e
code block + rich text nits; auto infer draft mode for nextjs
julianbenegas Oct 21, 2024
5351ea9
Merge branch 'main' into jb/v8
julianbenegas Oct 29, 2024
60de9c4
store selected branch in cookie to make the queries server side (when…
julianbenegas Oct 30, 2024
b29db15
also make it work in basehub()
julianbenegas Oct 30, 2024
36a72bf
Merge branch 'main' into jb/v8
julianbenegas Oct 30, 2024
636f33a
Merge branch 'main' into jb/v8
julianbenegas Oct 30, 2024
f1c32d5
v
julianbenegas Oct 30, 2024
cff208c
v
julianbenegas Oct 31, 2024
4de43fc
Merge branch 'main' into jb/v8
julianbenegas Oct 31, 2024
f6a1685
handle new event api
julianbenegas Oct 31, 2024
8566bcd
upd
julianbenegas Nov 1, 2024
5a2657e
v
julianbenegas Nov 1, 2024
b786ade
v
julianbenegas Nov 4, 2024
1dd04c7
Merge branch 'main' into jb/v8
julianbenegas Nov 4, 2024
863d42f
fix ref bug
julianbenegas Nov 4, 2024
d058fab
improve
julianbenegas Nov 4, 2024
05f26ba
r
julianbenegas Nov 4, 2024
5d2245d
v
julianbenegas Nov 4, 2024
015f4b3
branch switcher stuff
julianbenegas Nov 4, 2024
93d1a5a
v
julianbenegas Nov 4, 2024
0b04431
v
julianbenegas Nov 4, 2024
41570ca
r
julianbenegas Nov 4, 2024
41aec76
events: getEvents function
justkahdri Nov 4, 2024
1b17cfa
update query events url
justkahdri Nov 5, 2024
631bc69
fix build
justkahdri Nov 5, 2024
12b0d31
release
julianbenegas Nov 5, 2024
d5d0559
fix
justkahdri Nov 5, 2024
2c184e4
typed response
justkahdri Nov 5, 2024
fdb291e
r
julianbenegas Nov 5, 2024
f71a1a4
filter and orderBy types
justkahdri Nov 5, 2024
bbe0d8f
update types to match responses with select
justkahdri Nov 5, 2024
f3270a1
base response on selected fields
justkahdri Nov 6, 2024
8d078ca
fix filters
justkahdri Nov 6, 2024
0da42e7
fix some branch switcher styles
julianbenegas Nov 6, 2024
40c12e1
v
julianbenegas Nov 6, 2024
9b86b95
fix: don't require data argument for type never
justkahdri Nov 7, 2024
96db2fc
types update
justkahdri Nov 12, 2024
96d9bf5
feat: migrate to /events - update/delete functions
justkahdri Nov 12, 2024
ac0c59a
fix
justkahdri Nov 13, 2024
0f2b1f0
fix lock
justkahdri Nov 13, 2024
9225e97
publish preview workflow
justkahdri Nov 13, 2024
41b9b52
fixes
justkahdri Nov 13, 2024
f809c9d
fix workflow
justkahdri Nov 13, 2024
1c494d6
fix DELETE handler
justkahdri Nov 13, 2024
ed1c99c
array filtering for select multiple
justkahdri Nov 18, 2024
a96232d
Form Builder (#122)
justkahdri Nov 29, 2024
4cb511e
unstable and stuff
julianbenegas Nov 29, 2024
570a469
upgrade genql
julianbenegas Nov 30, 2024
4035b7b
update workflows
julianbenegas Nov 30, 2024
3dba77e
Merge branch 'main' into jb/v8
julianbenegas Nov 30, 2024
d671c2e
lockfile
julianbenegas Nov 30, 2024
47dcc6a
fix
julianbenegas Nov 30, 2024
f1fe5d9
fix
julianbenegas Nov 30, 2024
8f2a68f
fix
justkahdri Dec 3, 2024
6e52e99
nit
justkahdri Dec 3, 2024
1e4934d
revert?
julianbenegas Dec 3, 2024
a0a6c23
Update sdk-preview.yml
julianbenegas Dec 3, 2024
94cd6d6
client export
justkahdri Dec 3, 2024
1145eec
Revert "client export"
justkahdri Dec 3, 2024
44946c9
test
justkahdri Dec 3, 2024
85e7bd1
SVG comp
moransantiago Dec 5, 2024
6939770
Fixes
moransantiago Dec 6, 2024
1a3e29e
Correct parse of the style tag
moransantiago Dec 6, 2024
cb3383f
incr default api version
julianbenegas Dec 8, 2024
bb8eb38
Keys in map
moransantiago Dec 12, 2024
189c4f1
Support for filters and defs
moransantiago Dec 12, 2024
4ec1fed
Adding `supportedSvgTags` to the export
moransantiago Dec 13, 2024
1ddd670
Merge branch 'main' into jb/v8
julianbenegas Dec 13, 2024
cd437f3
release
julianbenegas Dec 13, 2024
f0380fd
Remove schema import
moransantiago Dec 13, 2024
d430bcd
dts
julianbenegas Dec 13, 2024
eb5da47
Merge branch 'main' into jb/v8
julianbenegas Dec 13, 2024
2a3113c
fix
julianbenegas Dec 13, 2024
42ab5ea
v
julianbenegas Dec 13, 2024
4271b78
v
julianbenegas Dec 13, 2024
a8910b6
changeset
julianbenegas Dec 13, 2024
f7aa887
Merge branch 'jb/v8' into svg
julianbenegas Dec 13, 2024
6847d6f
nit
julianbenegas Dec 13, 2024
5e0efdd
Merge pull request #123 from basehub-ai/svg
julianbenegas Dec 13, 2024
f4f817c
release
julianbenegas Dec 13, 2024
b8b1215
use kebab-case for query ranges
justkahdri Dec 16, 2024
b612147
fix: events return type
justkahdri Dec 16, 2024
30686ca
fix: don't group time series response count in labeled objects
justkahdri Dec 16, 2024
e718f69
fix pump types
julianbenegas Dec 16, 2024
9e3f440
send commitId and branch to the events api
julianbenegas Dec 17, 2024
f6c27ae
fix
julianbenegas Dec 18, 2024
cb9c405
update link primitives
fabroos Dec 18, 2024
3f80523
update pump endpoint
julianbenegas Dec 18, 2024
b5e14c8
Merge branch 'main' of https://github.com/basehub-ai/basehub into int…
fabroos Dec 18, 2024
ec599c1
test fix
fabroos Dec 18, 2024
a45c874
Merge branch 'jb/v8' into internal-links
fabroos Dec 18, 2024
3a18955
lint
fabroos Dec 18, 2024
a2b4529
ignore types
fabroos Dec 18, 2024
a97c76b
fix
julianbenegas Dec 18, 2024
2575277
v
julianbenegas Dec 18, 2024
8c10277
pass stuff through body to improve preflight caching
julianbenegas Dec 18, 2024
6a87ca4
v
julianbenegas Dec 18, 2024
6a9c177
upgrade mutation-api-helpers
julianbenegas Dec 19, 2024
77d77d0
Merge branch 'main' into jb/v8
julianbenegas Dec 19, 2024
ac475da
v
julianbenegas Dec 19, 2024
6d93473
v
julianbenegas Dec 19, 2024
10acb4e
fix
julianbenegas Dec 19, 2024
f023e53
fix
julianbenegas Dec 19, 2024
cd59b31
add Language type to schema
julianbenegas Dec 19, 2024
0873e07
v
julianbenegas Dec 19, 2024
a0d9673
v
julianbenegas Dec 19, 2024
1ca9e59
release
julianbenegas Dec 20, 2024
22f29ff
Support for server side in svg renderer
moransantiago Dec 20, 2024
2a3ec85
Rolling back dependency changes
moransantiago Dec 20, 2024
4aca69e
Rollback finalcomponents
moransantiago Dec 20, 2024
6e8f3c4
Rollback playground json
moransantiago Dec 20, 2024
78bbd67
Rollback playground json
moransantiago Dec 20, 2024
c385898
Merge pull request #128 from basehub-ai/svg-server-side
julianbenegas Dec 20, 2024
15c81f2
release
julianbenegas Dec 20, 2024
bc2d03b
.
julianbenegas Dec 22, 2024
153ee2c
fix
julianbenegas Jan 3, 2025
68d7438
upd
julianbenegas Jan 3, 2025
db17479
upd
julianbenegas Jan 3, 2025
c826c61
`parseFormData` (#129)
justkahdri Jan 3, 2025
7c31138
publish parseFormData
julianbenegas Jan 3, 2025
32275ed
r
julianbenegas Jan 3, 2025
57ee55c
upd
julianbenegas Jan 3, 2025
0e96912
v
julianbenegas Jan 3, 2025
2bc571c
fix signing
julianbenegas Jan 3, 2025
35b5a74
make 'first' and 'skip' non required
julianbenegas Jan 5, 2025
ed342c3
Merge pull request #127 from basehub-ai/internal-links
julianbenegas Jan 7, 2025
2e848d5
out of canary
julianbenegas Jan 7, 2025
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
24 changes: 24 additions & 0 deletions .github/workflows/sdk-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish SDK Preview
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish './packages/basehub' --comment=update
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"devDependencies": {
"@changesets/cli": "^2.22.0",
"eslint-config-custom": "workspace:*",
"pkg-pr-new": "^0.0.30",
"prettier": "3.0.3",
"turbo": "1.10.12",
"type-fest": "^3.0.0",
Expand Down
348 changes: 346 additions & 2 deletions packages/basehub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,354 @@
# basehub

## 7.5.32
## 8.0.0

### Major Changes

**Full release notes** in our [documentation](https://docs.basehub.com/api-reference/javascript-sdk/release-notes/version-8).

- f1c32d5: - Renamed `lang` to `language` in the `<CodeBlock />` component, to better match `<RichText />`'s types.

- In the `<RichText />` component, we made inline code be overridable just via `code`, and the full width code block be overridable via `pre`. Previously, code blocks passed both via `pre` and via `code` (in the latter case, with `isInline` set to `false`), which was quite confusing.

* Automatic draftMode detection for Next.js
* We now preserve the ref (branch) selection in cookies, so that server-side request query the correct ref

### Patch Changes

- db17479: fix textarea type
- f6a1685: handle new event api
- 05f26ba: Fix clearing up cookie when selected ref is default
- 93d1a5a: fix
- 4271b78: fix
- 5d2245d: fixes
- 5a2657e: Fix `data` var being declared twice
- 35b5a74: make first and skip non required
- d430bcd: fix dts thing?
- 6d93473:
- 0873e07: toolbar improvements
- 57ee55c: type nit
- b786ade: force schema re-gen on input change
- 41570ca: improve
- 0e96912: fix workflows bundle
- f023e53: fix type
- 1ca9e59: fix
- 4271b78: FIX
- f1c32d5: Correctly type languages prop
- e718f69: types fix
- ac475da: upgrade mutation api helpers
- 93d1a5a: fix
- 2bc571c: fix
- 015f4b3: get latest branches not just in draft mode. enter draft mode automatically when user switches branches
- a8910b6: fix rich text and pump return types
- 3f80523: event fixes
- 68d7438: store preview tokens based on repo hash
- fdb291e: event types
- 8566bcd: Add analytics src to files
- 40c12e1: event types and some branch switcher styles
- 12b0d31: events stuff
- cff208c: don't make preview ref cookie same site
- cd437f3: type rich text content and toc, introduce <TOC />
- 2bc571c: fix secret parsing
- bc2d03b: scope cookie per repo hash
- 42ab5ea: rollback shiki
- 6a87ca4:
- f4f817c: svg
- 0b04431: Fix!
- 4271b78: fix
- a0d9673: fix
- 8566bcd: linked branches improvements
- 4271b78: fix
- 2575277: pass pump-token and last-response-hash via query params to improve preflight caching
- 7c31138: parseFormData
- 15c81f2: svg update
- 32275ed: auth webhooks

## 8.0.0-canary.46

### Patch Changes

- make first and skip non required

## 8.0.0-canary.45

### Patch Changes

- fix secret parsing

## 8.0.0-canary.44

### Patch Changes

- fix

## 8.0.0-canary.43

### Patch Changes

- fix workflows bundle

## 8.0.0-canary.42

### Patch Changes

- type nit

## 8.0.0-canary.41

### Patch Changes

- auth webhooks

## 8.0.0-canary.40

### Patch Changes

- parseFormData

## 8.0.0-canary.39

### Patch Changes

- fix textarea type

## 8.0.0-canary.38

### Patch Changes

- store preview tokens based on repo hash

## 8.0.0-canary.37

### Patch Changes

- scope cookie per repo hash

## 8.0.0-canary.36

### Patch Changes

- svg update

## 8.0.0-canary.35

### Patch Changes

- fix

## 8.0.0-canary.34

### Patch Changes

- fix

## 8.0.0-canary.33

### Patch Changes

- toolbar improvements
- f023e53: fix type

## 8.0.0-canary.32

### Patch Changes

-

## 8.0.0-canary.31

### Patch Changes

- upgrade mutation api helpers

## 8.0.0-canary.30

### Patch Changes

-

## 8.0.0-canary.29

### Patch Changes

- pass pump-token and last-response-hash via query params to improve preflight caching

## 8.0.0-canary.28

### Patch Changes

- event fixes

## 8.0.0-canary.27

### Patch Changes

- types fix

## 8.0.0-canary.26

### Patch Changes

- svg

## 8.0.0-canary.25

### Patch Changes

- fix rich text and pump return types

## 8.0.0-canary.24

### Patch Changes

- FIX

## 8.0.0-canary.23

### Patch Changes

- fix

## 8.0.0-canary.22

### Patch Changes

- fix

## 8.0.0-canary.21

### Patch Changes

- fix

## 8.0.0-canary.20

### Patch Changes

- rollback shiki

## 8.0.0-canary.19

### Patch Changes

- fix dts thing?

## 8.0.0-canary.18

### Patch Changes

- type rich text content and toc, introduce <TOC />

## 8.0.0-canary.17

### Patch Changes

- event types and some branch switcher styles

## 8.0.0-canary.16

### Patch Changes

- event types

## 8.0.0-canary.15

### Patch Changes

- events stuff

## 8.0.0-canary.14

### Patch Changes

- improve

## 8.0.0-canary.13

### Patch Changes

- Fix!

## 8.0.0-canary.12

### Patch Changes

- fix

## 8.0.0-canary.11

### Patch Changes

- fix

## 8.0.0-canary.10

### Patch Changes

- get latest branches not just in draft mode. enter draft mode automatically when user switches branches

## 8.0.0-canary.9

### Patch Changes

- fixes

## 8.0.0-canary.8

### Patch Changes

- Fix clearing up cookie when selected ref is default

## 8.0.0-canary.7

### Patch Changes

- force schema re-gen on input change

## 8.0.0-canary.6

### Patch Changes

- Add colwidth props to td and th
- Fix `data` var being declared twice

## 8.0.0-canary.5

### Patch Changes

- Add analytics src to files

## 8.0.0-canary.4

### Patch Changes

- linked branches improvements

## 8.0.0-canary.3

### Patch Changes

- handle new event api

## 8.0.0-canary.2

### Patch Changes

- don't make preview ref cookie same site

## 8.0.0-canary.1

### Patch Changes

- Correctly type languages prop

## 8.0.0-canary.0

### Major Changes

- - Renamed `language` to `lang` in the `<CodeBlock />` component, to better match BaseHub's GraphQL API types.
- In the `<RichText />` component, we made inline code be overridable just via `code`, and the full width code block be overridable via `pre`. Previously, code blocks passed both via `pre` and via `code` (in the latter case, with `isInline` set to `false`), which was quite confusing.

* Automatic draftMode detection for Next.js
* We now preserve the ref (branch) selection in cookies, so that server-side request query the correct ref

## 7.5.31

Expand Down
1 change: 0 additions & 1 deletion packages/basehub/analytics.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/basehub/analytics.js

This file was deleted.

2 changes: 2 additions & 0 deletions packages/basehub/events.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable import/no-unresolved */
export * from "./dist/generated-client/events";
Loading
Loading