microboard-temp 0.13.71 → 0.13.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -44
- package/dist/cjs/browser.js +15502 -795
- package/dist/cjs/index.js +15502 -795
- package/dist/cjs/node.js +15507 -800
- package/dist/cjs/protocol.js +14659 -0
- package/dist/esm/browser.js +15502 -795
- package/dist/esm/index.js +15502 -795
- package/dist/esm/node.js +15508 -801
- package/dist/esm/protocol.js +14638 -0
- package/dist/types/Events/EventsCommand.d.ts +0 -1
- package/dist/types/Events/Log/getUnpublishedEventFromList.d.ts +1 -5
- package/dist/types/Events/Merge.d.ts +0 -1
- package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +41 -112
- package/dist/types/Events/MessageRouter/createMessageRouter.d.ts +5 -4
- package/dist/types/Events/MessageRouter/handleBoardSubscriptionCompletedMsg.d.ts +2 -5
- package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +0 -5
- package/dist/types/Events/MessageRouter/socketContract.d.ts +15200 -0
- package/dist/types/Events/identity.d.ts +0 -1
- package/dist/types/Items/Anchor/Anchor.d.ts +0 -11
- package/dist/types/Items/Arc/Arc.d.ts +0 -2
- package/dist/types/Items/Connector/Connector.d.ts +0 -3
- package/dist/types/Items/Connector/getLine/findOrthogonalPath.d.ts +0 -4
- package/dist/types/Items/Curve/Curve.d.ts +2 -1
- package/dist/types/Items/ItemsCommandUtils.d.ts +0 -4
- package/dist/types/Items/RichText/RichText.d.ts +0 -2
- package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +0 -1
- package/dist/types/Items/index.d.ts +0 -1
- package/dist/types/Presence/throttle.d.ts +0 -1
- package/dist/types/SpatialIndex/LayeredIndex/Layers.d.ts +0 -13
- package/dist/types/api/initDefaultI18N.d.ts +0 -9
- package/dist/types/index.d.ts +0 -1
- package/dist/types/protocol.d.ts +8 -0
- package/package.json +12 -3
- package/dist/types/Events/handleRemoveSnappedObject.d.ts +0 -12
- package/dist/types/Items/LinkTo/index.d.ts +0 -0
- package/dist/types/Items/Mbr/updateRects.d.ts +0 -15
- package/dist/types/Items/RichText/CanvasText/DropflowRender.d.ts +0 -0
- package/dist/types/Items/RichText/CanvasText/index.d.ts +0 -2
- package/dist/types/Items/RichText/editorHelpers/common/getTextParagraphs.d.ts +0 -0
- package/dist/types/Items/RichText/editorHelpers/common/isBlockActive.d.ts +0 -3
- package/dist/types/Items/Shape/getRandomRgba.d.ts +0 -1
- package/dist/types/Items/Shape/handleUpdate.d.ts +0 -7
- package/dist/types/ReversibleOps.d.ts +0 -145
- package/dist/types/Selection/Transformer/TextTransformer/index.d.ts +0 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/switchResizeType.d.ts +0 -7
- package/dist/types/SpatialIndex/LayeredIndex/getContainersToSet.d.ts +0 -8
- package/dist/types/Tools/BoardToolContext.d.ts +0 -8
- package/dist/types/isFirefox.d.ts +0 -1
- package/dist/types/ts-error-prioritizer.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,52 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Microboard
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Microboard is a framework-agnostic interactive whiteboard library published as an npm package from this repository.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Release And Integration Contract
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
2. Create a new repository with appropriate folder structure for a component library
|
|
9
|
-
3. Move the relevant code while maintaining internal relationships between files
|
|
7
|
+
This repository publishes from the long-lived `trunk` branch. Every push to `trunk` runs [`.github/workflows/npm-publish.yml`](.github/workflows/npm-publish.yml). After a successful publish, the workflow emits the `microboard_published` event to both downstream consumers so their staging environments can validate against the latest shared core.
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
The source of truth for that contract is [`docs/npm-publish-integration-contract.md`](docs/npm-publish-integration-contract.md).
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
2. This ensures all commits, authors, and timestamps are preserved for the component
|
|
15
|
-
3. Alternative approach: use `git subtree` if the component is in a distinct directory
|
|
11
|
+
That document defines:
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
- what constitutes a successful publish
|
|
14
|
+
- the event emitted after publish
|
|
15
|
+
- the payload sent to downstream repositories
|
|
16
|
+
- required GitHub secrets, variables, and token permissions
|
|
17
|
+
- the shared operational checklist for cross-repository communication
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
2. Set up main, module, and types fields to support different import methods
|
|
21
|
-
3. Define which files should be published via the "files" field in package.json
|
|
19
|
+
## Local Commands
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## Update any internal references
|
|
30
|
-
|
|
31
|
-
1. Replace any references to internal services with configurable options
|
|
32
|
-
2. Create adapter interfaces for external dependencies
|
|
33
|
-
3. Ensure the component can work in isolation without company-specific code
|
|
34
|
-
|
|
35
|
-
## Set up proper documentation in README.md
|
|
36
|
-
|
|
37
|
-
1. Write clear installation and usage instructions
|
|
38
|
-
2. Document the component API, props, and configuration options
|
|
39
|
-
3. Include examples showing common use cases and customization
|
|
40
|
-
4. Add contributing guidelines and code of conduct
|
|
41
|
-
|
|
42
|
-
## Set up a CI/CD pipeline for the GitHub repo
|
|
43
|
-
|
|
44
|
-
1. Configure GitHub Actions to run tests and builds on PRs
|
|
45
|
-
2. Add linting and type checking to the pipeline
|
|
46
|
-
3. Set up automated code quality checks and test coverage reporting
|
|
47
|
-
|
|
48
|
-
## Configure npm publishing workflow
|
|
49
|
-
|
|
50
|
-
1. Create a release process for versioning and publishing
|
|
51
|
-
2. Set up npm automation for consistent package releases
|
|
52
|
-
3. Configure access tokens and permissions for secure publishing
|
|
21
|
+
```bash
|
|
22
|
+
bun install
|
|
23
|
+
bun run build
|
|
24
|
+
bun test
|
|
25
|
+
eslint src/**/*.{ts,tsx}
|
|
26
|
+
```
|