@gramlot/gramlot 0.3.37 → 0.3.39

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.
Files changed (132) hide show
  1. package/dist/components/audio/__init__.py +1 -1
  2. package/dist/components/audio/assets/collection.js +4 -3
  3. package/dist/components/audio/assets/index.js +1 -1
  4. package/dist/components/charts/__init__.py +2 -2
  5. package/dist/components/charts/assets/collection.js +3 -28
  6. package/dist/components/charts/assets/index.js +1 -1
  7. package/dist/components/charts/assets/libraries/chunks/chunk-LVZ6SHV2.js +1 -0
  8. package/dist/components/charts/assets/{modules/echarts.esm.min-VHLRZDVQ.js → libraries/echarts.js} +1 -1
  9. package/dist/components/charts/assets/{modules/plotly.min-SSDU2DOH.js → libraries/plotly.js} +1 -1
  10. package/dist/components/charts/assets/{modules/uPlot.esm-Q2UYUQHJ.js → libraries/uplot.js} +1 -1
  11. package/dist/components/charts/assets/libraries/uplotStyle.js +1 -0
  12. package/dist/components/charts/assets/{modules/vega.module-Y5CWNSZO.js → libraries/vega.js} +1 -1
  13. package/dist/components/chat/__init__.py +1 -1
  14. package/dist/components/chat/assets/collection.js +4 -9
  15. package/dist/components/chat/assets/index.js +1 -1
  16. package/dist/components/drawing/__init__.py +1 -1
  17. package/dist/components/drawing/assets/collection.js +4 -7
  18. package/dist/components/drawing/assets/index.js +1 -1
  19. package/dist/components/drawing/grammar.json +75 -0
  20. package/dist/components/editors/__init__.py +2 -2
  21. package/dist/components/editors/assets/collection.js +9 -7
  22. package/dist/components/editors/assets/index.js +1 -1
  23. package/dist/components/editors/assets/libraries/chunks/chunk-4TTZUUSG.js +1 -0
  24. package/dist/components/editors/assets/libraries/chunks/chunk-QRHUDCCH.js +1 -0
  25. package/dist/components/editors/assets/libraries/chunks/chunk-XGS3SDSL.js +1 -0
  26. package/dist/components/editors/assets/{modules/code-mirror-engine-RWQTR5G5.js → libraries/codemirror.js} +2 -2
  27. package/dist/components/editors/assets/{modules/jodit-engine-CXRSFV47.js → libraries/jodit.js} +292 -292
  28. package/dist/components/editors/assets/libraries/markdownIt.js +1 -0
  29. package/dist/components/editors/assets/{modules/prose-mirror-engine-DQEAEIMV.js → libraries/prosemirror.js} +1 -1
  30. package/dist/components/editors/assets/{modules/xterm-UBEXZEYY.js → libraries/xterm.js} +1 -1
  31. package/dist/components/editors/assets/{modules/addon-fit-L6JK4OJX.js → libraries/xtermFit.js} +1 -1
  32. package/dist/components/editors/assets/{modules/xterm-BF3OSWRI.js → libraries/xtermStyle.js} +1 -1
  33. package/dist/components/grid/__init__.py +2 -2
  34. package/dist/components/grid/assets/collection.js +4 -286
  35. package/dist/components/grid/assets/index.js +1 -1
  36. package/dist/components/grid/assets/{modules/browser-Y2BRNI3P.js → libraries/writeExcelFile.js} +1 -1
  37. package/dist/components/grouplets/__init__.py +2 -2
  38. package/dist/components/grouplets/assets/collection.js +5 -185
  39. package/dist/components/grouplets/assets/index.js +1 -1
  40. package/dist/components/grouplets/assets/libraries/markdownIt.js +1 -0
  41. package/dist/components/inputs/__init__.py +1 -1
  42. package/dist/components/inputs/assets/collection.js +22 -65
  43. package/dist/components/inputs/assets/index.js +1 -1
  44. package/dist/components/layout/__init__.py +1 -1
  45. package/dist/components/layout/assets/collection.js +14 -218
  46. package/dist/components/layout/assets/index.js +1 -1
  47. package/dist/components/layout/grammar.json +146 -1
  48. package/dist/components/selection_trial/__init__.py +1 -1
  49. package/dist/components/selection_trial/assets/collection.js +2 -4
  50. package/dist/components/selection_trial/assets/index.js +1 -1
  51. package/dist/components/tree/__init__.py +1 -1
  52. package/dist/components/tree/assets/collection.js +5 -31
  53. package/dist/components/tree/assets/index.js +1 -1
  54. package/dist/components/typst/__init__.py +2 -2
  55. package/dist/components/typst/assets/collection.js +3 -3
  56. package/dist/components/typst/assets/index.js +1 -1
  57. package/dist/components/typst/assets/libraries/typst.js +4 -0
  58. package/dist/components/uploads/__init__.py +1 -1
  59. package/dist/components/uploads/assets/collection.js +6 -40
  60. package/dist/components/uploads/assets/index.js +1 -1
  61. package/dist/components/uploads/grammar.json +15 -0
  62. package/dist/declared-collections.js +1 -1
  63. package/dist/gramlot.js +23518 -5533
  64. package/dist/gramlot.min.js +915 -50
  65. package/dist/libraries.json +10 -1
  66. package/dist/standard-collections.js +1 -1
  67. package/dist/standard-grammar.js +3 -0
  68. package/package.json +3 -2
  69. package/src/bootstrap.js +6 -0
  70. package/src/build-plugins.d.ts +9 -0
  71. package/src/build-plugins.js +59 -0
  72. package/src/bundled-collections.js +25 -0
  73. package/src/components/attachment-manager.js +1 -1
  74. package/src/components/border-container.js +1 -1
  75. package/src/components/chart-fields.js +1 -1
  76. package/src/components/chart-pane.js +2 -1
  77. package/src/components/chart-renderer.js +1 -1
  78. package/src/components/chart-type-data.js +1 -1
  79. package/src/components/charts.js +1 -1
  80. package/src/components/chat.js +1 -1
  81. package/src/components/check-box-text.js +1 -1
  82. package/src/components/check-box-tree.js +1 -1
  83. package/src/components/choice-editor.js +1 -1
  84. package/src/components/database-choices.js +1 -1
  85. package/src/components/drawing.js +10 -4
  86. package/src/components/editing-status.js +1 -1
  87. package/src/components/grid-cell-editor.js +3 -1
  88. package/src/components/grid-column-filters.js +2 -1
  89. package/src/components/grid-selection.js +1 -1
  90. package/src/components/grid-structure.js +1 -1
  91. package/src/components/grid-tools.js +1 -1
  92. package/src/components/grid.js +1 -1
  93. package/src/components/grouplet-card.js +2 -1
  94. package/src/components/html-preview.js +2 -1
  95. package/src/components/image-crop-dialog.js +44 -4
  96. package/src/components/image-rectangle-selection.js +128 -0
  97. package/src/components/image-uploader.js +2 -1
  98. package/src/components/index.js +1 -0
  99. package/src/components/jodit-engine.js +1 -1
  100. package/src/components/markdown-document.js +1 -1
  101. package/src/components/tray-geometry.js +35 -0
  102. package/src/components/tray-pane.js +50 -7
  103. package/src/components/tree.js +2 -1
  104. package/src/components/upload-engine.js +1 -1
  105. package/src/components/uploader.js +1 -1
  106. package/src/components/validation.js +1 -1
  107. package/src/components/window-surface.js +122 -18
  108. package/src/components/windows.js +3 -2
  109. package/src/experiments/selection-transfer.js +2 -1
  110. package/src/experiments/selection-trial.js +1 -1
  111. package/src/experiments/window-selection.js +1 -1
  112. package/src/handlers/source-handler.d.ts +3 -0
  113. package/src/handlers/source-handler.js +18 -1
  114. package/src/index.d.ts +5 -0
  115. package/src/index.js +4 -0
  116. package/src/libraries.js +4 -1
  117. package/src/server/gramlot-server.d.ts +4 -0
  118. package/src/server/gramlot-server.js +16 -1
  119. package/src/shared-modules.js +28 -1
  120. package/src/view/html.js +8 -1
  121. package/dist/components/charts/assets/modules/chunk-USZCUBTC.js +0 -1
  122. package/dist/components/charts/assets/modules/uPlot.min-XXHNQFXH.js +0 -1
  123. package/dist/components/editors/assets/modules/chunk-74O4WKIV.js +0 -1
  124. package/dist/components/editors/assets/modules/chunk-AU4HFPIY.js +0 -1
  125. package/dist/components/editors/assets/modules/markdown-document-VFC23FAY.js +0 -1
  126. package/dist/components/grid/assets/modules/chunk-BLMUM44K.js +0 -1
  127. package/dist/components/grouplets/assets/modules/chunk-BLMUM44K.js +0 -1
  128. package/dist/components/grouplets/assets/modules/markdown-document-YWNZTOKK.js +0 -1
  129. package/dist/components/typst/assets/modules/chunk-BLMUM44K.js +0 -1
  130. package/dist/components/typst/assets/modules/typst-client-JHC6UVYG.js +0 -4
  131. /package/dist/components/charts/assets/{modules/echarts-gl.min-N6L67H2M.js → libraries/echartsGl.js} +0 -0
  132. /package/dist/components/editors/assets/{modules/chunk-YSGSC7KM.js → libraries/chunks/chunk-TSYAHRZC.js} +0 -0
package/src/index.d.ts CHANGED
@@ -69,8 +69,13 @@ export {VisualEditor} from './server/visual-editor.js';
69
69
  export {SourceImport} from './server/source-import.js';
70
70
  export {SourcePicker} from './source-picker.js';
71
71
 
72
+ /** 16 random bytes as 32 lowercase hex characters, the format of the Python `uuid4().hex` ids of the server. */
73
+ export declare function randomId(): string;
74
+
72
75
  /** The libraries and runtime modules shared with prepared collections, keyed by import specifier. */
73
76
  export declare const sharedModules: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
77
+ /** The standard collections, carried by the runtime bundle (GC-325 §165). */
78
+ export declare const bundledCollections: ReadonlyArray<{readonly name: string; register(window: Window): void}>;
74
79
  /** One third-party library of the manifest (GC-325 §160). */
75
80
  export interface LibraryEntry {
76
81
  readonly packages: Readonly<Record<string, string>>;
package/src/index.js CHANGED
@@ -64,5 +64,9 @@ export {SourcePicker} from './source-picker.js';
64
64
 
65
65
  // Prepared collections read the shared libraries and runtime modules from this table (GC-325 §155).
66
66
  export {sharedModules} from './shared-modules.js';
67
+ // The standard collections of the runtime bundle: no collection file loads for them.
68
+ export {bundledCollections} from './bundled-collections.js';
67
69
  // Third-party libraries of components: the manifest and the loader on first use (GC-325 §160).
68
70
  export {libraries, loadLibrary} from './libraries.js';
71
+ // The random id of the runtime, for collections prepared outside this package.
72
+ export {randomId} from './random-id.js';
package/src/libraries.js CHANGED
@@ -55,7 +55,7 @@ export const libraries = Object.freeze({
55
55
  '@codemirror/autocomplete': '6.20.4', '@codemirror/commands': '6.11.1', '@codemirror/lang-css': '6.3.1',
56
56
  '@codemirror/lang-html': '6.4.12', '@codemirror/lang-javascript': '6.2.5', '@codemirror/lang-json': '6.0.2',
57
57
  '@codemirror/lang-markdown': '6.5.2', '@codemirror/lang-python': '6.2.1', '@codemirror/lang-sql': '6.10.0',
58
- '@codemirror/lang-xml': '6.1.0', '@codemirror/language': '6.13.1', '@codemirror/lint': '6.9.7',
58
+ '@codemirror/lang-xml': '6.1.0', '@codemirror/language': '6.13.1', '@codemirror/lint': '6.9.8',
59
59
  '@codemirror/search': '6.7.2', '@codemirror/state': '6.7.6', '@codemirror/view': '6.43.15',
60
60
  '@lezer/highlight': '1.2.5', 'codemirror-lang-typst': '0.6.0'},
61
61
  local: './components/code-mirror-engine.js', url: null, integrity: null, format: 'module'}),
@@ -64,6 +64,9 @@ export const libraries = Object.freeze({
64
64
  'prosemirror-markdown': '1.13.1', 'prosemirror-model': '1.25.12', 'prosemirror-state': '1.4.3',
65
65
  'prosemirror-view': '1.42.6'},
66
66
  local: './components/prose-mirror-engine.js', url: null, integrity: null, format: 'module'}),
67
+ // The Markdown renderer of Gramlot; markdown-it itself is the runtime file gramlot-markdown.js.
68
+ markdownIt: Object.freeze({packages: {'markdown-it': '14.3.3'}, local: './components/markdown-document.js',
69
+ url: null, integrity: null, format: 'module'}),
67
70
  typst: Object.freeze({packages: {'@myriaddreamin/typst.ts': '0.7.0', '@myriaddreamin/typst-ts-web-compiler': '0.7.0',
68
71
  '@myriaddreamin/typst-ts-renderer': '0.7.0'},
69
72
  local: './components/typst-client.js', url: null, integrity: null, format: 'module'}),
@@ -56,6 +56,8 @@ export interface PreparedCollection {
56
56
  module: string;
57
57
  css: string[];
58
58
  dependencies: string[];
59
+ /** The local copy of each third-party library the artifact ships, by library name (GC-325 §165). */
60
+ libraries?: Record<string, string>;
59
61
  }
60
62
 
61
63
  /** The options of a `GramlotServer`. */
@@ -136,6 +138,8 @@ export class GramlotServer {
136
138
  /** Environment-local Page class; the imported class remains unchanged. */
137
139
  environmentPage(PageClass: typeof Page): typeof Page;
138
140
  collectionGraph(collections: PreparedCollection[]): PreparedCollection[];
141
+ /** The URL of the local copy of each library the collections ship: the first collection that ships it provides it. */
142
+ libraryModules(collections: PreparedCollection[]): Record<string, string>;
139
143
  loadCollections(builder: GramlotBuilder, collections: PreparedCollection[]): void;
140
144
  constructor(options?: GramlotServerOptions);
141
145
  /** The Page class of `path`, or `PageNotFound`. */
@@ -173,6 +173,18 @@ export class GramlotServer {
173
173
  return this.collectionGraph([...this.collections, ...classes.flatMap(cls => Object.hasOwn(cls, 'gramlots') ? cls.gramlots : [])]);
174
174
  }
175
175
 
176
+ /** The URL of the local copy of each third-party library the collections ship (GC-325 §160): the
177
+ * `libraries` of a prepared descriptor name the modules `assets/libraries/<name>.js` of its artifact, which
178
+ * `loadLibrary` imports as `@gramlot/libraries/<name>` through the import map. The first collection of the
179
+ * graph that ships a library provides it; a descriptor without `libraries` ships none. */
180
+ libraryModules(collections) {
181
+ const modules = {};
182
+ for (const collection of collections) {
183
+ for (const [name, url] of Object.entries(collection.libraries ?? {})) if (!Object.hasOwn(modules, name)) modules[name] = url;
184
+ }
185
+ return modules;
186
+ }
187
+
176
188
  /** Bind this environment without modifying a module shared by other hosts. */
177
189
  environmentPage(PageClass) {
178
190
  if (!this.collections.length) return PageClass;
@@ -330,6 +342,7 @@ export class GramlotServer {
330
342
  if (typeof name!=='string' || !name || typeof module!=='string' || !/^sha256:[0-9a-f]{64}$/.test(buildId)) throw new TypeError('Invalid prepared collection identity');
331
343
  return {name,url:module,buildId};
332
344
  });
345
+ resources.libraries = this.libraryModules(selected);
333
346
  if (this.serverAdapter !== null) resources.serverAdapter = this.serverAdapter;
334
347
  this.prune();
335
348
  if (this.pages.size >= this.maxPages) throw new ServerCapacity('Page registry capacity reached');
@@ -377,7 +390,9 @@ export class GramlotServer {
377
390
  ...Object.fromEntries((resources.collections ?? []).map(({name,url})=>[`@gramlot/collections/${encodeURIComponent(name)}`,prefixed(prefix,url)])),
378
391
  // A page module imports a declared core collection for gramlots.
379
392
  ...Object.fromEntries((resources.collections ?? []).filter(({name})=>declared.has(name))
380
- .map(({name,url})=>[`@gramlot/gramlot/collections/${name}`,prefixed(prefix,url)]))},
393
+ .map(({name,url})=>[`@gramlot/gramlot/collections/${name}`,prefixed(prefix,url)])),
394
+ // loadLibrary imports the local copy of a library from its collection.
395
+ ...Object.fromEntries(Object.entries(resources.libraries).map(([name,url])=>[`@gramlot/libraries/${name}`,prefixed(prefix,url)]))},
381
396
  ...(this.librarySource === 'cdn' ? {integrity: Object.fromEntries(Object.values(this.libraries)
382
397
  .filter(entry => entry.url !== null && entry.format !== 'style').map(entry => [entry.url, entry.integrity]))} : {})}),
383
398
  {type: 'importmap', nonce});
@@ -9,7 +9,7 @@
9
9
  * A key is the import specifier: the package name for a library, the path relative to this
10
10
  * directory for a runtime module. The generator refuses a collection that would bundle a module of
11
11
  * the runtime missing from this table. big.js and @xmldom/xmldom are not shared: the browser runtime
12
- * does not ship them (see `scripts/runtime-options.mjs`).
12
+ * does not ship them (see `build-plugins.js`).
13
13
  *
14
14
  * @module
15
15
  */
@@ -34,6 +34,7 @@ import * as bagCollectionStore from './stores/bag-collection-store.js';
34
34
  import * as bagCollectionView from './stores/bag-collection-view.js';
35
35
  import * as bases from './components/bases.js';
36
36
  import * as choices from './components/choices.js';
37
+ import * as container from './components/container.js';
37
38
  import * as choiceFieldStyles from './components/choice-field-styles.js';
38
39
  import * as fieldState from './components/field-state.js';
39
40
  import * as gridFormulas from './components/grid-formulas.js';
@@ -42,6 +43,18 @@ import * as labelbox from './components/labelbox.js';
42
43
  import * as parameters from './components/parameters.js';
43
44
  import * as popup from './components/popup.js';
44
45
  import * as validation from './components/validation.js';
46
+ import * as inputs from './components/inputs.js';
47
+ import * as layout from './components/layout.js';
48
+ import * as tree from './components/tree.js';
49
+ import * as grid from './components/grid.js';
50
+ import * as editors from './components/editors.js';
51
+ import * as grouplets from './components/grouplets.js';
52
+ import * as chat from './components/chat.js';
53
+ import * as charts from './components/charts.js';
54
+ import * as audio from './components/audio.js';
55
+ import * as drawing from './components/drawing.js';
56
+ import * as uploads from './components/uploads.js';
57
+ import * as gridSearchModule from './components/grid-search.js';
45
58
 
46
59
  export const sharedModules = Object.freeze({
47
60
  '@genrojs/bag': genrojsBag,
@@ -65,6 +78,7 @@ export const sharedModules = Object.freeze({
65
78
  './stores/bag-collection-view.js': bagCollectionView,
66
79
  './components/bases.js': bases,
67
80
  './components/choices.js': choices,
81
+ './components/container.js': container,
68
82
  './components/choice-field-styles.js': choiceFieldStyles,
69
83
  './components/field-state.js': fieldState,
70
84
  './components/grid-formulas.js': gridFormulas,
@@ -73,4 +87,17 @@ export const sharedModules = Object.freeze({
73
87
  './components/parameters.js': parameters,
74
88
  './components/popup.js': popup,
75
89
  './components/validation.js': validation,
90
+ // The collections of the runtime bundle (bundled-collections.js) and the modules they share.
91
+ './components/inputs.js': inputs,
92
+ './components/layout.js': layout,
93
+ './components/tree.js': tree,
94
+ './components/grid.js': grid,
95
+ './components/editors.js': editors,
96
+ './components/grouplets.js': grouplets,
97
+ './components/chat.js': chat,
98
+ './components/charts.js': charts,
99
+ './components/audio.js': audio,
100
+ './components/drawing.js': drawing,
101
+ './components/uploads.js': uploads,
102
+ './components/grid-search.js': gridSearchModule,
76
103
  });
package/src/view/html.js CHANGED
@@ -253,7 +253,13 @@ export class HtmlElement {
253
253
  const parent = node.parentNode;
254
254
  if (parent?._getMeta('gramlot_component')?.childParameters) {
255
255
  const Parent = element.ownerDocument.defaultView.customElements.get(parent._getMeta('render_tag'));
256
- attrs = Parent.projectChild(record.presentation, attrs, {
256
+ // A child parameter marked childParameter is offered to the parent's child parameter of the same name;
257
+ // the child keeps it for its own projection.
258
+ const childParameters = parent._getMeta('gramlot_component').childParameters;
259
+ const offered = Object.entries(this.definition(node).meta.gramlot_component?.parameters ?? {})
260
+ .filter(([name, spec]) => spec.childParameter && Object.hasOwn(childParameters, name))
261
+ .map(([name, spec]) => [name, attrs[name] ?? spec.default]);
262
+ const projected = Parent.projectChild(record.presentation, {...attrs, ...Object.fromEntries(offered)}, {
257
263
  label: node.label,
258
264
  adapt,
259
265
  invoke: (name, code, keywords) => this.invokeScript(node, name, code, keywords),
@@ -263,6 +269,7 @@ export class HtmlElement {
263
269
  writeParameter: (name, value) => this.writeParameter(node, name, value),
264
270
  remove: () => node.parentBag.popNode(node.label),
265
271
  });
272
+ attrs = {...projected, ...Object.fromEntries(offered.filter(([name]) => attrs[name] != null).map(([name]) => [name, attrs[name]]))};
266
273
  }
267
274
  if (record.labelbox) {
268
275
  record.labelbox.box.style.visibility = '';
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}},l=(b,a)=>{for(var c in a)g(b,c,{get:a[c],enumerable:!0})},f=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!j.call(b,d)&&d!==c&&g(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b},m=(b,a,c)=>(f(b,a,"default"),c&&f(c,a,"default"));export{k as a,l as b,m as c};
@@ -1 +0,0 @@
1
- import"./chunk-USZCUBTC.js";var i='.uplot, .uplot *, .uplot *::before, .uplot *::after {box-sizing: border-box;}.uplot {font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height: 1.5;width: min-content;}.u-title {text-align: center;font-size: 18px;font-weight: bold;}.u-wrap {position: relative;user-select: none;}.u-over, .u-under {position: absolute;}.u-under {overflow: hidden;}.uplot canvas {display: block;position: relative;width: 100%;height: 100%;}.u-axis {position: absolute;}.u-legend {font-size: 14px;margin: auto;text-align: center;}.u-inline {display: block;}.u-inline * {display: inline-block;}.u-inline tr {margin-right: 16px;}.u-legend th {font-weight: 600;}.u-legend th > * {vertical-align: middle;display: inline-block;}.u-legend .u-marker {width: 1em;height: 1em;margin-right: 4px;background-clip: padding-box !important;}.u-inline.u-live th::after {content: ":";vertical-align: middle;}.u-inline:not(.u-live) .u-value {display: none;}.u-series > * {padding: 4px;}.u-series th {cursor: pointer;}.u-legend .u-off > * {opacity: 0.3;}.u-select {background: rgba(0,0,0,0.07);position: absolute;pointer-events: none;}.u-cursor-x, .u-cursor-y {position: absolute;left: 0;top: 0;pointer-events: none;will-change: transform;}.u-hz .u-cursor-x, .u-vt .u-cursor-y {height: 100%;border-right: 1px dashed #607D8B;}.u-hz .u-cursor-y, .u-vt .u-cursor-x {width: 100%;border-bottom: 1px dashed #607D8B;}.u-cursor-pt {position: absolute;top: 0;left: 0;border-radius: 50%;border: 0 solid;pointer-events: none;will-change: transform;/*this has to be !important since we set inline "background" shorthand */background-clip: padding-box !important;}.u-axis.u-off, .u-select.u-off, .u-cursor-x.u-off, .u-cursor-y.u-off, .u-cursor-pt.u-off {display: none;}';export{i as default};
@@ -1 +0,0 @@
1
- import t from"@gramlot/gramlot/markdown";import{createDOMPurify as d}from"@gramlot/gramlot";var a=new t({html:!1}),i=new t({html:!0}),l="body{font:16px/1.6 system-ui;color:#243449;background:white;padding:24px;margin:0;overflow-wrap:anywhere}table{border-collapse:collapse}td,th{border:1px solid #ccd3dd;padding:6px 12px}pre{overflow:auto;background:#edf1f7;padding:12px;border-radius:4px}code{font-size:.9em}img{max-width:100%}blockquote{border-left:3px solid #ccd3dd;margin-left:0;padding-left:16px}a{color:#3566aa}";function m(e,{allowHtml:r=!1,document:o}={}){if(typeof e!="string")throw new TypeError("Markdown preview value must be a string");let n=r?d(o.defaultView).sanitize(i.render(e),{USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","input","button","select","textarea"]}):a.render(e);return`<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; form-action 'none'"><style>${l}</style></head><body>${n}</body></html>`}export{a,m as b};
@@ -1 +0,0 @@
1
- var h=Object.create;var g=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(b,a,c)=>()=>{if(c)throw c[0];try{return b&&(a=b(b=0)),a}catch(d){throw c=[d],d}};var n=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}},o=(b,a)=>{for(var c in a)g(b,c,{get:a[c],enumerable:!0})},f=(b,a,c,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let e of j(a))!l.call(b,e)&&e!==c&&g(b,e,{get:()=>a[e],enumerable:!(d=i(a,e))||d.enumerable});return b},p=(b,a,c)=>(f(b,a,"default"),c&&f(c,a,"default")),q=(b,a,c)=>(c=b!=null?h(k(b)):{},f(a||!b||!b.__esModule?g(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c,p as d,q as e};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-74O4WKIV.js";import"./chunk-AU4HFPIY.js";export{a as markdownRenderer,b as renderMarkdownDocument};
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(b,a)=>{for(var c in a)g(b,c,{get:a[c],enumerable:!0})},f=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!j.call(b,d)&&d!==c&&g(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b},l=(b,a,c)=>(f(b,a,"default"),c&&f(c,a,"default"));export{k as a,l as b};
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(b,a)=>{for(var c in a)g(b,c,{get:a[c],enumerable:!0})},f=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!j.call(b,d)&&d!==c&&g(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b},l=(b,a,c)=>(f(b,a,"default"),c&&f(c,a,"default"));export{k as a,l as b};
@@ -1 +0,0 @@
1
- import"./chunk-BLMUM44K.js";import t from"@gramlot/gramlot/markdown";import{createDOMPurify as d}from"@gramlot/gramlot";var a=new t({html:!1}),i=new t({html:!0}),l="body{font:16px/1.6 system-ui;color:#243449;background:white;padding:24px;margin:0;overflow-wrap:anywhere}table{border-collapse:collapse}td,th{border:1px solid #ccd3dd;padding:6px 12px}pre{overflow:auto;background:#edf1f7;padding:12px;border-radius:4px}code{font-size:.9em}img{max-width:100%}blockquote{border-left:3px solid #ccd3dd;margin-left:0;padding-left:16px}a{color:#3566aa}";function m(e,{allowHtml:r=!1,document:o}={}){if(typeof e!="string")throw new TypeError("Markdown preview value must be a string");let n=r?d(o.defaultView).sanitize(i.render(e),{USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","input","button","select","textarea"]}):a.render(e);return`<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; form-action 'none'"><style>${l}</style></head><body>${n}</body></html>`}export{a as markdownRenderer,m as renderMarkdownDocument};
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(b,a)=>{for(var c in a)g(b,c,{get:a[c],enumerable:!0})},f=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!j.call(b,d)&&d!==c&&g(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b},l=(b,a,c)=>(f(b,a,"default"),c&&f(c,a,"default"));export{k as a,l as b};
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: package/dist/components/typst/assets/modules/typst-client-JHC6UVYG.js
3
- size: 42734789 bytes
4
- sha256: 831ded75f9a8f6c8596c1a75100d934c92beba245d9047d6636cd8dc7d38cfed