microboard-ui-temp 0.1.42 → 0.1.44

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/dist/index.js CHANGED
@@ -343708,11 +343708,6 @@ var Transition2 = ({
343708
343708
 
343709
343709
  // src/features/UserPlan/PlanCards.tsx
343710
343710
  var { i18n: i18n5 } = conf;
343711
- if (!exports_billing.changePlan) {
343712
- exports_billing.changePlan = async function(planId) {
343713
- return Promise.resolve({ data: { message: "Plan changed" } });
343714
- };
343715
- }
343716
343711
  var annualToMonthlyPrice = (price) => price ? Math.round(price / 12) : 0;
343717
343712
  function BasicPlanCard() {
343718
343713
  const { t: t10 } = useTranslation();
@@ -0,0 +1,4 @@
1
+ declare module "*.css";
2
+ declare module "*.module.css";
3
+ declare module "*.svg";
4
+ declare module "*.png";
@@ -0,0 +1,26 @@
1
+ import { App } from "./App";
2
+
3
+ declare module "*.css";
4
+ declare module "*.module.css";
5
+ declare module "*.svg";
6
+ declare module "*.png";
7
+
8
+ declare module "https://www.unpkg.com/microboard-ui-temp/dist/index.js" {
9
+ import * as local from "./index";
10
+ export = local;
11
+ }
12
+
13
+ declare global {
14
+ interface Window {
15
+ app: App;
16
+ showDebug: boolean;
17
+ enableTemplateCreating: boolean;
18
+ enableVideos: boolean;
19
+ enableGames: boolean;
20
+ enableDiagrams: boolean;
21
+ enableLogger: () => void;
22
+ disableLogger: () => void;
23
+ }
24
+ }
25
+
26
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -13,18 +13,21 @@
13
13
  "build:prod": "bun run scripts/buildProd.ts",
14
14
  "build": "bun run build:prod && bun run build:types",
15
15
  "prepare": "bun run scripts/prepareHooks.ts",
16
- "build:types": "bunx tsc src/global.d.ts src/css-module.d.ts src/index.ts --declaration --emitDeclarationOnly --declarationDir ./dist/types --skipLibCheck --pretty false --resolveJsonModule --esModuleInterop --baseUrl src --jsx react-jsx; bunx tsc-alias -p tsconfig.json --outDir dist/types",
17
- "build:types:each": "find src -type f \\( -name '*.ts' -o -name '*.tsx' \\) | while read file; do echo \"→ $file\"; bunx tsc src/global.d.ts src/css-module.d.ts src/index.ts \"$file\" --declaration --emitDeclarationOnly --declarationDir ./dist/types --skipLibCheck --pretty false --resolveJsonModule --esModuleInterop --baseUrl src --jsx react-jsx || { echo \"❌ Error in $file\"; break; }; done; bunx tsc-alias -p tsconfig.json --declarationDir ./dist/types"
16
+ "build:types": "bunx tsc src/global.d.ts src/css-module.d.ts src/index.ts --declaration --emitDeclarationOnly --declarationDir ./dist/types --skipLibCheck --pretty false --resolveJsonModule --esModuleInterop --baseUrl src --jsx react-jsx; bun run cp:dts; bunx tsc-alias -p tsconfig.json --outDir dist/types",
17
+ "cp:dts": "cp src/css-module.d.ts dist/types/; cp src/global.d.ts dist/types/"
18
18
  },
19
19
  "files": [
20
20
  "dist"
21
21
  ],
22
+ "types": "dist/types/index.d.ts",
22
23
  "exports": {
23
24
  ".": {
24
25
  "import": "./dist/index.js",
25
- "types": "./dist/types/index.d.ts"
26
+ "types": "dist/types/index.d.ts"
26
27
  },
27
- "./style": "./dist/index.css"
28
+ "./styles.css": {
29
+ "import": "./dist/index.css"
30
+ }
28
31
  },
29
32
  "devDependencies": {
30
33
  "@types/bun": "^1.2.18",