Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": [],
"privatePackages": { "version": false, "tag": false },
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -23,8 +25,9 @@ jobs:
with:
node-version: 22
cache: pnpm
registry-url: https://npm.pkg.github.com
scope: '@spatialkit'
registry-url: https://registry.npmjs.org

- run: npm install -g npm@latest

- run: pnpm install --frozen-lockfile

Expand All @@ -34,8 +37,7 @@ jobs:
with:
publish: pnpm changeset publish
version: pnpm changeset version
commit: "chore: version packages"
title: "chore: version packages"
commit: 'chore: version packages'
title: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

21 changes: 21 additions & 0 deletions packages/adapters/react/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 spatialkit

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
42 changes: 34 additions & 8 deletions packages/adapters/react/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
{
"name": "@spatialkit/react",
"version": "0.1.0",
"description": "React adapter for @spatialkit/core: SpatialCanvas component and hooks for interactive 2D editors.",
"keywords": [
"2d",
"editor",
"floor-plan",
"react",
"react-hooks",
"svg",
"pan-zoom",
"typescript"
],
"license": "MIT",
"author": "Lucas Felix",
"homepage": "https://github.com/spatialkit/spatial/tree/main/packages/adapters/react#readme",
"bugs": "https://github.com/spatialkit/spatial/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/spatialkit/spatial.git",
"directory": "packages/adapters/react"
},
"private": false,
"type": "module",
"sideEffects": false,
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -11,14 +32,16 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"repository": {
"type": "git",
"url": "https://github.com/spatialkit/spatial.git"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
"build": "tsup src/index.ts --dts --format esm,cjs --clean",
Expand All @@ -38,5 +61,8 @@
"peerDependencies": {
"@spatialkit/core": "0.x",
"react": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
}
21 changes: 21 additions & 0 deletions packages/core/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 spatialkit

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
45 changes: 36 additions & 9 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
{
"name": "@spatialkit/core",
"version": "0.1.0",
"description": "Framework-agnostic scene engine for interactive 2D editors: entities, viewport, events, hit testing and selection.",
"keywords": [
"2d",
"editor",
"floor-plan",
"scene-graph",
"viewport",
"pan-zoom",
"hit-testing",
"selection",
"typescript"
],
"license": "MIT",
"author": "Lucas Felix",
"homepage": "https://github.com/spatialkit/spatial/tree/main/packages/core#readme",
"bugs": "https://github.com/spatialkit/spatial/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/spatialkit/spatial.git",
"directory": "packages/core"
},
"private": false,
"type": "module",
"sideEffects": false,
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -11,14 +33,16 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"repository": {
"type": "git",
"url": "https://github.com/spatialkit/spatial.git"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
"test": "vitest run",
Expand All @@ -28,5 +52,8 @@
},
"devDependencies": {
"vitest": "^2.0.0"
},
"publishConfig": {
"access": "public"
}
}
}
21 changes: 21 additions & 0 deletions packages/svg/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 spatialkit

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
44 changes: 35 additions & 9 deletions packages/svg/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
{
"name": "@spatialkit/svg",
"version": "0.1.0",
"description": "SVG renderer and pointer handlers for @spatialkit/core: pan, zoom, pinch, selection, drag, resize and grid.",
"keywords": [
"2d",
"editor",
"floor-plan",
"svg",
"renderer",
"pan-zoom",
"pinch-zoom",
"typescript"
],
"license": "MIT",
"author": "Lucas Felix",
"homepage": "https://github.com/spatialkit/spatial/tree/main/packages/svg#readme",
"bugs": "https://github.com/spatialkit/spatial/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/spatialkit/spatial.git",
"directory": "packages/svg"
},
"private": false,
"type": "module",
"sideEffects": false,
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -11,14 +32,16 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"repository": {
"type": "git",
"url": "https://github.com/spatialkit/spatial.git"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
"build": "tsup src/index.ts --dts --format esm,cjs --clean",
Expand All @@ -32,5 +55,8 @@
},
"peerDependencies": {
"@spatialkit/core": "0.x"
},
"publishConfig": {
"access": "public"
}
}
}
Loading