Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/languages/bbcode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

### Version

`BBob`: v3.0.2
`BBob`: v4.3.1

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/jinja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ window.livecodes.templateData = { name: 'LiveCodes' };

### Version

`@huggingface/jinja`: v0.5.0
`@huggingface/jinja`: v0.5.1

## Code Formatting

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import { ComponentName } from './script';

### Version

`@mdx-js/mdx`: v3.1.0
`@mdx-js/mdx`: v3.1.1

## Code Formatting

Expand Down
4 changes: 4 additions & 0 deletions docs/docs/languages/react-native-tsx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ For usage and examples, see documentation for [JSX](./jsx.mdx).

[TypeScript compiler](./typescript.mdx) and [React Native for Web](https://necolas.github.io/react-native-web/)

### Version

`react-native-web`: v0.21.2

## Code Formatting

Using [Prettier](https://prettier.io/).
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/react-native.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ For usage and examples, see documentation for [JSX](./jsx.mdx).

### Version

`react-native-web`: v0.20.0
`react-native-web`: v0.21.2

## Code Formatting

Expand Down
4 changes: 4 additions & 0 deletions docs/docs/languages/react-tsx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ For usage and examples, see documentation for [React](./react.mdx) and [TypeScri

[React compiler](https://react.dev/learn/react-compiler), which is a [babel](./babel.mdx) plugin ([babel-plugin-react-compiler](https://www.npmjs.com/package/babel-plugin-react-compiler)).

### Version

`babel-plugin-react-compiler`: v1.0.0

## Code Formatting

Using [Prettier](https://prettier.io/).
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const styledComponentsDemo = {

### Version

`babel-plugin-react-compiler`: v19.1.0-rc.1
`babel-plugin-react-compiler`: v1.0.0

## Code Formatting

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/solid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ For usage, see documentation for [JSX](./jsx.mdx) and [TypeScript](./typescript.

### Version

`babel-preset-solid`: v1.9.5
`babel-preset-solid`: v1.9.10

## Code Formatting

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/solid.tsx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ For usage, see documentation for [JSX](./jsx.mdx) and [TypeScript](./typescript.

### Version

`babel-preset-solid` version 1.7.4
`babel-preset-solid` version 1.9.10

## Code Formatting

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/vento.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ window.livecodes.templateData = { name: 'LiveCodes' };

### Version

`ventojs`: v1.12.16
`ventojs`: v2.2.0

## Code Formatting

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/languages/vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ The official [@vue/compiler-sfc](https://github.com/vuejs/core/tree/main/package

### Version

`@vue/compiler-sfc`: v3.5.13
`@vue/compiler-sfc`: v3.5.22

## Code Formatting

Expand Down
11 changes: 7 additions & 4 deletions src/livecodes/languages/bbcode/lang-bbcode.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import type { LanguageSpecs } from '../../models';
import { vendorsBaseUrl } from '../../vendors';
import { bbobHtmlUrl, bbobPresetHtmlUrl } from '../../vendors';

export const bbcode: LanguageSpecs = {
name: 'bbcode',
title: 'BBCode',
compiler: {
url: vendorsBaseUrl + 'bbob/bbob.js',
factory: () => async (code) =>
(self as any).BBob.bbobHTML(code, (self as any).BBob.presetHTML5()),
url: bbobHtmlUrl,
factory: () => {
(self as any).importScripts(bbobPresetHtmlUrl);
return async (code) =>
(self as any).BbobHtml.default(code, (self as any).BbobPresetHTML5.default());
},
Comment thread
hatemhosny marked this conversation as resolved.
},
extensions: ['bbcode', 'bb'],
editor: 'markup',
Expand Down
11 changes: 7 additions & 4 deletions src/livecodes/vendors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { modulesService } from './services/modules';
const { getUrl, getModuleUrl } = modulesService;

export const vendorsBaseUrl = // 'http://127.0.0.1:8081/';
/* @__PURE__ */ getUrl('@live-codes/browser-compilers@0.22.3/dist/');
/* @__PURE__ */ getUrl('@live-codes/browser-compilers@0.22.5/dist/');

export const acornUrl = /* @__PURE__ */ getUrl('acorn@8.12.1/dist/acorn.js');

Expand All @@ -29,6 +29,11 @@ export const autoCompleteUrl = /* @__PURE__ */ getUrl(

export const babelUrl = /* @__PURE__ */ getUrl('@babel/standalone@7.26.4/babel.js');

export const bbobHtmlUrl = /* @__PURE__ */ getUrl('@bbob/html@4.3.1/dist/index.min.js');
export const bbobPresetHtmlUrl = /* @__PURE__ */ getUrl(
'@bbob/preset-html5@4.3.1/dist/index.min.js',
);

export const biwaschemeUrl = /* @__PURE__ */ getUrl('biwascheme@0.8.0/release/biwascheme.js');

export const blocklyCdnBaseUrl = /* @__PURE__ */ getUrl('blockly@11.1.1/');
Expand Down Expand Up @@ -295,7 +300,7 @@ export const metaPngUrl = /* @__PURE__ */ getUrl('meta-png@1.0.6/dist/meta-png.u

export const mjmlUrl = /* @__PURE__ */ getUrl('mjml-browser@4.15.3/lib/index.js');

export const monacoBaseUrl = /* @__PURE__ */ getUrl('@live-codes/monaco-editor@0.3.0/');
export const monacoBaseUrl = /* @__PURE__ */ getUrl('@live-codes/monaco-editor@0.3.1/');

export const monacoEmacsUrl = /* @__PURE__ */ getUrl('monaco-emacs@0.3.0/dist/monaco-emacs.js');

Expand Down Expand Up @@ -439,8 +444,6 @@ export const twigUrl = /* @__PURE__ */ getUrl('twig@1.17.1/twig.min.js');

export const typescriptUrl = /* @__PURE__ */ getUrl(`typescript@5.9.3/lib/typescript.js`);

export const typescriptVfsUrl = /* @__PURE__ */ getUrl('@typescript/vfs@1.6.1/dist/vfs.esm.js');

export const uniterUrl = /* @__PURE__ */ getUrl('uniter@2.18.0/dist/uniter.js');

export const vegaCdnUrl = /* @__PURE__ */ getUrl('vega@5.25.0/build/vega.js');
Expand Down