From 6a064b89420b3b9316aae363603ab5361cb5549c Mon Sep 17 00:00:00 2001 From: lordlogo2002 Date: Sat, 2 Aug 2025 21:23:42 +0200 Subject: [PATCH] fix: update version to 1.3.5 in package.json and package-lock.json; add insertRickPanel function to initialize RickGamePanel --- source/package-lock.json | 4 ++-- source/package.json | 2 +- source/src/index.tsx | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/source/package-lock.json b/source/package-lock.json index 115268d..eaa275d 100644 --- a/source/package-lock.json +++ b/source/package-lock.json @@ -1,12 +1,12 @@ { "name": "@funky-flask-test/funky-flask-test", - "version": "1.3.4", + "version": "1.3.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@funky-flask-test/funky-flask-test", - "version": "1.3.4", + "version": "1.3.5", "devDependencies": { "@types/node": "^24.0.15", "typescript": "^5.8.3", diff --git a/source/package.json b/source/package.json index 98fb089..21ec75c 100644 --- a/source/package.json +++ b/source/package.json @@ -1,6 +1,6 @@ { "name": "@funky-flask-test/funky-flask-test", - "version": "1.3.4", + "version": "1.3.5", "type": "module", "main": "./dist/index.jsx", "exports": { diff --git a/source/src/index.tsx b/source/src/index.tsx index f0a5792..b25a992 100644 --- a/source/src/index.tsx +++ b/source/src/index.tsx @@ -166,3 +166,13 @@ export class RickGamePanel { } } } + +export function insertRickPanel(target: HTMLElement | string = document.body): void { + const container = typeof target === 'string' + ? document.querySelector(target) + : target + + if (container instanceof HTMLElement) { + new RickGamePanel(container) + } +} \ No newline at end of file