feat: sdks and docs (#239)

* init

* fix

* update docs

* bump: all sdks

* rename types test
This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-19 21:56:47 +01:00
committed by GitHub
parent 790801b728
commit 83e223a496
50 changed files with 793 additions and 137 deletions

View File

@@ -11,6 +11,7 @@ import type {
OpenPanelOptions,
TrackProperties,
} from '@openpanel/web';
import { getInitSnippet } from '@openpanel/web';
export * from '@openpanel/web';
@@ -73,7 +74,7 @@ export function OpenPanelComponent({
<Script
strategy="beforeInteractive"
dangerouslySetInnerHTML={{
__html: `window.op = window.op || function(...args) {(window.op.q = window.op.q || []).push(args)};
__html: `${getInitSnippet()}
${methods
.map((method) => {
return `window.op('${method.name}', ${stringify(method.value)});`;