@deephaven/jsapi-shim 0.43.0 → 0.44.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.
@@ -0,0 +1,82 @@
1
+ import PropTypes from 'prop-types';
2
+ var Column = PropTypes.shape({
3
+ name: PropTypes.string.isRequired,
4
+ type: PropTypes.string.isRequired,
5
+ description: PropTypes.string,
6
+ constituentType: PropTypes.string
7
+ });
8
+ var FilterCondition = PropTypes.shape({
9
+ not: PropTypes.func.isRequired,
10
+ and: PropTypes.func.isRequired,
11
+ or: PropTypes.func.isRequired
12
+ });
13
+ var Sort = PropTypes.shape({
14
+ asc: PropTypes.func.isRequired,
15
+ desc: PropTypes.func.isRequired,
16
+ abs: PropTypes.func.isRequired,
17
+ column: Column.isRequired,
18
+ direction: PropTypes.string.isRequired,
19
+ isAbs: PropTypes.bool.isRequired
20
+ });
21
+ var Table = PropTypes.shape({
22
+ columns: PropTypes.arrayOf(Column).isRequired,
23
+ customColumns: PropTypes.arrayOf(PropTypes.string).isRequired,
24
+ filter: PropTypes.arrayOf(FilterCondition),
25
+ addEventListener: PropTypes.func.isRequired,
26
+ removeEventListener: PropTypes.func.isRequired,
27
+ size: PropTypes.number.isRequired,
28
+ sort: PropTypes.arrayOf(PropTypes.any),
29
+ copy: PropTypes.func.isRequired,
30
+ applyFilter: PropTypes.func.isRequired,
31
+ applySort: PropTypes.func.isRequired,
32
+ applyCustomColumns: PropTypes.func.isRequired,
33
+ description: PropTypes.string
34
+ });
35
+ var TreeTable = PropTypes.shape({
36
+ columns: PropTypes.arrayOf(Column),
37
+ filter: PropTypes.arrayOf(PropTypes.any),
38
+ isExpanded: PropTypes.func.isRequired,
39
+ saveExpandedState: PropTypes.func.isRequired,
40
+ addEventListener: PropTypes.func.isRequired,
41
+ removeEventListener: PropTypes.func.isRequired,
42
+ size: PropTypes.number.isRequired,
43
+ sort: PropTypes.arrayOf(PropTypes.any),
44
+ applyFilter: PropTypes.func.isRequired,
45
+ applySort: PropTypes.func.isRequired
46
+ });
47
+ var VariableDefinition = PropTypes.shape({
48
+ name: PropTypes.string.isRequired,
49
+ type: PropTypes.string.isRequired
50
+ });
51
+ var VariableChanges = PropTypes.shape({
52
+ created: PropTypes.arrayOf(VariableDefinition).isRequired,
53
+ updated: PropTypes.arrayOf(VariableDefinition).isRequired,
54
+ removed: PropTypes.arrayOf(VariableDefinition).isRequired
55
+ });
56
+ var RollupConfig = PropTypes.shape({
57
+ groupingColumns: PropTypes.arrayOf(PropTypes.string),
58
+ aggregations: PropTypes.shape({}),
59
+ includeConstituents: PropTypes.bool,
60
+ includeOriginalColumns: PropTypes.bool,
61
+ includeDescriptions: PropTypes.bool
62
+ });
63
+ var IdeSession = PropTypes.shape({
64
+ addEventListener: PropTypes.func.isRequired,
65
+ removeEventListener: PropTypes.func.isRequired,
66
+ onLogMessage: PropTypes.func,
67
+ getTable: PropTypes.func.isRequired,
68
+ runCode: PropTypes.func.isRequired
69
+ });
70
+ var DhPropTypes = Object.freeze({
71
+ Column,
72
+ FilterCondition,
73
+ IdeSession,
74
+ RollupConfig,
75
+ Sort,
76
+ Table,
77
+ TreeTable,
78
+ VariableChanges,
79
+ VariableDefinition
80
+ });
81
+ export default DhPropTypes;
82
+ //# sourceMappingURL=PropTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropTypes.js","names":["PropTypes","Column","shape","name","string","isRequired","type","description","constituentType","FilterCondition","not","func","and","or","Sort","asc","desc","abs","column","direction","isAbs","bool","Table","columns","arrayOf","customColumns","filter","addEventListener","removeEventListener","size","number","sort","any","copy","applyFilter","applySort","applyCustomColumns","TreeTable","isExpanded","saveExpandedState","VariableDefinition","VariableChanges","created","updated","removed","RollupConfig","groupingColumns","aggregations","includeConstituents","includeOriginalColumns","includeDescriptions","IdeSession","onLogMessage","getTable","runCode","DhPropTypes","Object","freeze"],"sources":["../src/PropTypes.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst Column = PropTypes.shape({\n name: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n description: PropTypes.string,\n constituentType: PropTypes.string,\n});\n\nconst FilterCondition = PropTypes.shape({\n not: PropTypes.func.isRequired,\n and: PropTypes.func.isRequired,\n or: PropTypes.func.isRequired,\n});\n\nconst Sort = PropTypes.shape({\n asc: PropTypes.func.isRequired,\n desc: PropTypes.func.isRequired,\n abs: PropTypes.func.isRequired,\n column: Column.isRequired,\n direction: PropTypes.string.isRequired,\n isAbs: PropTypes.bool.isRequired,\n});\n\nconst Table = PropTypes.shape({\n columns: PropTypes.arrayOf(Column).isRequired,\n customColumns: PropTypes.arrayOf(PropTypes.string).isRequired,\n filter: PropTypes.arrayOf(FilterCondition),\n addEventListener: PropTypes.func.isRequired,\n removeEventListener: PropTypes.func.isRequired,\n size: PropTypes.number.isRequired,\n sort: PropTypes.arrayOf(PropTypes.any),\n copy: PropTypes.func.isRequired,\n applyFilter: PropTypes.func.isRequired,\n applySort: PropTypes.func.isRequired,\n applyCustomColumns: PropTypes.func.isRequired,\n description: PropTypes.string,\n});\n\nconst TreeTable = PropTypes.shape({\n columns: PropTypes.arrayOf(Column),\n filter: PropTypes.arrayOf(PropTypes.any),\n isExpanded: PropTypes.func.isRequired,\n saveExpandedState: PropTypes.func.isRequired,\n addEventListener: PropTypes.func.isRequired,\n removeEventListener: PropTypes.func.isRequired,\n size: PropTypes.number.isRequired,\n sort: PropTypes.arrayOf(PropTypes.any),\n applyFilter: PropTypes.func.isRequired,\n applySort: PropTypes.func.isRequired,\n});\n\nconst VariableDefinition = PropTypes.shape({\n name: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n});\n\nconst VariableChanges = PropTypes.shape({\n created: PropTypes.arrayOf(VariableDefinition).isRequired,\n updated: PropTypes.arrayOf(VariableDefinition).isRequired,\n removed: PropTypes.arrayOf(VariableDefinition).isRequired,\n});\n\nconst RollupConfig = PropTypes.shape({\n groupingColumns: PropTypes.arrayOf(PropTypes.string),\n aggregations: PropTypes.shape({}),\n includeConstituents: PropTypes.bool,\n includeOriginalColumns: PropTypes.bool,\n includeDescriptions: PropTypes.bool,\n});\n\nconst IdeSession = PropTypes.shape({\n addEventListener: PropTypes.func.isRequired,\n removeEventListener: PropTypes.func.isRequired,\n onLogMessage: PropTypes.func,\n getTable: PropTypes.func.isRequired,\n runCode: PropTypes.func.isRequired,\n});\n\nconst DhPropTypes = Object.freeze({\n Column,\n FilterCondition,\n IdeSession,\n RollupConfig,\n Sort,\n Table,\n TreeTable,\n VariableChanges,\n VariableDefinition,\n});\n\nexport default DhPropTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,IAAMC,MAAM,GAAGD,SAAS,CAACE,KAAK,CAAC;EAC7BC,IAAI,EAAEH,SAAS,CAACI,MAAM,CAACC,UAAU;EACjCC,IAAI,EAAEN,SAAS,CAACI,MAAM,CAACC,UAAU;EACjCE,WAAW,EAAEP,SAAS,CAACI,MAAM;EAC7BI,eAAe,EAAER,SAAS,CAACI;AAC7B,CAAC,CAAC;AAEF,IAAMK,eAAe,GAAGT,SAAS,CAACE,KAAK,CAAC;EACtCQ,GAAG,EAAEV,SAAS,CAACW,IAAI,CAACN,UAAU;EAC9BO,GAAG,EAAEZ,SAAS,CAACW,IAAI,CAACN,UAAU;EAC9BQ,EAAE,EAAEb,SAAS,CAACW,IAAI,CAACN;AACrB,CAAC,CAAC;AAEF,IAAMS,IAAI,GAAGd,SAAS,CAACE,KAAK,CAAC;EAC3Ba,GAAG,EAAEf,SAAS,CAACW,IAAI,CAACN,UAAU;EAC9BW,IAAI,EAAEhB,SAAS,CAACW,IAAI,CAACN,UAAU;EAC/BY,GAAG,EAAEjB,SAAS,CAACW,IAAI,CAACN,UAAU;EAC9Ba,MAAM,EAAEjB,MAAM,CAACI,UAAU;EACzBc,SAAS,EAAEnB,SAAS,CAACI,MAAM,CAACC,UAAU;EACtCe,KAAK,EAAEpB,SAAS,CAACqB,IAAI,CAAChB;AACxB,CAAC,CAAC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AQ,EAAErD,SAAS,CAACW,IAAI,CAACN,UAAU;EACnCiD,OAAO,EAAEtD,SAAS,CAACW,IAAI,CAACN;AAC1B,CAAC,CAAC;AAEF,IAAMkD,WAAW,GAAGC,MAAM,CAACC,MAAM,CAAC;EAChCxD,MAAM;EACNQ,eAAe;EACf0C,UAAU;EACVN,YAAY;EACZ/B,IAAI;EACJQ,KAAK;EACLe,SAAS;EACTI,eAAe;EACfD;AACF,CAAC,CAAC;AAEF,eAAee,WAAW"}
package/dist/dh.js ADDED
@@ -0,0 +1,8 @@
1
+ // The Deephaven API script isn't packaged as a module (yet), and is just included in index.html, exported to the global namespace
2
+ // This include file is simply a wrapper so that it behaves like a module, and can be mocked easily for unit tests
3
+
4
+ var {
5
+ dh
6
+ } = globalThis;
7
+ export default dh;
8
+ //# sourceMappingURL=dh.js.map
package/dist/dh.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dh.js","names":["dh","globalThis"],"sources":["../src/dh.ts"],"sourcesContent":["// The Deephaven API script isn't packaged as a module (yet), and is just included in index.html, exported to the global namespace\n// This include file is simply a wrapper so that it behaves like a module, and can be mocked easily for unit tests\nimport type { dh as DhType } from '@deephaven/jsapi-types';\n\ndeclare global {\n // eslint-disable-next-line vars-on-top,no-var\n var dh: DhType;\n}\n\nconst { dh } = globalThis;\n\nexport default dh;\n"],"mappings":"AAAA;AACA;;AAQA,IAAM;EAAEA;AAAG,CAAC,GAAGC,UAAU;AAEzB,eAAeD,EAAE"}
@@ -0,0 +1,2 @@
1
+ export * from '@deephaven/jsapi-types';
2
+ //# sourceMappingURL=dh.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dh.types.js","names":[],"sources":["../src/dh.types.ts"],"sourcesContent":["export * from '@deephaven/jsapi-types';\n"],"mappings":"AAAA,cAAc,wBAAwB"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import shim from "./dh.js";
2
+ export default shim;
3
+ export { default as dh } from "./dh.js";
4
+ export { default as PropTypes } from "./PropTypes.js";
5
+ export * from "./dh.types.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["shim","default","dh","PropTypes"],"sources":["../src/index.ts"],"sourcesContent":["import shim from './dh';\n\nexport default shim;\nexport { default as dh } from './dh';\nexport { default as PropTypes } from './PropTypes';\nexport * from './dh.types';\nexport type { dh as dhType } from './dh.types';\n"],"mappings":"OAAOA,IAAI;AAEX,eAAeA,IAAI;AAAC,SACXC,OAAO,IAAIC,EAAE;AAAA,SACbD,OAAO,IAAIE,SAAS;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/jsapi-shim",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Deephaven JSAPI Shim",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  "build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
22
22
  },
23
23
  "dependencies": {
24
- "@deephaven/jsapi-types": "^0.43.0",
24
+ "@deephaven/jsapi-types": "^0.44.0",
25
25
  "prop-types": "^15.7.2"
26
26
  },
27
27
  "files": [
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "b16776b5bdc15a02cd2897cd79d562ea38c60ed8"
34
+ "gitHead": "ba13c9139b3b7a5f5d64d79069f1de9d4727eeb6"
35
35
  }