@mvtlab/nextjs-orchestrator 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/package.json +13 -3
  2. package/CHANGELOG.md +0 -40
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@mvtlab/nextjs-orchestrator",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Next.js SDK to integrate the MVT Lab CDN engine with optional anti-flicker support.",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
8
18
  "sideEffects": false,
9
19
  "scripts": {
10
20
  "build": "tsc -p tsconfig.build.json"
package/CHANGELOG.md DELETED
@@ -1,40 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.1.1] - 2024-11-26
11
-
12
- ### Changed
13
-
14
- - Updated README documentation for improved clarity and simplicity
15
- - Removed engine URL configuration references
16
- - Enhanced technical documentation with implementation details
17
- - Added easter eggs explaining technical internals (`rmfk`, `abhide`, IIFE translation)
18
-
19
- ## [0.1.0] - 2024-11-26
20
-
21
- ### Added
22
-
23
- - Initial release of `@mvtlab/nextjs-orchestrator`
24
- - `MVTOrchestrator` React component for Next.js integration
25
- - Anti-flicker support with configurable timeout
26
- - Automatic script injection for MVTLab.io CDN engine
27
- - Project key validation to enforce single key per website
28
- - TypeScript type definitions (`MVTOrchestratorProps`)
29
- - Support for both Next.js App Router and Pages Router
30
- - SSR-safe implementation (all DOM operations in `useEffect`)
31
- - Duplicate script prevention (idempotent script injection)
32
- - Full documentation and examples
33
-
34
- ### Technical Details
35
-
36
- - Wraps the standard MVTLab.io HTML integration snippet into a React component
37
- - Translates IIFE pattern with `document`/`window` access into React hooks
38
- - Implements `window.rmfk()` callback for engine readiness signaling
39
- - Uses `id="abhide"` style tag matching original snippet behavior
40
-