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/assets/js/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ window.addEventListener('DOMContentLoaded', () => {
}
};
const root = ReactDOM.createRoot(document.getElementById("app"));
root.render(React.createElement(IDocs.editor.App, appProps));
root.render(React.createElement(Chartifact.editor.App, appProps));
});
2 changes: 1 addition & 1 deletion docs/assets/js/view.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.addEventListener('DOMContentLoaded', () => {
host = new IDocs.host.Listener({
host = new Chartifact.host.Listener({
app: 'main',
loading: '#loading',
help: '#help',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}));
})(this, function(exports2) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react")) : typeof define === "function" && define.amd ? define(["exports", "react"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}, global.React));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react")) : typeof define === "function" && define.amd ? define(["exports", "react"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}, global.React));
})(this, function(exports2, React$1) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down Expand Up @@ -443,7 +443,7 @@ ${content}

</html>`;
const rendererUmdJs = `(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vega"), require("vega-lite")) : typeof define === "function" && define.amd ? define(["exports", "vega", "vega-lite"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}, global.vega, global.vegaLite));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vega"), require("vega-lite")) : typeof define === "function" && define.amd ? define(["exports", "vega", "vega-lite"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}, global.vega, global.vegaLite));
})(this, function(exports2, vega, vegaLite) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down Expand Up @@ -1258,7 +1258,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
if (safeCss.trim().length > 0) {
const styleElement = document.createElement("style");
styleElement.type = "text/css";
styleElement.id = \`idocs-css-\${index2}\`;
styleElement.id = \`chartifact-css-\${index2}\`;
styleElement.textContent = safeCss;
const target = renderer.shadowRoot || document.head;
target.appendChild(styleElement);
Expand Down Expand Up @@ -2810,7 +2810,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
document.addEventListener('DOMContentLoaded', () => {
let transactionIndex = 0;
const transactions = {};
renderer = new IDocs.markdown.Renderer(document.body, {
renderer = new Chartifact.markdown.Renderer(document.body, {
errorHandler: (error, pluginName, instanceIndex, phase, container, detail) => {
console.error(\`Error in plugin \${pluginName} at instance \${instanceIndex} during \${phase}:\`, error);
if (detail) {
Expand Down Expand Up @@ -2934,7 +2934,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
function createIframe(dependencies, renderRequest) {
const title = "Interactive Document Sandbox";
const title = "Chartifact Interactive Document Sandbox";
const html = rendererHtml.replace("{{TITLE}}", () => title).replace("{{DEPENDENCIES}}", () => dependencies).replace("{{RENDERER_SCRIPT}}", () => `<script>${rendererUmdJs}<\/script>`).replace("{{RENDER_REQUEST}}", () => `<script>const renderRequest = ${JSON.stringify(renderRequest)};<\/script>`).replace("{{SANDBOX_JS}}", () => `<script>${sandboxedJs}<\/script>`);
const htmlBlob = new Blob([html], { type: "text/html" });
const blobUrl = URL.createObjectURL(htmlBlob);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}));
})(this, function(exports2) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down Expand Up @@ -443,7 +443,7 @@ ${content}

</html>`;
const rendererUmdJs = `(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vega"), require("vega-lite")) : typeof define === "function" && define.amd ? define(["exports", "vega", "vega-lite"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}, global.vega, global.vegaLite));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vega"), require("vega-lite")) : typeof define === "function" && define.amd ? define(["exports", "vega", "vega-lite"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}, global.vega, global.vegaLite));
})(this, function(exports2, vega, vegaLite) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down Expand Up @@ -1258,7 +1258,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
if (safeCss.trim().length > 0) {
const styleElement = document.createElement("style");
styleElement.type = "text/css";
styleElement.id = \`idocs-css-\${index2}\`;
styleElement.id = \`chartifact-css-\${index2}\`;
styleElement.textContent = safeCss;
const target = renderer.shadowRoot || document.head;
target.appendChild(styleElement);
Expand Down Expand Up @@ -2810,7 +2810,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
document.addEventListener('DOMContentLoaded', () => {
let transactionIndex = 0;
const transactions = {};
renderer = new IDocs.markdown.Renderer(document.body, {
renderer = new Chartifact.markdown.Renderer(document.body, {
errorHandler: (error, pluginName, instanceIndex, phase, container, detail) => {
console.error(\`Error in plugin \${pluginName} at instance \${instanceIndex} during \${phase}:\`, error);
if (detail) {
Expand Down Expand Up @@ -2934,7 +2934,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
function createIframe(dependencies, renderRequest) {
const title = "Interactive Document Sandbox";
const title = "Chartifact Interactive Document Sandbox";
const html = rendererHtml.replace("{{TITLE}}", () => title).replace("{{DEPENDENCIES}}", () => dependencies).replace("{{RENDERER_SCRIPT}}", () => `<script>${rendererUmdJs}<\/script>`).replace("{{RENDER_REQUEST}}", () => `<script>const renderRequest = ${JSON.stringify(renderRequest)};<\/script>`).replace("{{SANDBOX_JS}}", () => `<script>${sandboxedJs}<\/script>`);
const htmlBlob = new Blob([html], { type: "text/html" });
const blobUrl = URL.createObjectURL(htmlBlob);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}));
})(this, function(exports2) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down Expand Up @@ -54,7 +54,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy

</html>`;
const rendererUmdJs = `(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vega"), require("vega-lite")) : typeof define === "function" && define.amd ? define(["exports", "vega", "vega-lite"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.IDocs = global.IDocs || {}, global.vega, global.vegaLite));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vega"), require("vega-lite")) : typeof define === "function" && define.amd ? define(["exports", "vega", "vega-lite"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.Chartifact = global.Chartifact || {}, global.vega, global.vegaLite));
})(this, function(exports2, vega, vegaLite) {
"use strict";var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
Expand Down Expand Up @@ -869,7 +869,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
if (safeCss.trim().length > 0) {
const styleElement = document.createElement("style");
styleElement.type = "text/css";
styleElement.id = \`idocs-css-\${index2}\`;
styleElement.id = \`chartifact-css-\${index2}\`;
styleElement.textContent = safeCss;
const target = renderer.shadowRoot || document.head;
target.appendChild(styleElement);
Expand Down Expand Up @@ -2421,7 +2421,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
document.addEventListener('DOMContentLoaded', () => {
let transactionIndex = 0;
const transactions = {};
renderer = new IDocs.markdown.Renderer(document.body, {
renderer = new Chartifact.markdown.Renderer(document.body, {
errorHandler: (error, pluginName, instanceIndex, phase, container, detail) => {
console.error(\`Error in plugin \${pluginName} at instance \${instanceIndex} during \${phase}:\`, error);
if (detail) {
Expand Down Expand Up @@ -2544,7 +2544,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
function createIframe(dependencies, renderRequest) {
const title = "Interactive Document Sandbox";
const title = "Chartifact Interactive Document Sandbox";
const html = rendererHtml.replace("{{TITLE}}", () => title).replace("{{DEPENDENCIES}}", () => dependencies).replace("{{RENDERER_SCRIPT}}", () => `<script>${rendererUmdJs}<\/script>`).replace("{{RENDER_REQUEST}}", () => `<script>const renderRequest = ${JSON.stringify(renderRequest)};<\/script>`).replace("{{SANDBOX_JS}}", () => `<script>${sandboxedJs}<\/script>`);
const htmlBlob = new Blob([html], { type: "text/html" });
const blobUrl = URL.createObjectURL(htmlBlob);
Expand Down
4 changes: 2 additions & 2 deletions docs/edit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Document Editor</title>
<title>Chartifact Interactive Document Editor</title>

<script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script>
<script src="../dist/idocs.editor.umd.js"></script>
<script src="../dist/v1/chartifact.editor.umd.js"></script>
</head>

<body>
Expand Down
8 changes: 4 additions & 4 deletions docs/view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Document Host</title>
<script src="../dist/idocs.host.umd.js"></script>
<title>Chartifact Interactive Document Host</title>
<script src="../dist/v1/chartifact.host.umd.js"></script>
<style>
body {
display: flex;
Expand Down Expand Up @@ -51,10 +51,10 @@
</div>

<div id="help" style="display: none;">
<h1>Interactive Document Host</h1>
<h1>Chartifact Interactive Document Host</h1>

<p>
<a href="/docs/">Learn more about interactive documents</a>
<a href="/docs/">Learn more about Chartifact interactive documents</a>
</p>

You can render interactive documents here via several methods:
Expand Down
46 changes: 21 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "@microsoft/interactive-documents",
"name": "@microsoft/chartifact-workspace",
"private": true,
"version": "1.0.0",
"scripts": {
"clean": "npm run clean --workspaces --if-present",
"build": "npm run build:00 --workspaces --if-present && npm run build:01 --workspaces --if-present && npm run build:02 --workspaces --if-present && npm run build:03 --workspaces --if-present && npm run build:04 --workspaces --if-present && npm run build:05 --workspaces --if-present && npm run build:06 --workspaces --if-present && npm run build:07 --workspaces --if-present && npm run build:08 --workspaces --if-present",
"build-host": "npm run build -w @microsoft/interactive-document-markdown && npm run build -w @microsoft/chartifact-sandbox && npm run build -w @microsoft/interactive-document-host",
"start": "concurrently \"npm run dev -w common\" \"npm run dev -w @microsoft/interactive-document-markdown\" \"npm run dev -w schema\" \"npm run dev -w @microsoft/interactive-document-compiler\" \"npm run dev -w editor\"",
"build-host": "npm run build -w @microsoft/chartifact-markdown && npm run build -w @microsoft/chartifact-sandbox && npm run build -w @microsoft/chartifact-host",
"start": "concurrently \"npm run dev -w common\" \"npm run dev -w @microsoft/chartifact-markdown\" \"npm run dev -w @microsoft/chartifact-schema\" \"npm run dev -w @microsoft/chartifact-compiler\" \"npm run dev -w @microsoft/chartifact-editor\"",
"package": "npm run package --workspaces --if-present"
},
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/interactive-documents.git"
"url": "git+https://github.com/microsoft/chartifact.git"
},
"author": "Dan Marshall",
"license": "MIT",
"bugs": {
"url": "https://github.com/microsoft/interactive-documents/issues"
"url": "https://github.com/microsoft/chartifact/issues"
},
"homepage": "https://github.com/microsoft/interactive-documents#readme",
"homepage": "https://github.com/microsoft/chartifact#readme",
"workspaces": [
"packages/*"
],
Expand Down
Loading