pict-docuserve 1.2.0 → 1.3.0
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/pict-docuserve.js
CHANGED
|
@@ -4206,7 +4206,7 @@ if(tmpIsRootRenderable&&pRenderable&&pRenderable.TransactionHash){this.pict.Tran
|
|
|
4206
4206
|
* Lifecycle hook that triggers after data is marshaled into the view (async flow).
|
|
4207
4207
|
*
|
|
4208
4208
|
* @param {ErrorCallback} fCallback - The callback to call when the async operation is complete.
|
|
4209
|
-
*/onAfterMarshalToViewAsync(fCallback){this.onAfterMarshalToView();return fCallback();}/** @return {boolean} - True if the object is a PictView. */get isPictView(){return true;}}module.exports=PictView;},{"../package.json":74,"fable-serviceproviderbase":2}],76:[function(require,module,exports){module.exports={"name":"pict-docuserve","version":"1.
|
|
4209
|
+
*/onAfterMarshalToViewAsync(fCallback){this.onAfterMarshalToView();return fCallback();}/** @return {boolean} - True if the object is a PictView. */get isPictView(){return true;}}module.exports=PictView;},{"../package.json":74,"fable-serviceproviderbase":2}],76:[function(require,module,exports){module.exports={"name":"pict-docuserve","version":"1.3.0","description":"Pict Documentation Server - A single-page documentation viewer built on Pict","main":"source/Pict-Application-Docuserve.js","bin":{"pict-docuserve":"source/cli/Docuserve-CLI-Run.js"},"files":["source/","dist/","html/"],"scripts":{"start":"node source/cli/Docuserve-CLI-Run.js serve","brand":"node node_modules/pict-section-theme/bin/pict-section-theme-brand.js --manifest ../../../Retold-Modules-Manifest.json --module pict-docuserve","prebuild":"npm run brand","build":"npx quack build && npx quack copy","prebuild-docs":"npm run brand","build-docs":"npx quack build && npx quack copy && node source/cli/Docuserve-CLI-Run.js inject ./docs && node example_applications/build-examples.js stage-docs","serve-docs":"node source/cli/Docuserve-CLI-Run.js serve ./docs","serve-examples":"node example_applications/build-examples.js","test":"npx quack test","tests":"npx quack test -g","coverage":"npx quack coverage","prepublishOnly":"npm run build"},"author":"steven velozo <steven@velozo.com>","license":"MIT","dependencies":{"fable-serviceproviderbase":"^3.0.19","lunr":"^2.3.9","pict":"^1.0.368","pict-application":"^1.0.34","pict-provider":"^1.0.13","pict-section-code":"^1.0.11","pict-section-content":"^1.0.2","pict-section-modal":"^1.1.1","pict-section-theme":"^1.0.2","pict-service-commandlineutility":"^1.0.19","pict-view":"^1.0.68"},"devDependencies":{"pict-docuserve":"^1.2.0","quackage":"^1.2.3"},"copyFilesSettings":{"whenFileExists":"overwrite"},"copyFiles":[{"from":"./html/*","to":"./dist/"}],"mocha":{"diff":true,"extension":["js"],"package":"./package.json","reporter":"spec","slow":"75","timeout":"5000","ui":"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},"retold":{"brand":{"Hash":"pict-docuserve","Name":"Pict Docuserve","Tagline":"A documentation viewer built on Pict","Palette":"default","Icon":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 96\" width=\"96\" height=\"96\">\n\t\t<defs>\n\t\t\t<clipPath id=\"frame-pict-docuserve-filled-light\">\n\t\t\t\t<path d=\"M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z\"/>\n\t\t\t</clipPath>\n\t\t</defs>\n\t\t<path d=\"M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z\" fill=\"#692bbf\"/>\n\t\t<g clip-path=\"url(#frame-pict-docuserve-filled-light)\"><rect x=\"18\" y=\"30\" width=\"48\" height=\"48\" rx=\"8\" fill=\"#c13ccd\" opacity=\"0.9\"/>\n\t\t\t\t\t<rect x=\"30\" y=\"18\" width=\"48\" height=\"48\" rx=\"8\" fill=\"rgba(255,255,255,0.18)\"/></g>\n\t\t<text x=\"48\" y=\"50\" text-anchor=\"middle\" dominant-baseline=\"central\"\n\t\t\tfont-family=\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\"\n\t\t\tfont-size=\"38\" font-weight=\"600\"\n\t\t\tfill=\"#ffffff\" letter-spacing=\"-1\">PD</text>\n\t</svg>","IconType":"svg","Favicon":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 96\" width=\"96\" height=\"96\">\n\t\t<defs>\n\t\t\t<clipPath id=\"fav-pict-docuserve-light\">\n\t\t\t\t<path d=\"M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z\"/>\n\t\t\t</clipPath>\n\t\t</defs>\n\t\t<path d=\"M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z\" fill=\"#692bbf\"/>\n\t\t<g clip-path=\"url(#fav-pict-docuserve-light)\"><rect x=\"28\" y=\"16\" width=\"52\" height=\"52\" rx=\"9\" fill=\"rgba(255,255,255,0.22)\"/></g>\n\t\t<text x=\"48\" y=\"50\" text-anchor=\"middle\" dominant-baseline=\"central\"\n\t\t\tfont-family=\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\"\n\t\t\tfont-size=\"60\" font-weight=\"800\"\n\t\t\tfill=\"#ffffff\" letter-spacing=\"-1\">P</text>\n\t</svg>","FaviconDark":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 96\" width=\"96\" height=\"96\">\n\t\t<defs>\n\t\t\t<clipPath id=\"fav-pict-docuserve-dark\">\n\t\t\t\t<path d=\"M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z\"/>\n\t\t\t</clipPath>\n\t\t</defs>\n\t\t<path d=\"M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z\" fill=\"#9a6fd8\"/>\n\t\t<g clip-path=\"url(#fav-pict-docuserve-dark)\"><rect x=\"28\" y=\"16\" width=\"52\" height=\"52\" rx=\"9\" fill=\"rgba(255,255,255,0.22)\"/></g>\n\t\t<text x=\"48\" y=\"50\" text-anchor=\"middle\" dominant-baseline=\"central\"\n\t\t\tfont-family=\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\"\n\t\t\tfont-size=\"60\" font-weight=\"800\"\n\t\t\tfill=\"#101418\" letter-spacing=\"-1\">P</text>\n\t</svg>","Colors":{"Primary":"#692bbf","Secondary":"#c13ccd","PrimaryLight":"#692bbf","PrimaryDark":"#9a6fd8","SecondaryLight":"#c13ccd","SecondaryDark":"#d48adb"}}}};},{}],77:[function(require,module,exports){/**
|
|
4210
4210
|
* Docuserve-Brand — docuserve's own wordmark, used only as a fallback.
|
|
4211
4211
|
*
|
|
4212
4212
|
* Docuserve is a viewer: the docs being served dictate the brand, not
|
|
@@ -5186,10 +5186,24 @@ AutoRender:false,RenderOnLoad:false};this.pict.addView(_CodeEditorViewId,tmpConf
|
|
|
5186
5186
|
// capture logger pre-attached. Constructed once per shim
|
|
5187
5187
|
// build (i.e., once per Run) so the records array + start
|
|
5188
5188
|
// timestamp are captured fresh.
|
|
5189
|
-
function PlaygroundFableWrapper(pSettings){let tmpEffectiveSettings=Object.assign({},pSettings||{},{LogStreams:[]});let tmpInstance=new tmpFableClass(tmpEffectiveSettings);tmpInstance.log.addLogger(tmpSelf._buildCaptureLogger(pRecords,pStart),'trace');return tmpInstance;}//
|
|
5189
|
+
function PlaygroundFableWrapper(pSettings){let tmpEffectiveSettings=Object.assign({},pSettings||{},{LogStreams:[]});let tmpInstance=new tmpFableClass(tmpEffectiveSettings);tmpInstance.log.addLogger(tmpSelf._buildCaptureLogger(pRecords,pStart),'trace');return tmpInstance;}// Wrapper around the FableLog class. fable-log's default
|
|
5190
|
+
// console stream calls globalThis.console.log directly — which
|
|
5191
|
+
// the playground's per-run console shim (scoped through the
|
|
5192
|
+
// IIFE parameter) can't see. By attaching our capture logger
|
|
5193
|
+
// to every new FableLog instance, log.* calls land in the panel
|
|
5194
|
+
// regardless of which streams the user configured. Mirrors
|
|
5195
|
+
// `PlaygroundFableWrapper` above. Static FableLog properties
|
|
5196
|
+
// (LogProviderBase, LogProviderConsole, etc.) are forwarded so
|
|
5197
|
+
// `FableLog.LogProviderBase` still works in user code.
|
|
5198
|
+
let tmpFableLogClass=pFableInstance.Logging&&pFableInstance.Logging.constructor;function PlaygroundFableLogWrapper(pSettings,pServiceHash){let tmpInstance=new tmpFableLogClass(pSettings,pServiceHash);tmpInstance.addLogger(tmpSelf._buildCaptureLogger(pRecords,pStart),'trace');return tmpInstance;}if(tmpFableLogClass){// Forward static / class-level properties the user might
|
|
5199
|
+
// reach for (LogProviderBase etc.). Done by iterating own
|
|
5200
|
+
// enumerable keys plus the well-known statics, so any
|
|
5201
|
+
// future additions to FableLog flow through automatically.
|
|
5202
|
+
let tmpKeys=Object.getOwnPropertyNames(tmpFableLogClass);for(let i=0;i<tmpKeys.length;i++){let tmpKey=tmpKeys[i];if(tmpKey==='length'||tmpKey==='name'||tmpKey==='prototype'){continue;}try{PlaygroundFableLogWrapper[tmpKey]=tmpFableLogClass[tmpKey];}catch(pError){/* non-forwardable property — skip */}}// Legacy factory: `FableLog.new(settings)` should also work.
|
|
5203
|
+
PlaygroundFableLogWrapper.new=function(pSettings){return PlaygroundFableLogWrapper(pSettings);};}// Built-in resolvers — every "bundled" module in the schema
|
|
5190
5204
|
// goes through one of these. Future "cdn" / "dynamic" sources
|
|
5191
5205
|
// would be wired in alongside as lazy promises.
|
|
5192
|
-
let tmpResolvers={'fable':()=>tmpAutoCapture?PlaygroundFableWrapper:tmpFableClass,'pict':()=>tmpPict.constructor,'fable-uuid':()=>pFableInstance.UUID&&pFableInstance.UUID.constructor,'fable-settings':()=>pFableInstance.SettingsManager&&pFableInstance.SettingsManager.constructor,'fable-log':()=>
|
|
5206
|
+
let tmpResolvers={'fable':()=>tmpAutoCapture?PlaygroundFableWrapper:tmpFableClass,'pict':()=>tmpPict.constructor,'fable-uuid':()=>pFableInstance.UUID&&pFableInstance.UUID.constructor,'fable-settings':()=>pFableInstance.SettingsManager&&pFableInstance.SettingsManager.constructor,'fable-log':()=>tmpFableLogClass?PlaygroundFableLogWrapper:null,'fable-serviceproviderbase':()=>libFableServiceProviderBase};// Allowed-imports list derived from the current module's
|
|
5193
5207
|
// _playground.json. When a config is present, only names it
|
|
5194
5208
|
// declares are exposed; when it isn't (or the page is the
|
|
5195
5209
|
// generic playground reference doc), fall back to the full
|