Skip to content

Commit

Permalink
fix: add /create-data-attribute export that works without use client
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Mar 15, 2024
1 parent 5e9b5f2 commit 5569dd7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/visual-editing/package.json
Expand Up @@ -29,6 +29,13 @@
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./create-data-attribute": {
"types": "./dist/create-data-attribute/index.d.ts",
"source": "./src/create-data-attribute.ts",
"import": "./dist/create-data-attribute/index.js",
"require": "./dist/create-data-attribute/index.cjs",
"default": "./dist/create-data-attribute/index.js"
},
"./next-pages-router": {
"types": "./dist/next-pages-router/index.d.ts",
"source": "./src/next-pages-router/index.ts",
Expand Down Expand Up @@ -56,6 +63,9 @@
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"create-data-attribute": [
"./dist/create-data-attribute/index.d.ts"
],
"next-pages-router": [
"./dist/next-pages-router/index.d.ts"
],
Expand Down
5 changes: 5 additions & 0 deletions packages/visual-editing/src/create-data-attribute.ts
@@ -0,0 +1,5 @@
export {
type CreateDataAttribute,
createDataAttribute,
type CreateDataAttributeProps,
} from '@sanity/visual-editing-helpers'

0 comments on commit 5569dd7

Please sign in to comment.