@microbit/makecode-embed 0.0.0-alpha.2
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/LICENSE.md +21 -0
- package/README.md +43 -0
- package/dist/react/MakeCodeBlocksRendering.d.ts +24 -0
- package/dist/react/MakeCodeBlocksRendering.js +80 -0
- package/dist/react/MakeCodeBlocksRendering.js.map +1 -0
- package/dist/react/MakeCodeFrame.d.ts +38 -0
- package/dist/react/MakeCodeFrame.js +72 -0
- package/dist/react/MakeCodeFrame.js.map +1 -0
- package/dist/react/MakeCodeRenderBlocksProvider.d.ts +8 -0
- package/dist/react/MakeCodeRenderBlocksProvider.js +14 -0
- package/dist/react/MakeCodeRenderBlocksProvider.js.map +1 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/useMakeCodeRenderBlocks.d.ts +6 -0
- package/dist/react/useMakeCodeRenderBlocks.js +16 -0
- package/dist/react/useMakeCodeRenderBlocks.js.map +1 -0
- package/dist/vanilla/examples.d.ts +3 -0
- package/dist/vanilla/examples.js +17 -0
- package/dist/vanilla/examples.js.map +1 -0
- package/dist/vanilla/index.d.ts +4 -0
- package/dist/vanilla/index.js +4 -0
- package/dist/vanilla/index.js.map +1 -0
- package/dist/vanilla/makecode-frame-driver.d.ts +263 -0
- package/dist/vanilla/makecode-frame-driver.js +609 -0
- package/dist/vanilla/makecode-frame-driver.js.map +1 -0
- package/dist/vanilla/makecode-render-blocks.d.ts +32 -0
- package/dist/vanilla/makecode-render-blocks.js +214 -0
- package/dist/vanilla/makecode-render-blocks.js.map +1 -0
- package/dist/vanilla/pxt.d.ts +875 -0
- package/dist/vanilla/pxt.js +33 -0
- package/dist/vanilla/pxt.js.map +1 -0
- package/package.json +68 -0
- package/storybook-static/assets/Color-KGDBMAHA-Dc_5Y-jU.js +1 -0
- package/storybook-static/assets/DocsRenderer-PKQXORMH-Cguo1Gle.js +574 -0
- package/storybook-static/assets/MakeCodeBlocksRendering.stories-BlUxOnyw.js +464 -0
- package/storybook-static/assets/MakeCodeFrame.stories-CLEdpFft.js +47 -0
- package/storybook-static/assets/entry-preview-BD3I3EAZ.js +1 -0
- package/storybook-static/assets/entry-preview-docs-BZaLlg6H.js +62 -0
- package/storybook-static/assets/iframe-BXldcLa5.js +2 -0
- package/storybook-static/assets/index-BrV66TDq.js +1 -0
- package/storybook-static/assets/index-CCdbwdZP.js +1 -0
- package/storybook-static/assets/index-D-8MO0q_.js +1 -0
- package/storybook-static/assets/index-DrFu-skq.js +6 -0
- package/storybook-static/assets/index-SSXOyoI7.js +9 -0
- package/storybook-static/assets/isArray-D0A16MCt.js +8 -0
- package/storybook-static/assets/jsx-runtime-DFKZ3ixi.js +9 -0
- package/storybook-static/assets/preview-9hFJSo5S.js +20 -0
- package/storybook-static/assets/preview-BJPLiuSt.js +1 -0
- package/storybook-static/assets/preview-BnWGZYux.js +1 -0
- package/storybook-static/assets/preview-BpcF_O6y.js +7 -0
- package/storybook-static/assets/preview-BrwKgnKZ.js +2 -0
- package/storybook-static/assets/preview-CIRcjyVj.js +1 -0
- package/storybook-static/assets/preview-Cdum89jS.js +1 -0
- package/storybook-static/assets/preview-Ct5NkTJf.js +1 -0
- package/storybook-static/assets/preview-DB9FwMii.js +396 -0
- package/storybook-static/assets/preview-gLmJTRpJ.js +28 -0
- package/storybook-static/assets/react-18-4p7UWKLl.js +24 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +639 -0
- package/storybook-static/index.html +181 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +333 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +412 -0
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +234 -0
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/links-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +995 -0
- package/storybook-static/sb-manager/globals-runtime.js +53525 -0
- package/storybook-static/sb-manager/globals.js +48 -0
- package/storybook-static/sb-manager/runtime.js +11884 -0
- package/storybook-static/sb-preview/globals.js +33 -0
- package/storybook-static/sb-preview/runtime.js +9485 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
|
|
6
|
+
<title>storybook - Storybook</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
11
|
+
|
|
12
|
+
<style>
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Nunito Sans';
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-display: swap;
|
|
18
|
+
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Nunito Sans';
|
|
23
|
+
font-style: italic;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Nunito Sans';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Nunito Sans';
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
|
|
46
|
+
<link href="./sb-manager/runtime.js" rel="modulepreload" />
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<link href="./sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />
|
|
50
|
+
|
|
51
|
+
<link href="./sb-addons/links-1/manager-bundle.js" rel="modulepreload" />
|
|
52
|
+
|
|
53
|
+
<link href="./sb-addons/essentials-controls-2/manager-bundle.js" rel="modulepreload" />
|
|
54
|
+
|
|
55
|
+
<link href="./sb-addons/essentials-actions-3/manager-bundle.js" rel="modulepreload" />
|
|
56
|
+
|
|
57
|
+
<link href="./sb-addons/essentials-backgrounds-4/manager-bundle.js" rel="modulepreload" />
|
|
58
|
+
|
|
59
|
+
<link href="./sb-addons/essentials-viewport-5/manager-bundle.js" rel="modulepreload" />
|
|
60
|
+
|
|
61
|
+
<link href="./sb-addons/essentials-toolbars-6/manager-bundle.js" rel="modulepreload" />
|
|
62
|
+
|
|
63
|
+
<link href="./sb-addons/essentials-measure-7/manager-bundle.js" rel="modulepreload" />
|
|
64
|
+
|
|
65
|
+
<link href="./sb-addons/essentials-outline-8/manager-bundle.js" rel="modulepreload" />
|
|
66
|
+
|
|
67
|
+
<link href="./sb-addons/chromatic-com-storybook-9/manager-bundle.js" rel="modulepreload" />
|
|
68
|
+
|
|
69
|
+
<link href="./sb-addons/interactions-10/manager-bundle.js" rel="modulepreload" />
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<style>
|
|
73
|
+
#storybook-root[hidden] {
|
|
74
|
+
display: none !important;
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</head>
|
|
80
|
+
<body>
|
|
81
|
+
<div id="root"></div>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<script>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
window['FEATURES'] = {
|
|
88
|
+
"argTypeTargetsV7": true,
|
|
89
|
+
"legacyDecoratorFileOrder": false,
|
|
90
|
+
"disallowImplicitActionsInRenderV8": true
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
window['REFS'] = {};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
window['LOGLEVEL'] = "info";
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
window['DOCS_OPTIONS'] = {
|
|
104
|
+
"defaultName": "Docs",
|
|
105
|
+
"autodocs": "tag"
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
window['CONFIG_TYPE'] = "PRODUCTION";
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
window['TAGS_OPTIONS'] = {
|
|
119
|
+
"dev-only": {
|
|
120
|
+
"excludeFromDocsStories": true
|
|
121
|
+
},
|
|
122
|
+
"docs-only": {
|
|
123
|
+
"excludeFromSidebar": true
|
|
124
|
+
},
|
|
125
|
+
"test-only": {
|
|
126
|
+
"excludeFromSidebar": true,
|
|
127
|
+
"excludeFromDocsStories": true
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
window['STORYBOOK_RENDERER'] = "react";
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
window['STORYBOOK_BUILDER'] = "@storybook/builder-vite";
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
window['STORYBOOK_FRAMEWORK'] = "@storybook/react-vite";
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</script>
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
<script type="module">
|
|
148
|
+
import './sb-manager/globals-runtime.js';
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
import './sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js';
|
|
152
|
+
|
|
153
|
+
import './sb-addons/links-1/manager-bundle.js';
|
|
154
|
+
|
|
155
|
+
import './sb-addons/essentials-controls-2/manager-bundle.js';
|
|
156
|
+
|
|
157
|
+
import './sb-addons/essentials-actions-3/manager-bundle.js';
|
|
158
|
+
|
|
159
|
+
import './sb-addons/essentials-backgrounds-4/manager-bundle.js';
|
|
160
|
+
|
|
161
|
+
import './sb-addons/essentials-viewport-5/manager-bundle.js';
|
|
162
|
+
|
|
163
|
+
import './sb-addons/essentials-toolbars-6/manager-bundle.js';
|
|
164
|
+
|
|
165
|
+
import './sb-addons/essentials-measure-7/manager-bundle.js';
|
|
166
|
+
|
|
167
|
+
import './sb-addons/essentials-outline-8/manager-bundle.js';
|
|
168
|
+
|
|
169
|
+
import './sb-addons/chromatic-com-storybook-9/manager-bundle.js';
|
|
170
|
+
|
|
171
|
+
import './sb-addons/interactions-10/manager-bundle.js';
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
import './sb-manager/runtime.js';
|
|
175
|
+
</script>
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
<link href="./sb-preview/runtime.js" rel="prefetch" as="script" />
|
|
179
|
+
|
|
180
|
+
</body>
|
|
181
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"v":5,"entries":{"stories-makecodeblocksrendering--simple":{"type":"story","id":"stories-makecodeblocksrendering--simple","name":"Simple","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--xml":{"type":"story","id":"stories-makecodeblocksrendering--xml","name":"XML","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--published":{"type":"story","id":"stories-makecodeblocksrendering--published","name":"Published","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--melody":{"type":"story","id":"stories-makecodeblocksrendering--melody","name":"Melody","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--extension-block-single":{"type":"story","id":"stories-makecodeblocksrendering--extension-block-single","name":"Extension block (single)","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--extension-block-two":{"type":"story","id":"stories-makecodeblocksrendering--extension-block-two","name":"Extension block (two different)","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--extension-block-strawbees":{"type":"story","id":"stories-makecodeblocksrendering--extension-block-strawbees","name":"Extension block (Strawbees - spaces in name)","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--extension-block-datalogging":{"type":"story","id":"stories-makecodeblocksrendering--extension-block-datalogging","name":"Extension block (Datalogging)","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--custom-block":{"type":"story","id":"stories-makecodeblocksrendering--custom-block","name":"Custom block","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--error":{"type":"story","id":"stories-makecodeblocksrendering--error","name":"Error","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--robust":{"type":"story","id":"stories-makecodeblocksrendering--robust","name":"Robust against invalid/empty project","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--initial-blank-project":{"type":"story","id":"stories-makecodeblocksrendering--initial-blank-project","name":"Initial blank project","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--empty-string":{"type":"story","id":"stories-makecodeblocksrendering--empty-string","name":"Empty string","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--empty-to-blocks-transition":{"type":"story","id":"stories-makecodeblocksrendering--empty-to-blocks-transition","name":"Empty to blocks transition","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeblocksrendering--respect-user-layout":{"type":"story","id":"stories-makecodeblocksrendering--respect-user-layout","name":"Respect user layout","title":"stories/MakeCodeBlocksRendering","importPath":"./src/stories/MakeCodeBlocksRendering.stories.tsx","componentPath":"../react/MakeCodeRenderBlocksProvider.js","tags":["dev","test"]},"stories-makecodeframe--make-code-editor-with-controls-story":{"type":"story","id":"stories-makecodeframe--make-code-editor-with-controls-story","name":"MakeCode Editor with controls","title":"stories/MakeCodeFrame","importPath":"./src/stories/MakeCodeFrame.stories.tsx","componentPath":"../react/MakeCodeFrame.js","tags":["dev","test"]},"stories-makecodeframe--make-code-editor-controller-app-mode-story":{"type":"story","id":"stories-makecodeframe--make-code-editor-controller-app-mode-story","name":"MakeCode Editor with controller=2 mode","title":"stories/MakeCodeFrame","importPath":"./src/stories/MakeCodeFrame.stories.tsx","componentPath":"../react/MakeCodeFrame.js","tags":["dev","test"]}}}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"generatedAt":1725898150392,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"packageManager":{"type":"npm","version":"10.8.2"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.9","storybookVersionSpecifier":"^8.2.9","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.2.9"},"@storybook/react":{"version":"8.2.9"},"@storybook/react-vite":{"version":"8.2.9"},"@storybook/test":{"version":"8.2.9"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.2.9"}},"addons":{"@storybook/addon-links":{"version":"8.2.9"},"@storybook/addon-essentials":{"version":"8.2.9"},"@chromatic-com/storybook":{"version":"1.9.0"},"@storybook/addon-interactions":{"version":"8.2.9"}}}
|