@oomol-lab/open-flow 0.1.0-beta.51 → 0.1.0-beta.53
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/browser/{createResourceDialog-BDtXpRSt.js → createResourceDialog-BsaBMf7_.js} +2 -1
- package/dist/browser/flow-authoring.js +46 -3
- package/dist/browser/flow-change.d.ts +6 -1
- package/dist/browser/flow-change.js +46 -3
- package/dist/browser/{flowChanges-BWSXSnMX.js → flowChanges-CcscgZsW.js} +3492 -1939
- package/dist/browser/{flowWorkspace-DBaq2Eks.js → flowWorkspace-CoT_ewLX.js} +904 -330
- package/dist/browser/{workbenchSelect-C9kwcUmN.js → icons-0s-Q_3lp.js} +48 -32
- package/dist/browser/licenses.md +204 -0
- package/dist/browser/preview.css +282 -179
- package/dist/browser/preview.js +4311 -2200
- package/dist/browser/theme.css +2 -0
- package/dist/browser/ui-hostNavigationActions.d.ts +13 -0
- package/dist/browser/ui-hostTooltip.d.ts +8 -0
- package/dist/browser/ui-logo.d.ts +5 -0
- package/dist/browser/ui.css +82 -8
- package/dist/browser/ui.d.ts +3 -0
- package/dist/browser/ui.js +172 -8
- package/dist/browser/workbench-contract.d.ts +4 -11
- package/dist/browser/workbench.css +346 -200
- package/dist/browser/workbench.d.ts +1 -1
- package/dist/browser/workbench.js +1056 -367
- package/dist/browser/workbenchSelect-BqUPacsr.js +31 -0
- package/dist/common/authoringExamples.d.ts +4 -3
- package/dist/common/connector-proxy.d.ts +32 -0
- package/dist/common/control-api-conformance.js +54 -3
- package/dist/common/control-api.d.ts +6 -0
- package/dist/common/control-api.js +58 -4
- package/dist/common/control-requests.d.ts +4 -0
- package/dist/common/control-requests.js +1299 -68
- package/dist/common/feishu-subscriptions.d.ts +1 -5
- package/dist/common/flow-connectionUsage.d.ts +1 -0
- package/dist/common/flow-encoding.js +34 -0
- package/dist/common/flow-semantics.js +675 -252
- package/dist/common/integration-trigger.js +23 -0
- package/dist/common/mcp.js +54 -3
- package/dist/common/openapi.d.ts +53 -0
- package/dist/common/openapi.js +10390 -0
- package/dist/common/poll-trigger.js +23 -0
- package/dist/common/provider-triggers.d.ts +1 -1
- package/dist/common/provider-triggers.js +166 -16204
- package/dist/common/run-events.js +1 -0
- package/dist/common/scheduler.d.ts +1 -1
- package/dist/common/scheduler.js +31 -1
- package/dist/common/webhook-trigger.js +23 -0
- package/package.json +5 -1
|
@@ -20416,6 +20416,15 @@ function json$1(params) {
|
|
|
20416
20416
|
return jsonSchema;
|
|
20417
20417
|
}
|
|
20418
20418
|
//#endregion
|
|
20419
|
+
//#region src/openapi/common/authBindings.ts
|
|
20420
|
+
/** Never allow credentials to enter a Revision as literal node inputs. */
|
|
20421
|
+
function assertOpenApiAuthBindings(document) {
|
|
20422
|
+
for (const graph of [document.graph, ...Object.values(document.subflows).map((subflow) => subflow.graph)]) for (const node of Object.values(graph.nodes)) {
|
|
20423
|
+
if (node.kind != "task" || node.taskId == null || document.tasks[node.taskId]?.executor.kind != "openapi") continue;
|
|
20424
|
+
for (const [handle, mapping] of Object.entries(node.inputs)) if (handle.startsWith("auth.") && (mapping.kind == "value" || mapping.kind == "sources" && mapping.sources.some((source) => source.kind == "flow"))) throw new TypeError("OpenAPI authentication accepts deployment variables and upstream outputs only.");
|
|
20425
|
+
}
|
|
20426
|
+
}
|
|
20427
|
+
//#endregion
|
|
20419
20428
|
//#region ../../node_modules/.bun/dequal@2.0.3/node_modules/dequal/lite/index.mjs
|
|
20420
20429
|
var has = Object.prototype.hasOwnProperty;
|
|
20421
20430
|
function dequal(foo, bar) {
|
|
@@ -20572,6 +20581,24 @@ var managed = object({
|
|
|
20572
20581
|
action: text,
|
|
20573
20582
|
connectionId: text.optional()
|
|
20574
20583
|
}),
|
|
20584
|
+
object({
|
|
20585
|
+
kind: literal("openapi"),
|
|
20586
|
+
sourceUrl: text,
|
|
20587
|
+
method: text,
|
|
20588
|
+
path: text,
|
|
20589
|
+
serverUrl: text,
|
|
20590
|
+
document: json,
|
|
20591
|
+
auth: array(object({
|
|
20592
|
+
id: text,
|
|
20593
|
+
type: _enum([
|
|
20594
|
+
"bearer",
|
|
20595
|
+
"basic",
|
|
20596
|
+
"apiKey"
|
|
20597
|
+
]),
|
|
20598
|
+
name: text.optional(),
|
|
20599
|
+
in: _enum(["header", "query"]).optional()
|
|
20600
|
+
}))
|
|
20601
|
+
}),
|
|
20575
20602
|
object({
|
|
20576
20603
|
kind: literal("llm"),
|
|
20577
20604
|
mode: _enum(["chat", "json"])
|
|
@@ -20838,6 +20865,7 @@ function decodeRevisionContent(value) {
|
|
|
20838
20865
|
checkJsonDepth(value);
|
|
20839
20866
|
const content = revision.parse(value);
|
|
20840
20867
|
checkErrorModelVersion(content);
|
|
20868
|
+
assertOpenApiAuthBindings(content.document);
|
|
20841
20869
|
return content;
|
|
20842
20870
|
}
|
|
20843
20871
|
var shapes = {
|
|
@@ -20999,6 +21027,11 @@ var shapes = {
|
|
|
20999
21027
|
before: text.optional(),
|
|
21000
21028
|
value: text.optional()
|
|
21001
21029
|
},
|
|
21030
|
+
"task.openapi.set": {
|
|
21031
|
+
taskId: text,
|
|
21032
|
+
before: managed,
|
|
21033
|
+
value: managed
|
|
21034
|
+
},
|
|
21002
21035
|
"task.agent.set": {
|
|
21003
21036
|
taskId: text,
|
|
21004
21037
|
before: managed,
|
|
@@ -21408,8 +21441,8 @@ function applyFlowChanges(content, operations) {
|
|
|
21408
21441
|
case "graph.trigger.sources.set": {
|
|
21409
21442
|
const graph = document.graph;
|
|
21410
21443
|
const node = graph.nodes[operation.nodeId];
|
|
21411
|
-
if (node?.kind != "error") invalid("The Error
|
|
21412
|
-
if (!dequal(node.sourceFlowIds, operation.before)) invalid("The Error
|
|
21444
|
+
if (node?.kind != "error") invalid("The Flow Error node does not exist.");
|
|
21445
|
+
if (!dequal(node.sourceFlowIds, operation.before)) invalid("The Flow Error node’s sources changed before this operation was applied.");
|
|
21413
21446
|
const { sourceFlowIds: _, ...base } = node;
|
|
21414
21447
|
const updated = operation.value == null ? base : {
|
|
21415
21448
|
...base,
|
|
@@ -21514,7 +21547,7 @@ function applyFlowChanges(content, operations) {
|
|
|
21514
21547
|
const graph = selectedGraph(document, operation.target);
|
|
21515
21548
|
if (graph.nodes[operation.nodeId] != null) invalid("A Node with this ID already exists in the target graph.");
|
|
21516
21549
|
if (operation.target.kind == "subflow" && !("inputs" in operation.node)) invalid("Trigger Nodes cannot be created inside a Subflow.");
|
|
21517
|
-
if (operation.node.kind == "error" && Object.values(graph.nodes).some((node) => node.kind == "error")) invalid("A graph can contain only one Error
|
|
21550
|
+
if (operation.node.kind == "error" && Object.values(graph.nodes).some((node) => node.kind == "error")) invalid("A graph can contain only one Flow Error node.");
|
|
21518
21551
|
if (operation.node.kind == "manual" && Object.values(graph.nodes).some((node) => node.kind == "manual")) invalid("A graph can contain only one manual Trigger.");
|
|
21519
21552
|
if (operation.node.kind == "task" && operation.node.task?.capabilities !== void 0) decodeConnectorCapabilities(operation.node.task.capabilities);
|
|
21520
21553
|
if (operation.node.name == null) invalid("A Node name cannot be empty.");
|
|
@@ -21852,6 +21885,16 @@ function applyFlowChanges(content, operations) {
|
|
|
21852
21885
|
document.tasks = tasks;
|
|
21853
21886
|
break;
|
|
21854
21887
|
}
|
|
21888
|
+
case "task.openapi.set": {
|
|
21889
|
+
const task = document.tasks[operation.taskId];
|
|
21890
|
+
if (task?.executor.kind != "openapi" || operation.value.executor.kind != "openapi") invalid("The OpenAPI Task does not exist.");
|
|
21891
|
+
if (!dequal(task, operation.before)) invalid("The OpenAPI Task changed before this operation was applied.");
|
|
21892
|
+
document.tasks = {
|
|
21893
|
+
...document.tasks,
|
|
21894
|
+
[operation.taskId]: operation.value
|
|
21895
|
+
};
|
|
21896
|
+
break;
|
|
21897
|
+
}
|
|
21855
21898
|
case "task.agent.set": {
|
|
21856
21899
|
const task = document.tasks[operation.taskId];
|
|
21857
21900
|
if (task?.executor.kind != "agent" || operation.value.executor.kind != "agent") invalid("The Agent Task does not exist.");
|
|
@@ -21892,6 +21935,7 @@ function applyFlowChanges(content, operations) {
|
|
|
21892
21935
|
break;
|
|
21893
21936
|
}
|
|
21894
21937
|
}
|
|
21938
|
+
assertOpenApiAuthBindings(document);
|
|
21895
21939
|
return {
|
|
21896
21940
|
document,
|
|
21897
21941
|
modelVersion: 5,
|
|
@@ -23372,32 +23416,4 @@ function Icon({ name, size = 18, ...props }) {
|
|
|
23372
23416
|
});
|
|
23373
23417
|
}
|
|
23374
23418
|
//#endregion
|
|
23375
|
-
|
|
23376
|
-
function WorkbenchSelect({ ariaLabel, className, disabled = false, id, onValueChange, options, portalRoot, size, value, variant }) {
|
|
23377
|
-
return /* @__PURE__ */ jsxs(Select, {
|
|
23378
|
-
disabled,
|
|
23379
|
-
onValueChange: (next) => {
|
|
23380
|
-
if (next != null) onValueChange(next);
|
|
23381
|
-
},
|
|
23382
|
-
value,
|
|
23383
|
-
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
23384
|
-
"aria-label": ariaLabel,
|
|
23385
|
-
className: cn("min-w-32", className),
|
|
23386
|
-
id,
|
|
23387
|
-
size,
|
|
23388
|
-
variant,
|
|
23389
|
-
children: /* @__PURE__ */ jsx(SelectValue, { children: options.find((option) => option.value == value)?.label ?? value })
|
|
23390
|
-
}), /* @__PURE__ */ jsx(SelectContent, {
|
|
23391
|
-
align: "end",
|
|
23392
|
-
alignItemWithTrigger: false,
|
|
23393
|
-
container: portalRoot,
|
|
23394
|
-
children: /* @__PURE__ */ jsx(SelectGroup, { children: options.map((option) => /* @__PURE__ */ jsx(SelectItem, {
|
|
23395
|
-
disabled: option.disabled,
|
|
23396
|
-
value: option.value,
|
|
23397
|
-
children: option.label
|
|
23398
|
-
}, option.value)) })
|
|
23399
|
-
})]
|
|
23400
|
-
});
|
|
23401
|
-
}
|
|
23402
|
-
//#endregion
|
|
23403
|
-
export { json$1 as $, ownerDocument as $n, useStableCallback as $r, useHoverFloatingInteraction as $t, nextNodeName as A, useOnFirstRender as An, useId$1 as Ar, isNativeInput as At, operatorsForType as B, findNonDisabledListIndex as Bn, useRenderElement as Br, CompositeList as Bt, FieldDescription as C, addEventListener as Cn, triggerHover as Cr, COMPOSITE_KEYS as Ct, FlowChangeError as D, require_with_selector as Dn, useRegisterFieldControl as Dr, MODIFIER_KEYS as Dt, FieldLabel as E, fastComponentRef as En, useFormContext as Er, HORIZONTAL_KEYS_WITH_EXTRA_KEYS as Et, comparisonIssue as F, getNextTabbable as Fn, Button as Fr, getDisabledMountTransitionStyles as Ft, webhookMethods as G, getMinListIndex as Gn, useMergedRefs as Gr, triggerOpenStateMapping as Gt, unaryOperator as H, getGridCellIndices as Hn, EMPTY_OBJECT as Hr, getPseudoElementBounds as Ht, conditionInputPorts as I, getTabbableAfterElement as In, buttonVariants as Ir, InternalBackdrop as It, _enum as J, stopEvent as Jn, useCompositeRootContext as Jr, useTypeahead as Jt, webhookSupportsBody as K, isIndexOutOfListBounds as Kn, useButton as Kr, useOpenInteractionType as Kt, mapConditionSources as L, getTabbableBeforeElement as Ln, cn as Lr, useAnchorPositioning as Lt, normalizeNodeName as M, Input as Mn, visuallyHidden as Mr, useToolbarRootContext as Mt, portsByHandle as N, Timeout as Nn, visuallyHiddenInput as Nr, useAnchoredPopupScrollLock as Nt, applyFlowChanges as O, require_builtin_esm_external_require_react as On, useFieldRootContext as Or, VERTICAL_KEYS as Ot, resourceNameIssue as P, useTimeout as Pn, useControlled as Pr, usePositioner as Pt, int as Q, isMac as Qn, SafeReact as Qr, useHoverReferenceInteraction as Qt, nodeInputMappings as R, isOutsideEvent as Rn, cva as Rr, adaptiveOrigin as Rt, Field as S, FocusGuard as Sn, triggerFocus as Sr, ARROW_UP as St, FieldGroup as T, fastComponent as Tn, useLabelableContext as Tr, HORIZONTAL_KEYS as Tt, valueType as U, getGridNavigatedIndex as Un, NOOP as Ur, popupStateMapping as Ut, otherwiseOutput as V, getGridCellIndexOfCorner as Vn, EMPTY_ARRAY as Vr, inertValue as Vt, decodeRevisionContent as W, getMaxListIndex as Wn, warn as Wr, pressableTriggerOpenStateMapping as Wt, boolean as X, contains as Xn, mergeProps$1 as Xr, useListNavigation as Xt, array as Y, activeElement as Yn, formatErrorMessage as Yr, useRole as Yt, discriminatedUnion as Z, getTarget as Zn, useIsoLayoutEffect as Zr, useInteractions as Zt, TooltipPositioner as _, FloatingTreeStore as _n, itemPress as _r, ALL_KEYS as _t, DialogContent as a, useImplicitActiveTrigger as an, useOpenChangeComplete as ar, string as at, TooltipRoot as b, DROPDOWN_COLLISION_AVOIDANCE as bn, outsidePress as br, ARROW_LEFT as bt, DialogHeader as c, useTriggerRegistration as cn, transitionStatusMapping as cr, SelectChevron as ct, Tooltip as d, FloatingFocusManager as dn, createChangeEventDetails as dr, SelectItem as dt, useRefWithInit as ei, useFocus as en, useLabelableId as er, lazy$1 as et, TooltipContent as f, FloatingNode as fn, cancelOpen as fr, SelectSeparator as ft, TooltipPopup as g, useFloatingTree as gn, imperativeAction as gr, useCompositeListItem as gt, TooltipArrow as h, useFloatingParentNodeId as hn, focusOut as hr, Separator as ht, DialogClose as i, PopupTriggerMap as in, useTransitionStatus as ir, strictObject as it, nodeNameIssue as j, Label as jn, fieldValidityMapping as jr, scrollIntoViewIfNeeded as jt, isSchemaKeyword as k, createSelector as kn, useBaseUiId as kr, VERTICAL_KEYS_WITH_EXTRA_KEYS as kt, DialogTitle as l, useDismiss as ln, useOnMount as lr, SelectContent as lt, TooltipTrigger as m, useFloatingNodeId as mn, escapeKey as mr, SelectValue as mt, Icon as n, isHTMLElement as ni, createInitialPopupStoreState as nn, Check as nr, number as nt, DialogDescription as o, useOpenStateTransitions as on, useAnimationsFinished as or, union as ot, TooltipProvider as p, FloatingTree as pn, closePress as pr, SelectTrigger as pt, dequal as q, isListIndexDisabled as qn, CompositeRootContext as qr, safePolygon as qt, Dialog as r, isLastTraversableNode as ri, popupStoreSelectors as rn, createLucideIcon as rr, record as rt, DialogFooter as s, useTriggerDataForwarding as sn, TransitionStatusDataAttributes as sr, Select as st, WorkbenchSelect as t, getParentNode as ti, useSyncedFloatingRootContext as tn, ChevronDown as tr, literal as tt, DialogTrigger as u, useClick as un, useValueChanged as ur, SelectGroup as ut, TooltipPortal as v, FloatingPortal as vn, listNavigation as vr, ARROW_DOWN as vt, FieldError as w, ReactStore as wn, triggerPress as wr, HOME as wt, Spinner as x, POPUP_COLLISION_AVOIDANCE as xn, siblingOpen as xr, ARROW_RIGHT as xt, TooltipTrigger$1 as y, CLICK_TRIGGER_IDENTIFIER as yn, none as yr, ARROW_KEYS as yt, operandHandle as z, createGridCellMap as zn, clsx as zr, useDirection as zt };
|
|
23419
|
+
export { lazy$1 as $, useLabelableId as $n, useRefWithInit as $r, useFocus as $t, nodeNameIssue as A, Label as An, fieldValidityMapping as Ar, scrollIntoViewIfNeeded as At, otherwiseOutput as B, getGridCellIndexOfCorner as Bn, EMPTY_ARRAY as Br, inertValue as Bt, FieldError as C, ReactStore as Cn, triggerPress as Cr, HOME as Ct, applyFlowChanges as D, require_builtin_esm_external_require_react as Dn, useFieldRootContext as Dr, VERTICAL_KEYS as Dt, FlowChangeError as E, require_with_selector as En, useRegisterFieldControl as Er, MODIFIER_KEYS as Et, conditionInputPorts as F, getTabbableAfterElement as Fn, buttonVariants as Fr, InternalBackdrop as Ft, webhookSupportsBody as G, isIndexOutOfListBounds as Gn, useButton as Gr, useOpenInteractionType as Gt, valueType as H, getGridNavigatedIndex as Hn, NOOP as Hr, popupStateMapping as Ht, mapConditionSources as I, getTabbableBeforeElement as In, cn as Ir, useAnchorPositioning as It, array as J, activeElement as Jn, formatErrorMessage as Jr, useRole as Jt, dequal as K, isListIndexDisabled as Kn, CompositeRootContext as Kr, safePolygon as Kt, nodeInputMappings as L, isOutsideEvent as Ln, cva as Lr, adaptiveOrigin as Lt, portsByHandle as M, Timeout as Mn, visuallyHiddenInput as Mr, useAnchoredPopupScrollLock as Mt, resourceNameIssue as N, useTimeout as Nn, useControlled as Nr, usePositioner as Nt, isSchemaKeyword as O, createSelector as On, useBaseUiId as Or, VERTICAL_KEYS_WITH_EXTRA_KEYS as Ot, comparisonIssue as P, getNextTabbable as Pn, Button as Pr, getDisabledMountTransitionStyles as Pt, json$1 as Q, ownerDocument as Qn, useStableCallback as Qr, useHoverFloatingInteraction as Qt, operandHandle as R, createGridCellMap as Rn, clsx as Rr, useDirection as Rt, FieldDescription as S, addEventListener as Sn, triggerHover as Sr, COMPOSITE_KEYS as St, FieldLabel as T, fastComponentRef as Tn, useFormContext as Tr, HORIZONTAL_KEYS_WITH_EXTRA_KEYS as Tt, decodeRevisionContent as U, getMaxListIndex as Un, warn as Ur, pressableTriggerOpenStateMapping as Ut, unaryOperator as V, getGridCellIndices as Vn, EMPTY_OBJECT as Vr, getPseudoElementBounds as Vt, webhookMethods as W, getMinListIndex as Wn, useMergedRefs as Wr, triggerOpenStateMapping as Wt, discriminatedUnion as X, getTarget as Xn, useIsoLayoutEffect as Xr, useInteractions as Xt, boolean as Y, contains as Yn, mergeProps$1 as Yr, useListNavigation as Yt, int as Z, isMac as Zn, SafeReact as Zr, useHoverReferenceInteraction as Zt, TooltipPortal as _, FloatingPortal as _n, listNavigation as _r, ARROW_DOWN as _t, DialogDescription as a, useOpenStateTransitions as an, useAnimationsFinished as ar, union as at, Spinner as b, POPUP_COLLISION_AVOIDANCE as bn, siblingOpen as br, ARROW_RIGHT as bt, DialogTitle as c, useDismiss as cn, useOnMount as cr, SelectContent as ct, TooltipContent as d, FloatingNode as dn, cancelOpen as dr, SelectSeparator as dt, getParentNode as ei, useSyncedFloatingRootContext as en, ChevronDown as er, literal as et, TooltipProvider as f, FloatingTree as fn, closePress as fr, SelectTrigger as ft, TooltipPositioner as g, FloatingTreeStore as gn, itemPress as gr, ALL_KEYS as gt, TooltipPopup as h, useFloatingTree as hn, imperativeAction as hr, useCompositeListItem as ht, DialogContent as i, useImplicitActiveTrigger as in, useOpenChangeComplete as ir, string as it, normalizeNodeName as j, Input as jn, visuallyHidden as jr, useToolbarRootContext as jt, nextNodeName as k, useOnFirstRender as kn, useId$1 as kr, isNativeInput as kt, DialogTrigger as l, useClick as ln, useValueChanged as lr, SelectGroup as lt, TooltipArrow as m, useFloatingParentNodeId as mn, focusOut as mr, Separator as mt, Dialog as n, isLastTraversableNode as ni, popupStoreSelectors as nn, createLucideIcon as nr, record as nt, DialogFooter as o, useTriggerDataForwarding as on, TransitionStatusDataAttributes as or, Select as ot, TooltipTrigger as p, useFloatingNodeId as pn, escapeKey as pr, SelectValue as pt, _enum as q, stopEvent as qn, useCompositeRootContext as qr, useTypeahead as qt, DialogClose as r, PopupTriggerMap as rn, useTransitionStatus as rr, strictObject as rt, DialogHeader as s, useTriggerRegistration as sn, transitionStatusMapping as sr, SelectChevron as st, Icon as t, isHTMLElement as ti, createInitialPopupStoreState as tn, Check as tr, number as tt, Tooltip as u, FloatingFocusManager as un, createChangeEventDetails as ur, SelectItem as ut, TooltipTrigger$1 as v, CLICK_TRIGGER_IDENTIFIER as vn, none as vr, ARROW_KEYS as vt, FieldGroup as w, fastComponent as wn, useLabelableContext as wr, HORIZONTAL_KEYS as wt, Field as x, FocusGuard as xn, triggerFocus as xr, ARROW_UP as xt, TooltipRoot as y, DROPDOWN_COLLISION_AVOIDANCE as yn, outsidePress as yr, ARROW_LEFT as yt, operatorsForType as z, findNonDisabledListIndex as zn, useRenderElement as zr, CompositeList as zt };
|
package/dist/browser/licenses.md
CHANGED
|
@@ -827,6 +827,210 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
827
827
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
828
828
|
THE SOFTWARE.
|
|
829
829
|
|
|
830
|
+
## @oomol-lab/resource-cache - 0.1.4 (Apache-2.0)
|
|
831
|
+
|
|
832
|
+
Apache License
|
|
833
|
+
Version 2.0, January 2004
|
|
834
|
+
http://www.apache.org/licenses/
|
|
835
|
+
|
|
836
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
837
|
+
|
|
838
|
+
1. Definitions.
|
|
839
|
+
|
|
840
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
841
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
842
|
+
|
|
843
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
844
|
+
the copyright owner that is granting the License.
|
|
845
|
+
|
|
846
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
847
|
+
other entities that control, are controlled by, or are under common
|
|
848
|
+
control with that entity. For the purposes of this definition,
|
|
849
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
850
|
+
direction or management of such entity, whether by contract or
|
|
851
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
852
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
853
|
+
|
|
854
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
855
|
+
exercising permissions granted by this License.
|
|
856
|
+
|
|
857
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
858
|
+
including but not limited to software source code, documentation
|
|
859
|
+
source, and configuration files.
|
|
860
|
+
|
|
861
|
+
"Object" form shall mean any form resulting from mechanical
|
|
862
|
+
transformation or translation of a Source form, including but
|
|
863
|
+
not limited to compiled object code, generated documentation,
|
|
864
|
+
and conversions to other media types.
|
|
865
|
+
|
|
866
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
867
|
+
Object form, made available under the License, as indicated by a
|
|
868
|
+
copyright notice that is included in or attached to the work
|
|
869
|
+
(an example is provided in the Appendix below).
|
|
870
|
+
|
|
871
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
872
|
+
form, that is based on (or derived from) the Work and for which the
|
|
873
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
874
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
875
|
+
of this License, Derivative Works shall not include works that remain
|
|
876
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
877
|
+
the Work and Derivative Works thereof.
|
|
878
|
+
|
|
879
|
+
"Contribution" shall mean any work of authorship, including
|
|
880
|
+
the original version of the Work and any modifications or additions
|
|
881
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
882
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
883
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
884
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
885
|
+
means any form of electronic, verbal, or written communication sent
|
|
886
|
+
to the Licensor or its representatives, including but not limited to
|
|
887
|
+
communication on electronic mailing lists, source code control systems,
|
|
888
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
889
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
890
|
+
excluding communication that is conspicuously marked or otherwise
|
|
891
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
892
|
+
|
|
893
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
894
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
895
|
+
subsequently incorporated within the Work.
|
|
896
|
+
|
|
897
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
898
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
899
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
900
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
901
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
902
|
+
Work and such Derivative Works in Source or Object form.
|
|
903
|
+
|
|
904
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
905
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
906
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
907
|
+
(except as stated in this section) patent license to make, have made,
|
|
908
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
909
|
+
where such license applies only to those patent claims licensable
|
|
910
|
+
by such Contributor that are necessarily infringed by their
|
|
911
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
912
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
913
|
+
institute patent litigation against any entity (including a
|
|
914
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
915
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
916
|
+
or contributory patent infringement, then any patent licenses
|
|
917
|
+
granted to You under this License for that Work shall terminate
|
|
918
|
+
as of the date such litigation is filed.
|
|
919
|
+
|
|
920
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
921
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
922
|
+
modifications, and in Source or Object form, provided that You
|
|
923
|
+
meet the following conditions:
|
|
924
|
+
|
|
925
|
+
(a) You must give any other recipients of the Work or
|
|
926
|
+
Derivative Works a copy of this License; and
|
|
927
|
+
|
|
928
|
+
(b) You must cause any modified files to carry prominent notices
|
|
929
|
+
stating that You changed the files; and
|
|
930
|
+
|
|
931
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
932
|
+
that You distribute, all copyright, patent, trademark, and
|
|
933
|
+
attribution notices from the Source form of the Work,
|
|
934
|
+
excluding those notices that do not pertain to any part of
|
|
935
|
+
the Derivative Works; and
|
|
936
|
+
|
|
937
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
938
|
+
distribution, then any Derivative Works that You distribute must
|
|
939
|
+
include a readable copy of the attribution notices contained
|
|
940
|
+
within such NOTICE file, excluding those notices that do not
|
|
941
|
+
pertain to any part of the Derivative Works, in at least one
|
|
942
|
+
of the following places: within a NOTICE text file distributed
|
|
943
|
+
as part of the Derivative Works; within the Source form or
|
|
944
|
+
documentation, if provided along with the Derivative Works; or,
|
|
945
|
+
within a display generated by the Derivative Works, if and
|
|
946
|
+
wherever such third-party notices normally appear. The contents
|
|
947
|
+
of the NOTICE file are for informational purposes only and
|
|
948
|
+
do not modify the License. You may add Your own attribution
|
|
949
|
+
notices within Derivative Works that You distribute, alongside
|
|
950
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
951
|
+
that such additional attribution notices cannot be construed
|
|
952
|
+
as modifying the License.
|
|
953
|
+
|
|
954
|
+
You may add Your own copyright statement to Your modifications and
|
|
955
|
+
may provide additional or different license terms and conditions
|
|
956
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
957
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
958
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
959
|
+
the conditions stated in this License.
|
|
960
|
+
|
|
961
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
962
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
963
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
964
|
+
this License, without any additional terms or conditions.
|
|
965
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
966
|
+
the terms of any separate license agreement you may have executed
|
|
967
|
+
with Licensor regarding such Contributions.
|
|
968
|
+
|
|
969
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
970
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
971
|
+
except as required for reasonable and customary use in describing the
|
|
972
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
973
|
+
|
|
974
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
975
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
976
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
977
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
978
|
+
implied, including, without limitation, any warranties or conditions
|
|
979
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
980
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
981
|
+
appropriateness of using or redistributing the Work and assume any
|
|
982
|
+
risks associated with Your exercise of permissions under this License.
|
|
983
|
+
|
|
984
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
985
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
986
|
+
unless required by applicable law (such as deliberate and grossly
|
|
987
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
988
|
+
liable to You for damages, including any direct, indirect, special,
|
|
989
|
+
incidental, or consequential damages of any character arising as a
|
|
990
|
+
result of this License or out of the use or inability to use the
|
|
991
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
992
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
993
|
+
other commercial damages or losses), even if such Contributor
|
|
994
|
+
has been advised of the possibility of such damages.
|
|
995
|
+
|
|
996
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
997
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
998
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
999
|
+
or other liability obligations and/or rights consistent with this
|
|
1000
|
+
License. However, in accepting such obligations, You may act only
|
|
1001
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
1002
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
1003
|
+
defend, and hold each Contributor harmless for any liability
|
|
1004
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
1005
|
+
of your accepting any such warranty or additional liability.
|
|
1006
|
+
|
|
1007
|
+
END OF TERMS AND CONDITIONS
|
|
1008
|
+
|
|
1009
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
1010
|
+
|
|
1011
|
+
To apply the Apache License to your work, attach the following
|
|
1012
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
1013
|
+
replaced with your own identifying information. (Don't include
|
|
1014
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
1015
|
+
comment syntax for the file format. We also recommend that a
|
|
1016
|
+
file or class name and description of purpose be included on the
|
|
1017
|
+
same "printed page" as the copyright notice for easier
|
|
1018
|
+
identification within third-party archives.
|
|
1019
|
+
|
|
1020
|
+
Copyright [yyyy] [name of copyright owner]
|
|
1021
|
+
|
|
1022
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
1023
|
+
you may not use this file except in compliance with the License.
|
|
1024
|
+
You may obtain a copy of the License at
|
|
1025
|
+
|
|
1026
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
1027
|
+
|
|
1028
|
+
Unless required by applicable law or agreed to in writing, software
|
|
1029
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
1030
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1031
|
+
See the License for the specific language governing permissions and
|
|
1032
|
+
limitations under the License.
|
|
1033
|
+
|
|
830
1034
|
## @uiw/codemirror-theme-github - 4.25.11 (MIT)
|
|
831
1035
|
|
|
832
1036
|
## @uiw/codemirror-themes - 4.25.11 (MIT)
|